/* ==========================================================================
   Studio Merlin, Direction 3: Enchanted Forest
   Dusk in a crafted forest. Warm amber light on deep green, storybook-modern.

   THEME: dark theme is LOCKED. There is no light mode on purpose; the whole
   page lives at dusk. color-scheme is set to dark so browser UI matches.

   RADIUS SYSTEM (one rule, used everywhere):
   - Image frames have ARCHED TOPS, like windows and doorways:
       --r-arch       full semicircle top (999px 999px 0 0), portrait frames
       --r-arch-soft  shallow elliptical arch (50% 50% 0 0 / 24% 24% 0 0), landscape frames
   - Cards (bento cells, quotes, FAQ panel): --r-card 18px
   - Buttons and round controls: --r-pill (999px)
   ========================================================================== */

:root {
  --bg: #0F2A22;
  --s1: #133328;
  --s2: #1A3D31;
  --text: #E9E6DC;
  --text-dim: #AEB4A8;     /* 7.2:1 on --bg */
  --text-faint: #8A968C;   /* 4.9:1 on --bg, for tiny meta only */
  --amber: #F2A33A;        /* the one accent */
  --amber-soft: rgba(242, 163, 58, .32);
  --line: rgba(233, 230, 220, .12);
  --deep: #0A1F19;         /* darkest step, founder band */

  --r-arch: 999px 999px 0 0;
  --r-arch-soft: 50% 50% 0 0 / 24% 24% 0 0;
  --r-card: 18px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(4.5rem, 8vw, 7.5rem);
  --header-h: 72px;

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--amber);
}
/* film grain over everything, static, never animated */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #2C5446 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2C5446; border-radius: 999px; border: 2px solid var(--bg); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--amber); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; transition: transform .2s var(--ease-out); }
.skip:focus { transform: translateY(76px); }

.h2 {
  font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--lg { width: 30px; height: 30px; color: var(--amber); }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--amber-soft); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease; }
.link:hover { text-decoration-color: var(--amber); }

/* ---------- buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 44px; padding: .7em 1.35em;
  border-radius: var(--r-pill);
  background: var(--amber); color: var(--bg);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(242, 163, 58, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .16s var(--ease-out), background-color .2s ease, box-shadow .25s ease;
}
.btn .ico { transition: transform .25s var(--ease-out); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background-color: #F6B457; box-shadow: 0 14px 36px -12px rgba(242, 163, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
  .btn:hover .ico { transform: translate(2px, -2px); }
}
.btn--sm { font-size: .9375rem; padding: .55em 1.1em; }
.btn--lg { font-size: 1.0625rem; padding: .95em 1.7em; min-height: 56px; }

.round {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--s1); cursor: pointer;
  transition: transform .16s var(--ease-out), border-color .2s ease, background-color .2s ease, opacity .2s ease;
}
.round:active { transform: scale(.97); }
.round:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:not(:disabled):hover { border-color: var(--amber-soft); background: var(--s2); } }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-solid { background: rgba(15, 42, 34, .94); box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.header__logo { display: block; color: var(--text); width: 132px; flex: none; padding-block: 8px; }
.header__logo svg { display: block; width: 100%; height: auto; }
.header__nav { margin-left: auto; display: flex; gap: .25rem; }
.header__nav a {
  padding: .6rem .9rem; border-radius: var(--r-pill); text-decoration: none; color: var(--text-dim); font-size: .9375rem; font-weight: 500;
  transition: color .2s ease;
}
.header__nav a:hover { color: var(--text); }
@media (max-width: 860px) {
  .header__nav { display: none; }
  .header .btn { margin-left: auto; }
}
@media (max-width: 380px) {
  .header__logo { width: 112px; }
  .header .btn { padding-inline: .95em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100dvh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(120% 70% at 85% 110%, rgba(242, 163, 58, .14), transparent 60%),
    radial-gradient(80% 60% at 0% 0%, #133328, transparent 70%),
    var(--bg);
}
.hero__glow {
  position: absolute; left: 0; top: 0; z-index: -1; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 163, 58, .17), rgba(242, 163, 58, .06) 45%, transparent 100%);
  transform: translate3d(calc(70vw - 360px), calc(30vh - 360px), 0);
  will-change: transform;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(2rem, 6vw, 6rem); position: relative; z-index: 1;
}
.hero__copy { max-width: 40rem; }
.hero__title {
  font-size: clamp(2.3rem, 1.15rem + 4.3vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.04em; font-weight: 500;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; }
.hero__lede { margin-top: clamp(1.25rem, 2.4vw, 1.75rem); max-width: 40ch; color: var(--text-dim); font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 1.55; }
.hero__cta { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.hero__window { position: relative; margin-top: 4vh; }
.hero__window::before {               /* thin amber window frame, outside the image */
  content: ""; position: absolute; inset: -14px; border: 1px solid var(--amber-soft);
  border-bottom: 0; border-radius: var(--r-arch); pointer-events: none;
}
.arch {
  position: relative; height: clamp(340px, 70dvh, 680px); aspect-ratio: 5 / 7;
  border-radius: var(--r-arch); overflow: hidden; background: var(--s1);
  box-shadow: 0 40px 80px -40px rgba(3, 12, 9, .8);
}
.arch img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s var(--ease-in-out), transform 7s var(--ease-out);
}
.arch img.is-active { opacity: 1; transform: scale(1); }
.arch::after {                         /* dusk tint so screenshots sit in the scene */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(242, 163, 58, .1), transparent 35%, rgba(10, 31, 25, .35));
}

