/* =====================================================================
   Samify AI home, version 2: "Exploded view" (2026-11-19)
   The business is one object, a stack of glass layers lit in a studio.
   One pinned act takes it apart, marks the leaks, slides an AI layer in
   and puts it back together. Everything after reuses the pane language:
   panes that turn to face you, panes that stack.
   Follows the visitor's theme everywhere (studio by day / studio by night).
   Engine: scrollcraft.css/js, untouched. Bespoke parts live here and in
   js/home.js.
   ===================================================================== */

:root {
  --blue: #2E5FB0;
  --blue-hi: #3A6CC4;
  --blue-soft: #8FB2EE;
  --orange: #FB6B3A;
  --orange-deep: #C24A1C;
  --green: #0F8F63;

  --bg: #F3F6FA;
  --bg-alt: #E8EEF6;
  --card: #FFFFFF;
  --ink: #111C2B;
  --ink-soft: #3F4F66;
  --ink-faint: #5F6F86;
  --line: #D8E1EC;
  --em: #E85A28;               /* headline words + step numbers on light: a deeper brand orange that passes 3:1 for large text (#FB6B3A was 2.5 to 2.9:1; Samin approved 2026-12-01). Dark keeps var(--orange). */
  --link: var(--blue);
  --ok: var(--green);
  --kick: var(--blue);

  /* glass */
  --glass: linear-gradient(145deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .5) 55%, rgba(236, 242, 250, .62) 100%);
  --glass-line: rgba(255, 255, 255, .98);
  --glass-ring: rgba(46, 95, 176, .2);
  --glass-edge: linear-gradient(145deg, rgba(160, 180, 210, .55), rgba(120, 145, 185, .7));
  --glass-ink: #1A2A40;
  --glass-ink-soft: rgba(26, 42, 64, .5);
  --glass-mark: rgba(46, 95, 176, .22);
  --glass-mark-2: rgba(46, 95, 176, .12);
  --floor: radial-gradient(closest-side, rgba(30, 50, 85, .26), rgba(30, 50, 85, .1) 55%, transparent);
  --near: linear-gradient(150deg, rgba(175, 198, 235, .55), rgba(255, 255, 255, .3));

  --cap-bg: rgba(250, 252, 255, .72);
  --cap-line: rgba(20, 40, 70, .08);
  --cap-ink: var(--ink);
  --cap-ink-soft: #4A5A72;
  --cap-shadow: 0 10px 30px -14px rgba(20, 40, 70, .28), 0 1px 2px rgba(20, 40, 70, .06);

  --tag-bg: rgba(255, 255, 255, .84);
  --tag-line: rgba(20, 40, 70, .1);
  --tag-dot: var(--blue);

  --sc-canvas: var(--bg);
  --sc-surface: var(--bg-alt);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--blue);
  --sc-accent-ink: #fff;
  --sc-font-display: "Lato", system-ui, sans-serif;
  --sc-font-text: "Open Sans", system-ui, sans-serif;
  --sc-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --sc-shadow-color: 218 50% 20%;

  --gutter: clamp(1rem, 5vw, 5.5rem);
  --hero-gut: clamp(1.5rem, 9vw, 9.5rem); /* hero copy inset on wide screens: lines up with the capsule's left edge at 1440 */
  --maxw: 78rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-2: 0 2px 4px hsl(218 40% 10% / .05), 0 18px 40px -14px hsl(218 40% 10% / .18);
  --shadow-3: 0 4px 10px hsl(218 50% 6% / .12), 0 40px 80px -30px hsl(218 50% 6% / .35);
  --plate-1: url("../assets/v2/studio-light-1440.jpg");
  --plate-2: url("../assets/v2/studio-light-2400.jpg");
  --plate-m: url("../assets/v2/studio-light-portrait.jpg");
  --tint: linear-gradient(90deg, rgba(243, 246, 250, .78) 0%, rgba(243, 246, 250, .35) 34%, transparent 58%);
}

:root[data-theme="dark-blue-cool"] {
  --bg: #070D17;
  --bg-alt: #0C1420;
  --card: #121B28;
  --ink: #F2F5F9;
  --ink-soft: #A9B6C8;
  --ink-faint: #8593A8;
  --line: rgba(255, 255, 255, .1);
  --em: var(--orange);
  --link: var(--blue-soft);
  --ok: #34D399;
  --kick: var(--blue-soft);

  --glass: linear-gradient(145deg, rgba(150, 185, 245, .2) 0%, rgba(110, 145, 210, .08) 55%, rgba(90, 120, 190, .13) 100%);
  --glass-line: rgba(200, 220, 255, .3);
  --glass-ring: rgba(143, 178, 238, .14);
  --glass-edge: linear-gradient(145deg, rgba(40, 62, 100, .75), rgba(14, 24, 42, .9));
  --glass-ink: #E6EEFA;
  --glass-ink-soft: rgba(230, 238, 250, .5);
  --glass-mark: rgba(143, 178, 238, .3);
  --glass-mark-2: rgba(143, 178, 238, .14);
  --floor: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, .25) 55%, transparent);
  --near: linear-gradient(150deg, rgba(140, 175, 240, .22), rgba(60, 90, 150, .1));

  --cap-bg: rgba(14, 22, 36, .66);
  --cap-line: rgba(255, 255, 255, .1);
  --cap-ink: var(--ink);
  --cap-ink-soft: #B3C0D2;
  --cap-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);

  --tag-bg: rgba(14, 22, 36, .8);
  --tag-line: rgba(255, 255, 255, .12);
  --tag-dot: var(--blue-soft);

  --sc-accent: var(--blue-soft);
  --sc-accent-ink: #07101C;
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 4px 10px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
  --plate-1: url("../assets/v2/studio-dark-1440.jpg");
  --plate-2: url("../assets/v2/studio-dark-2400.jpg");
  --plate-m: url("../assets/v2/studio-dark-portrait.jpg");
  --tint: linear-gradient(90deg, rgba(7, 13, 23, .7) 0%, rgba(7, 13, 23, .3) 34%, transparent 58%);
}

