/* ============================================================
   EPX / iStopTime — design system
   Mobile-first: base styles target a phone, min-width queries
   scale up. Light by default; .on-dark rescopes the tokens.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:         #F3EFE6;
  --bg-alt:     #EDE8DC;
  --surface:    #FDFBF6;
  --surface-2:  #F7F3EA;

  /* Ink */
  --ink:        #15171B;
  --ink-2:      #1E2127;
  --cream:      #F4F1EA;
  --heading:    #15171B;
  --text:       #33373F;
  --muted:      #575C66;
  --muted-2:    #61666F;

  /* Hairlines */
  --line:        rgba(21, 23, 27, 0.11);
  --line-soft:   rgba(21, 23, 27, 0.06);
  --line-strong: rgba(21, 23, 27, 0.24);

  /* Accent */
  --gold:        #B8861E;
  --gold-text:   #7A5F0E;
  --gold-bright: #E8B84B;
  --gold-soft:   #F2CE74;
  --gold-glow:   rgba(184, 134, 30, 0.16);

  --img-outline: rgba(0, 0, 0, 0.10);

  /* Type scale — floors are sized for a 360px screen */
  --fs-display: clamp(34px, 8.6vw, 88px);
  --fs-h1:      clamp(30px, 7.2vw, 68px);
  --fs-h2:      clamp(25px, 5.4vw, 50px);
  --fs-h3:      clamp(19px, 2.2vw, 24px);
  --fs-lede:    clamp(16.5px, 1.5vw, 20px);
  --fs-body:    15.5px;

  /* Radii */
  --r-xl:   22px;
  --r-lg:   18px;
  --r-md:   13px;
  --r-sm:   10px;
  --r-pill: 100px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(21,23,27,.05), 0 2px 6px rgba(21,23,27,.04);
  --shadow-md: 0 1px 2px rgba(21,23,27,.05), 0 8px 24px -8px rgba(21,23,27,.16);
  --shadow-lg: 0 2px 6px rgba(21,23,27,.06), 0 28px 60px -22px rgba(21,23,27,.26);
  --shadow-gold: 0 2px 6px rgba(21,23,27,.10), 0 20px 44px -22px rgba(184,134,30,.55);

  /* Motion */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Rhythm */
  --gutter: 18px;
  --shell: 1240px;
  --section-y: clamp(56px, 8vw, 128px);
  --card-pad: 24px 20px;
}

.on-dark {
  --bg:         #1B1D22;
  --bg-alt:     #17191E;
  --surface:    #212429;
  --surface-2:  #262A31;

  --heading:    #F4F1EA;
  --text:       #E7E4DD;
  --muted:      #A6ACB6;
  --muted-2:    #858B95;

  --line:        rgba(244, 241, 234, 0.12);
  --line-soft:   rgba(244, 241, 234, 0.07);
  --line-strong: rgba(244, 241, 234, 0.24);

  --gold:       #E8B84B;
  --gold-text:  #E8B84B;
  --gold-glow:  rgba(232, 184, 75, 0.16);

  --img-outline: rgba(255, 255, 255, 0.10);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.16);
  --shadow-md: 0 2px 4px rgba(0,0,0,.26), 0 10px 28px -8px rgba(0,0,0,.48);
  --shadow-lg: 0 4px 10px rgba(0,0,0,.30), 0 28px 64px -20px rgba(0,0,0,.68);

  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold-bright); color: var(--ink); }

/* Nothing is allowed to push the page sideways */
img, video, svg, iframe { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.shell,
.shell-narrow {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell { max-width: var(--shell); }
.shell-narrow { max-width: 940px; }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 84px); }

.section-alt { background: var(--bg-alt); }
.section-alt::before,
.section-alt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section-alt::before { top: 0; }
.section-alt::after  { bottom: 0; }

.section-dark { background: var(--ink-2); }

/* Ambient glow — clipped, and small enough not to dominate a phone */
.glow { position: relative; overflow: clip; }
.glow > .bloom {
  position: absolute;
  width: min(620px, 130vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 66%);
  pointer-events: none;
  z-index: 0;
}
.bloom-tr { top: -30%; right: -35%; }
.bloom-bl { bottom: -35%; left: -35%; }
.glow > *:not(.bloom) { position: relative; z-index: 1; }

/* ============================================================
   Typography
   ============================================================ */

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.display,
.h1, .h2, .h3 {
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--heading);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
  overflow-wrap: break-word;
}