.fireflies { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fireflies { display: none; } }

/* hero entrance, plays once on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: rise 1.1s var(--ease-out) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: .09s; }
  .hero__lede { animation: fadeUp .9s .25s var(--ease-out) both; }
  .hero__cta { animation: fadeUp .9s .35s var(--ease-out) both; }
  .hero__window { animation: fadeUp 1.3s .15s var(--ease-out) both; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 1.75rem); }
  .hero__inner { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero__window { justify-self: end; margin: 0 14px 0 0; }
  .arch { height: auto; width: min(64vw, 300px); }
}

/* ---------- scroll reveal (once) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- clients marquee ---------- */
.clients { border-block: 1px solid var(--line); padding-block: 1.6rem; overflow: hidden; }
.marquee { display: flex; width: max-content; }
.marquee__track { display: flex; flex: none; gap: 3.5rem; padding-right: 3.5rem; }
.marquee__track li {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(.95rem, .85rem + .4vw, 1.2rem);
  letter-spacing: -0.01em; color: var(--text-dim); white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee { animation: marquee 60s linear infinite; }
  .clients:hover .marquee { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; padding-inline: var(--gutter); }
  .marquee__track { flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; padding: 0; }
  .marquee__track[aria-hidden] { display: none; }
}

/* ---------- services bento ---------- */
.bento {
  display: grid; gap: clamp(12px, 1.4vw, 18px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(340px, auto) minmax(300px, auto);
  grid-template-areas:
    "brand brand brand brand web web"
    "sys sys ai ai web web";
}
.cell {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-card); background: var(--s1);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
}
.cell::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.cell__body { position: relative; z-index: 1; max-width: 30rem; }
.cell h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.15; margin: 1.1rem 0 .6rem; }
.cell p { color: var(--text-dim); max-width: 36ch; }

.cell--brand { grid-area: brand; }
.cell__bg {
  position: absolute; top: 0; right: 0; width: 52%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.cell--brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 0% 100%, rgba(242, 163, 58, .12), transparent 70%);
}

.cell--web { grid-area: web; justify-content: space-between; gap: 1.75rem; background: var(--s2); }
.cell__window { width: 78%; aspect-ratio: 4 / 5; margin-inline: auto; border-radius: var(--r-arch); overflow: hidden; box-shadow: 0 0 0 1px var(--amber-soft), 0 30px 60px -30px rgba(3, 12, 9, .9); }
.cell__window img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }

