/* ==========================================================
   Pelon Creative — shared styles
   ========================================================== */

:root {
  --accent: #e49a68;
  --accent-dark: #c77d4c;
  --ink: #0e1116;
  --ink-2: #161a21;
  --ink-3: #1f242d;
  --text: #f4f1ea;
  --muted: #a9adb5;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --max: 1180px;
  --serif: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Keyboard users: jump past the nav */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 50;
  transition: top 0.3s ease;
}

.nav {
  width: min(1540px, 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  border: 2.5px solid #fff;
  border-radius: 999px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled { top: 14px; }
.site-header.scrolled .nav {
  background: rgba(14, 17, 22, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo { display: block; line-height: 0; }
.logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  gap: 58px;
  list-style: none;
}

.nav-links a {
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #2d5566 0%, #1d3a44 45%, #0e1116 100%);
}

/* Background video (assets/videos/hero.mp4) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark tint so the text stays readable */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.45);
}

.hero-content,
.scroll-cue { z-index: 1; }

.hero-content { position: relative; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--accent);
  font-size: clamp(3rem, 10vw, 9.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
  margin-top: 22px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(#fff, transparent);
  animation: drip 1.8s ease-in-out infinite;
}

@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections ---------- */

.section { padding: 150px 0 120px; }
.section.alt { background: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-head p { color: var(--muted); }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split p + p { margin-top: 16px; }
.split p { color: var(--muted); }

.split-profile { grid-template-columns: auto 1fr; }

/* Round profile photo (assets/images/profile.jpg) */
.profile-pic {
  position: relative;
  width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  background: linear-gradient(160deg, #2d5566, #0e1116);
}

.profile-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Editing timeline divider ---------- */

.timeline {
  position: relative;
  background: #0a0c10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  overflow: hidden;
  user-select: none;
}

.tl-ruler {
  position: relative;
  height: 22px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 1px, transparent 1px 100px) bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0 1px, transparent 1px 20px) bottom / 100% 4px no-repeat;
}

.tl-ruler span {
  position: absolute;
  top: 2px;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transform: translateX(4px);
  font-variant-numeric: tabular-nums;
}

.tl-track {
  position: relative;
  height: 20px;
  margin-top: 5px;
}

.tl-clip {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.64rem;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.tl-video .tl-clip {
  background: rgba(228, 154, 104, 0.16);
  border: 1px solid rgba(228, 154, 104, 0.45);
  color: var(--accent);
}

.tl-audio .tl-clip {
  background: rgba(45, 85, 102, 0.35);
  border: 1px solid rgba(110, 170, 190, 0.45);
  gap: 2px;
  padding: 0 6px;
}

.tl-audio .tl-clip i {
  flex: 1;
  min-width: 1px;
  background: rgba(150, 205, 220, 0.7);
  border-radius: 1px;
}

.tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(228, 154, 104, 0.6);
  will-change: transform;
}

.tl-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  border: 6px solid transparent;
  border-top: 7px solid var(--accent);
  border-bottom: 0;
}

.tl-time {
  position: absolute;
  top: 3px;
  left: 10px;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--accent);
  padding: 0 5px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

/* Horizontal video (16:9) */
.video-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto 60px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #2d5566, #0e1116);
}

.video-frame video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Services list: accent-color bullet points */
.service-list {
  list-style: none;
  width: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
}

.service-list li {
  font-size: 1.25rem;
  padding: 7px 0 7px 26px;
  position: relative;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(7px + 0.85em);
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Rounded icon tile (contact rows) */
.icon-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(228, 154, 104, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.icon-badge svg { width: 20px; height: 20px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--ink); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Contact ---------- */

.contact-wrap {
  max-width: 560px;
}

.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 34px; }

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.info-item:last-child { border-bottom: 1px solid var(--line); }
.info-item small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- 404 page ---------- */

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.not-found img { margin-bottom: 28px; }
.not-found p { color: var(--muted); }
.not-found .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  background: var(--ink);
}

.footer-logo {
  width: 64px;
  height: auto;
  margin: 0 auto 16px;
}

.footer-bottom {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav { padding: 16px 32px; }
  .nav-links { gap: 34px; }
  .nav-links a { font-size: 1.1rem; }
}

@media (max-width: 820px) {
  .site-header { top: 16px; }
  .nav { padding: 14px 24px; flex-wrap: wrap; border-radius: 30px; }
  .logo img { height: 38px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 16px 0 6px;
  }
  .nav-open .nav { background: rgba(14, 17, 22, 0.92); }
  .nav-open .nav-links { display: flex; }
  .nav-links a { font-size: 1.15rem; display: block; padding: 8px 0; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .profile-pic { width: 220px; margin-inline: auto; }
  .section { padding: 120px 0 80px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .nav { width: calc(100% - 32px); }
  .service-list { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .service-list li { font-size: 1rem; padding-left: 20px; }
}

/* Hide the "Powered by Netlify" badge that Netlify injects on free-plan sites */
#nl-badge-frame { display: none !important; }
