/* ==========================================================================
   STORY FUNNEL — Editorial Warm design system
   Tokens → base → components → sections
   ========================================================================== */

:root {
  --ink: #14181F;
  --muted: #5B6270;
  --terra: #E05D26;
  --terra-dark: #B8451A;
  --cream: #FAF6F0;
  --sand: #F1E7DA;
  --white: #FFFFFF;
  --night: #0F1218;
  --hairline: #E4DBCF;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 11vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  text-wrap: balance;
}
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--terra);
  font-size: 1.12em;
}
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra-dark); margin-bottom: 20px;
}
.eyebrow.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 40ch; }
.body-lg { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-primary { background: var(--terra); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; letter-spacing: .08em; font-size: 18px;
}
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.main-nav a:hover, .main-nav a.is-current { color: var(--ink); }
.nav-cta { min-height: 42px; padding: 10px 22px; font-size: 14px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 50%;
  background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
main { padding-top: 76px; }
.section { padding: var(--section-y) 0; }
.section-cream { background: var(--cream); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-side { padding-top: 6px; }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 110px); }
.hero-copy .display { font-size: clamp(2.4rem, 6.2vw, 5rem); max-width: 16ch; }
.hero-copy .lead { margin-top: 28px; }

/* Media */
.media-band, .media-frame {
  position: relative; overflow: hidden; border-radius: 4px;
  background: linear-gradient(135deg, var(--sand), #E7D3BF 55%, #D9B99B);
}
.media-band { margin-top: clamp(48px, 7vw, 96px); aspect-ratio: 16 / 9; }
.media-image { aspect-ratio: 21 / 9; margin-top: clamp(48px, 7vw, 96px); }
.media-band video, .media-band img, .media-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.split-side .media-frame { max-width: 420px; }

/* Placeholder shown only until real media loads (JS adds .is-placeholder) */
.is-placeholder::after {
  content: attr(data-placeholder);
  position: absolute; left: 16px; bottom: 14px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: rgba(20, 24, 31, .55);
}
.is-placeholder img, .is-placeholder video { opacity: 0; }

.video-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  min-height: 36px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .7); background: rgba(15, 18, 24, .55); color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.video-toggle:hover { background: rgba(15, 18, 24, .85); }
.is-placeholder .video-toggle { display: none; }

/* Trap ticker */
.ticker { margin-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.tick { width: 220px; flex: none; }
.tick img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px;
  filter: grayscale(1); background: #D9D6D1;
}
.tick figcaption {
  margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.tick-arrow { font-size: 28px; color: var(--terra-dark); }
@keyframes ticker { to { transform: translateX(-50%); } }
.result {
  margin-top: clamp(40px, 6vw, 72px); max-width: 36ch;
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.2; text-wrap: balance; color: var(--ink);
}

/* Shift */
.pull-quote {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem); line-height: 1.15; max-width: 22ch; text-wrap: balance;
}
.journey {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink);
}
.journey li {
  padding: 20px 12px 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 2vw, 1.5rem);
  position: relative;
}
.journey li span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--terra-dark); margin-bottom: 6px; }
.journey li::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--terra);
}

/* Tabs */
.tab-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab-list button {
  min-height: 44px; padding: 10px 24px; border-radius: 999px; background: transparent;
  border: 1.5px solid var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 15px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tab-list button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tab-list button:hover { background: var(--sand); }
.tab-list button[aria-selected="true"]:hover { background: var(--ink); }
.tab-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.15; margin-bottom: 20px;
}
.tab-panel p { color: var(--muted); }
.topic-list { margin-top: 28px; border-top: 1px solid var(--hairline); }
.topic-list li { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-weight: 500; }


/* Work list */
.work { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.work-list { border-top: 1px solid var(--ink); }
.work-list li {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0;
  border-bottom: 1px solid var(--hairline); cursor: pointer; opacity: .55;
  transition: opacity .3s var(--ease), padding-left .3s var(--ease);
}
.work-list li:hover, .work-list li:focus-visible, .work-list li.is-active { opacity: 1; padding-left: 8px; }
.work-list .num { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--terra-dark); padding-top: 8px; }
.work-list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; }
.work-list p { color: var(--muted); margin-top: 4px; max-width: 46ch; }
.work-media { position: sticky; top: 100px; }