.cell--system {                        /* textured: fine amber grid, a system made visible */
  grid-area: sys;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(242, 163, 58, .18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(242, 163, 58, .09) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(242, 163, 58, .09) 0 1px, transparent 1px 28px),
    var(--s1);
}
.cell--ai {                            /* textured: warm dusk light with grain */
  grid-area: ai;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(242, 163, 58, .26), transparent 55%),
    radial-gradient(70% 60% at 100% 0%, rgba(233, 230, 220, .07), transparent 70%),
    linear-gradient(160deg, #1A3D31, #102C23);
}
.cell--ai::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine) { .cell--web:hover .cell__window img { transform: scale(1.04); } }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "brand brand" "web sys" "web ai"; }
  .cell--brand { min-height: 340px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "brand" "web" "sys" "ai"; }
  .cell--brand { min-height: 380px; }
  .cell--brand { justify-content: flex-start; padding-top: 0; }
  .cell__bg { position: relative; max-width: none; width: calc(100% + 2 * clamp(1.4rem, 2.4vw, 2.2rem)); height: 210px; margin: 0 calc(-1 * clamp(1.4rem, 2.4vw, 2.2rem)) .5rem; object-position: 50% 40%;
    -webkit-mask-image: linear-gradient(0deg, transparent, #000 45%); mask-image: linear-gradient(0deg, transparent, #000 45%); }
  .cell--system, .cell--ai { min-height: 260px; }
  .cell__window { width: 70%; }
}

/* ---------- work gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 3vw, 40px); row-gap: clamp(3rem, 5.5vw, 5rem);
  align-items: start;
}
.p1 { grid-column: 1 / 8; }
.p2 { grid-column: 9 / 13; margin-top: clamp(3rem, 7vw, 6rem); }
.p3 { grid-column: 2 / 6; }
.p4 { grid-column: 7 / 13; margin-top: clamp(2rem, 4vw, 3.5rem); }
.p5 { grid-column: 1 / 8; }
.p6 { grid-column: 9 / 13; margin-top: clamp(3rem, 7vw, 6rem); }
.p7 { grid-column: 2 / 6; }
.p8 { grid-column: 7 / 13; margin-top: clamp(2rem, 4vw, 3.5rem); }

.piece a, .piece__static { display: block; text-decoration: none; color: inherit; }
.frame { overflow: hidden; background: var(--s1); position: relative; }
.frame--wide { aspect-ratio: 16 / 10; border-radius: var(--r-arch-soft); }
.frame--tall { aspect-ratio: 4 / 5; border-radius: var(--r-arch); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .9s var(--ease-out); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.piece__cap { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; margin-top: 1.1rem; align-items: baseline; }
.piece__cap h3 { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); letter-spacing: -0.02em; }
.piece__cap p { grid-column: 1; color: var(--text-dim); font-size: .9375rem; margin-top: .25rem; }
.piece__cap .ico { grid-column: 2; grid-row: 1; color: var(--amber); width: 22px; height: 22px; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .piece a:hover .frame img { transform: scale(1.035); }
  .piece a:hover .piece__cap .ico { transform: translate(3px, -3px); }
}
.piece a:focus-visible { outline-offset: 8px; border-radius: var(--r-card); }

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; row-gap: 3rem; }
  .gallery .piece { grid-column: 1; margin-top: 0; }
  .piece--tall { width: 78%; }
  .p3, .p7 { justify-self: end; }
}

/* ---------- proof ---------- */
.proof { position: relative; }
.proof__text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, .9rem + 3vw, 3.6rem); line-height: 1.18; letter-spacing: -0.035em;
  max-width: 22ch;
}
.proof__text strong { font-weight: 500; }
.proof .num { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.proof .num--amber { color: var(--amber); }
.proof__note { margin-top: 1.75rem; color: var(--text-dim); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); padding-left: 3.5rem; position: relative; }
.proof__note::before { content: ""; position: absolute; left: 0; top: .8em; width: 2.5rem; height: 1px; background: var(--amber); }

/* ---------- testimonials rail ---------- */
.voices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.voices__head .h2 { margin-bottom: 0; }
.voices__nav { display: flex; gap: .6rem; }
.rail {
  display: flex; gap: clamp(12px, 1.4vw, 18px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  padding-bottom: 1.25rem; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; border-radius: 0; }
.quote {
  flex: 0 0 clamp(282px, 32vw, 440px); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: clamp(1.5rem, 2.2vw, 2rem); border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--s1), rgba(19, 51, 40, .55)); box-shadow: inset 0 0 0 1px var(--line);
}
.quote__mark { color: var(--amber); width: 30px; height: 30px; }
.quote blockquote { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.5; margin-top: -1.25rem; }
.quote figcaption { display: flex; flex-direction: column; font-size: .9375rem; }
.quote figcaption b { font-weight: 600; }
.quote figcaption span { color: var(--text-dim); }
@media (max-width: 520px) { .voices__nav { display: none; } }

/* ---------- founder (full bleed) ---------- */
.founder {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--deep); min-height: min(100dvh, 920px); overflow: hidden;
}
.founder__media { position: relative; min-height: 100%; }
.founder__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 98%); mask-image: linear-gradient(90deg, #000 55%, transparent 98%);
  filter: saturate(.9) contrast(1.02);
}
.founder__media::after {               /* melt the top edge into the band */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--deep), transparent 14%);
}
.founder__text {
  align-self: center; padding: var(--section) var(--gutter) var(--section) clamp(1rem, 3vw, 3rem);
  max-width: 38rem;
}
.founder__story { display: grid; gap: 1.1rem; color: var(--text-dim); }
.founder__story p:first-child { color: var(--text); font-size: 1.12em; }
.founder__story em { font-style: italic; color: var(--amber); }
.founder__sign { margin-top: 2.25rem; display: flex; flex-direction: column; }
.founder__sign b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.founder__sign span { color: var(--text-dim); font-size: .9375rem; }
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; min-height: 0; }
  .founder__media { min-height: 0; aspect-ratio: 4 / 4.2; }
  .founder__media img {
    -webkit-mask-image: linear-gradient(0deg, transparent 2%, #000 40%); mask-image: linear-gradient(0deg, transparent 2%, #000 40%);
    object-position: 50% 20%;
  }
  .founder__text { padding: 0 var(--gutter) var(--section); margin-top: -3rem; position: relative; }
}