.display { font-weight: 800; font-size: var(--fs-display); line-height: 1.0; }
.h1      { font-weight: 800; font-size: var(--fs-h1);      line-height: 1.04; }
.h2      { font-weight: 800; font-size: var(--fs-h2);      line-height: 1.1; letter-spacing: -0.022em; }
.h3      { font-weight: 700; font-size: var(--fs-h3);      line-height: 1.28; letter-spacing: -0.015em; }

.lede {
  margin: 0;
  font-size: var(--fs-lede);
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 56ch;
}

.body {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.66;
  color: var(--muted);
  text-wrap: pretty;
}

.num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold-text); }
.on-dark .gold { color: var(--gold-bright); }

/* Section heading block — stacks on mobile, splits on desktop */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(30px, 5vw, 56px);
}
.section-head .h2 { margin-top: 12px; max-width: 18ch; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 14px 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: .22s;
  transition-timing-function: var(--ease);
}
.btn:active { scale: 0.96; }

.btn-primary {
  color: var(--cream);
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: #262A31; }

.btn-secondary {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-secondary:hover { background: rgba(21,23,27,0.04); box-shadow: inset 0 0 0 1px rgba(21,23,27,0.55); }

.btn-gold {
  color: var(--ink);
  background: var(--gold-bright);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost {
  color: var(--cream);
  background: rgba(244,241,234,0.04);
  box-shadow: inset 0 0 0 1px rgba(244,241,234,0.26);
}
.btn-ghost:hover { background: rgba(244,241,234,0.11); box-shadow: inset 0 0 0 1px rgba(244,241,234,0.44); }

.btn-sm { padding: 11px 20px; font-size: 14px; min-height: 44px; }

.btn .arrow,
.text-link .arrow { display: inline-block; transition: translate .22s var(--ease); }
.btn:hover .arrow,
.text-link:hover .arrow { translate: 3px 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.text-link:hover { color: var(--heading); }

.link-underline {
  color: var(--heading);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-bright), var(--gold-bright));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease), color .3s var(--ease);
}
.link-underline:hover { background-size: 100% 100%; color: var(--ink); }

/* Button rows: stack on mobile, sit side by side once there's room */
.btn-row { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ============================================================
   Header + nav  (drawer is the mobile default)
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 239, 230, 0.86);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 -1px 0 var(--line-soft);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(243, 239, 230, 0.96);
  box-shadow: inset 0 -1px 0 var(--line), 0 10px 30px -20px rgba(21,23,27,.45);
}

.site-nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; min-height: 44px; }
.brand img { height: 32px; width: auto; display: block; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: background-color .2s var(--ease), scale .2s var(--ease);
}
.nav-toggle:hover { background: rgba(21,23,27,0.06); }
.nav-toggle:active { scale: 0.96; }

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: rgba(247, 244, 236, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 -1px 0 var(--line), var(--shadow-lg);
  padding: 4px var(--gutter) 20px;
  z-index: 100;
}
.nav-links.open { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--line-soft);
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  scale: 0 1;
  transform-origin: left center;
  transition: scale .28s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { scale: 1 1; }
.nav-link.active { color: var(--ink); }

/* Drawer CTA stays full width until the nav goes horizontal */
.nav-links .btn { margin-top: 14px; width: 100%; }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-text), var(--gold), var(--gold-bright));
  transform-origin: left center;
  scale: 0 1;
  will-change: transform;
  pointer-events: none;
}

/* ============================================================
   Cards & surfaces
   ============================================================ */

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
  transition-property: box-shadow, translate, background-color;
  transition-duration: .3s;
  transition-timing-function: var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}
.on-dark .card::before { background: linear-gradient(90deg, transparent, rgba(244,241,234,0.18), transparent); }
.card-hover:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(184,134,30,0.42);
}
.on-dark .card-hover:hover { box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(232,184,75,0.34); }