html { background: var(--bg); }
body { font-size: 1.0625rem; line-height: 1.65; letter-spacing: 0; background: var(--bg); color: var(--ink); transition: background-color 300ms var(--ease); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top 160ms var(--ease); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------ type -- */
.display { font-family: "Lato", system-ui, sans-serif; font-weight: 900; letter-spacing: -0.034em; line-height: 1.02; text-wrap: balance; margin: 0; color: var(--ink); }
.display em { font-style: italic; color: var(--em); letter-spacing: -0.02em; padding-right: .04em; }
.lede { margin: 0; font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); max-width: 44ch; text-wrap: pretty; }
.kicker { margin: 0 0 18px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--kick); }
.text-link { color: var(--link); font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); transition: text-decoration-color 160ms var(--ease); }
.text-link:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--blue); color: #fff; font-family: "Open Sans", sans-serif; font-weight: 600; font-size: .98rem;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(8, 16, 28, .2), 0 8px 22px -8px rgba(46, 95, 176, .55);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: 80ms; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--blue-hi); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 2px 4px rgba(8, 16, 28, .2), 0 14px 28px -10px rgba(46, 95, 176, .7); }
  .btn:hover:active { transform: scale(.97); }
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.play-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.pl-dot { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--tag-bg); box-shadow: inset 0 0 0 1px var(--tag-line), var(--shadow-2); transition: transform 160ms var(--ease); }
.pl-dot svg { width: 14px; height: 14px; fill: var(--ink); margin-left: 2px; }
.play-link:hover .pl-dot { transform: scale(1.06); }
.play-link:active .pl-dot { transform: scale(.94); }
.pl-dur { font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--ink-faint); font-weight: 500; }

/* ========================================================= CAPSULE == */
.cap { position: fixed; top: 14px; left: 50%; z-index: 60; width: min(1180px, calc(100% - 28px)); transform: translateX(-50%); transition: width 520ms var(--ease-drawer); }
.cap.reading { width: min(800px, calc(100% - 28px)); }
.cap.reading .login { display: none; }
.cap-in {
  height: 58px; display: flex; align-items: center; gap: 16px; padding: 0 9px 0 18px; border-radius: 999px;
  background: var(--cap-bg); color: var(--cap-ink);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--cap-line), inset 0 1px 0 rgba(255, 255, 255, .25), var(--cap-shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 28px; height: 28px; }
