/* =========================================================
   BY KEYU · Creative Production: portfolio
   Palette: paper / ink / signal orange. Clean and bold.
   ========================================================= */
:root {
  --paper: #EDE7C7;
  --paper-hi: #F5F0DA;  /* lighter beige for cards on beige */
  --paper-2: #E3DBB5;
  --ink: #200E01;
  --ink-2: #34210F;
  --muted: #7A6B62;
  --accent: #0B2B8B;
  --oxblood: #0B2B8B;  /* royal blue (was the red #8B0000) */
  --olive: #061E5B;    /* navy (was the dark red #5B0202) */
  --rose: #A9BEEF;    /* light blue tint: the accent on dark surfaces */
  --accent-ink: #EDE7C7;
  --line: rgba(32, 14, 1, 0.12);
  --line-inv: rgba(237, 231, 199, 0.14);

  --display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --lilac: #DDE1E6;   /* soft blue-grey for the letter section */
  --sand: #E3DBB5;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.02em; text-transform: uppercase; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.hl { color: var(--accent); }
.section--accent .hl { color: var(--paper); }

/* ---------- Layout ---------- */
.section { padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .muted { color: #a89a8c; }
.section--accent { background: var(--accent); color: var(--ink); }

.eyebrow { margin: 0 0 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.h2, .h3, .hero__title, .reframe__title, .case__title, .book__title, .stat__n, .guarantee__big,
.step__n, .step h3, .plan h3, .faq__item summary, .nav__logo, .reframe__card h3, .timeline__item h3,
.metric dd, .award strong, .ticker__track, .sold__title, .stack__card h3, .letter__title, .letter__big {
  font-family: var(--display);
}
.h2 {
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 16ch;
}
.h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 52ch; margin: 0 0 40px; color: inherit; opacity: 0.86; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 700; letter-spacing: -0.01em;
  padding: 16px 26px; transition: transform 0.35s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--lg { padding: 18px 30px; font-size: 18px; }
.btn--xl { padding: 24px 40px; font-size: clamp(18px, 2vw, 24px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dot--ink { background: var(--ink); }
.dot--live { animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(169, 190, 239, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(169, 190, 239, 0); }
}
.dot--ink.dot--live { animation-name: pulse-ink; }
@keyframes pulse-ink {
  0% { box-shadow: 0 0 0 0 rgba(32, 14, 1, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(32, 14, 1, 0); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  transition: background 0.3s, backdrop-filter 0.3s, transform 0.4s var(--ease);
}
.nav.is-scrolled { background: rgba(237, 231, 199, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-weight: 800; font-size: 22px; letter-spacing: -0.05em; }
.nav__links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px;
  padding: 120px var(--gutter) 64px;
}
.hero__title {
  font-size: clamp(48px, 7.6vw, 128px);
  line-height: 0.9; letter-spacing: -0.055em; font-weight: 800;
  margin: 0 0 28px;
}
.rotator { display: grid; color: var(--accent); }
.rotator__word {
  grid-area: 1 / 1; font-style: italic; padding-right: 0.08em;
  opacity: 0; transform: translateY(40%); filter: blur(6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.rotator__word.is-active { opacity: 1; transform: none; filter: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-40%); filter: blur(6px); }
.hero__sub { font-size: clamp(18px, 1.5vw, 21px); max-width: 46ch; margin: 0 0 36px; color: #3a2a24; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted); }
.hero__trust strong { color: var(--ink); display: block; font-size: 15px; }

.hero__stage { position: relative; height: min(76vh, 720px); }

/* ---------- Phone / video frame ---------- */
.phone {
  margin: 0; position: relative; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #33200F, #200E01);
  box-shadow: 0 30px 80px -20px rgba(32, 14, 1, 0.45);
  isolation: isolate;
}
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone::after { /* subtle sheen */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 30%, transparent 70%, rgba(0,0,0,0.35));
}
.phone__chip {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  background: var(--paper); color: var(--ink); padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.phone__chip--accent { background: var(--accent); }
.phone figcaption {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; right: 14px;
  color: var(--paper); font-size: 11px;
}
.phone__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(237, 231, 199, 0.55); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 20px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(169, 190, 239, 0.35), transparent 60%),
    linear-gradient(160deg, #33200F, #200E01);
}
.phone__placeholder b { display: block; color: var(--paper); font-size: 14px; margin-bottom: 6px; }

.hero__stage .phone { position: absolute; width: 44%; transition: transform 0.8s var(--ease); will-change: transform; }
.phone--a { left: 0; top: 10%; transform: rotate(-7deg); }
.phone--b { left: 28%; top: 0; z-index: 2; width: 48% !important; }
.phone--c { right: 0; top: 16%; transform: rotate(6deg); }
.hero__stage:hover .phone--a { transform: rotate(-10deg) translateX(-6%); }
.hero__stage:hover .phone--c { transform: rotate(9deg) translateX(6%); }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding: 22px 0; border-block: 1px solid var(--ink); }
.ticker__track { display: flex; gap: 36px; width: max-content; animation: ticker 38s linear infinite; font-weight: 800; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.03em; }
.ticker__track span:nth-child(4n+2) { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Reframe ---------- */
.reframe__title { font-size: clamp(36px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 64px; max-width: 20ch; }
.reframe__title s { text-decoration-thickness: 0.08em; text-decoration-color: var(--accent); color: var(--muted); }
.reframe__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reframe__card { border-top: 2px solid var(--ink); padding-top: 22px; }
.reframe__card h3 { font-size: 24px; letter-spacing: -0.03em; margin: 12px 0 10px; }
.reframe__card p { margin: 0; color: #4a3a33; }
.num { color: var(--accent); font-weight: 600; }

/* ---------- Reel ---------- */
.reel__layout { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 24px; }
.reel__player {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; width: 100%;
  background: radial-gradient(120% 70% at 50% 0%, rgba(169, 190, 239, 0.5), transparent 60%), #1A0B01;
  position: sticky; top: 100px;
}
.reel__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.4s, transform 0.8s var(--ease); }
.reel__player:hover .reel__preview { opacity: 1; transform: scale(1.03); }
.reel__badge { position: absolute; z-index: 2; top: 16px; left: 16px; font-size: 11px; color: var(--paper); }
.reel__badge::first-letter { color: var(--accent); }
.reel__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-size: 30px; padding-left: 6px;
  transition: transform 0.4s var(--ease);
}
.reel__player:hover .reel__play { transform: scale(1.12); }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.timeline__item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-inv); }
.timeline__item:last-child { border-bottom: 1px solid var(--line-inv); }
.timeline__time { color: var(--accent); font-size: 14px; padding-top: 6px; }
.timeline__item h3 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.035em; }
.timeline__item p { margin: 0; color: #c4b8a9; max-width: 48ch; }

/* ---------- Work / Case studies ---------- */
.work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.work__head .eyebrow { width: 100%; margin-bottom: 0; }
.work__head .h2 { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: 14px; transition: background 0.25s, color 0.25s; }
.tab:hover { background: var(--paper-2); }
.tab.is-active { background: var(--ink); color: var(--paper); }

.case { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; animation: caseIn 0.6s var(--ease); }
.case[hidden] { display: none; }
@keyframes caseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.case__client { margin: 0 0 12px; color: var(--muted); }
.case__title { font-size: clamp(28px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.045em; margin: 0 0 32px; font-weight: 800; max-width: 22ch; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 36px; border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.metric { padding: 18px; border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 4px; }
.metric:last-child { border-right: 0; }
.metric dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.metric dd { margin: 0; font-size: clamp(26px, 2.8vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.metric__vs { font-size: 10px; color: var(--muted); }
.metric--accent { background: var(--accent); }
.metric--accent dt, .metric--accent .metric__vs { color: var(--ink); }

.case__story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.case__story h4 { margin: 0 0 8px; color: var(--accent); }
.case__story p { margin: 0; font-size: 15px; color: #4a3a33; }
.case__quote { margin: 0; padding: 22px 24px; background: var(--paper-2); border-radius: 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.case__quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.more { margin-top: clamp(80px, 10vw, 140px); }
.more__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.more__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.more__rail .phone { transition: transform 0.5s var(--ease); }
.more__rail .phone:hover { transform: translateY(-8px) rotate(-1deg); }

/* ---------- Method ---------- */
.method .h2 em { font-style: italic; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 28px; min-height: 280px; display: flex; flex-direction: column; transition: transform 0.45s var(--ease); }
.step:hover { transform: translateY(-6px) rotate(-0.6deg); }
.step__n { font-size: 72px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.06em; margin-bottom: auto; }
.step h3 { margin: 24px 0 8px; font-size: 26px; letter-spacing: -0.03em; }
.step p { margin: 0; color: #d6cbbd; font-size: 15px; }
.step .mono { color: var(--paper); font-size: 12px; }

/* ---------- Proof ---------- */
.proof__intro { max-width: 900px; }
.proof__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 56px; }
.stat { padding: 24px 0; border-top: 2px solid var(--ink); }
.stat__n { display: block; font-size: clamp(48px, 6vw, 88px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin-bottom: 10px; }
.stat__l { color: #4a3a33; font-size: 15px; display: block; max-width: 24ch; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.award { border: 1.5px solid var(--ink); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; transition: background 0.25s, color 0.25s; }
.award:hover { background: var(--ink); color: var(--paper); }
.award:hover span:last-child { color: #c4b8a9; }
.award strong { font-size: 19px; letter-spacing: -0.02em; }
.award span:last-child { color: var(--muted); font-size: 14px; }
.award__tier { color: var(--accent); font-size: 11px; }

/* ---------- Trust ---------- */
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-inv); margin-bottom: 80px; }
.guarantee { padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line-inv); }
.guarantee__big { display: block; font-size: clamp(44px, 5vw, 76px); font-weight: 800; letter-spacing: -0.06em; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.guarantee h3 { margin: 0 0 6px; font-size: 20px; }
.guarantee p { margin: 0; color: #c4b8a9; font-size: 15px; max-width: 30ch; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line-inv); border-radius: var(--radius); padding: 30px; }
.plan--featured { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-12px); }
.plan__tag { color: var(--accent); margin: 0 0 12px; }
.plan h3 { font-size: 30px; letter-spacing: -0.04em; margin: 0 0 6px; }
.plan__price { font-family: var(--mono); margin: 0 0 20px; font-size: 15px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line-inv); font-size: 15px; }
.plan--featured li { border-color: var(--line); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 980px; border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.03em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 400; font-size: 22px; transition: transform 0.35s var(--ease), background 0.25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--ink); }
.faq__item p { margin: 0 0 28px; max-width: 62ch; color: #4a3a33; font-size: 17px; }

/* ---------- Book ---------- */
.book { text-align: center; display: flex; flex-direction: column; align-items: center; }
.book__title { font-size: clamp(48px, 9vw, 160px); line-height: 0.88; letter-spacing: -0.06em; font-weight: 800; margin: 0 0 28px; }
.book .lead { margin-inline: auto; }
.book__ctas { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.book__mail { text-decoration: underline; text-underline-offset: 4px; }
.book__fine { margin: 40px 0 0; opacity: 0.75; }

/* ---------- Footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 32px var(--gutter) 96px; background: var(--ink); color: var(--paper); }
.footer .muted { color: #a89a8c; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(92vw, 460px); width: 100%; overflow: visible; }
.modal::backdrop { background: rgba(32, 14, 1, 0.88); backdrop-filter: blur(6px); }
.modal__video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; object-fit: cover; }
.modal__close { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 16px; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); mix-blend-mode: normal;
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s;
  opacity: 0;
}
.cursor__label { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.2s; }
.cursor.is-visible { opacity: 1; }
.cursor.is-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-play .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps, .proof__stats, .awards, .guarantees { grid-template-columns: repeat(2, 1fr); }
  .more__rail { grid-template-columns: repeat(2, 1fr); }
  .case__story { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: auto; }
  .hero__stage { height: 112vw; max-height: 560px; }
  .reframe__grid, .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .reel__layout, .case { grid-template-columns: 1fr; }
  .reel__player { position: relative; top: 0; max-width: 340px; margin: 0 auto; }
  .case__media { max-width: 300px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1.5px solid var(--ink); }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .mobile-cta {
    display: flex; position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
    box-shadow: 0 12px 40px -8px rgba(32, 14, 1, 0.5);
    transform: translateY(140%); transition: transform 0.5s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
}
@media (max-width: 520px) {
  .steps, .proof__stats, .awards, .guarantees { grid-template-columns: 1fr; }
  .more__rail { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero__ctas .btn { width: 100%; }
  .nav__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* =========================================================
   v2 additions
   ========================================================= */

/* Variable-font proximity hero (letters thicken/widen near the cursor) */
.vf { display: block; font-variation-settings: "wght" 800, "wdth" 100; }
.vf .vf__c { display: inline-block; transition: font-variation-settings 0.18s ease-out; }
.vf .vf__sp { display: inline-block; width: 0.22em; }
.hero__title { font-weight: 800; }
.rotator__word { font-variation-settings: "wght" 800, "wdth" 100; letter-spacing: -0.045em; }

/* Rotating sticker stamp in the hero */
.sticker {
  position: absolute; z-index: 3; right: 4%; bottom: 2%;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--accent); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 16px 40px -12px rgba(32, 14, 1, 0.45);
}
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.sticker text { font-family: var(--mono); font-size: 10.4px; letter-spacing: 0.12em; font-weight: 600; fill: var(--ink); }
.sticker b { font-size: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pills & tags */
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--lilac); color: var(--ink); }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; opacity: 0.85; }

/* ---------- Services: sticky stacking cards ---------- */
.stack { display: flex; flex-direction: column; gap: 32px; margin-top: 48px; }
.stack__card {
  position: sticky; top: 96px;
  display: grid; grid-template-columns: 1fr minmax(180px, 260px); gap: clamp(24px, 4vw, 64px); align-items: center;
  min-height: min(560px, 78vh); padding: clamp(28px, 4.5vw, 64px);
  border-radius: 32px; transform-origin: 50% 0;
  box-shadow: 0 -10px 40px -20px rgba(32, 14, 1, 0.25);
  will-change: transform, filter;
}
.stack__card:nth-child(2) { top: 112px; }
.stack__card:nth-child(3) { top: 128px; }
.stack__card--1 { background: var(--sand); color: var(--ink); }
.stack__card--2 { background: var(--ink-2); color: var(--paper); }
.stack__card--3 { background: var(--accent); color: var(--ink); }
.stack__card--2 .pill { background: var(--accent); }
.stack__card--3 .pill { background: var(--paper); }
.stack__text { display: flex; flex-direction: column; height: 100%; }
.stack__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: auto; padding-bottom: 32px; }
.stack__card h3 { font-size: clamp(32px, 4.4vw, 68px); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 800; max-width: 16ch; }
.stack__card p { margin: 0 0 24px; font-size: clamp(16px, 1.3vw, 19px); max-width: 46ch; opacity: 0.88; }
.stack__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__media { width: 100%; }

/* ---------- Story: envelope ---------- */
.section--lilac { background: var(--lilac); }
.story { text-align: center; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.story .h2 { margin-inline: auto; }
.story .lead { margin-inline: auto; }
.envelope-wrap { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.envelope {
  position: relative; display: block; width: min(560px, 88vw); aspect-ratio: 1.6;
  perspective: 1400px; cursor: pointer; margin-top: clamp(110px, 22vw, 230px);
  transition: transform 0.5s var(--ease);
  animation: bob 3.2s ease-in-out infinite;
}
.envelope:hover { transform: translateY(-6px) rotate(-1deg); }
.envelope:focus-visible { outline: 3px solid var(--accent); outline-offset: 10px; border-radius: 12px; }
@keyframes bob { 50% { translate: 0 -8px; } }
.envelope > span { position: absolute; display: block; }
.envelope__back { inset: 0; background: #d9cbb3; border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(32, 14, 1, 0.45); }
.envelope__letter {
  left: 6%; right: 6%; top: 8%; bottom: 6%; z-index: 2;
  background: #F6F1DA; border-radius: 8px; padding: 22px 24px; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 2px 10px rgba(32, 14, 1, 0.08);
  transition: transform 0.9s var(--ease) 0.35s;
}
.envelope__letter-line { display: block; font-family: var(--display); font-size: clamp(16px, 2.2vw, 22px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.envelope__letter-line.mono { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.envelope__pocket {
  inset: 0; z-index: 3; border-radius: 12px; background: #e8dcc6;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.envelope__pocket::before { /* side folds for depth */
  content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,0.04), transparent 40%), linear-gradient(200deg, rgba(0,0,0,0.04), transparent 40%);
}
.envelope__flap {
  left: 0; right: 0; top: 0; height: 58%; z-index: 4;
  background: #e1d3bb; clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0; transition: transform 0.6s var(--ease), z-index 0s linear 0.3s;
  border-radius: 12px 12px 0 0;
}
.envelope__seal {
  left: 50%; top: 58%; z-index: 5; translate: -50% -50%;
  width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2147B5, var(--accent) 55%, #03123A);
  color: #fff3ea; display: grid !important; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 26px;
  box-shadow: 0 6px 14px -4px rgba(120, 30, 0, 0.6), inset 0 -3px 6px rgba(0,0,0,0.2);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.envelope:hover .envelope__seal { transform: scale(1.08) rotate(-8deg); }
.envelope.is-open { animation: none; }
.envelope.is-open .envelope__seal { opacity: 0; transform: scale(0.6); }
.envelope.is-open .envelope__flap { transform: rotateX(180deg); z-index: 1; }
.envelope.is-open .envelope__letter { transform: translateY(-58%); }
.envelope__hint { margin: 0; color: var(--muted); }

/* ---------- Letter modal ---------- */
.letter-modal { border: 0; padding: 0; background: transparent; width: min(720px, 94vw); max-height: 92vh; overflow: visible; }
.letter-modal::backdrop { background: rgba(32, 14, 1, 0.72); backdrop-filter: blur(6px); }
.letter-modal[open] .letter { animation: unfold 0.7s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(60px) scale(0.92) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.letter {
  position: relative; background: #F6F1DA; color: var(--ink);
  border-radius: 14px; padding: clamp(28px, 6vw, 64px);
  max-height: 92vh; overflow-y: auto;
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(32, 14, 1, 0.05) 33px 34px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
.letter p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; margin: 0 0 18px; color: #3a2a24; }
.letter__meta { color: var(--muted); margin-bottom: 18px !important; font-size: 11px !important; }
.letter__title { font-size: clamp(30px, 4.6vw, 52px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 28px; }
.letter__big { font-family: var(--display) !important; font-size: clamp(22px, 2.6vw, 30px) !important; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15 !important; color: var(--ink) !important; }
.letter__big--accent { color: var(--accent) !important; }
.letter__sign { font-family: "Caveat", cursive; font-size: 40px !important; color: var(--ink) !important; margin: 8px 0 28px !important; }
.letter__close { position: sticky; top: 0; float: right; margin: -12px -12px 0 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 15px; z-index: 2; }

/* ---------- Proof: "I can sell" callout ---------- */
.sold {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center;
  background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(28px, 4vw, 52px); margin: 16px 0 56px;
}
.sold__tag { color: var(--accent); margin: 0 0 12px; }
.sold__title { font-size: clamp(28px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 16px; font-weight: 800; max-width: 18ch; }
.sold p { margin: 0; color: #d6cbbd; max-width: 60ch; }
.sold p strong { color: var(--paper); }
.sold__stats { display: flex; gap: 36px; }
.sold__stats .stat__n { color: var(--accent); }
.sold__stats .stat__l { color: #d6cbbd; }

/* ---------- Founding partner banner ---------- */
.founding {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  border: 1.5px dashed var(--accent); border-radius: 20px; padding: 22px 28px; margin-bottom: 28px;
}
.founding__tag { margin: 0; color: var(--accent); }
.founding__text { margin: 0; font-size: clamp(16px, 1.4vw, 19px); color: #d9d5cb; max-width: 70ch; }
.founding__text strong { color: var(--paper); }

/* ---------- Cursor: "open" variant over the envelope ---------- */
.cursor.is-open { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); }
.cursor.is-open .cursor__label { opacity: 1; color: var(--paper); }

@media (max-width: 860px) {
  .stack__card { grid-template-columns: 1fr; min-height: auto; position: relative; top: 0 !important; }
  .stack__media { max-width: 200px; }
  .sold { grid-template-columns: 1fr; }
  .sticker { width: 96px; height: 96px; right: 0; }
  .sticker text { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .envelope { animation: none; }
  .sticker svg { animation: none; }
}

/* =========================================================
   v3: widescreen & 4:3 frames
   Letterboxed 9:16 exports are cropped on display with object-fit: cover,
   so the frame's aspect ratio decides what's visible (the black bars fall outside).
   ========================================================= */
.phone.frame--169 { aspect-ratio: 16 / 9; border-radius: 18px; }
.phone.frame--43 { aspect-ratio: 4 / 3; border-radius: 18px; }

/* Wide case studies: give the video more room */
.case--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.case--wide .metrics { grid-template-columns: repeat(2, 1fr); }
.case--wide .metric:nth-child(2) { border-right: 0; }
.case--wide .metric:nth-child(-n+2) { border-bottom: 1.5px solid var(--ink); }
.case--wide .case__story { grid-template-columns: 1fr; gap: 16px; }
.case--wide .case__title { font-size: clamp(26px, 2.8vw, 42px); }

/* Widescreen gallery under the vertical rail */
.more__head--sub { margin-top: 56px; }
.wide-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wide-rail--43 { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.wide-rail .phone { transition: transform 0.5s var(--ease); }
.wide-rail .phone:hover { transform: translateY(-6px); }

@media (max-width: 860px) {
  .case--wide { grid-template-columns: 1fr; }
  .case--wide .case__media { max-width: none; }
  .wide-rail { grid-template-columns: 1fr; }
  .wide-rail--43 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .wide-rail--43 { grid-template-columns: 1fr; }
}

/* =========================================================
   v4: sound on hover, wide service cards, letter CTAs
   ========================================================= */
.phone[data-cursor="sound"] { cursor: pointer; }
.phone__sound {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 600;
  background: rgba(32, 14, 1, 0.62); color: var(--paper); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.25s, transform 0.25s, background 0.25s;
  pointer-events: none;
}
.phone__sound .on { display: none; }
.phone:hover .phone__sound, .phone:focus-visible .phone__sound, .phone.is-sound .phone__sound { opacity: 1; transform: none; }
.phone.is-sound .phone__sound { background: var(--accent); color: var(--ink); }
.phone.is-sound .phone__sound .on { display: inline; }
.phone.is-sound .phone__sound .off { display: none; }
.phone.is-sound .phone__sound .on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 6px; animation: pulse-ink 1.2s infinite; }
.phone:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (hover: none) { .phone__sound { opacity: 1; transform: none; } }
/* hero chips sit top-left; keep the sound badge clear of them on small phones */
.hero__stage .phone__sound { top: auto; bottom: 12px; }

/* Cursor in "sound" mode: a bigger circle with two-line text */
.cursor.is-sound { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.cursor.is-sound .cursor__label { opacity: 1; text-align: center; max-width: 72px; line-height: 1.2; font-size: 11px; }

/* Services: cards with a widescreen video */
.stack__card--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.stack__card--wide .stack__media { max-width: none; }

/* Pricing footnote */
.plans__note { margin: 24px 0 0; color: #a89a8c; text-align: center; }

/* Letter: email link + buttons */
.letter__mail { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.letter__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.case .metric dd { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .stack__card--wide { grid-template-columns: 1fr; }
}
.hero { overflow-x: clip; }
.metric--text dd { font-size: clamp(20px, 2vw, 28px); }
.letter__close { margin: calc(12px - clamp(28px, 6vw, 64px)) calc(12px - clamp(28px, 6vw, 64px)) 0 0; }

/* =========================================================
   v5: client line, logo band, VisionnAIre project file
   ========================================================= */
.hero__clients { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); max-width: 52ch; line-height: 1.6; }
.hero__clients .mono { display: block; font-weight: 400; margin-bottom: 4px; font-size: 11px; }

.logos { background: var(--ink); color: var(--paper); padding: 40px 0 32px; overflow: hidden; }
.logos__row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); }
.logos__row--small { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-inv); margin-inline: var(--gutter); padding-inline: 0; }
.logos__label { margin: 0; color: #a89a8c; font-size: 11px; }
.logos__marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: logos 32s linear infinite; }
.logos__marquee:hover .logos__track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-100%); } }
.logos__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.logo { display: flex; align-items: center; height: 44px; }
.logo img { max-height: 40px; max-width: 150px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: 0.85; transition: opacity 0.25s; }
.logo:hover img { opacity: 1; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; white-space: nowrap; display: none; }
.logo.is-text img { display: none; }
.logo.is-text .logo__name { display: inline; }
.logos__row--small .logo { height: 32px; }
.logos__row--small .logo img { max-height: 28px; max-width: 120px; }
.logos__row--small .logo__name { font-size: 16px; color: #d6cbbd; }
.logos__platforms { margin: 24px var(--gutter) 0; color: #8a7b70; font-size: 11px; }

.lab { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); background: var(--paper-2); border-radius: 28px; padding: clamp(28px, 4vw, 56px); margin: 24px 0 24px; }
.lab__tag { color: var(--accent); margin: 0 0 12px; }
.lab__title { font-family: var(--display); font-size: clamp(28px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 18px; }
.lab__lede { margin: 0 0 28px; color: #4a3a33; font-size: 16px; max-width: 58ch; }
.lab__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.lab__stats > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.lab__stats .stat__n { font-size: clamp(36px, 4vw, 60px); margin-bottom: 6px; }
.lab__stats .stat__l { font-size: 13px; }
.lab__link { text-decoration: underline; text-underline-offset: 4px; }
.lab__lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lab__lessons li { background: var(--paper); border-radius: 18px; padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: baseline; }
.lab__lessons .mono { font-size: 10px; color: var(--muted); }
.lab__lessons .mono:nth-of-type(2) { color: var(--accent); }
.lab__lessons b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.lab__lessons p { margin: 0; font-size: 15px; color: #4a3a33; }

@media (max-width: 860px) {
  .logos__row { grid-template-columns: 1fr; gap: 12px; }
  .lab { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lab__stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .logos__track { animation: none; } }

/* =========================================================
   v6: textured monochrome logos, recognized-by banner,
   facts floating around the envelope, mid-page CTA
   ========================================================= */
/* Light band so greyscale logos keep their texture and detail */
.logos { background: var(--paper-2); color: var(--ink); border-block: 1px solid var(--line); padding: 32px 0 24px; }
.logos__label { color: var(--muted); }
.logos__platforms { color: var(--muted); }
.logo img {
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;           /* drops white logo backgrounds into the band colour */
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s;
}
.logo:hover img { filter: grayscale(0); opacity: 1; }
.logo__name { color: var(--ink); opacity: 0.75; }

/* Recognized by: moving banner inside the Proof section */
.recog { margin-top: 24px; background: var(--paper-2); border-radius: 22px; padding: 22px 0 18px; overflow: hidden; }
.recog__label { margin: 0 0 12px; padding: 0 26px; color: var(--muted); font-size: 11px; }
.recog .logo { height: 40px; }
.recog .logo__name { font-size: 18px; }

/* Story: facts floating on each side of the envelope */
.story__stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 48px); width: 100%; max-width: 1280px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.facts--left { align-items: flex-end; }
.facts--right { align-items: flex-start; }
.fact {
  background: var(--paper); border-radius: 18px; padding: 14px 18px; max-width: 250px; text-align: left;
  box-shadow: 0 14px 34px -18px rgba(32, 14, 1, 0.35);
  display: flex; flex-direction: column; gap: 2px;
  animation: float 6s ease-in-out infinite;
}
.fact:nth-child(odd) { rotate: -2deg; }
.fact:nth-child(even) { rotate: 1.5deg; }
.facts--left .fact:nth-child(2), .facts--right .fact:nth-child(1) { margin-inline: 28px 0; animation-delay: -2s; }
.facts--left .fact:nth-child(2) { margin-inline: 0 28px; }
.fact:nth-child(3) { animation-delay: -4s; }
.fact__big { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.05em; color: var(--accent); }
.fact__k { font-size: 10px; color: var(--muted); }
.fact b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; }
.fact__l { font-size: 13px; color: #5e4d44; line-height: 1.35; }
.fact--accent { background: var(--ink); color: var(--paper); }
.fact--accent .fact__k { color: var(--accent); }
.fact--accent .fact__l { color: #d6cbbd; }
@keyframes float { 50% { translate: 0 -6px; } }

/* Mid-page CTA after the work */
.midcta { margin-top: clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: 24px; background: var(--ink); color: var(--paper); }
.midcta__text { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.04em; }

@media (max-width: 1080px) {
  .story__stage { grid-template-columns: 1fr; }
  .story__stage .envelope-wrap { order: -1; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact { max-width: none; margin: 0 !important; rotate: 0deg !important; animation: none; }
}
@media (max-width: 520px) {
  .fact { padding: 12px 14px; }
  .fact b { font-size: 16px; }
  .fact__big { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .fact { animation: none; } }

/* =========================================================
   v7: tighter spacing between same-colour sections,
   white silhouette logos on dark, wordmarks for detailed logos
   ========================================================= */
.reframe { padding-bottom: clamp(40px, 5vw, 72px); }
.work { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 80px); }
.services { padding-top: clamp(40px, 5vw, 72px); }

/* Logo band back to ink, logos as crisp white silhouettes */
.logos { background: var(--ink); color: var(--paper); border-block: 0; padding: 36px 0 28px; }
.logos__label { color: #a89a8c; }
.logos__platforms { color: #8a7b70; }
.logo img {
  filter: brightness(0) invert(1);   /* any colour logo → solid white shape (needs a transparent background) */
  mix-blend-mode: normal;
  opacity: 0.9;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.logo:hover img { filter: brightness(0) invert(1); opacity: 1; transform: scale(1.06); }
/* Wordmarks (detailed logos, or no file yet): bold white type */
.logo__name { color: var(--paper); opacity: 1; transition: color 0.25s; }
.logo:hover .logo__name { color: var(--accent); }
.logo--text img { display: none; }
.logo--text .logo__name { display: inline; }
/* orange star between brands */
.logos__track .logo { position: relative; }
.logos__track .logo::after { content: "✦"; position: absolute; right: -36px; color: var(--accent); font-size: 14px; }
.logos__track { gap: 72px; padding-right: 72px; }

/* Recognized by: same treatment, as a dark strip inside the Proof section */
.recog { background: var(--ink); color: var(--paper); border-radius: 22px; margin: 16px 0 16px; padding: 22px 0 20px; }
.recog__label { color: #a89a8c; }
.recog__label span { color: var(--accent); margin-right: 8px; }
.recog .logo__name { color: var(--paper); font-size: 20px; }
.recog .logo img { max-height: 34px; }
.logos__marquee--light { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

/* =========================================================
   v8: founding mystery slots, director's notes, 6-step method
   ========================================================= */
.founding { flex-wrap: nowrap; gap: 28px; }
.founding__slots { display: flex; flex-shrink: 0; }
.slot {
  position: relative; width: 64px; height: 64px; border-radius: 50%; margin-left: -14px;
  background: conic-gradient(from 90deg, #3a3631, #6b5f55, var(--accent), #2a2724, #3a3631);
  border: 3px solid var(--ink); display: grid; place-items: center; overflow: hidden;
  animation: slotPulse 3s ease-in-out infinite;
}
.slot:first-child { margin-left: 0; }
.slot:nth-child(2) { animation-delay: -1s; }
.slot:nth-child(3) { animation-delay: -2s; }
.slot::before { /* the "hidden logo": blurred blobs */
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 35%, #EDE7C7 0 18%, transparent 19%), radial-gradient(circle at 68% 62%, #EDE7C7 0 22%, transparent 23%);
  filter: blur(6px); opacity: 0.55;
}
.slot i { position: relative; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--paper); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
@keyframes slotPulse { 50% { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(169, 190, 239, 0.25); } }
.founding__q { display: block; margin-top: 6px; color: var(--accent); font-weight: 600; }

/* Director's notes replace the metric boxes */
.notes { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1.5px solid var(--ink); }
.notes li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notes__k { color: var(--accent); padding-top: 3px; font-size: 11px; }
.notes p { margin: 0; font-size: 16px; color: #3a2a24; line-height: 1.5; }
.takeaway { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 20px 24px; }
.takeaway .mono { color: var(--accent); font-size: 11px; }
.takeaway p { margin: 8px 0 0; font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.case__title { margin-bottom: 24px; }

/* Scientific method: 6 steps in a 3×2 grid */
.steps--six { grid-template-columns: repeat(3, 1fr); }
.steps--six .step { min-height: 240px; }

@media (max-width: 1080px) { .steps--six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .founding { flex-direction: column; align-items: flex-start; }
  .notes li { grid-template-columns: 1fr; gap: 4px; }
  .steps--six { grid-template-columns: 1fr; }
}

/* =========================================================
   v9: Heritage · Cinematic · Editorial palette
   espresso #200E01 · cream #EDE7C7 · olive #4A5343 · oxblood #4A1521
   ========================================================= */
/* On dark surfaces the accent switches to a light oxblood tint so it stays readable */
.section--ink, .section--accent, .logos, .recog, .sold, .takeaway, .fact--accent, .midcta,
.step, .stack__card--2, .stack__card--3, .stack__card--4, .footer, .modal { --accent: var(--rose); }
.plan--featured { --accent: var(--oxblood); }

::selection { background: var(--oxblood); color: var(--paper); }

/* Buttons: oxblood with cream text */
.btn--accent { background: var(--oxblood); color: var(--paper); }
.btn--accent:hover { background: var(--ink); color: var(--paper); }
.section--ink .btn--accent:hover, .midcta .btn--accent:hover { background: #1D44B0; }

/* Section colours: olive for the method, oxblood for the final call */
.section--accent { background: var(--oxblood); color: var(--paper); }
.method.section--accent { background: var(--olive); }
.section--accent .hl { color: var(--rose); }
.method .step { background: var(--ink); }
.book .dot--ink { background: var(--paper); animation-name: pulse; }
.book .btn--ink { background: var(--paper); color: var(--oxblood); }
.book .btn--ink:hover { background: var(--ink); color: var(--paper); }
.book__mail { color: var(--paper); }

/* Services: third card in olive */
.stack__card--3 { background: var(--olive); color: var(--paper); }
.stack__card--2 .pill { background: var(--rose); color: var(--ink); }

/* Small accent surfaces that sat on orange before */
.sticker { background: var(--oxblood); color: var(--paper); }
.sticker text { fill: var(--paper); }
.phone__chip--accent { background: var(--oxblood); color: var(--paper); }
.phone.is-sound .phone__sound { background: var(--oxblood); color: var(--paper); }
.phone.is-sound .phone__sound .on::before { background: var(--paper); animation-name: pulse; }
.faq__item[open] summary::after { background: var(--oxblood); color: var(--paper); }
.cursor { background: var(--oxblood); }
.cursor__label, .cursor.is-sound .cursor__label { color: var(--paper); }
.cursor.is-open { background: var(--ink); }
.pill { background: var(--lilac); color: var(--ink); }
.fact__big { color: var(--oxblood); }

/* =========================================================
   v10: beige + blue palette, intent-led work, services menu,
   handwritten notes, lab lessons
   ========================================================= */
/* Work */
.work__intro { width: 100%; margin: 0; font-size: clamp(17px, 1.4vw, 20px); color: #4a3a33; }
.case__intent { margin: 0 0 22px; padding-left: 18px; border-left: 3px solid var(--accent); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink); font-style: italic; }
.wide-rail--2 { grid-template-columns: repeat(2, 1fr); }

/* Services */
.services__group { margin: 48px 0 18px; color: var(--accent); font-size: 12px; letter-spacing: 0.08em; }
.services .lead { margin-bottom: 8px; }
.stack__card:nth-child(4) { top: 144px; }
.stack__card--4 { background: var(--oxblood); color: var(--paper); }
.stack__card--4 .pill { background: var(--paper); color: var(--ink); }
.coach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.coach__card { background: var(--paper-hi); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); }
.coach__tag { margin: 0 0 10px; color: var(--accent); font-size: 11px; }
.coach__card h3 { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; margin: 0 0 10px; }
.coach__card p { margin: 0; color: #4a3a33; }

/* Plans: brands (4) and creators (2) */
.plans--four { grid-template-columns: repeat(4, 1fr); }
.plans--two { grid-template-columns: repeat(2, 1fr); }
.trust .services__group { margin-top: 56px; }
.trust .guarantees { margin-bottom: 56px; }

/* About: handwritten notes around the envelope, no boxes */
.hand { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 30px; font-family: "Caveat", cursive; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; color: var(--ink); max-width: 270px; }
.hand--left { justify-self: end; text-align: right; }
.hand--right { justify-self: start; text-align: left; }
.hand li { position: relative; rotate: -2deg; }
.hand li:nth-child(even) { rotate: 1.5deg; }
.hand--left li:nth-child(2), .hand--right li:nth-child(3) { margin-inline: 0 22px; }
.hand--right li:nth-child(2), .hand--left li:nth-child(3) { margin-inline: 22px 0; }
.hand b { font-size: 1.9em; color: var(--accent); font-weight: 600; line-height: 0.8; margin-right: 2px; }
.hand li::after { content: ""; position: absolute; top: 50%; width: 38px; height: 19px; translate: 0 -50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M2 14 C 12 2, 24 2, 34 9' fill='none' stroke='%23200E01' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M28 5 L35 9 L29 14' fill='none' stroke='%23200E01' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; opacity: 0.7; }
.hand--left li::after { right: -48px; }
.hand--right li::after { left: -48px; transform: scaleX(-1); }

/* Lab lessons: in the lab / in your content */
.lab__lessons-title { margin: 0 0 4px; color: var(--accent); font-size: 11px; }
.lesson { background: var(--paper-hi); border-radius: 18px; padding: 18px 20px; }
.lesson h4 { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; margin: 0 0 8px; }
.lesson p { margin: 6px 0 0; font-size: 14.5px; color: #3a2a24; line-height: 1.45; }
.lesson p .mono { display: block; font-size: 10px; color: var(--muted); margin-bottom: 1px; }
.lesson p + p .mono { color: var(--accent); }

@media (max-width: 1080px) {
  .plans--four { grid-template-columns: repeat(2, 1fr); }
  .hand { max-width: none; text-align: center !important; justify-self: center !important; gap: 14px; }
  .hand li { margin: 0 !important; }
  .hand li::after { display: none; }
}
@media (max-width: 860px) {
  .coach, .plans--two, .plans--four, .wide-rail--2 { grid-template-columns: 1fr; }
}

/* =========================================================
   v11: offer CTAs, single coaching offer, light "recognized by",
   envelope alignment, highlighted notes, handwritten labels
   ========================================================= */
/* Envelope: no reserved space above it, so the notes line up with the closed envelope */
.envelope { margin-top: 24px; }
.envelope-wrap { margin-top: 0; }

/* Handwritten notes: highlight the key words */
.hand b { font-size: 1em; font-weight: 700; color: var(--accent); margin: 0; line-height: inherit;
  background: linear-gradient(transparent 62%, rgba(11, 43, 139, 0.14) 62%); padding: 0 2px; }
.hand b.big { font-size: 1.9em; line-height: 0.8; background: none; padding: 0; }

/* Human labels: small section notes in handwriting instead of monospace */
.eyebrow.mono, .services__group.mono, .plan__tag.mono, .notes__k.mono, .coach__tag.mono, .lab__tag.mono,
.lab__lessons-title.mono, .lesson p .mono, .takeaway .mono, .founding__tag.mono, .logos__label.mono,
.recog__label.mono, .sold__tag.mono, .case__client.mono, .plan__price {
  font-family: "Caveat", cursive; text-transform: none; letter-spacing: 0; font-weight: 600;
}
.eyebrow.mono { font-size: 24px; }
.services__group.mono { font-size: 26px; }
.plan__tag.mono, .coach__tag.mono, .lab__tag.mono, .founding__tag.mono, .sold__tag.mono, .takeaway .mono { font-size: 21px; }
.notes__k.mono { font-size: 21px; padding-top: 0; }
.lab__lessons-title.mono, .logos__label.mono, .recog__label.mono { font-size: 21px; }
.lesson p .mono { font-size: 18px; margin-bottom: 0; }
.case__client.mono { font-size: 21px; }
.plan__price { font-size: 23px; line-height: 1.2; }

/* CTAs on every offer */
.btn--line { border: 1.5px solid currentColor; background: transparent; color: inherit; }
.btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan { display: flex; flex-direction: column; }
.plan ul { margin-bottom: 22px; }
.plan__cta { margin-top: auto; align-self: flex-start; }
.plan--featured .btn--accent:hover { background: var(--ink); }
.stack__cta { align-self: flex-start; margin-top: 22px; border: 1.5px solid currentColor; color: inherit; }
.stack__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stack__card--2 .stack__cta:hover, .stack__card--3 .stack__cta:hover, .stack__card--4 .stack__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* One coaching offer */
.coach { grid-template-columns: 1fr; }
.coach__card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; }
.coach__card p { max-width: 64ch; }
.plans--one { display: grid; grid-template-columns: 1fr; }
.plan--wide { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 24px 40px; }
.plan--wide ul { margin: 0; }
.plan--wide .plan__cta { margin: 0; align-self: center; }

/* Recognized by: same light box as the science project, dark logos */
.recog { --accent: var(--oxblood); background: var(--paper-2); color: var(--ink); }
.recog__label { color: var(--muted); }
.recog__label span { color: var(--accent); }
.recog .logo img { filter: brightness(0); opacity: 0.8; }
.recog .logo:hover img { filter: brightness(0); opacity: 1; }
.recog .logo__name { color: var(--ink); }
.recog .logo:hover .logo__name { color: var(--accent); }

@media (max-width: 860px) {
  .coach__card, .plan--wide { grid-template-columns: 1fr; align-items: start; }
  .plan--wide .plan__cta { align-self: flex-start; }
}

/* =========================================================
   v12: simple offer list
   ========================================================= */
.included { list-style: none; margin: 8px 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.included li { border: 1px solid var(--line-inv); border-radius: 999px; padding: 10px 18px; font-size: 15px; color: #d6cbbd; }
.included li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.included b { color: var(--paper); }

.menu { border-top: 1px solid var(--line-inv); }
.menu__group.mono { font-family: "Caveat", cursive; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 26px; color: var(--accent); margin: 28px 0 6px; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-inv); transition: background 0.25s, padding 0.25s; }
.menu__row:hover { background: rgba(237, 231, 199, 0.04); }
.menu__n { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--accent); }
.menu__text h3 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; margin: 0 0 4px; }
.menu__text p { margin: 0; color: #c4b8a9; font-size: 16px; max-width: 62ch; }
.menu__row--featured { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 22px 24px; margin: 8px 0; border-bottom: 0; --accent: var(--oxblood); }
.menu__row--featured:hover { background: var(--paper); }
.menu__row--featured .menu__text p { color: #4a3a33; }
.menu__row .btn { white-space: nowrap; }
.trust .founding { margin: 48px 0 0; }
.trust .plans__note { margin-top: 24px; }

@media (max-width: 720px) {
  .menu__row { grid-template-columns: 1fr; gap: 10px; }
  .menu__n { display: none; }
  .menu__row .btn { justify-self: start; }
}

/* v13: myth → truth cards */
.myth { font-family: "Caveat", cursive; font-size: 22px; color: var(--muted) !important; margin: 10px 0 2px !important; }
.myth span { color: var(--accent); font-weight: 600; }
.myth s { color: #5e4d44; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent); }
.reframe__card h3 { margin-top: 4px; }

/* =========================================================
   v14: full-colour logos on uniform cream tiles
   Real colours and texture stay visible; identical tiles keep the strip coherent.
   ========================================================= */
.logos__track .logo, .recog .logo {
  background: var(--paper-hi); border-radius: 16px;
  height: 72px; min-width: 150px; padding: 12px 22px;
  justify-content: center;
  box-shadow: 0 1px 0 rgba(32, 14, 1, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.logos__track .logo:hover, .recog .logo:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(32, 14, 1, 0.45); }
.logos__track .logo img, .recog .logo img,
.logos__track .logo:hover img, .recog .logo:hover img {
  filter: saturate(0.92) contrast(1.03);   /* full colour, slightly softened so mixed brands sit together */
  mix-blend-mode: multiply;                /* white logo backgrounds melt into the tile */
  opacity: 1; max-height: 46px; max-width: 160px; transform: none;
}
.logos__track .logo:hover img, .recog .logo:hover img { filter: none; }
.logos__track .logo__name, .recog .logo__name { color: var(--ink); font-size: 18px; }
.logos__track .logo:hover .logo__name, .recog .logo:hover .logo__name { color: var(--accent); }
.logos__track { gap: 16px; padding-right: 16px; align-items: center; }
.logos__track .logo::after { display: none; }
.recog .logo { background: #FBF8EA; border: 1px solid var(--line); }
.recog .logos__track { gap: 14px; padding-right: 14px; }

/* v15: optical logo sizing is set inline by main.js; let it win over the old max sizes */
.logos__track .logo img, .recog .logo img { max-height: none; max-width: none; object-fit: contain; }
.logos__track .logo, .recog .logo { min-width: 0; width: 210px; height: 92px; }

/* =========================================================
   v16: BY KEYU wordmark with CREATIVE PRODUCTION descriptor
   ========================================================= */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 4px; letter-spacing: 0; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.06em; }
.brand__desc { font-family: var(--font); font-weight: 600; font-size: 8.5px; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.75; padding-left: 1px; }
.brand--footer .brand__name { font-size: 19px; }
@media (max-width: 520px) { .brand__name { font-size: 18px; } .brand__desc { font-size: 7.5px; letter-spacing: 0.28em; } }

/* =========================================================
   v17: video loading shimmer (poster shows instantly underneath)
   ========================================================= */
.phone video { background: linear-gradient(160deg, #33200F, #1A0B01); }
.phone::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(237, 231, 199, 0.22) 45%, rgba(169, 190, 239, 0.18) 55%, transparent 80%);
  background-size: 250% 100%;
  animation: shimmer 1.4s linear infinite;
  opacity: 0; transition: opacity 0.5s ease;
}
.phone.is-loading:not(.is-loaded)::before { opacity: 1; }
.phone.is-missing::before { display: none; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .phone::before { animation: none; } }