.service-card { display: flex; flex-direction: column; gap: 10px; }
.service-card .idx,
.service-block .idx {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
.service-card h3 { margin: 2px 0 0; }
.service-card .body { flex: 1; }

.service-block {
  display: grid;
  gap: 22px;
  border-radius: var(--r-xl);
  scroll-margin-top: 88px;
}
.service-block .idx { display: block; margin-bottom: 10px; }
.service-block h2 { margin: 0 0 14px; }

.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(184, 134, 30, 0.08);
  box-shadow: inset 0 0 0 1px rgba(184, 134, 30, 0.26);
}
.callout .callout-title {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}
.callout p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  align-content: start;
}
.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.check-list .tick {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(184,134,30,0.14);
  box-shadow: inset 0 0 0 1px rgba(184,134,30,0.36);
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.on-dark .check-list .tick,
.tier-featured .check-list .tick {
  background: rgba(232,184,75,0.14);
  box-shadow: inset 0 0 0 1px rgba(232,184,75,0.34);
  color: var(--gold-bright);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition-property: background-color, box-shadow, color, scale;
  transition-duration: .22s;
  transition-timing-function: var(--ease);
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(184,134,30,0.5), var(--shadow-sm); }
.chip:active { scale: 0.96; }
.on-dark .chip { background: rgba(244,241,234,0.04); box-shadow: inset 0 0 0 1px var(--line); }
.on-dark .chip:hover { color: var(--cream); background: rgba(244,241,234,0.09); box-shadow: inset 0 0 0 1px rgba(232,184,75,0.45); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--gold-bright);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.step .n {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Hero — photo background, dark scrim, copy on top
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ink);
  display: flex;
  align-items: center;
  min-height: clamp(440px, 68vh, 700px);
  padding-block: clamp(64px, 10vw, 120px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 42%;
  display: block;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Mobile: copy sits over the full width, so darken evenly */
  background: linear-gradient(180deg, rgba(21,23,27,.88) 0%, rgba(21,23,27,.74) 42%, rgba(21,23,27,.92) 100%);
}

/* The headline is what wants a measure — not the whole column */
.hero-inner { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.hero-inner .display { max-width: 15ch; }
.hero-inner .lede { max-width: 50ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Proof rail — light band directly under the hero */
.fact-band {
  background: var(--bg-alt);
  box-shadow: inset 0 -1px 0 var(--line);
}
.fact-band .inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 30px) var(--gutter);
  display: grid;
  gap: 18px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact .k {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.fact .v { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   Media frames
   ============================================================ */

.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--shadow-md);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  outline: 1px solid var(--img-outline);
  outline-offset: -1px;
  pointer-events: none;
}
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.work-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  text-decoration: none;
  background: var(--ink-2);
  box-shadow: var(--shadow-md);
  transition-property: box-shadow, translate;
  transition-duration: .35s;
  transition-timing-function: var(--ease);
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  outline: 1px solid var(--img-outline);
  outline-offset: -1px;
  pointer-events: none;
  z-index: 3;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .7s var(--ease-out); }
.work-thumb:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.work-thumb:hover img { scale: 1.045; }
.work-thumb .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(21,23,27,0) 30%, rgba(21,23,27,.85));
}
.work-thumb .caption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.work-thumb .caption-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
}
.work-thumb .caption-title {
  margin-top: 6px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 30px);
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Vertical 9:16 player — capped so a reel never dominates the page */
.frame-portrait {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: min(320px, 78vw);
  margin-inline: auto;
}

/* Mosaic: portrait reel beside a stack of landscape films */
.work-mosaic { display: grid; gap: 16px; align-items: start; }
.work-mosaic .film-col { display: grid; gap: 16px; }