.wordmark { font-family: "Lato", sans-serif; font-weight: 900; font-size: 1.06rem; letter-spacing: .02em; background: linear-gradient(105deg, #2E5FB0, #FB6B3A); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark-blue-cool"] .wordmark { background-image: linear-gradient(105deg, #6A93DA, #FB6B3A); }
.cap-slot { flex: 1; min-width: 0; display: grid; place-items: center; }
.cap-links, .cap-read { grid-area: 1 / 1; transition: opacity 260ms var(--ease), transform 360ms var(--ease), filter 260ms var(--ease); }
.cap-links { display: flex; gap: 24px; }
.cap-links a, .login { color: var(--cap-ink-soft); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color 140ms var(--ease); }
.cap-links a:hover, .login:hover { color: var(--cap-ink); }
/* touch screens (large iPads in landscape get the full nav): about 44 px tall tap areas with no
   visual change, padding cancelled by an equal negative margin (Samin, 2026-12-01) */
@media (pointer: coarse) {
  .cap-links a { padding: 10px 12px; margin: -10px -12px; }
  .brand { padding-block: 8px; margin-block: -8px; }
}
.cap-read { max-width: 100%; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cap-ink); opacity: 0; transform: translateY(6px); filter: blur(4px); pointer-events: none; white-space: nowrap; min-width: 0; }
.cr-n { font-family: "IBM Plex Mono", monospace; font-size: .76rem; color: var(--cap-ink-soft); }
.cr-bars { display: inline-flex; gap: 4px; }
.cr-bars i { width: 22px; height: 4px; border-radius: 4px; background: color-mix(in oklab, var(--cap-ink) 16%, transparent); overflow: hidden; position: relative; }
.cr-bars i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--f, 0)); }
.cr-t { font-family: "Lato", sans-serif; font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; }
.cap.reading .cap-links { opacity: 0; transform: translateY(-6px); filter: blur(4px); pointer-events: none; }
.cap.reading .cap-read { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.cap-act { display: flex; align-items: center; gap: 10px; flex: none; }
.login { padding: 8px 12px; }
.theme-btn, .menu-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--cap-line);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--cap-ink); padding: 0;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.theme-btn:hover, .menu-btn:hover { background: color-mix(in oklab, var(--cap-ink) 7%, transparent); }
.theme-btn:active, .menu-btn:active { transform: scale(.94); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark-blue-cool"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark-blue-cool"] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: currentColor; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { bottom: 15px; }
@media (prefers-reduced-transparency: reduce) { .cap-in { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ============================================================ SHEET == */
.sheet-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(4, 8, 14, .45); opacity: 0; transition: opacity 300ms var(--ease); }
.sheet-scrim.open { opacity: 1; }
.sheet {
  position: fixed; inset: 0 0 auto 0; z-index: 90; color: var(--ink);
  background: color-mix(in oklab, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  border-radius: 0 0 28px 28px; padding: 76px var(--gutter) 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45), inset 0 -1px 0 var(--line);
  transform: translate3d(0, -104%, 0); transition: transform 420ms var(--ease-drawer); touch-action: none;
}
.sheet.open { transform: none; }
.sheet nav { display: grid; gap: 2px; margin-bottom: 22px; }
.sheet nav a { color: var(--ink); text-decoration: none; font-family: "Lato", sans-serif; font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; padding: 8px 0; }
.sheet .btn { width: 100%; }
.sheet-x { position: absolute; top: 18px; right: var(--gutter); width: 40px; height: 40px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.sheet-x svg, .filmbox-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-grab { position: absolute; bottom: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
@media (prefers-reduced-transparency: reduce) { .sheet { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ================================================== THE STUDIO PLATE == */
.plate { position: absolute; inset: -3% -2%; z-index: 0; background: var(--bg) var(--plate-2) center 40% / cover no-repeat; will-change: transform; }
@media (max-width: 1500px) { .plate { background-image: var(--plate-1); } }
@media (max-width: 760px) { .plate { background-image: var(--plate-m); background-position: center top; } }
.plate-tint { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--tint); }
.xv-stage::after, .close::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 9; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* ======================================================= THE OBJECT == */
.xv { position: relative; }
.jump { position: absolute; left: 0; top: calc(440vh * .205); width: 1px; height: 1px; pointer-events: none; }
.xv-stage { background: var(--bg); isolation: isolate; }

.rig { position: absolute; inset: 0; z-index: 2; perspective: 2400px; pointer-events: none; }
.stack { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; --pw: 380px; --ph: 266px; }
.pane { position: absolute; left: calc(var(--pw) * -.5); top: calc(var(--ph) * -.5); width: var(--pw); height: var(--ph); transform-style: preserve-3d; }
.pane-face, .pane-edge, .floor { position: absolute; inset: 0; border-radius: calc(var(--pw) * .055); }
.pane-edge { transform: translateZ(calc(var(--pw) * -.024 / var(--k, 1))); background: var(--glass-edge); }
.pane-face {
  background: var(--glass); color: var(--glass-ink);
  box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--glass-ring), inset 0 calc(var(--pw) * .01) calc(var(--pw) * .03) rgba(255, 255, 255, .25);
  padding: 7% 8%; font-size: calc(var(--pw) * .041); overflow: hidden;
}
.pane-face::after { /* a soft specular sweep across the glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .34) 46%, transparent 60%);
  mix-blend-mode: soft-light; opacity: .9;
}
.floor { inset: -18% -16%; transform: translateZ(calc(var(--pw) * -.12 / var(--k, 1))); background: var(--floor); border-radius: 50%; }
.anchor { position: absolute; right: 5%; bottom: 7%; width: 2px; height: 2px; }
/* pane titles: a quiet sibling of the Samify badge, bold sans on a frosted chip, so they stay
   crisp when the pane tilts (thin small mono text smeared). Minimum size keeps small panes legible. */
.pl {
  /* front corner of the pane (the back corner hides under the layer above when the stack opens) */
  position: absolute; left: 7%; bottom: 8%; z-index: 1;
  display: inline-flex; align-items: center; gap: .45em; width: max-content;
  padding: .4em .85em .4em .62em; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(26, 42, 64, .1), 0 .35em 1em -.45em rgba(26, 42, 64, .35);
  font-family: "Lato", sans-serif; font-weight: 800; font-size: min(max(.95em, calc(10.5px * var(--k, 1))), 2em); letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  color: var(--glass-ink);
}
.pl::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--blue); flex: none; }
:root[data-theme="dark-blue-cool"] .pl { background: rgba(14, 26, 46, .72); box-shadow: 0 0 0 1px rgba(230, 238, 250, .18), 0 .35em 1em -.45em rgba(0, 0, 0, .5); color: #EEF3FB; }
:root[data-theme="dark-blue-cool"] .pl::before { background: #6E9BE8; }
/* a title shows only while it fits below the layer above (home.js sets --lo on each pane, every frame) */
.pane:not(.p-desk) .pl, .ai-brand { opacity: var(--lo, 1); }
/* You: the title sits beside the avatar, in place of the placeholder lines. Both sit low on the
   pane like the other titles (2026-11-24: higher up, the You title ran under the layer above).
   17.4% = the avatar's centre: 8% + 1.6em of the pane's font (.041 of --pw) over --ph (.7 of --pw). */
.p-you .you-mark { bottom: 8%; }
.p-you .pl { left: 25%; bottom: 17.4%; transform: translateY(50%); }
.p-you .pl::before { display: none; }
.p-you .you-lines { display: none; }

/* pane glyphs: little UIs, drawn in em so they scale with the pane */
.calls { display: grid; gap: .5em; margin-top: 1.1em; width: 62%; }
.calls i { height: .78em; border-radius: 1em; background: var(--glass-mark); position: relative; margin-left: 1.3em; }
.calls i::before { content: ""; position: absolute; left: -1.3em; top: 50%; width: .62em; height: .62em; margin-top: -.31em; border-radius: 50%; background: var(--glass-mark); transition: background-color 300ms var(--ease); }
.desk-icons { position: absolute; right: 8%; top: 22%; display: grid; gap: .55em; }
.desk-icons i { width: 1.9em; height: 1.9em; border-radius: .55em; background: var(--glass-mark-2); box-shadow: inset 0 0 0 1px var(--glass-mark); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em; margin-top: 1em; width: 74%; }
.posts i { aspect-ratio: 1.25; border-radius: .5em; background: linear-gradient(135deg, var(--glass-mark), var(--glass-mark-2)); transition: background 300ms var(--ease), box-shadow 300ms var(--ease); }
.posts i.gap { background: transparent; box-shadow: inset 0 0 0 .1em var(--glass-mark); }
.inv { display: grid; gap: .58em; margin-top: 1.1em; }
.inv i { height: .9em; width: calc(var(--w) * 100%); border-radius: .3em; background: var(--glass-mark); position: relative; transition: background-color 300ms var(--ease); }
.inv i::after { content: ""; position: absolute; right: -2.6em; top: 0; width: 2em; height: 100%; border-radius: .3em; background: var(--glass-mark-2); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4em; margin-top: 1.1em; }
.cal i { aspect-ratio: 1.2; border-radius: .3em; background: var(--glass-mark-2); transition: background-color 300ms var(--ease); }
.cal i.on { background: var(--glass-mark); }
.you-mark { position: absolute; left: 8%; bottom: 14%; width: 3.2em; height: 3.2em; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #5B86D0); box-shadow: 0 .3em .9em -.2em rgba(46, 95, 176, .6); }
.you-mark i { position: absolute; left: 50%; top: 24%; width: 1em; height: 1em; margin-left: -.5em; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.you-mark i::after { content: ""; position: absolute; left: -.45em; top: 1.15em; width: 1.9em; height: .9em; border-radius: 1em 1em .2em .2em; background: rgba(255, 255, 255, .9); }
.you-lines { position: absolute; left: calc(8% + 4.2em); bottom: calc(14% + .6em); display: grid; gap: .5em; width: 40%; }
.you-lines i { height: .7em; border-radius: 1em; background: var(--glass-mark); }
.you-lines i + i { width: 70%; background: var(--glass-mark-2); }
.p-you .pane-face { background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(232, 239, 249, .88)); }
:root[data-theme="dark-blue-cool"] .p-you .pane-face { background: linear-gradient(145deg, rgba(60, 86, 130, .62), rgba(30, 46, 76, .72)); }

/* the flagged items: orange when the audit finds the leak, blue when fixed */
.pane.is-leak .flag, .pane.is-leak .calls i.flag::before { background: var(--orange); box-shadow: 0 0 .9em rgba(251, 107, 58, .55); }
.pane.is-leak .posts i.gap { box-shadow: inset 0 0 0 .12em var(--orange); }
.pane.is-fixed .flag, .pane.is-fixed .calls i.flag::before { background: var(--blue); box-shadow: 0 0 .9em rgba(46, 95, 176, .45); }
:root[data-theme="dark-blue-cool"] .pane.is-fixed .flag, :root[data-theme="dark-blue-cool"] .pane.is-fixed .calls i.flag::before { background: #6E9BE8; }
.pane.is-fixed .posts i.gap { background: linear-gradient(135deg, rgba(251, 107, 58, .55), rgba(46, 95, 176, .45)); box-shadow: none; }

/* the AI layer */
.p-ai .pane-face {
  background: linear-gradient(145deg, rgba(255, 236, 226, .9), rgba(255, 214, 196, .55) 55%, rgba(255, 228, 215, .7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 0 0 1px rgba(251, 107, 58, .55), 0 0 calc(var(--pw) * .12) rgba(251, 107, 58, .45);
  color: #7A2A0C;
}
:root[data-theme="dark-blue-cool"] .p-ai .pane-face {
  background: linear-gradient(145deg, rgba(251, 107, 58, .42), rgba(194, 74, 28, .2) 55%, rgba(251, 107, 58, .3));
  box-shadow: inset 0 0 0 1px rgba(255, 190, 160, .55), 0 0 0 1px rgba(251, 107, 58, .6), 0 0 calc(var(--pw) * .16) rgba(251, 107, 58, .55);
  color: #FFE3D6;
}
.p-ai .pane-edge { background: linear-gradient(145deg, rgba(251, 107, 58, .75), rgba(194, 74, 28, .9)); }
/* the brand on the AI layer: logo + gradient wordmark on a frosted pill, in the pane's front
   corner (the back corner hides under the layer above). Sized in em, so it scales with the pane. */
.ai-brand {
  position: absolute; left: 7%; bottom: 8%; z-index: 1; display: flex; align-items: center; gap: .5em;
  padding: .42em .95em .42em .45em; border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 1px rgba(251, 107, 58, .38), 0 .45em 1.2em -.4em rgba(194, 74, 28, .5);
  font-family: "Lato", sans-serif; font-weight: 800; font-size: min(max(1.5em, calc(11.5px * var(--k, 1))), 2em); letter-spacing: .05em; text-transform: uppercase; line-height: 1;
}
/* the shine: once the stack is back together, the AI layer flashes for about a second, a glow
   that blooms out of the stack and a band of light running along its edge. home.js adds
   .is-shine once per arrival. Only the peak is set, so each theme keeps its own resting look. */
.p-ai .pane-edge::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 246, 240, .95) 50%, transparent 64%) 100% 0 / 260% 100% no-repeat;
}
.p-ai.is-shine .pane-face { animation: ai-glow 1.15s cubic-bezier(.33, 0, .2, 1) 1; }
.p-ai.is-shine .pane-edge { animation: ai-edge 1.15s cubic-bezier(.33, 0, .2, 1) 1; }
.p-ai.is-shine .pane-edge::after { animation: ai-sweep 1.15s cubic-bezier(.45, 0, .25, 1) 1; }
@keyframes ai-glow {
  38% {
    box-shadow: inset 0 0 0 1px #fff, 0 0 0 1.5px rgba(251, 107, 58, .95), 0 0 calc(var(--pw) * .34) rgba(251, 107, 58, .9), 0 0 calc(var(--pw) * .7) rgba(251, 107, 58, .35);
    filter: brightness(1.12) saturate(1.15);
  }
}
@keyframes ai-edge { 38% { filter: brightness(1.35) saturate(1.2); } }
@keyframes ai-sweep {
  0% { opacity: 0; background-position: 100% 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) { .p-ai.is-shine .pane-face, .p-ai.is-shine .pane-edge, .p-ai.is-shine .pane-edge::after { animation: none; } }
.ai-brand img { width: 1.55em; height: 1.55em; border-radius: .38em; display: block; }
.ai-brand b {
  font-weight: 800; background: linear-gradient(105deg, #2E5FB0, #FB6B3A);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.ai-grid { position: absolute; inset: 22% 8% 12% 8%; border-radius: .6em; background-image: linear-gradient(rgba(194, 74, 28, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(194, 74, 28, .16) 1px, transparent 1px); background-size: 1.6em 1.6em; }
:root[data-theme="dark-blue-cool"] .ai-grid { background-image: linear-gradient(rgba(255, 200, 175, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 200, 175, .16) 1px, transparent 1px); }
.ai-core { position: absolute; left: 50%; top: 58%; width: 3.4em; height: 3.4em; margin: -1.7em 0 0 -1.7em; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #FFB08F 35%, rgba(251, 107, 58, 0) 70%); }
.ai-core i { position: absolute; inset: -1.6em; border-radius: 50%; box-shadow: inset 0 0 0 .1em rgba(251, 107, 58, .45); }

/* ------------------------------------------------------------ tags -- */
.tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity;
  display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; align-items: center;
  filter: drop-shadow(0 8px 18px rgba(15, 30, 55, .14));
}
:root[data-theme="dark-blue-cool"] .tag { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.tag::before { content: ""; grid-column: 1; grid-row: 1 / 3; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--tag-dot); box-shadow: 0 0 0 4px color-mix(in oklab, var(--tag-dot) 22%, transparent); }
.tag::after { content: ""; grid-column: 2; grid-row: 1 / 3; width: 26px; height: 1px; background: color-mix(in oklab, var(--ink) 28%, transparent); }
.tg-n { grid-column: 3; grid-row: 1; padding: 7px 13px 0; border-radius: 12px 12px 0 0; background: var(--tag-bg); font-family: "IBM Plex Mono", monospace; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.tg-note { grid-column: 3; grid-row: 2; display: grid; padding: 2px 13px 9px; border-radius: 0 0 12px 12px; background: var(--tag-bg); font-family: "Open Sans", sans-serif; font-weight: 600; font-size: .9rem; line-height: 1.3; white-space: nowrap; }
.tg-note > span { grid-area: 1 / 1; }
.wt { color: var(--ink-soft); }
.lk { color: var(--orange-deep); opacity: 0; }
:root[data-theme="dark-blue-cool"] .lk { color: #FF9A74; }
.fx { color: var(--blue); display: inline-flex; align-items: center; gap: 6px; opacity: 0; }
:root[data-theme="dark-blue-cool"] .fx { color: var(--blue-soft); }
.fx::before { content: ""; width: 13px; height: 13px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.6l3.2 3L13 4.6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.6l3.2 3L13 4.6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.t-ai .tg-n { grid-row: 1 / 3; border-radius: 12px; padding: 8px 13px; color: var(--orange-deep); font-weight: 600; }
:root[data-theme="dark-blue-cool"] .t-ai .tg-n { color: #FFB394; }
.t-ai::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(251, 107, 58, .25); }
.tg-num { display: none; }
.sample-note { position: absolute; right: var(--gutter); bottom: 22px; z-index: 4; margin: 0; font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); opacity: 0; }

/* near panes: out of focus, in front of everything */
.near { position: absolute; z-index: 6; pointer-events: none; border-radius: 28px; background: var(--near); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); filter: blur(14px); opacity: .85; will-change: transform; }
.n1 { width: 26vw; height: 15vw; left: 40vw; bottom: -8vw; transform: rotate(-14deg); }
.n2 { width: 19vw; height: 12vw; right: -6vw; top: 9vh; filter: blur(16px); opacity: .75; }
:root[data-theme="dark-blue-cool"] .near { box-shadow: inset 0 0 0 1px rgba(170, 200, 255, .2); }

/* ------------------------------------------------------- copy beats -- */
.xv-copy { position: absolute; z-index: 5; left: var(--hero-gut); top: 0; bottom: 0; width: min(36rem, 40vw); display: grid; align-items: center; }
.beat { grid-area: 1 / 1; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.b-hero { opacity: 1; visibility: visible; }
.xv-copy h1.display { font-size: clamp(2.9rem, 5.4vw, 5.6rem); }
.xv-copy h2.display { font-size: clamp(2.4rem, 4.3vw, 4.4rem); }
.xv-copy .lede { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.b-end .btn { margin-top: 28px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in oklab, var(--blue) 14%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.32em + 4px); width: 5px; height: 8px; border: solid var(--link); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.finds { display: none; }

/* =========================================================== PAGES == */
.pg { background: var(--bg); }
.pg-alt { background: var(--bg-alt); }

/* ------------------------------------------------------------ FILM -- */
.film { padding: clamp(6rem, 11vw, 10rem) 0 clamp(5rem, 9vw, 8rem); overflow: clip; }
.film-head { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.film-head .display { font-size: clamp(2.3rem, 4.6vw, 4.6rem); }
.film-turn { perspective: 1800px; padding-inline: var(--gutter); max-width: 1240px; margin: 0 auto; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #000; transform-origin: 50% 100%; will-change: transform;
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -40px rgba(15, 30, 55, .45), 0 0 0 10px color-mix(in oklab, var(--card) 70%, transparent); }
:root[data-theme="dark-blue-cool"] .player { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 10px rgba(255, 255, 255, .04); }
.player-poster, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-go { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; color: #fff; }
.player-go:active .card-play { transform: scale(.97); }

/* -------------------------------------------------- SERVICES DECK -- */
.deck-sec { padding: clamp(6rem, 11vw, 9rem) 0 clamp(5rem, 9vw, 8rem); }
.deck-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.deck-head .display { font-size: clamp(2.3rem, 4.4vw, 4.4rem); max-width: 18ch; }
.deck { display: grid; }
.card {
  position: sticky; top: calc(100px + var(--k) * 22px); margin-bottom: 16vh;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: 30px; overflow: hidden; background: var(--card); transform-origin: 50% 0; will-change: transform;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-3);
}
.card:last-child { margin-bottom: 0; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg-alt); opacity: var(--d, 0); pointer-events: none; }
.card-media { position: relative; display: block; border: 0; padding: 0; margin: 0; cursor: pointer; background: #0A1220; overflow: hidden; }
/* a 16:9 floor, not a fixed shape: the cell still stretches to the card's full height, so there is never a gap under the thumbnail */
.card-media::before, .card-art::before { content: ""; display: block; padding-top: 56.25%; grid-area: 1 / 1; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; transition: transform 600ms var(--ease); }
.card-media:hover img { transform: scale(1.03); }
.card-play { position: absolute; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px 0 12px; height: 42px; border-radius: 999px; color: #fff; font-weight: 600; font-size: .9rem; background: rgba(10, 18, 32, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.card-play svg { width: 14px; height: 14px; fill: #fff; }
.card-media:active .card-play { transform: scale(.97); }
.card-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.card-k { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--kick); }
.card h3 { margin: 0; font-family: "Lato", sans-serif; font-weight: 900; font-size: clamp(1.7rem, 2.6vw, 2.5rem); letter-spacing: -.025em; line-height: 1.08; }
.card-body > p:not(.card-k) { margin: 0; color: var(--ink-soft); max-width: 42ch; }
.card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 10px; }
.card-art { position: relative; background: radial-gradient(120% 90% at 30% 20%, color-mix(in oklab, var(--blue) 22%, var(--card)), var(--bg-alt)); display: grid; place-items: center; perspective: 1400px; overflow: hidden; }
.card-art .mini { grid-area: 1 / 1; }
.mini { --mz: 30px; position: relative; width: 38%; aspect-ratio: 1.4; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-40deg); }
.mini i { position: absolute; inset: 0; border-radius: 10%; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--glass-ring); }
.mini .m1 { transform: translateZ(0); }
.m-anchor { position: absolute; right: 5%; bottom: 7%; width: 2px; height: 2px; }
/* "Your automation": a label in the hero's tag language, pointing at the orange layer.
   The second line cycles through examples so the layer reads as whatever the visitor needs. */
.auto-tag { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; visibility: hidden; }
.auto-tag.ready { visibility: visible; }
.auto-tag::before { content: ""; flex: none; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(251, 107, 58, .25); }
.auto-tag::after { content: ""; order: 1; flex: none; width: 26px; height: 1px; background: color-mix(in oklab, var(--ink) 28%, transparent); }
.at-card { order: 2; display: grid; gap: 2px; padding: 7px 13px 9px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -10px rgba(15, 30, 55, .3); }
:root[data-theme="dark-blue-cool"] .at-card { box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -10px rgba(0, 0, 0, .7); }
.at-k { font-family: "IBM Plex Mono", monospace; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); }
:root[data-theme="dark-blue-cool"] .at-k { color: #FFB394; }
.at-v { font-weight: 600; font-size: .92rem; line-height: 1.3; white-space: nowrap; color: var(--ink); transition: opacity 240ms var(--ease); }
.at-v.out { opacity: 0; }
.mini .m2 { transform: translateZ(var(--mz)); background: linear-gradient(145deg, rgba(255, 214, 196, .9), rgba(251, 107, 58, .45)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 30px rgba(251, 107, 58, .45); }
.mini .m3 { transform: translateZ(calc(var(--mz) * 2)); }
.mini .m4 { transform: translateZ(calc(var(--mz) * 3)); }

/* ---------------------------------------------------------- METHOD -- */
.method { padding: clamp(6rem, 11vw, 9rem) 0 clamp(6rem, 11vw, 9rem); }
.method-head { display: grid; gap: 16px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.method-head .display { font-size: clamp(2.3rem, 4.6vw, 4.6rem); }
.rise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.rise .step { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.rise .step:nth-child(1) { margin-top: 112px; }
.rise .step:nth-child(2) { margin-top: 56px; }
.step-n { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 2.3rem; line-height: 1; letter-spacing: -.02em; color: var(--em); margin-bottom: 28px; }
:root[data-theme="dark-blue-cool"] .step-n { color: var(--orange); }
.step h3 { margin: 0 0 10px; font-family: "Lato", sans-serif; font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.15; }
.step p { margin: 0; color: var(--ink-soft); }
/* Entrance: the card rises and tilts upright (individual translate / rotate / scale
   properties, so the hover lift on `transform` composes on top instead of fighting it).
   Only the entrance is staggered by --i; hover always answers instantly. */
.rise { perspective: 1400px; }
.rise .step { transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); }
.rise.ready .step {
  opacity: 0; translate: 0 90px; rotate: x 16deg; scale: .94; transform-origin: 50% 100%;
  transition:
    opacity 650ms var(--ease) calc(var(--i, 0) * 140ms),
    translate 1000ms cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 140ms),
    rotate 1000ms cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 140ms),
    scale 1000ms cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 140ms),
    transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.rise.ready .step.in { opacity: 1; translate: none; rotate: none; scale: none; }
.step-n { transition: transform 280ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .rise .step:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--orange) 38%, var(--line)), 0 4px 10px hsl(218 40% 10% / .06), 0 30px 56px -24px hsl(218 40% 10% / .3); }
  :root[data-theme="dark-blue-cool"] .rise .step:hover { box-shadow: inset 0 0 0 1px rgba(251, 107, 58, .42), 0 30px 60px -24px rgba(0, 0, 0, .8); }
  .rise .step:hover .step-n { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .rise .step:hover, .rise .step:hover .step-n { transform: none; } }

/* --------------------------------------------------------- FOUNDER -- */
.founder { padding: clamp(6rem, 11vw, 9rem) 0; overflow: clip; }
.founder-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.founder-photo { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.fp-frame { position: relative; z-index: 2; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), var(--shadow-3); }
.fp-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.fg { position: absolute; border-radius: 28px; z-index: 1; }
.g1 { width: 70%; height: 62%; left: -14%; top: -9%; background: linear-gradient(145deg, rgba(46, 95, 176, .3), rgba(143, 178, 238, .12)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.g2 { width: 56%; height: 40%; right: -16%; bottom: -8%; z-index: 3; background: linear-gradient(150deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06) 60%, rgba(251, 107, 58, .1)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .8); }
:root[data-theme="dark-blue-cool"] .g2 { background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 60%, rgba(251, 107, 58, .1)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.founder-hi { margin: 0 0 18px; font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--kick); }
.founder-q { margin: 0; font-size: clamp(1.9rem, 3.3vw, 3.2rem); line-height: 1.1; }
.founder-copy > p { margin: 26px 0 0; color: var(--ink-soft); max-width: 50ch; }
.founder-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }

/* ----------------------------------------------------------- CLOSE -- */
.close { position: relative; overflow: clip; isolation: isolate; padding-top: clamp(7rem, 12vw, 10rem); background: var(--bg); }
.close .plate { inset: 0; background-position: center 30%; }
.close .plate-tint { background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 62%, var(--bg) 92%), var(--tint); }
.close-in { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(6rem, 10vw, 9rem); }
.close-copy { padding-top: 10px; position: sticky; top: 120px; }
.close-copy .display { font-size: clamp(2.5rem, 4.8vw, 4.7rem); }
.close-copy .lede { margin-top: 20px; }
.close-alt { margin: 26px 0 0; color: var(--ink-soft); }
.mini-rig { margin-top: clamp(2.5rem, 6vw, 5rem); height: 230px; perspective: 1600px; display: grid; place-items: center start; padding-left: 70px; }
.mini-stack { position: relative; width: 190px; height: 133px; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-40deg); }
.mini-stack i { position: absolute; inset: 0; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--glass-ring); }
.mini-stack i:nth-child(1) { transform: translateZ(0); background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(232, 239, 249, .88)); }
.mini-stack i:nth-child(2) { transform: translateZ(18px); background: linear-gradient(145deg, rgba(255, 214, 196, .92), rgba(251, 107, 58, .5)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 26px rgba(251, 107, 58, .5); }
.mini-stack i:nth-child(3) { transform: translateZ(36px); }
.mini-stack i:nth-child(4) { transform: translateZ(54px); }
.mini-stack i:nth-child(5) { transform: translateZ(72px); }
:root[data-theme="dark-blue-cool"] .mini-stack i:nth-child(1) { background: linear-gradient(145deg, rgba(60, 86, 130, .7), rgba(30, 46, 76, .8)); }
:root[data-theme="dark-blue-cool"] .mini-stack i:nth-child(2) { background: linear-gradient(145deg, rgba(251, 107, 58, .5), rgba(194, 74, 28, .3)); }

.turn { perspective: 1700px; }
.inquiry {
  --sc-accent: var(--blue); position: relative; transform-origin: 30% 100%; will-change: transform;
  background: color-mix(in oklab, var(--card) 92%, transparent); color: var(--ink); border-radius: 28px; padding: clamp(22px, 3vw, 38px);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--glass-ring), 0 60px 110px -40px rgba(15, 30, 55, .5);
  display: grid; gap: 18px;
}
:root[data-theme="dark-blue-cool"] .inquiry { --sc-accent: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 60px 110px -40px rgba(0, 0, 0, .9); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-group { display: grid; gap: 7px; min-width: 0; position: relative; }
.f-group > label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.inquiry input, .inquiry textarea, .country-trigger {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 11px 14px; font-size: 1rem; font-family: inherit; transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease), background-color 140ms var(--ease);
}
.inquiry textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.inquiry input::placeholder, .inquiry textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.inquiry input:focus, .inquiry textarea:focus, .country-trigger:focus-visible { outline: none; border-color: var(--sc-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 25%, transparent); background: var(--card); }
.inquiry .invalid, .country-trigger.invalid { border-color: var(--orange-deep); box-shadow: 0 0 0 3px rgba(194, 74, 28, .14); }
.country-trigger { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.country-trigger.placeholder .country-label { color: var(--ink-faint); }
.country-trigger svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform 200ms var(--ease); }
.country-select.open .country-trigger svg { transform: rotate(180deg); }
.country-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 288px; overflow: auto; padding: 6px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top; pointer-events: none; visibility: hidden;
  transition: opacity 160ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms;
}
.country-select.open .country-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 160ms var(--ease), transform 200ms var(--ease), visibility 0s; }
.country-opt { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: .94rem; text-align: left; cursor: pointer; }
.country-opt:hover, .country-opt:focus-visible { background: var(--bg-alt); outline: none; }
.country-opt.active { font-weight: 700; }
.country-opt .dial { font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--ink-faint); }
.country-divider { height: 1px; background: var(--line); margin: 6px 8px; }
.phone-wrap { display: flex; align-items: stretch; }
.phone-code:empty { display: none; }
.phone-code { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--bg-alt); font-family: "IBM Plex Mono", monospace; font-size: .86rem; color: var(--ink-soft); }
.phone-code:not(:empty) + input { border-radius: 0 12px 12px 0; }
.desk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.dchip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); font-size: .86rem; font-weight: 600; cursor: pointer; transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease), transform 100ms var(--ease); }
.dchip:hover { border-color: color-mix(in oklab, var(--sc-accent) 50%, var(--line)); color: var(--ink); }
.dchip:active { transform: scale(.96); }
.dchip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.form-status { margin: 0; min-height: 1.4em; font-size: .92rem; font-weight: 600; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--orange-deep); }
:root[data-theme="dark-blue-cool"] .form-status.error { color: #FF9A74; }
.form-status.note { color: var(--ink-soft); font-weight: 500; }

/* --------------------------------------------------------- FOOTER -- */
/* The site-wide footer, ported from css/style.css so this page matches about, faq and the
   rest: same markup, same values (the old site's own ink/line tokens, scoped here). */
.foot {
  /* --f-faint matches the light --ink-faint so the small footer text passes 4.5:1 (was #7d8da3, 3.1:1; 2026-12-01) */
  --f-ink: #14202f; --f-soft: #41526a; --f-faint: #5f6f86; --f-line: #dde6f1;
  position: relative; z-index: 3; border-top: 1px solid var(--f-line); padding: 46px 0;
  background: var(--bg); color: var(--f-soft); font-family: "Open Sans", system-ui, sans-serif; font-size: 1rem; line-height: 1.7;
}
/* dark footer grey raised to the dark --ink-faint so the small footer text passes 4.5:1 (was #6b7686, 4.2:1; 2026-12-01) */
:root[data-theme="dark-blue-cool"] .foot { --f-ink: #f2f5f9; --f-soft: #a9b4c2; --f-faint: #8593a8; --f-line: rgba(255, 255, 255, .10); }
.foot a { color: inherit; text-decoration: none; }
.foot-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.foot .logo { display: flex; align-items: center; gap: 11px; font-family: "Lato", system-ui, sans-serif; color: var(--f-ink); letter-spacing: 0; }
.foot .logo img { width: 30px; height: 30px; border-radius: 7px; }
.foot .logo-name { font-weight: 900; font-size: 1.346rem; letter-spacing: .01em; text-transform: uppercase; background: linear-gradient(105deg, #2E5FB0, #FB6B3A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.foot-brand p { font-size: .9rem; margin: 14px 0 0; max-width: 34ch; }
.foot-social { display: flex; gap: 12px; margin-top: 20px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--f-line); color: var(--f-soft); transition: .22s cubic-bezier(.4, 0, .2, 1); }
.foot-social a:hover { color: #2E5FB0; border-color: #2E5FB0; transform: translateY(-2px); box-shadow: 0 0 18px color-mix(in srgb, #2E5FB0 30%, transparent); }
.foot-social a:active { transform: scale(.96); }
.foot-col h4 { font-family: "Open Sans", system-ui, sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--f-faint); margin: 0 0 14px; }
.foot-col a { display: block; font-size: .92rem; color: var(--f-soft); margin-bottom: 10px; transition: .2s; }
.foot-col a:hover { color: #2E5FB0; }
:root[data-theme="dark-blue-cool"] .foot-col a:hover { color: var(--blue-soft); }
.foot-bottom { border-top: 1px solid var(--f-line); padding-top: 24px; display: flex; justify-content: space-between; font-size: .84rem; color: var(--f-faint); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } .foot-bottom { flex-direction: column; gap: 12px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .foot-social a:hover { transform: none; } }

/* -------------------------------------------------------- FILM BOX -- */
.filmbox { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 22px; background: #000; overflow: hidden; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .8); }
.filmbox::backdrop { background: rgba(4, 8, 14, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.filmbox[open] { animation: fb-in 320ms var(--ease); }
@keyframes fb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.filmbox-in { position: relative; aspect-ratio: 16 / 9; }
.filmbox video { width: 100%; height: 100%; }
.filmbox-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ===================================================== RESPONSIVE == */
@media (max-width: 1180px) {
  .cap-links { gap: 18px; }
  .login { display: none; }
}

/* up to 1100 wide the capsule drops its links, so the menu button takes over (2026-11-30:
   tablets between 761 and 1100 had neither, so no way to reach the menu) */
@media (max-width: 1100px) {
  .cap-links { display: none; }
  .menu-btn { display: inline-grid; }
}
/* Landscape screens up to 1100 wide (tablets on their side, phones turned sideways, short
   browser windows) keep the wide hero: copy on the left, the stack on the right. Stacked
   above the copy, the stack shrank to an icon on these short screens (Samin, 2026-11-30).
   The breakpoint must match NARROW_Q in js/home.js. Type sizes follow the screen height. */
@media (max-width: 1100px) and (min-aspect-ratio: 5/4) {
  .xv-copy { left: var(--gutter); top: 64px; width: min(32rem, 44vw); }
  .xv-copy h1.display { font-size: clamp(1.75rem, min(5.4vw, 9.5vh), 4.4rem); }
  .xv-copy h2.display { font-size: clamp(1.55rem, min(4.3vw, 7.6vh), 3.6rem); }
  .xv-copy .lede { margin-top: 14px; font-size: clamp(.9rem, 2.6vh, 1.05rem); }
  .cta-row { margin-top: clamp(16px, 4vh, 30px); }
  .ticks { margin-top: clamp(12px, 3vh, 22px); gap: 6px; font-size: .95rem; }
  .b-end .btn { margin-top: clamp(14px, 3.5vh, 24px); }
}
@media (max-width: 1100px) and (min-aspect-ratio: 5/4) and (max-height: 520px) {
  .xv-copy { top: 76px; }
  .xv-copy .kicker { margin-bottom: 8px; font-size: .66rem; }
  .beat .lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .xv-copy .b-hero .lede, .xv-copy .b-end .ticks { display: none; }
  .finds { margin-top: 10px; gap: 5px; }
  /* small panes on sideways phones: the titles may go below the usual minimum so they fit */
  .pl { font-size: min(max(.95em, calc(7.5px * var(--k, 1))), 2em); }
  .ai-brand { font-size: min(max(1.5em, calc(8px * var(--k, 1))), 2em); }
  .finds li { font-size: .86rem; }
}
/* narrow and upright: the stack sits above the copy; findings move into the copy */
@media (max-width: 1100px) and (max-aspect-ratio: 5/4) {
  .xv-copy { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: clamp(24px, 5vh, 56px); align-items: end; }
  .xv-copy h1.display { font-size: clamp(2.5rem, 7.4vw, 4.4rem); }
  .xv-copy h2.display { font-size: clamp(2.05rem, 6vw, 3.6rem); }
  .xv-copy .lede { margin-top: 14px; }
  .plate-tint { background: linear-gradient(0deg, color-mix(in oklab, var(--bg) 86%, transparent) 0%, color-mix(in oklab, var(--bg) 55%, transparent) 34%, transparent 58%); }
  .sample-note { right: auto; left: var(--gutter); top: 84px; bottom: auto; }
  /* upright tablets: no room for the beat label beside the menu button, so only the count and bars show (Samin, 2026-11-30) */
  .cr-t { display: none; }
}
/* compact tags: the tags shrink to numbered dots and the findings move into the copy, so the
   stack keeps its size. home.js sets .is-compact on .xv-stage: always up to 1100 wide, and on
   wider screens when the full tags would squeeze the stack (2026-11-30, 2026-12-01). */
.is-compact .tag > .tg-note, .is-compact .tag > .tg-n, .is-compact .tag::after { display: none; }
.is-compact .t-ai > .tg-n { display: block; }
.is-compact .t-ai::after { display: block; width: 14px; }
.is-compact .tag .tg-num { display: grid; grid-column: 1; grid-row: 1 / 3; place-items: center; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 .72rem/1 "Open Sans", sans-serif; box-shadow: 0 0 0 4px rgba(251, 107, 58, .22); transition: background-color 240ms var(--ease); }
.is-compact .tag.is-fx .tg-num { background: var(--blue); box-shadow: 0 0 0 4px rgba(46, 95, 176, .22); }
.is-compact .tag:has(.tg-num)::before { display: none; }
.is-compact .finds { display: grid; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; counter-reset: f; }
.is-compact .finds li { counter-increment: f; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; color: var(--orange-deep); }
.is-compact .finds li::before { content: counter(f); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .72rem; }
.is-compact .finds.fixd li { color: var(--link); }
.is-compact .finds.fixd li::before { background: var(--blue); }
:root[data-theme="dark-blue-cool"] .is-compact .finds li { color: #FF9A74; }
:root[data-theme="dark-blue-cool"] .is-compact .finds.fixd li { color: var(--blue-soft); }
.is-compact .finds + .lede, .is-compact .beat:has(.finds) .lede { display: none; }
/* narrow sections below the hero (any orientation) */
@media (max-width: 1100px) {
  .card { grid-template-columns: 1fr; top: calc(86px + var(--k) * 14px); margin-bottom: 10vh; }
  .card-body { padding: 26px 24px 30px; }
  .rise { grid-template-columns: 1fr; }
  .rise .step:nth-child(1), .rise .step:nth-child(2) { margin-top: 0; }
  .rise .step:nth-child(2) { margin-left: 4%; }
  .rise .step:nth-child(3) { margin-left: 8%; }
  .rise { gap: 26px; }
  .founder-in { grid-template-columns: 1fr; }
  .founder-photo { max-width: 340px; }
  .close-in { grid-template-columns: 1fr; }
  .close-copy { position: static; }
  .mini-rig { display: none; }
}
@media (max-width: 760px) {
  .cap { top: 10px; width: calc(100% - 20px); }
  .cap.reading { width: calc(100% - 20px); }
  .cap-in { height: 54px; padding: 0 7px 0 14px; gap: 8px; }
  .cap-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .wordmark { font-size: .98rem; }
  .cap.reading .brand .wordmark { display: none; }
  .cr-t { display: none; }
  .near { display: none; }
  .xv-copy .kicker { margin-bottom: 12px; font-size: .7rem; }
  .cta-row { margin-top: 24px; gap: 14px 22px; }
  .ticks { margin-top: 16px; gap: 6px; font-size: .95rem; }
  .b-end .btn { margin-top: 20px; }
  .film-head { text-align: left; justify-items: start; padding-inline: var(--gutter); }
  .player { border-radius: 18px; }
  .card-play { right: 12px; bottom: 12px; height: 34px; padding: 0 12px 0 10px; gap: 7px; font-size: .78rem; }
  .card-play svg { width: 11px; height: 11px; }
  .f-row { grid-template-columns: 1fr; }
  .rise .step:nth-child(2), .rise .step:nth-child(3) { margin-left: 0; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .b-hero .lede { display: none; }
  .ticks { display: none; }
}

/* =================================================== REDUCED MOTION == */
@media (prefers-reduced-motion: reduce) {
  .cap, .cap-links, .cap-read, .sheet, .sheet-scrim { transition-duration: 1ms; }
  .filmbox[open] { animation: none; }
  /* The object holds still, already taken apart with its AI layer in, and every beat is readable in order. */
  .xv[data-sc-act] { height: auto !important; }
  .xv .xv-stage { position: relative; height: auto; min-height: 100svh; }
  .xv-copy { position: relative; left: auto; top: auto; bottom: auto; width: min(36rem, 42vw); margin-left: var(--hero-gut); padding: 130px 0 90px; display: grid; gap: 64px; }
  .beat { grid-area: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .rig, .tags { position: absolute; inset: 0 0 auto 0; height: 100svh; }
  .tag { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1100px) and (max-aspect-ratio: 5/4) {
  .xv .xv-copy { position: relative; left: 0; right: 0; width: auto; margin: 0; padding: 62svh var(--gutter) 70px; }
}

/* ======================================================= CONSENT ==
   js/analytics.js builds this banner on every page; its styles normally come
   from css/style.css, which this page does not load. Same look as the other pages. */
.consent-banner { position: fixed; left: 16px; bottom: 16px; z-index: 400; max-width: 420px; background: var(--card); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); padding: 18px 20px; font-family: "Open Sans", system-ui, sans-serif; font-size: .88rem; line-height: 1.6; }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 14px; }
.consent-banner a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent-banner .btn { min-height: 40px; padding: 0 18px; font-size: .86rem; }
.consent-banner .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.consent-banner .btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 520px) { .consent-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; } .consent-actions .btn { flex: 1; } }
@media (prefers-reduced-transparency: reduce) { .consent-banner { background: var(--card); } }