/* ---------- process (staircase) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.step { border-top: 1px solid var(--amber-soft); padding-top: 1.5rem; position: relative; }
.step:nth-child(2) { margin-top: clamp(2rem, 5vw, 4.5rem); }
.step:nth-child(3) { margin-top: clamp(4rem, 10vw, 9rem); }
.step h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 1rem; }
.step p { color: var(--text-dim); max-width: 32ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(2) { margin-left: 8%; }
  .step:nth-child(3) { margin-left: 16%; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__side .h2 { margin-bottom: 1.25rem; }
.faq__side p { color: var(--text-dim); max-width: 32ch; }
.faq__list { border-radius: var(--r-card); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); padding: .5rem clamp(1rem, 2.4vw, 2rem); }
.faq__list details + details { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 64px; padding-block: 1.1rem; font-weight: 500; font-size: clamp(1rem, .96rem + .25vw, 1.15rem);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ico { color: var(--amber); width: 22px; height: 22px; transition: transform .3s var(--ease-out); }
.faq__list details[open] summary .ico { transform: rotate(45deg); }
.faq__list summary:focus-visible { outline-offset: 2px; }
.faq__a { padding-bottom: 1.4rem; color: var(--text-dim); max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq__list details[open] .faq__a { animation: fadeUp .35s var(--ease-out) both; }
}
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__side { position: static; }
}

/* ---------- final CTA (doorway) ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section) calc(var(--section) * .9);
  background: radial-gradient(60% 60% at 50% 100%, rgba(242, 163, 58, .16), transparent 70%), var(--bg); }
.cta .wrap { position: relative; z-index: 1; }
.door {
  max-width: 820px; margin-inline: auto; text-align: center;
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 4.5rem) clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--amber-soft); border-bottom: 0; border-radius: var(--r-arch);
  background: linear-gradient(180deg, rgba(19, 51, 40, .55), rgba(19, 51, 40, 0) 85%);
}
.cta__title { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.8rem); line-height: 1.06; letter-spacing: -0.04em; max-width: 16ch; margin-inline: auto; }
.cta__sub { margin: 1.4rem auto 0; color: var(--text-dim); max-width: 36ch; font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); }
.cta .btn { margin-top: 2.25rem; }
.cta__mail { margin-top: 1.25rem; color: var(--text-dim); font-size: .9375rem; }
@media (max-width: 520px) { .door { border-radius: 180px 180px 0 0; padding-top: 4.5rem; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; font-size: .9375rem; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem 2rem; }
.footer__logo { width: 150px; height: auto; color: var(--text); display: block; }
.footer__brand p { margin-top: 1rem; color: var(--text-dim); }
.footer__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; justify-content: flex-end; }
.footer__nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; color: var(--text-dim); transition: color .2s ease; }
.footer__nav a:hover { color: var(--text); }
.footer__nav .ico { color: var(--amber); }
.footer__base { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-faint); font-size: .8125rem; }
.footer__legal { color: var(--text-faint); text-decoration: none; padding: .75rem 0; }
.footer__legal:hover { color: var(--text-dim); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}

/* ---------- legal page ---------- */
.legal { padding-top: calc(var(--header-h) + 3rem); padding-bottom: var(--section); }
.legal__grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.legal__menu { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: .25rem; }
.legal__menu a { display: flex; align-items: center; min-height: 44px; padding-inline: 1rem; border-radius: var(--r-pill); color: var(--text-dim); text-decoration: none; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.legal__menu a:hover { background: var(--s1); color: var(--text); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1rem; }
.legal__intro { color: var(--text-dim); margin-bottom: 3rem; max-width: 60ch; }
.legal section { padding-top: 1rem; margin-bottom: 3.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.legal h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: var(--text-dim); max-width: 68ch; }
.legal p + p { margin-top: .75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .35rem; margin-top: .5rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0; padding: 1.4rem 1.6rem; border-radius: var(--r-card); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); max-width: 44rem; }
.legal dt { color: var(--text-faint); }
.legal dd { margin: 0; color: var(--text); }
@media (max-width: 760px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__menu { position: static; display: flex; flex-wrap: wrap; gap: .5rem; }
  .legal__menu a { background: var(--s1); }
  .legal dl { grid-template-columns: 1fr; gap: .1rem; }
  .legal dd { margin-bottom: .6rem; }
}