/* Work grids collapse to one column by default */
.work-grid-2col,
.work-grid-2col-rev,
.work-grid-3col { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Trio of vertical media — a 9:16 reel flanked by two 2:3 stills.
   Stacks on phones, where the reel keeps its capped width */
.work-vertical-trio { display: grid; grid-template-columns: 1fr; gap: 16px; }

.portrait { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  outline: 1px solid var(--img-outline);
  outline-offset: -1px;
  pointer-events: none;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The offset accent frame only appears where there's room for it */
.portrait-wrap { position: relative; }

/* ============================================================
   Pricing
   ============================================================ */

.tier { display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--r-xl); }
.tier .tier-label {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.tier h2 {
  margin: 8px 0 0;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.tier .from {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.tier .price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tier .price .amt {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.025em;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.tier .price .per { font-size: 14px; color: var(--muted-2); }
.tier .pitch { margin: 10px 0 20px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.tier hr { border: none; height: 1px; margin: 0 0 20px; background: linear-gradient(90deg, var(--line), transparent); }
.tier .check-list { flex: 1; margin-bottom: 24px; }

.tier-featured {
  --heading: #F4F1EA;
  --text: #E7E4DD;
  --muted: #A6ACB6;
  --muted-2: #858B95;
  --line: rgba(244,241,234,0.12);
  background: linear-gradient(180deg, #23262C, #1A1C21);
  box-shadow: 0 4px 12px rgba(21,23,27,.16), 0 34px 70px -26px rgba(21,23,27,.5), inset 0 0 0 1.5px rgba(232,184,75,.55);
}
.tier-featured::before { background: linear-gradient(90deg, transparent, rgba(232,184,75,0.5), transparent); }
.tier-featured .tier-label { color: var(--gold-bright); }
.tier-featured hr { background: linear-gradient(90deg, rgba(244,241,234,0.16), transparent); }

/* The badge overhangs the card, so the grid reserves room for it */
.tier-grid { padding-top: 14px; }

.tier-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition-property: background-color, box-shadow, color, scale;
  transition-duration: .22s;
  transition-timing-function: var(--ease);
}
.tier-cta:active { scale: 0.96; }
.tier-cta-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.tier-cta-ghost:hover { background: rgba(21,23,27,0.05); box-shadow: inset 0 0 0 1px rgba(21,23,27,0.55); }
.tier-featured .tier-cta-ghost { color: var(--cream); }
.tier-cta-gold { color: var(--ink); background: var(--gold-bright); box-shadow: var(--shadow-gold); }
.tier-cta-gold:hover { background: var(--gold-soft); }

/* ============================================================
   CTA panels
   ============================================================ */

.cta-cream,
.cta-outline,
.panel-gold-edge {
  border-radius: var(--r-xl);
  padding: clamp(26px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-cream {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FDFCF8 0%, #F0EBDF 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
.cta-cream::before {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,.34), transparent 68%);
  pointer-events: none;
}
.cta-cream > * { position: relative; }

.cta-outline {
  text-align: center;
  align-items: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}
.cta-outline .btn-row { width: 100%; max-width: 340px; }

.panel-gold-edge {
  background: linear-gradient(120deg, var(--surface), var(--bg-alt));
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(184,134,30,0.36);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--bg-alt); box-shadow: inset 0 1px 0 var(--line); color: var(--muted); }
.site-footer .inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) var(--gutter) 32px;
}
.footer-top { display: flex; flex-direction: column; gap: 34px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s var(--ease), translate .2s var(--ease);
}
.footer-link:hover { color: var(--ink); translate: 3px 0; }
.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.footer-mail {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 4.4vw, 22px);
  color: var(--heading);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-bright), var(--gold-bright));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 4px;
  transition: background-size .3s var(--ease), color .3s var(--ease);
  overflow-wrap: break-word;
}
.footer-mail:hover { background-size: 100% 100%; color: var(--ink); }
.footer-bottom {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  box-shadow: inset 0 1px 0 var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
}
.footer-bottom p { margin: 0; }

/* ============================================================
   Forms
   ============================================================ */

.form-grid { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: flex; flex-direction: column; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

input::placeholder, textarea::placeholder { color: var(--muted-2); }

.ep-field {
  width: 100%;
  max-width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  /* 16px keeps iOS from zooming the viewport on focus */
  font-size: 16px;
  color: var(--ink);
  background: #FFFEFB;
  border: none;
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.ep-field:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(184,134,30,0.16);
}
textarea.ep-field { resize: vertical; }
select.ep-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23575C66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.ep-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
  background: var(--ink);
  border: none;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition-property: background-color, scale, box-shadow;
  transition-duration: .22s;
  transition-timing-function: var(--ease);
}
.ep-submit:hover { background: #262A31; }
.ep-submit:active { scale: 0.96; }

/* ============================================================
   Scroll reveals
   ============================================================ */

.js [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition-property: opacity, translate;
  transition-duration: .7s;
  transition-timing-function: var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
  will-change: opacity, translate;
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; will-change: auto; }
.js [data-reveal="scale"] { translate: 0 20px; scale: .985; transition-property: opacity, translate, scale; }
.js [data-reveal="scale"].is-in { scale: 1; }
/* Horizontal reveals would widen a phone viewport, so they only
   move vertically until there's room for them */
.js [data-reveal="left"],
.js [data-reveal="right"] { translate: 0 16px; }
.js [data-reveal="left"].is-in,
.js [data-reveal="right"].is-in { translate: 0 0; }

/* ============================================================
   Grids — min() floors so a column can never exceed its track
   ============================================================ */

.grid-auto    { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.grid-auto-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; align-items: stretch; }
.grid-3       { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.grid-2       { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Two-column split used by about / contact — stacks by default */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }

/* ============================================================
   ≥ 560px — room for side-by-side buttons
   ============================================================ */

@media (min-width: 560px) {
  :root { --gutter: 24px; --card-pad: 28px 26px; }

  .btn { width: auto; }
  .btn-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cta-outline .btn-row { width: auto; justify-content: center; }

  .field-row { flex-direction: row; }
  .field-row .field-group { flex: 1 1 0; }

  .work-thumb .caption { left: 24px; right: 24px; bottom: 22px; }
  .value-band .inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
  .footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
}

/* ============================================================
   ≥ 760px — desktop nav, multi-column layouts
   ============================================================ */

@media (min-width: 760px) {
  :root {
    --r-xl: 28px;
    --r-lg: 20px;
    --card-pad: 30px 28px;
  }

  .site-nav { padding: 14px var(--gutter); }
  .brand img { height: 38px; }
  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-link {
    min-height: 40px;
    font-size: 15px;
    box-shadow: none;
  }
  .nav-link::after { bottom: 4px; }
  .nav-links .btn { margin-top: 0; width: auto; }

  .section-head {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px 40px;
  }
  .section-head .h2 { max-width: 16ch; }

  /* Copy sits left, so weight the scrim left and let the photo breathe right */
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(21,23,27,.94) 0%, rgba(21,23,27,.86) 34%, rgba(21,23,27,.54) 66%, rgba(21,23,27,.34) 100%),
      linear-gradient(180deg, rgba(21,23,27,.45), transparent 32%, rgba(21,23,27,.62));
  }
  .hero-inner { gap: 26px; max-width: 62%; }
  .fact-band .inner { grid-template-columns: repeat(3, 1fr); gap: 36px; }

  .work-grid-2col     { grid-template-columns: 1.6fr 1fr; gap: 20px; }
  .work-grid-2col-rev { grid-template-columns: 1fr 1.6fr; gap: 20px; }
  .work-grid-3col     { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  /* Three verticals abreast; the taller reel centres against the stills
     so the row reads as one composition instead of three stacked blocks */
  .work-vertical-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: center; }
  .work-vertical-trio .frame-portrait { max-width: none; margin-inline: 0; }

  .work-mosaic { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); gap: 20px; }
  .work-mosaic .film-col { gap: 20px; }
  /* In the mosaic the reel fills its column instead of being capped */
  .work-mosaic .frame-portrait { max-width: none; margin-inline: 0; }

  .stack-lg, .grid-2, .grid-auto { gap: 20px; }
  .grid-auto-lg { gap: 22px; }

  .split { grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
  .split-wide { grid-template-columns: 1.15fr 0.85fr; }

  .service-block { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 34px 48px; padding: clamp(30px, 3.6vw, 46px); scroll-margin-top: 110px; }

  .tier { padding: 32px 30px; }
  .tier h2 { font-size: 28px; }
  .tier .price .amt { font-size: 40px; }
  .tier-grid { padding-top: 16px; }

  .cta-cream,
  .panel-gold-edge {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  .cta-cream .cta-copy,
  .panel-gold-edge .cta-copy { flex: 1 1 420px; }
  .cta-cream .btn-row,
  .panel-gold-edge .btn-row { flex-direction: column; align-items: stretch; flex-shrink: 0; }

  .footer-top { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 56px; }
  .footer-cols { gap: 64px; }

  /* Offset accent frame has room to breathe now */
  .portrait-wrap::before {
    content: "";
    position: absolute;
    inset: 20px -20px -20px 20px;
    border-radius: var(--r-xl);
    box-shadow: inset 0 0 0 1px rgba(184,134,30,0.45);
    pointer-events: none;
  }

  .js [data-reveal="left"]  { translate: -20px 0; }
  .js [data-reveal="right"] { translate: 20px 0; }
  .js [data-reveal="left"].is-in,
  .js [data-reveal="right"].is-in { translate: 0 0; }
}

/* ============================================================
   ≥ 1100px
   ============================================================ */

@media (min-width: 1100px) {
  :root { --gutter: 32px; }
  .check-list.check-list-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 28px; }
  .hero-inner { max-width: 56%; }
  .hero-inner .display { max-width: 13ch; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; scale: 1; }
}