/* Audit band */
.audit { position: relative; background: var(--night); color: var(--white); overflow: hidden; }
.audit-media { position: absolute; inset: 0; background: linear-gradient(135deg, #1B2230, #0F1218 60%, #2A1710); }
.audit-media video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.audit-media.is-placeholder::after { color: rgba(255, 255, 255, .4); left: auto; right: 16px; }
.audit-inner { position: relative; z-index: 1; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.audit .display { max-width: 18ch; }
.audit .lead { color: rgba(255, 255, 255, .82); margin: 28px 0 36px; max-width: 54ch; }
.audit .eyebrow { color: #F4A57E; }
.audit .video-toggle { top: 16px; bottom: auto; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--terra-dark); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 62ch; }

/* Closing */
.closing { background: var(--cream); padding: var(--section-y) 0; text-align: center; }
.closing .display { max-width: 18ch; margin: 0 auto; }
.closing .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--hairline); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-line { margin-top: 12px; color: var(--muted); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.footer-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }

/* Dialog + form */
dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 32px; border: 0; border-radius: 6px; color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(15, 18, 24, .45);
}
dialog::backdrop { background: rgba(15, 18, 24, .6); backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-head h2 { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: 1.7rem; line-height: 1.15; }
.dialog-close {
  width: 44px; height: 44px; flex: none; border: 1px solid var(--hairline); border-radius: 50%;
  background: transparent; font-size: 24px; line-height: 1;
}
.dialog-close:hover { background: var(--sand); }
.dialog-intro { margin: 14px 0 24px; color: var(--muted); font-size: 15px; }
form label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 600; }
form input[type="text"], form input[type="email"], form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid #CFC6BA; border-radius: 4px; background: var(--white);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(224, 93, 38, .2); }
form [aria-invalid="true"] { border-color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 24px; margin: 14px 0 10px; font-size: 14px; font-weight: 500; }
.form-status.is-error { color: #B42318; }
.form-status.is-success { color: #1B6B3A; }

/* ---------- Reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--hairline);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--hairline); }
  .nav-cta { margin-top: 20px; }
  .split, .tab-panel, .work, .faq-wrap { grid-template-columns: 1fr; }
  .work-media { position: static; order: -1; }
  .journey { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .media-image { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn-row .btn { width: 100%; }
  .tick { width: 170px; }
  dialog { padding: 24px 20px; }
  .journey li { font-size: .85rem; padding-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Additions: feedback round 2 ---------- */
[hidden] { display: none !important; }

.start-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border-top: 1px solid var(--ink); }
.start { padding: 32px 32px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.start + .start { padding-left: 32px; border-left: 1px solid var(--hairline); }
.start h3 { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; }
.start p { color: var(--muted); }
.start-tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-dark) !important; }
.start .topic-list { margin: 4px 0 12px; }
.start .btn { align-self: flex-start; margin-bottom: 24px; }

/* About page */
.about-hero { padding-top: clamp(48px, 8vw, 110px); }
.about-hero .display { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 16ch; }
.about-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid .media-frame { position: sticky; top: 100px; max-width: 460px; }
.about-copy .display { margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-top: 16px; max-width: 58ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin: 32px 0 28px; }
.fact { padding: 20px 16px 0 0; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--hairline); }
.fact strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.fact span { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.4; }

@media (max-width: 960px) {
  .start-grid { grid-template-columns: 1fr; }
  .start, .start + .start { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--hairline); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .media-frame { position: static; max-width: 360px; }
}
.about-hero .lead { margin-top: 28px; }
.about-grid .media-frame img { object-position: center top; }
.about-copy .person { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.about-copy p.role { margin-top: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-dark); }
.about-copy p.role strong { color: var(--ink); }
