/* Portal — the website's one style file.
   Brand v1 (October 2026): night + cream, Newsreader for the story, DM Mono for the system,
   Anton once per page, Norwester for pillar names, blood orange only on the one action.
   Sections are scenes: night scenes are cinema (liquid light, glass, letterbox), cream scenes are paper. */

@font-face { font-family: "Anton"; src: url("/assets/fonts/Anton-Regular.woff2") format("woff2"), url("/assets/fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader.woff2") format("woff2"), url("/assets/fonts/Newsreader.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Italic.woff2") format("woff2"), url("/assets/fonts/Newsreader-Italic.ttf") format("truetype"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/DMMono-Light.woff2") format("woff2"), url("/assets/fonts/DMMono-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/DMMono-Regular.woff2") format("woff2"), url("/assets/fonts/DMMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Norwester"; src: url("/assets/fonts/Norwester.woff2") format("woff2"), url("/assets/fonts/Norwester.otf") format("opentype"); font-display: swap; }

:root {
  --night: #060409; --ink: #0F0F0F; --cream: #FBF6EA; --paper: #F3ECDD; --butter: #F7D8A1;
  --mauve: #7B687E; --mauve-text: #A797AB; --rose: #F19D9B; --peri: #C2CCE5;
  --blood: #D63A1E; --blood-deep: #B82F17; --rust: #B15722; --espresso: #381904;
  --muted: rgba(251, 246, 234, .62); --faint: rgba(251, 246, 234, .38);
  --line: rgba(251, 246, 234, .12); --line-strong: rgba(251, 246, 234, .22);
  --ink-muted: rgba(15, 15, 15, .64); --ink-line: rgba(15, 15, 15, .14);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --anton: "Anton", "Impact", "Arial Narrow", sans-serif;
  --norw: "Norwester", "Anton", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1320px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font: 400 clamp(17px, 1.15vw, 19px)/1.62 var(--serif);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rose); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 14px; background: var(--cream); color: var(--ink); font: 400 14px var(--mono); border-radius: 8px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- film grain + the transition curtain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; 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='.9' numOctaves='2' 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='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.curtain {
  position: fixed; inset: 0; z-index: 150; background: #000; pointer-events: none;
  display: grid; place-items: center; opacity: 1; transition: opacity .7s var(--ease-io);
}
.curtain svg { width: 34px; fill: var(--cream); opacity: .9; transform: scale(.9) rotate(0deg); transition: transform .9s var(--ease), opacity .5s; }
html.is-ready .curtain { opacity: 0; }
html.is-ready .curtain svg { transform: scale(.6) rotate(45deg); opacity: 0; }
html.is-leaving .curtain { opacity: 1; transition-duration: .42s; }
html.is-leaving .curtain svg { opacity: .9; transform: scale(.9) rotate(0); }

/* ---------- the top bar ---------- */
.bar {
  position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gutter)), 1180px); height: var(--bar-h);
  display: flex; align-items: center; gap: 18px; padding: 0 10px 0 20px; border-radius: 999px;
  background: rgba(10, 7, 13, .52); border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 50px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease), background .4s;
}
.bar.is-tucked { transform: translateX(-50%) translateY(calc(-100% - 20px)); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand svg { width: 20px; height: 20px; fill: var(--cream); transition: transform .8s var(--ease); }
.brand:hover svg { transform: rotate(90deg); }
.brand span { font: 400 15px/1 var(--mono); letter-spacing: -.01em; white-space: nowrap; }
.tabs { position: relative; display: flex; gap: 2px; margin-left: auto; }
.tab {
  position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px;
  font: 400 14px/1 var(--mono); color: var(--muted); transition: color .3s;
}
.tab:hover, .tab[aria-current="page"] { color: var(--cream); }
.tab-glow {
  position: absolute; z-index: 0; top: 0; height: 100%; border-radius: 999px; pointer-events: none;
  background: rgba(251, 246, 234, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: left .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.tab-glow::after { /* the lamp over the current tab */
  content: ""; position: absolute; left: 50%; top: -1px; width: 22px; height: 2px; margin-left: -11px;
  border-radius: 2px; background: var(--cream); box-shadow: 0 0 14px 2px rgba(251, 246, 234, .55);
}
.signin {
  flex: none; margin-left: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font: 400 14px/1 var(--mono); border: 1px solid var(--line-strong); background: rgba(251, 246, 234, .04);
  transition: background .3s, border-color .3s;
}
.signin:hover { background: rgba(251, 246, 234, .1); border-color: rgba(251, 246, 234, .4); }
.signin i { width: 6px; height: 6px; border-radius: 50%; background: var(--peri); box-shadow: 0 0 10px var(--peri); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 25px; }
html.menu-open .menu-btn span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
html.menu-open .menu-btn span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 95; padding: 110px var(--gutter) 40px; display: flex; flex-direction: column;
  background: rgba(6, 4, 9, .78); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
html.menu-open .sheet { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet a.big { font: 300 clamp(44px, 12vw, 72px)/1.12 var(--serif); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 14px;
  transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.sheet a.big small { font: 400 13px var(--mono); color: var(--faint); }
html.menu-open .sheet a.big { transform: none; opacity: 1; }
html.menu-open .sheet a.big:nth-child(2) { transition-delay: .05s; } html.menu-open .sheet a.big:nth-child(3) { transition-delay: .1s; }
html.menu-open .sheet a.big:nth-child(4) { transition-delay: .15s; }
.sheet .sheet-foot { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .bar { padding: 0 6px 0 18px; }
  .tabs, .bar > .signin { display: none; }
  .menu-btn { display: block; }
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.scene { position: relative; padding-block: clamp(96px, 14vw, 200px); }
.scene--cream { background: var(--cream); color: var(--ink); }
.scene--paper { background: var(--paper); color: var(--ink); }
.scene--ink { background: var(--ink); }
.scene--cream ::selection, .scene--paper ::selection { background: var(--ink); color: var(--cream); }
.scene--cream :focus-visible, .scene--paper :focus-visible { outline-color: var(--ink); }

/* ---------- type ---------- */
.move { font: 400 clamp(46px, 8.6vw, 148px)/.9 var(--anton); text-transform: uppercase; letter-spacing: .005em; margin: 0; }
.display { font: 300 clamp(42px, 6.4vw, 104px)/1 var(--serif); letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.title { font: 300 clamp(34px, 4.4vw, 68px)/1.04 var(--serif); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.subtitle { font: 400 clamp(24px, 2.3vw, 34px)/1.18 var(--serif); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.lede { font: 300 clamp(19px, 1.6vw, 24px)/1.5 var(--serif); color: var(--muted); max-width: 40ch; margin: 0; text-wrap: pretty; }
.scene--cream .lede, .scene--paper .lede { color: var(--ink-muted); }
.label { font: 400 13px/1.4 var(--mono); letter-spacing: .01em; color: var(--faint); margin: 0; }
.scene--cream .label, .scene--paper .label { color: var(--ink-muted); }
.pillar-name { font: 400 clamp(22px, 2.2vw, 30px)/1 var(--norw); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.prose p { margin: 0 0 1.1em; max-width: 62ch; text-wrap: pretty; }
em { font-style: italic; }
.sym { font-family: var(--mono); font-style: normal; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font: 400 15px/1 var(--mono); letter-spacing: -.01em; white-space: nowrap;
  background: var(--bg); border: 1px solid var(--line-strong); color: inherit; overflow: hidden; isolation: isolate;
  transition: border-color .3s, background .3s, color .3s; will-change: transform;
}
.btn:hover { border-color: rgba(251, 246, 234, .5); }
.btn--act { --bg: var(--blood); border-color: transparent; color: var(--cream); box-shadow: 0 10px 30px -10px rgba(214, 58, 30, .7), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--act:hover { --bg: var(--blood-deep); border-color: transparent; }
.btn--act::before { /* a slow light sweep, only on the one action */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  animation: sweep 5.5s var(--ease-io) 2.4s infinite;
}
@keyframes sweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.scene--cream .btn, .scene--paper .btn { border-color: var(--ink-line); }
.scene--cream .btn:hover, .scene--paper .btn:hover { border-color: rgba(15, 15, 15, .45); }
.scene--cream .btn--act, .scene--paper .btn--act { border-color: transparent; }
.btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- glass ---------- */
.glass {
  background: rgba(14, 10, 18, .48); border: 1px solid rgba(251, 246, 234, .13);
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 30px 80px -30px rgba(0, 0, 0, .7);
  border-radius: 26px;
}
.glass--light {
  background: rgba(251, 246, 234, .55); border-color: rgba(255, 255, 255, .7); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 70px -30px rgba(56, 25, 4, .45);
}

/* ---------- reveals (scene-like, not generic fade-ups) ---------- */
.js [data-reveal="shutter"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js [data-reveal="shutter"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="shutter"] > img, .js [data-reveal="shutter"] > video { transform: scale(1.14); transition: transform 2.2s var(--ease); }
.js [data-reveal="shutter"].is-in > img, .js [data-reveal="shutter"].is-in > video { transform: scale(1); }
.js [data-reveal="fade"] { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal="fade"].is-in { opacity: 1; transform: none; }
.js [data-reveal="line"] { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.js [data-reveal="line"].is-in { transform: scaleX(1); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.is-in .w > span, .w.is-in > span { transform: none; }
[data-delay="1"] { transition-delay: .12s !important; } [data-delay="2"] { transition-delay: .24s !important; } [data-delay="3"] { transition-delay: .36s !important; }

/* ---------- hero (night, liquid light behind glass) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--night); isolation: isolate; }
.hero canvas.light { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 110%, rgba(6, 4, 9, .9), transparent 60%), linear-gradient(180deg, rgba(6, 4, 9, .55), transparent 30%); }
.hero-inner { padding: 150px 0 clamp(56px, 9vh, 110px); }
.hero .move { max-width: 11ch; }
.hero-pane { margin-top: clamp(26px, 4vh, 44px); padding: 26px 28px; max-width: 560px; display: grid; gap: 22px; }
.hero-pane .lede { color: rgba(251, 246, 234, .82); max-width: none; }
.letterbox { position: absolute; left: 0; right: 0; z-index: 3; height: 12vh; background: #000; pointer-events: none; transition: transform 1.6s var(--ease-io) .2s; }
.letterbox.top { top: 0; transform-origin: top; } .letterbox.bottom { bottom: 0; transform-origin: bottom; }
html.is-ready .letterbox { transform: scaleY(0); }
.hud { position: absolute; z-index: 2; font: 400 12px/1.5 var(--mono); color: var(--faint); letter-spacing: .02em; pointer-events: none; }
.hud.tl { top: 100px; left: var(--gutter); } .hud.tr { top: 100px; right: var(--gutter); text-align: right; }
.hud.br { bottom: 26px; right: var(--gutter); text-align: right; }
.hud .rec::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blood); margin-right: 8px; animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.crosshair { position: absolute; z-index: 2; width: 18px; height: 18px; pointer-events: none; opacity: .5; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--cream); }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; } .crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; translate: -50% 0; width: 1px; height: 54px; overflow: hidden; background: rgba(251, 246, 234, .14); }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 860px) { .hud.tr { display: none; } .hud.tl, .hud.tr { top: 92px; } }

/* ---------- page heads (inner pages) ---------- */
.head { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.head-media { position: absolute; inset: 0; z-index: -2; }
.head-media img, .head-media video { width: 100%; height: 100%; object-fit: cover; }
.head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 4, 9, .5), rgba(6, 4, 9, .1) 40%, rgba(6, 4, 9, .92)); }
.head-inner { padding: 170px 0 clamp(56px, 10vh, 110px); display: grid; gap: 26px; }
.head .lede { color: rgba(251, 246, 234, .8); }
.head--cream { background: var(--cream); color: var(--ink); min-height: auto; }
.head--cream::after { display: none; }

/* gridlines over footage — fine HUD lines at thirds */
.gridlines { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, transparent calc(33.333% - .5px), rgba(251, 246, 234, .22) calc(33.333% - .5px), rgba(251, 246, 234, .22) calc(33.333% + .5px), transparent calc(33.333% + .5px)),
    linear-gradient(90deg, transparent calc(66.666% - .5px), rgba(251, 246, 234, .22) calc(66.666% - .5px), rgba(251, 246, 234, .22) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(251, 246, 234, .16) calc(50% - .5px), rgba(251, 246, 234, .16) calc(50% + .5px), transparent calc(50% + .5px)); }

/* stars scattered as a stamp */
.stamp { position: absolute; z-index: 2; width: var(--s, 14px); fill: var(--cream); opacity: .85; pointer-events: none; filter: drop-shadow(0 0 8px rgba(251, 246, 234, .5)); animation: twinkle 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8) rotate(10deg); } }

/* ---------- aperture: footage that opens from a letterbox to full screen ---------- */
.aperture { position: relative; height: 240vh; background: var(--night); }
.aperture-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.aperture-frame {
  position: absolute; inset: 0;
  clip-path: inset(calc((1 - var(--p)) * 30%) calc((1 - var(--p)) * 22%) calc((1 - var(--p)) * 30%) calc((1 - var(--p)) * 22%) round calc((1 - var(--p)) * 28px));
}
.aperture-frame video, .aperture-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--p) * .25)); filter: contrast(1.07) saturate(.8) brightness(.8); }
.aperture-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 50%, transparent 30%, rgba(6, 4, 9, .75)); }
.aperture-copy { position: relative; z-index: 2; text-align: center; padding-inline: var(--gutter); }
.aperture-copy .display { max-width: 14ch; margin-inline: auto; }
.aperture-copy .lede { margin: 22px auto 0; text-align: center; color: rgba(251, 246, 234, .78); }
.aperture-copy > * { opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 24px)); }
.aperture .label.edge { position: absolute; z-index: 2; bottom: 28px; left: var(--gutter); }

/* ---------- the cutaway: front of house splits to show the back ---------- */
.cut { position: relative; height: 300vh; background: var(--cream); color: var(--ink); }
.cut-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(280px, .9fr) 1.3fr; align-items: center; gap: clamp(24px, 5vw, 80px); padding: 90px var(--gutter) 40px; max-width: 1400px; margin-inline: auto; }
.cut-copy { display: grid; gap: 22px; align-content: center; }
.cut-copy .lede { max-width: 36ch; }
.cut-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.cut-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 9px 0; border-top: 1px solid var(--ink-line); font: 400 14px/1.4 var(--mono); color: rgba(15, 15, 15, .4); transition: color .4s; }
.cut-steps li::before { counter-increment: s; content: "0" counter(s); }
.cut-steps li.on { color: var(--ink); }
.cut-stage { position: relative; height: min(68vh, 640px); perspective: 1600px; }
.layer { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.layer--front { z-index: 3; background: var(--night); color: var(--cream); box-shadow: 0 40px 90px -30px rgba(56, 25, 4, .55);
  transform: translateX(calc(min(1, var(--p, 0) * 1.5) * -62%)) rotateY(calc(min(1, var(--p, 0) * 1.5) * 16deg)); }
.layer--front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.layer--front .site-ui { position: absolute; inset: 0; padding: 22px 26px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(6, 4, 9, .55), transparent 35%, rgba(6, 4, 9, .8)); }
.site-ui .site-nav { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: rgba(251, 246, 234, .8); }
.site-ui h4 { margin: auto 0 14px; font: 300 clamp(26px, 3vw, 44px)/1.02 var(--serif); letter-spacing: -.02em; max-width: 12ch; }
.site-ui .fake-form { display: flex; gap: 8px; align-items: center; }
.site-ui .fake-form span { flex: 1; height: 38px; border-radius: 999px; border: 1px solid rgba(251, 246, 234, .3); background: rgba(251, 246, 234, .08); font: 400 12px/38px var(--mono); padding-left: 14px; color: rgba(251, 246, 234, .6); }
.site-ui .fake-form b { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--blood); font: 400 12px/38px var(--mono); }
.layer--back { z-index: 1; background: var(--ink); color: var(--cream); padding: 22px; display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.back-head { display: flex; justify-content: space-between; align-items: center; font: 400 12px var(--mono); color: var(--faint); }
.back-head b { font-weight: 400; color: var(--cream); }
.flow { display: grid; gap: 10px; align-content: start; }
.flow-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: rgba(251, 246, 234, .05); border: 1px solid var(--line);
  opacity: calc(var(--p, 0) * 3 - var(--k) * .45); transform: translateX(calc(max(0, 1 - (var(--p, 0) * 3 - var(--k) * .45)) * 30px)); }
.flow-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 400 15px var(--mono); background: rgba(251, 246, 234, .07); }
.flow-card strong { display: block; font: 400 15px/1.3 var(--serif); }
.flow-card small { display: block; font: 400 12px/1.4 var(--mono); color: var(--faint); }
.flow-card .tag { font: 400 11px var(--mono); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.flow-card .tag.you { border-color: rgba(214, 58, 30, .6); color: #F4B3A6; }
@media (max-width: 860px) {
  .cut { height: auto; }
  .cut-stick { position: relative; height: auto; grid-template-columns: 1fr; padding-block: 110px 80px; }
  .cut-stage { height: auto; perspective: none; display: grid; gap: 14px; }
  .layer { position: relative; inset: auto; }
  .layer--front { height: 360px; transform: none; }
  .flow-card { opacity: 1; transform: none; }
}

/* ---------- services: spotlight glass cards over footage ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.svc { position: relative; grid-column: span 6; min-height: 440px; border-radius: 28px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: var(--cream); }
.svc:nth-child(1) { grid-column: span 7; } .svc:nth-child(2) { grid-column: span 5; }
.svc:nth-child(3) { grid-column: span 5; } .svc:nth-child(4) { grid-column: span 7; }
.svc > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter .8s; filter: brightness(.72); }
.svc:hover > img { transform: scale(1.05); filter: brightness(.82); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(6, 4, 9, .85)); }
.svc .card { padding: 22px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.spot::after { /* light that follows the cursor across the glass */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(251, 246, 234, .14), transparent 60%);
}
.spot:hover::after { opacity: 1; }
.svc h3 { margin: 0; font: 300 clamp(28px, 2.6vw, 38px)/1.05 var(--serif); letter-spacing: -.02em; }
.svc p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 44ch; }
.svc .more { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font: 400 13px var(--mono); color: var(--cream); }
.svc .more .arrow { transition: transform .4s var(--ease); }
.svc:hover .more .arrow { transform: translate(4px, -4px); }
.svc .chip { position: absolute; top: 20px; left: 20px; font: 400 12px var(--mono); padding: 7px 11px; border-radius: 999px; }
@media (max-width: 900px) { .svc, .svc:nth-child(n) { grid-column: 1 / -1; min-height: 380px; } }

/* ---------- marquee of trades ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 44px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 300 clamp(26px, 3vw, 42px)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 44px; color: rgba(251, 246, 234, .82); }
.marquee-track span::after { content: ""; width: 14px; height: 14px; background: var(--rose); -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; opacity: .8; }
:root { --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M70 0 C61.7 34.6 65.3 56.2 100 68 C71.7 60.6 46.1 65 32 98 C40.1 66.6 35.3 47.8 0 30 C29.3 39 54.5 36.6 70 0Z'/%3E%3C/svg%3E"); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- device frame (demos) ---------- */
.stage { perspective: 1800px; }
.device {
  --tilt: 1; position: relative; margin-inline: auto; width: 100%; max-width: 1180px; border-radius: 26px; padding: 12px;
  background: linear-gradient(180deg, #1a1620, #0b080e); border: 1px solid rgba(251, 246, 234, .14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 60px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: rotateX(calc(var(--tilt) * 24deg)) scale(calc(1 - var(--tilt) * .08)) translateY(calc(var(--tilt) * -20px));
  transform-origin: 50% 0%; transition: max-width .7s var(--ease), border-radius .7s var(--ease);
}
.device-top { display: flex; align-items: center; gap: 10px; padding: 2px 6px 12px; font: 400 12px var(--mono); color: var(--faint); }
.device-top .dots { display: flex; gap: 6px; } .device-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(251, 246, 234, .16); }
.device-top .url { flex: 1; text-align: center; padding: 6px 12px; border-radius: 999px; background: rgba(251, 246, 234, .05); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen { position: relative; overflow: hidden; border-radius: 16px; background: #000; aspect-ratio: 16 / 10; }
.screen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #000; }
.screen .loading { position: absolute; inset: 0; display: grid; place-items: center; font: 400 13px var(--mono); color: var(--faint); }
.screen .loading svg { width: 26px; fill: var(--cream); animation: spin 2.4s var(--ease-io) infinite; }
@keyframes spin { to { transform: rotate(180deg); } }
.device.is-phone { max-width: 400px; border-radius: 52px; padding: 12px; }
.device.is-phone .device-top { display: none; }
.device.is-phone .screen { aspect-ratio: 390 / 820; border-radius: 40px; }
.device.is-phone .screen::before { content: ""; position: absolute; z-index: 2; top: 12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 99px; background: #000; pointer-events: none; }
.device:fullscreen { max-width: none; border-radius: 0; padding: 0; transform: none; background: #000; }
.device:fullscreen .device-top { display: none; }
.device:fullscreen .screen { aspect-ratio: auto; height: 100vh; border-radius: 0; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin: 0 auto 18px; max-width: 1180px; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 246, 234, .03); }
.seg button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font: 400 13px/1 var(--mono); color: var(--muted); transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .seg-glow { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--cream); transition: left .45s var(--ease), width .45s var(--ease); }

/* ---------- film strip (a sequence) ---------- */
.strip { display: grid; gap: 4px; margin-top: clamp(40px, 6vw, 72px); }
.frame { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; min-height: clamp(260px, 34vw, 420px); background: #000; overflow: hidden; }
.frame-media { position: relative; overflow: hidden; }
.frame-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-copy { padding: clamp(24px, 4vw, 56px); display: grid; align-content: end; gap: 14px; border-left: 1px solid var(--line); }
.frame-copy .tc { font: 400 12px var(--mono); color: var(--faint); display: flex; justify-content: space-between; }
.frame-copy h3 { margin: 0; font: 300 clamp(30px, 3.2vw, 48px)/1.02 var(--serif); letter-spacing: -.02em; }
.frame-copy p { margin: 0; color: var(--muted); max-width: 40ch; }
.frame:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.frame:nth-child(even) .frame-media { order: 2; }
.frame:nth-child(even) .frame-copy { border-left: 0; border-right: 1px solid var(--line); }
@media (max-width: 760px) {
  .frame, .frame:nth-child(even) { grid-template-columns: 1fr; }
  .frame-media { min-height: 240px; } .frame:nth-child(even) .frame-media { order: 0; }
  .frame-copy, .frame:nth-child(even) .frame-copy { border: 0; border-top: 1px solid var(--line); }
}

/* ---------- straight answers (the open door) ---------- */
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--ink-line); }
.answer { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--ink-line); display: grid; gap: 10px; align-content: start; }
.answer:nth-child(odd) { border-right: 1px solid var(--ink-line); }
.answer:nth-child(even) { padding-left: 28px; }
.answer h3 { margin: 0; font: 400 clamp(21px, 1.8vw, 26px)/1.25 var(--serif); }
.answer p { margin: 0; color: var(--ink-muted); max-width: 46ch; }
.answer b { font-weight: 500; color: var(--ink); }
@media (max-width: 760px) { .answers { grid-template-columns: 1fr; } .answer, .answer:nth-child(n) { padding: 24px 0; border-right: 0; } }

/* ---------- tabs (services) ---------- */
.tabset { margin-top: clamp(36px, 5vw, 60px); }
.tablist { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 246, 234, .03); }
.tablist button { position: relative; z-index: 1; padding: 12px 20px; border-radius: 999px; font: 400 14px/1 var(--mono); color: var(--muted); transition: color .3s; }
.tablist button[aria-selected="true"] { color: var(--ink); }
.tablist .seg-glow { position: absolute; z-index: 0; border-radius: 999px; background: var(--cream); transition: left .5s var(--ease), width .5s var(--ease), top .5s var(--ease), height .5s var(--ease); }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; margin-top: 28px; }
.panel[hidden] { display: none; }
.panel.is-entering .panel-media { animation: panelIn 1s var(--ease) both; }
.panel.is-entering .panel-copy > * { animation: panelText .9s var(--ease) both; }
.panel.is-entering .panel-copy > *:nth-child(2) { animation-delay: .06s; } .panel.is-entering .panel-copy > *:nth-child(3) { animation-delay: .12s; }
.panel.is-entering .panel-copy > *:nth-child(4) { animation-delay: .18s; }
@keyframes panelIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes panelText { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel-media { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-media .glass { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font: 400 13px var(--mono); }
.panel-copy { display: grid; gap: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; padding: 13px 0; border-top: 1px solid var(--line); font-size: 17px; }
.ticks li::before { content: ""; width: 11px; height: 11px; margin-top: 7px; background: var(--peri); -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; }
.price-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.price-line strong { font: 300 clamp(30px, 3vw, 42px)/1 var(--serif); letter-spacing: -.02em; font-weight: 300; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .panel-media { aspect-ratio: 4 / 3; } }

/* ---------- timeline (a real sequence) ---------- */
.timeline { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 1px; background: var(--ink-line); }
.timeline .rail { position: absolute; top: 18px; left: 0; height: 1px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.timeline li { position: relative; padding: 52px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.timeline li::before { content: ""; position: absolute; top: 12px; left: 0; width: 13px; height: 13px; background: var(--ink); -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; }
.timeline .n { font: 400 12px var(--mono); color: var(--ink-muted); }
.timeline h3 { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.15 var(--serif); }
.timeline p { margin: 0; color: var(--ink-muted); font-size: 17px; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before, .timeline .rail { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; transform: scaleY(var(--p, 0)); transform-origin: top; }
  .timeline li { padding: 0 0 34px 40px; } .timeline li::before { top: 6px; }
}

/* ---------- prices ---------- */
.prices { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin-top: clamp(36px, 5vw, 64px); }
.price { position: relative; padding: 28px; border-radius: 26px; display: grid; gap: 14px; align-content: start; overflow: hidden; border: 1px solid var(--line); background: rgba(251, 246, 234, .03); }
.price--lead { grid-row: span 2; background: linear-gradient(180deg, rgba(247, 216, 161, .1), rgba(251, 246, 234, .02)); }
.price .what { font: 400 13px var(--mono); color: var(--faint); display: flex; justify-content: space-between; }
.price .amount { font: 300 clamp(36px, 3.6vw, 56px)/1 var(--serif); letter-spacing: -.02em; }
.price .amount small { font: 400 15px var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price p { margin: 0; color: var(--muted); font-size: 17px; }
.price--lead .ticks { margin-top: 6px; }
@media (max-width: 960px) { .prices { grid-template-columns: 1fr 1fr; } .price--lead { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 620px) { .prices { grid-template-columns: 1fr; } }

/* ---------- questions (accordion) ---------- */
.qa { margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--ink-line); }
.qa details { border-bottom: 1px solid var(--ink-line); interpolate-size: allow-keywords; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; font: 400 clamp(20px, 1.8vw, 25px)/1.3 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink-line); transition: transform .5s var(--ease), background .3s; }
.qa summary .plus::before, .qa summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px; background: currentColor; }
.qa summary .plus::after { transform: rotate(90deg); }
.qa details[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--cream); }
.qa details::details-content { height: 0; overflow: clip; transition: height .55s var(--ease), content-visibility .55s allow-discrete; }
.qa details[open]::details-content { height: auto; }
.qa .a { padding: 0 60px 26px 0; color: var(--ink-muted); max-width: 70ch; }

/* ---------- about: editorial paper ---------- */
.ink-tree { position: absolute; pointer-events: none; mix-blend-mode: multiply; opacity: .92; }
.chapter { display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 4vw, 64px); padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--ink-line); }
.chapter .label { padding-top: 10px; }
.chapter .title { max-width: 18ch; margin-bottom: 26px; }
.chapter .prose p { font-size: clamp(18px, 1.3vw, 21px); line-height: 1.7; }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; } }
.quote { margin: 0; padding: clamp(40px, 7vw, 100px) 0; text-align: center; }
.quote p { margin: 0 auto; max-width: 22ch; font: 300 italic clamp(32px, 4.2vw, 64px)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.quote cite { display: block; margin-top: 24px; font: 400 13px var(--mono); font-style: normal; color: var(--ink-muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.pillar { position: relative; min-height: 360px; padding: 28px; border-radius: 26px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: rgba(251, 246, 234, .02); }
.pillar::before { content: ""; position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; right: -30%; top: -30%; border-radius: 50%; background: var(--c); filter: blur(70px); opacity: .22; transition: opacity .6s, transform 1.2s var(--ease); }
.pillar:hover::before { opacity: .38; transform: translate(-10%, 10%); }
.pillar .pillar-name { color: var(--c); }
.pillar .big { font: 300 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); letter-spacing: -.015em; margin: 18px 0 14px; }
.pillar p { margin: 0; color: var(--muted); font-size: 17px; }
.pillar .star { width: 22px; fill: var(--c); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 280px; } }
.seal { display: inline-grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--ink-line); position: relative; }
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: rotate 30s linear infinite; }
.seal svg.ring text { font: 400 9.5px var(--mono); letter-spacing: .18em; fill: var(--ink); }
.seal svg.mark { width: 30px; fill: var(--rust); }
@keyframes rotate { to { transform: rotate(360deg); } }

/* ---------- finale + credits footer ---------- */
.finale { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(120px, 18vw, 240px); }
.finale canvas.light { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.finale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(6, 4, 9, .35), rgba(6, 4, 9, .95)); }
.finale .display { max-width: 16ch; margin-inline: auto; }
.finale .lede { margin: 26px auto 34px; text-align: center; }
.finale .row { justify-content: center; }
.credits { border-top: 1px solid var(--line); padding: 64px 0 34px; background: var(--night); }
.credits-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.credits h2 { margin: 0 0 14px; font: 400 12px var(--mono); color: var(--faint); font-weight: 400; }
.credits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.credits a { font: 400 15px var(--mono); color: var(--muted); transition: color .3s; }
.credits a:hover { color: var(--cream); }
.credits .sign { display: grid; gap: 18px; align-content: start; }
.credits .sign p { margin: 0; color: var(--muted); max-width: 30ch; }
.credits-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 400 12px var(--mono); color: var(--faint); }
@media (max-width: 860px) { .credits-grid { grid-template-columns: 1fr 1fr; } .credits .sign { grid-column: 1 / -1; } }

/* scene marker (bottom-left, desktop only) */
.scene-hud { position: fixed; z-index: 80; left: 22px; bottom: 20px; display: flex; gap: 10px; align-items: center; font: 400 11px var(--mono); color: var(--cream); mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: opacity .6s; }
.scene-hud.on { opacity: .7; }
.scene-hud .bar-mini { width: 60px; height: 1px; background: rgba(251, 246, 234, .3); position: relative; }
.scene-hud .bar-mini i { position: absolute; inset: 0; background: var(--cream); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 860px) { .scene-hud { display: none; } }

/* the analytics choice, in Portal's clothes */
.portal-analytics-choice { border-radius: 18px !important; background: rgba(14, 10, 18, .82) !important; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-color: rgba(251, 246, 234, .16) !important; font-family: "DM Mono", ui-monospace, monospace !important; color: var(--cream) !important; }
.portal-analytics-choice button { font-family: "DM Mono", ui-monospace, monospace !important; border-radius: 999px !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { clip-path: none !important; opacity: 1 !important; transform: none !important; }
  .w > span { transform: none !important; }
  .marquee-track { animation: none; }
}

/* ---------- textures: paper weave on cream, plaster depth on night ---------- */
.paper { position: relative; isolation: isolate; }
/* Cream sections (2026-10-09): clean and smooth, no woven paper. Portal's light glows softly at
   two corners, periwinkle from above and butter from below. */
.paper::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 94% 0%, rgba(194, 204, 229, .34), transparent 62%),
    radial-gradient(55% 50% at 0% 100%, rgba(247, 216, 161, .32), transparent 62%),
    radial-gradient(40% 40% at 55% 55%, rgba(241, 157, 155, .06), transparent 70%); }
.stone { position: relative; isolation: isolate; }
/* Night silk (2026-10-09, replaces the grey concrete "night-stone"): Portal's own liquid
   light, softened and sunk into night, with two calm glows of the brand colours. */
.stone::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 45% at 90% 8%, rgba(194, 204, 229, .13), transparent 62%),
    radial-gradient(45% 40% at 6% 96%, rgba(241, 157, 155, .10), transparent 60%),
    url("/assets/img/night-silk.webp") center / cover; opacity: .9; }

/* ---------- hero details ---------- */
.hero .w > span { transition-delay: calc(.55s + var(--i) * 70ms); }
.pane-liquid { background: rgba(6, 4, 9, .22); border: 1px solid rgba(251, 246, 234, .06); border-radius: 26px; }
.hero:has(canvas.no-gl) { background: radial-gradient(80% 60% at 70% 30%, rgba(194, 204, 229, .25), transparent 60%), radial-gradient(60% 50% at 20% 70%, rgba(241, 157, 155, .2), transparent 60%), var(--night); }
.hero:has(canvas.no-gl) .pane-liquid { background: rgba(14, 10, 18, .5); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-color: rgba(251, 246, 234, .13); }

/* ---------- demo shield + loading ---------- */
.shield { position: absolute; inset: 0; z-index: 3; display: grid; place-items: end center; padding-bottom: 20px; cursor: pointer; background: linear-gradient(180deg, transparent 70%, rgba(6, 4, 9, .45)); transition: opacity .4s; }
.shield span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; font: 400 13px var(--mono); color: var(--cream);
  background: rgba(14, 10, 18, .6); border: 1px solid rgba(251, 246, 234, .2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .4s var(--ease), background .3s; }
.shield:hover span { transform: translateY(-3px); background: rgba(14, 10, 18, .78); }
.shield span i { width: 7px; height: 7px; border-radius: 50%; background: var(--peri); box-shadow: 0 0 10px var(--peri); }
.screen.is-exploring .shield { opacity: 0; pointer-events: none; }
.screen .loading { transition: opacity .6s; z-index: 1; }
.screen.is-live .loading { opacity: 0; visibility: hidden; }
.demo { display: grid; gap: 26px; }
.demo + .demo { margin-top: clamp(100px, 14vw, 180px); }
.demo-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; max-width: 1180px; width: 100%; margin-inline: auto; }
.demo-head .title { max-width: 14ch; }
.try { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.try span { font: 400 12px var(--mono); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.try span::before { content: "◎ "; color: var(--peri); }
@media (max-width: 760px) { .demo-head { grid-template-columns: 1fr; } }

/* ---------- floating glass notes over photos (NORVALE-style) ---------- */
.float { position: absolute; z-index: 2; padding: 14px 16px; border-radius: 18px; max-width: 230px; font: 400 12px/1.45 var(--mono); }
.float strong { display: block; font: 300 30px/1 var(--serif); letter-spacing: -.02em; margin-bottom: 6px; }
.photo-stage { position: relative; }
.photo-stage > img { width: 100%; border-radius: 26px; }

/* hammered glass backdrop */
.hammered { position: relative; isolation: isolate; overflow: hidden; }
.hammered > img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hammered::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 80% at 50% 50%, rgba(6, 4, 9, .35), rgba(6, 4, 9, .92)); }

/* content always above gridlines and stamps */
.head-inner, .hero-inner { position: relative; z-index: 2; }
.timeline li.rail { padding: 0; } .timeline li.rail::before { display: none; }

/* ---------- callouts: boxes with corner handles and a thin line out to a label ---------- */
.callout { position: absolute; z-index: 2; border: 1px solid currentColor; color: var(--ink); }
.callout > i { position: absolute; width: 8px; height: 8px; background: var(--cream); border: 1px solid currentColor; }
.callout > i:nth-of-type(1) { left: -4.5px; top: -4.5px; } .callout > i:nth-of-type(2) { right: -4.5px; top: -4.5px; }
.callout > i:nth-of-type(3) { left: -4.5px; bottom: -4.5px; } .callout > i:nth-of-type(4) { right: -4.5px; bottom: -4.5px; }
.callout-tag { position: absolute; top: 14px; right: calc(100% + 44px); width: max-content; max-width: 170px; text-align: right; font: 400 12px/1.45 var(--mono); }
.callout-tag b { display: block; font: 400 17px/1.2 var(--serif); }
.callout-tag::after { content: ""; position: absolute; top: .75em; left: calc(100% + 8px); width: 36px; height: 1px; background: currentColor; }
.callout-tag.r { right: auto; left: calc(100% + 44px); text-align: left; }
.callout-tag.r::after { left: auto; right: calc(100% + 8px); }
.js .callout[data-reveal] { clip-path: inset(50% 50% 50% 50%); opacity: 1; transform: none; transition: clip-path 1.1s var(--ease); }
.js .callout[data-reveal].is-in { clip-path: inset(-60px -320px -60px -320px); }
.scene--night .callout, .callout.on-night { color: var(--cream); }
.callout.on-night > i { background: var(--night); }
@media (max-width: 860px) {
  .callout-tag, .callout-tag.r { position: static; display: block; margin: 8px; text-align: left; background: rgba(251, 246, 234, .85); padding: 6px 8px; border-radius: 6px; }
  .callout-tag::after { display: none; }
}

/* ---------- about head: the inked pine ---------- */
.about-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 150px 0 clamp(60px, 8vw, 120px); }
.about-head .display { max-width: 12ch; }
.about-head .lede { margin-top: 26px; }
.pine-stage { position: relative; aspect-ratio: 1081 / 1013; }
.pine-stage > img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 860px) { .about-head { grid-template-columns: 1fr; } .pine-stage { margin-top: 20px; } }

/* ---------- triptych: stacked letterbox frames ---------- */
.triptych { display: grid; gap: 3px; background: #000; }
.tri { position: relative; height: clamp(220px, 34vw, 460px); overflow: hidden; }
.tri img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translateY(calc((var(--p, .5) - .5) * -10%)); }
.tri .cap { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(18px, 3vw, 34px); max-width: 520px; display: grid; gap: 8px; }
.tri .cap h3 { margin: 0; font: 300 clamp(28px, 3.4vw, 52px)/1.02 var(--serif); letter-spacing: -.02em; }
.tri .cap p { margin: 0; color: rgba(251, 246, 234, .78); }
.tri::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 4, 9, .78), rgba(6, 4, 9, .1) 60%); }
.tri .tc { position: absolute; z-index: 2; top: 18px; right: var(--gutter); font: 400 12px var(--mono); color: var(--faint); }

/* ---------- how we work ---------- */
.ways { display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 90px); align-items: center; }
.ways ul { list-style: none; margin: 30px 0 0; padding: 0; }
.ways li { display: grid; grid-template-columns: 30px 1fr; padding: 18px 0; border-top: 1px solid var(--ink-line); font: 400 clamp(19px, 1.6vw, 23px)/1.4 var(--serif); }
.ways li::before { content: ""; width: 12px; height: 12px; margin-top: 8px; background: var(--rust); -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* ---------- text inside boxes: Helvetica (Solomon, 2026-10-04) ---------- */
:root { --sans: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.hero-pane .lede, .svc .card h3, .svc .card p, .flow-card strong, .flow-card small, .site-ui h4,
.price p, .price .amount, .float, .float strong, .callout-tag, .callout-tag b, .panel-media .glass,
.answer h3, .answer p, .pillar .big, .pillar p, .frame-copy p, .back-head, .chip {
  font-family: var(--sans); letter-spacing: -.005em;
}
.hero-pane .lede { font-weight: 400; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; }
.svc .card h3 { font-weight: 500; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.02em; }
.svc .card p, .price p, .answer p, .pillar p, .frame-copy p { font-size: 16px; line-height: 1.55; }
.flow-card strong { font-weight: 500; font-size: 14px; }
.flow-card small { font-size: 12.5px; }
.site-ui h4 { font-weight: 500; letter-spacing: -.03em; }
.price .amount { font-weight: 500; letter-spacing: -.035em; }
.price .amount small { font-family: var(--mono); }
.answer h3 { font-weight: 500; font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -.015em; }
.float strong { font-weight: 500; letter-spacing: -.03em; }
.callout-tag { font-size: 12.5px; }
.callout-tag b { font-weight: 500; font-size: 15px; }
.pillar .big { font-weight: 500; letter-spacing: -.025em; }
.panel-media .glass, .chip { font-size: 13px; }

/* ---------- the one action: solid cream pill (Solomon, 2026-10-04: no orange) ---------- */
.btn--act { --bg: var(--cream); color: var(--ink); border-color: transparent; font-weight: 400;
  box-shadow: 0 12px 34px -14px rgba(251, 246, 234, .55), inset 0 1px 0 rgba(255, 255, 255, .9); }
.btn--act:hover { --bg: #fff; border-color: transparent; }
.btn--act::before { background: linear-gradient(100deg, transparent 30%, rgba(194, 204, 229, .55) 50%, transparent 70%); animation: none; }
.btn--act:hover::before { animation: sweep 1.1s var(--ease-io) 1; }
@keyframes sweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.scene--cream .btn--act, .scene--paper .btn--act { --bg: var(--ink); color: var(--cream); box-shadow: 0 12px 30px -14px rgba(15, 15, 15, .6), inset 0 1px 0 rgba(255, 255, 255, .14); }
.scene--cream .btn--act:hover, .scene--paper .btn--act:hover { --bg: #000; }
.site-ui .fake-form b { background: var(--cream); color: var(--ink); }

/* Apple's own system face for text inside boxes */
:root { --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* ---------- the OS window inside the cutaway: sleek, quiet, like the client OS today ---------- */
.layer--back.os { padding: 0; display: grid; grid-template-columns: 170px 1fr; grid-template-rows: none; gap: 0;
  background: #0d0b0f; font-family: var(--sans); font-size: 13px; line-height: 1.45; letter-spacing: -.005em; }
.os-side { padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; background: rgba(255, 255, 255, .035); border-right: 1px solid rgba(255, 255, 255, .07); }
.os-lights { display: flex; gap: 7px; padding: 2px 4px 4px; }
.os-lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.os-biz { display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.os-biz b { display: block; font-weight: 500; font-size: 12.5px; }
.os-biz small { display: block; font-size: 11px; color: rgba(251, 246, 234, .5); }
.os-mono { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-weight: 600; font-size: 12px; }
.os-nav { display: grid; gap: 2px; }
.os-nav span { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 8px; border-radius: 7px; color: rgba(251, 246, 234, .66); font-size: 12.5px; }
.os-nav span.on { background: rgba(255, 255, 255, .08); color: var(--cream); font-weight: 500; }
.os-nav svg, .os .ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.os-nav em { margin-left: auto; font-style: normal; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: rgba(251, 246, 234, .12); color: var(--cream); }
.os-spend { margin-top: auto; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.os-spend small { font-size: 10.5px; color: rgba(251, 246, 234, .5); }
.os-spend b { font-weight: 500; font-size: 16px; letter-spacing: -.02em; }
.os-meter { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.os-meter i { display: block; width: 8.4%; height: 100%; background: var(--peri); }
.os-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.os-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.os-top small { font-size: 11px; color: rgba(251, 246, 234, .5); }
.os-top h5 { margin: 2px 0 0; font: 500 19px/1.2 var(--sans); letter-spacing: -.02em; }
.os-live { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); font-size: 11px; color: rgba(251, 246, 234, .7); white-space: nowrap; }
.os-live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #7fd49b; }
.os-live i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid #7fd49b; animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.os-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-variant-numeric: tabular-nums; }
.os-kpis div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.os-kpis b { display: block; font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.os-kpis small { font-size: 11px; color: rgba(251, 246, 234, .5); }
.os-micro { margin: 4px 0 -4px; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(251, 246, 234, .45); }
.os-list { display: grid; gap: 6px; }
.os .flow-card { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
.os .flow-card .ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .06); color: rgba(251, 246, 234, .8); }
.os .flow-card strong { font: 500 13px/1.3 var(--sans); }
.os .flow-card small { font: 400 11.5px/1.4 var(--sans); color: rgba(251, 246, 234, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os .flow-card > div { min-width: 0; }
.os .flow-card .tag { font: 400 10.5px var(--sans); padding: 3px 8px; border: 0; background: rgba(255, 255, 255, .07); color: rgba(251, 246, 234, .65); }
.os .os-ask { background: rgba(251, 246, 234, .07); border-color: rgba(251, 246, 234, .16); }
.os-btns { display: flex; gap: 6px; }
.os-btns b, .os-btns s { text-decoration: none; height: 26px; padding: 0 12px; border-radius: 99px; display: grid; place-items: center; font: 500 11.5px var(--sans); }
.os-btns b { background: var(--cream); color: var(--ink); }
.os-btns s { background: rgba(255, 255, 255, .08); color: var(--cream); }
@media (max-width: 860px) {
  .layer--back.os { grid-template-columns: 1fr; }
  .os-side { display: none; }
}

/* =========== product pictures drawn in code (no stock where the work can speak) =========== */
.viz { position: relative; font-family: var(--sans); font-size: 13px; line-height: 1.4; color: var(--cream); letter-spacing: -.005em; }
.viz small { font-size: 11.5px; color: rgba(251, 246, 234, .52); }

/* website: browser + phone, real screenshots */
.viz-site { aspect-ratio: 16 / 11; }
.vz-browser { position: absolute; left: 0; top: 0; width: 86%; border-radius: 12px; overflow: hidden; background: #141116; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); transition: transform .9s var(--ease); }
.vz-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.vz-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.vz-bar span { margin: 0 auto; font-size: 10.5px; color: rgba(251, 246, 234, .5); padding: 3px 14px; border-radius: 99px; background: rgba(255, 255, 255, .05); }
.vz-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.vz-phone { position: absolute; right: 0; bottom: 0; width: 25%; aspect-ratio: 390 / 820; border-radius: 22px; overflow: hidden; border: 4px solid #1c181f; background: #000; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); transition: transform .9s var(--ease); }
.vz-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.spot:hover .vz-phone, .panel:hover .vz-phone { transform: translateY(-8px); }
.spot:hover .vz-browser, .panel:hover .vz-browser { transform: translateY(-3px); }

/* automation: a short chain of steps with light running down it */
.viz-flow { display: grid; gap: 0; max-width: 420px; margin-inline: auto; }
.vf-node { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 13px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.vf-node b { display: block; font-weight: 500; font-size: 13px; }
.vf-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font-size: 13px; }
.vf-you { background: rgba(251, 246, 234, .08); border-color: rgba(251, 246, 234, .18); }
.vf-btn { height: 24px; padding: 0 11px; border-radius: 99px; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-weight: 500; font-size: 11px; }
.vf-done .vf-ico { background: rgba(127, 212, 155, .14); color: #9fe0b3; }
.vf-line { position: relative; height: 16px; width: 1px; margin-left: 27px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.vf-line i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: cue 2.4s var(--ease-io) infinite; }
.vf-line:nth-of-type(4) i { animation-delay: .5s; } .vf-line:nth-of-type(6) i { animation-delay: 1s; }

/* workspace: a small OS window */
.viz-os { display: grid; grid-template-columns: 120px 1fr; border-radius: 14px; overflow: hidden; background: #0d0b0f; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); min-height: 250px; }
.viz-os .os-side { padding: 12px 8px; gap: 10px; }
.viz-os .os-nav span { height: 24px; font-size: 11.5px; padding: 0 7px; gap: 7px; }
.viz-os .os-main { padding: 14px; gap: 10px; }
.viz-os .os-top h5 { font-size: 15px; }
.viz-os .flow-card { opacity: 1; transform: none; }

/* magnus + care: a calm chat */
.viz-chat { max-width: 380px; margin-inline: auto; padding: 14px; border-radius: 18px; background: #0d0b0f; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); display: grid; gap: 8px; }
.vc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.vc-head b { display: block; font-weight: 500; }
.vc-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 600; }
.vc-msg { max-width: 84%; padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: rgba(255, 255, 255, .07); justify-self: start; }
.vc-msg.me { justify-self: end; border-radius: 16px 16px 5px 16px; background: var(--cream); color: var(--ink); }
.vc-typing { display: flex; gap: 4px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); justify-self: start; }
.vc-typing i { width: 5px; height: 5px; border-radius: 50%; background: rgba(251, 246, 234, .6); animation: blink 1.2s infinite; }
.vc-typing i:nth-child(2) { animation-delay: .15s; } .vc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.vc-time { justify-self: center; }
.js .viz-chat[data-reveal] > .vc-msg, .js .viz-chat[data-reveal] > .vc-typing, .js .viz-chat[data-reveal] > .vc-time { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .viz-chat[data-reveal].is-in > * { opacity: 1; transform: none; }
.js .viz-chat[data-reveal].is-in > :nth-child(3) { transition-delay: .5s; } .js .viz-chat[data-reveal].is-in > :nth-child(4) { transition-delay: 1.2s; }
.js .viz-chat[data-reveal].is-in > :nth-child(5) { transition-delay: 1.9s; } .js .viz-chat[data-reveal].is-in > :nth-child(6) { transition-delay: 2.6s; }
.js .viz-chat[data-reveal] { opacity: 1; transform: none; }

/* service cards now carry the pictures above the words */
.svc { background: #0d0b0f; border: 1px solid var(--line); justify-content: flex-start; padding: 0; min-height: 0; }
.svc::before { display: none; }
.svc .viz-wrap { position: relative; height: 320px; padding: 28px 28px 0; overflow: hidden; display: grid; align-items: start; }
.svc .viz-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #0d0b0f); pointer-events: none; }
.svc .card { padding: 6px 28px 28px; border: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.svc .chip { z-index: 2; background: rgba(14, 10, 18, .7); border: 1px solid rgba(251, 246, 234, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); top: 16px; left: auto; right: 16px; }
.svc .viz-site { width: 100%; }
@media (max-width: 900px) { .svc .viz-wrap { height: 280px; } }

/* service panels carry the same pictures, larger */
.panel-media.viz-stage { aspect-ratio: auto; min-height: 460px; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); background: radial-gradient(80% 70% at 50% 40%, rgba(194, 204, 229, .09), transparent 70%), #0d0b0f; border: 1px solid var(--line); overflow: visible; }
.panel-media.viz-stage > .viz { width: 100%; }
.panel-media.viz-stage > .glass { position: absolute; }

/* frames in the film strip that show the work instead of a stock still */
.frame-media.viz-stage { display: grid; place-items: center; padding: clamp(20px, 3vw, 44px); background: radial-gradient(70% 70% at 50% 40%, rgba(194, 204, 229, .08), transparent 70%), #0a080c; }
.frame-media.viz-stage .viz { width: 100%; max-width: 620px; }

/* head of inner pages drawn with liquid light instead of a photo */
.head canvas.light { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.head-composite { position: relative; margin-top: 10px; }

/* ---------- the star sky: stars in formation spell the page's words ---------- */
canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.finale--sky { min-height: 100svh; display: grid; align-items: end; padding-block: 0 clamp(70px, 10vw, 130px); cursor: crosshair; }
.finale--sky::after { background: linear-gradient(180deg, transparent 45%, rgba(6, 4, 9, .85) 85%); }
.finale--sky a, .finale--sky button { cursor: pointer; }
.sky-hint { position: absolute; z-index: 2; top: clamp(90px, 12vh, 130px); right: var(--gutter); font: 400 12px var(--mono); color: var(--faint); transition: opacity .6s; pointer-events: none; }
.sky-hint.used { opacity: 0; }

/* the front of house swings open like a door on its left hinge, showing the work behind it */
.layer--front { transform-origin: 0% 50%; transform: rotateY(calc(min(1, var(--p, 0) * 1.45) * -76deg)); opacity: calc(1 - max(0, var(--p, 0) * 1.45 - .75) * 2); }
.layer--front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .55)); opacity: calc(min(1, var(--p, 0) * 1.45)); pointer-events: none; }
@media (max-width: 860px) { .layer--front { transform: none; opacity: 1; } .layer--front::after { display: none; } }

/* ---------- a website drawn in code: the structure assembles itself ---------- */
.viz-build { aspect-ratio: 16 / 11; }
.vb-win { position: absolute; inset: 0 12% 0 0; border-radius: 12px; overflow: hidden; background: #121014; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); display: flex; flex-direction: column; }
.vb-page { position: relative; flex: 1; padding: 12px 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.vb-page::before { /* the layout grid the page is built on */
  content: ""; position: absolute; inset: 0 14px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(194, 204, 229, .09) 0 1px, transparent 1px calc(100% / 6)); }
.vb-nav { position: relative; display: flex; align-items: center; gap: 8px; font-size: 10px; }
.vb-nav b { font-weight: 600; margin-right: auto; }
.vb-nav span { width: 26px; height: 5px; border-radius: 3px; background: rgba(251, 246, 234, .22); }
.vb-nav em { font-style: normal; padding: 3px 8px; border-radius: 99px; background: var(--cream); color: var(--ink); font-size: 9px; font-weight: 600; }
.vb-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: center; }
.vb-h { font: 300 clamp(17px, 1.9vw, 26px)/1.02 var(--serif); letter-spacing: -.02em; }
.vb-sub { margin-top: 7px; display: grid; gap: 4px; }
.vb-sub i { display: block; height: 4px; border-radius: 3px; background: rgba(251, 246, 234, .18); }
.vb-sub i:nth-child(2) { width: 70%; }
.vb-cta { margin-top: 9px; display: inline-block; padding: 5px 10px; border-radius: 99px; background: var(--cream); color: var(--ink); font-size: 9.5px; font-weight: 600; }
/* The mock site's art is Image Glass: Solomon's forest lake drifting slowly under a pane of glass
   (2026-10-09, after colour blobs under paper, then recoloured liquid light): ribbons drift slowly under a pane of glass, and a sheen passes now and then. */
.vb-art { position: relative; height: 100%; min-height: 90px; border-radius: 10px; overflow: hidden; isolation: isolate; background: #0b0810; }
.vb-art::before { content: ""; position: absolute; inset: -14%; z-index: -1; background: url("/assets/img/glass/forest-lake.webp") center 42% / cover;
  animation: ribbonDrift 16s ease-in-out infinite alternate; will-change: transform; }
.vb-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .18) 46%, transparent 60%), radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, .12), transparent 52%);
  background-size: 260% 100%, auto; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  animation: glassSheen 8s ease-in-out infinite; }
@keyframes ribbonDrift { from { transform: translate3d(-4%, -3%, 0) scale(1.02) rotate(-1deg); } to { transform: translate3d(4%, 3%, 0) scale(1.1) rotate(1.5deg); } }
@keyframes glassSheen { 0%, 62% { background-position: 130% 0, 0 0; } 100% { background-position: -50% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .vb-art::before, .vb-art::after { animation: none; } }
.vb-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vb-grid span { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.vb-phone { position: absolute; right: 0; bottom: 0; width: 24%; aspect-ratio: 390 / 820; border-radius: 20px; border: 4px solid #1c181f; background: #121014; padding: 16px 8px 8px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 7px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); overflow: hidden; }
.vb-phone .vb-h { font-size: clamp(11px, 1vw, 14px); }
.vb-phone .vb-art { min-height: 0; }
.vb-phone .vb-cta { margin: 0; text-align: center; }
.vb-tag { position: absolute; z-index: 3; font: 400 10px var(--mono); color: var(--peri); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.vb-tag::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; background: #0d0b0f; }
/* assembly: guides, then blocks, then type */
.js .viz-build[data-reveal] .vb-nav, .js .viz-build[data-reveal] .vb-hero > *, .js .viz-build[data-reveal] .vb-grid span, .js .viz-build[data-reveal] .vb-phone, .js .viz-build[data-reveal] .vb-tag { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .viz-build[data-reveal].is-in .vb-nav, .js .viz-build[data-reveal].is-in .vb-hero > *, .js .viz-build[data-reveal].is-in .vb-grid span, .js .viz-build[data-reveal].is-in .vb-phone, .js .viz-build[data-reveal].is-in .vb-tag { opacity: 1; transform: none; }
.js .viz-build.is-in .vb-hero > :nth-child(1) { transition-delay: .25s; } .js .viz-build.is-in .vb-hero > :nth-child(2) { transition-delay: .4s; }
.js .viz-build.is-in .vb-grid span:nth-child(1) { transition-delay: .55s; } .js .viz-build.is-in .vb-grid span:nth-child(2) { transition-delay: .62s; } .js .viz-build.is-in .vb-grid span:nth-child(3) { transition-delay: .69s; }
.js .viz-build.is-in .vb-phone { transition-delay: .8s; } .js .viz-build.is-in .vb-tag { transition-delay: 1.1s; }
.js .viz-build[data-reveal] { opacity: 1; transform: none; }

/* the front of house in the door scene, drawn the same way */
.layer--front .vb-art.full { position: absolute; inset: 0; border-radius: 0; min-height: 0; }
.frame-media.viz-stage img { position: static; inset: auto; height: auto; }
.frame-media.viz-stage .vz-browser img { aspect-ratio: 16 / 10; }
.frame-media.viz-stage .vz-phone img { height: 100%; }

/* ---------- brighter (Solomon, 2026-10-04: less faded grey) ---------- */
:root { --muted: rgba(251, 246, 234, .84); --faint: rgba(251, 246, 234, .62); --ink-muted: rgba(15, 15, 15, .8); --line: rgba(251, 246, 234, .16); }
.lede { color: rgba(251, 246, 234, .86); }
.scene--cream .lede, .scene--paper .lede, .cut .lede { color: rgba(15, 15, 15, .82); }
.svc p, .price p, .pillar p, .frame-copy p, .ticks li { color: rgba(251, 246, 234, .86); }
.viz small, .os .flow-card small, .os-top small, .os-kpis small, .os-biz small, .os-spend small { color: rgba(251, 246, 234, .66); }
.cut-steps li { color: rgba(15, 15, 15, .5); }

/* callouts reveal by scale, so the page can see them arrive */
.js .callout[data-reveal] { clip-path: none; opacity: 0; transform: scale(.94); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .callout[data-reveal].is-in { clip-path: none; opacity: 1; transform: none; }

/* ---------- the glass tap button (Prism Lattice) at the end of each page ---------- */
.tap-stage { position: relative; width: min(100%, 640px); min-height: 230px; margin: 34px auto 0; border-radius: 28px;
  -webkit-mask: radial-gradient(closest-side, #000 62%, transparent); mask: radial-gradient(closest-side, #000 62%, transparent); }
.tap-stage.gt-stage { background: transparent; }
.btn-glass { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 36px; border-radius: 999px;
  font: 400 clamp(19px, 1.5vw, 22px)/1 var(--serif); letter-spacing: -.01em; color: var(--cream); text-decoration: none; }
.btn-glass:not(.gt-box) { background: rgba(14, 10, 18, .5); border: 1px solid rgba(251, 246, 234, .2); }
.finale .after-tap { justify-content: center; margin-top: 6px; }

/* stars stay bright all the way down (Solomon, 2026-10-04); words carry their own soft shadow */
.finale--sky::after { background: none; }
.finale--sky .display, .finale--sky .move, .finale--sky .lede { text-shadow: 0 2px 24px rgba(6, 4, 9, .9), 0 0 2px rgba(6, 4, 9, .6); }
.finale--sky .lede { color: var(--cream); }
.btn-glass.gt-clear { font-weight: 400; }

/* ---------- the customer app (B2C), drawn in code ---------- */
.viz-app { display: grid; place-items: center; }
.va-phone { width: min(100%, 250px); aspect-ratio: 390 / 800; border-radius: 34px; border: 5px solid #1c181f; background: #0d0b0f; padding: 18px 12px 10px;
  display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: 9px; box-shadow: 0 40px 70px -26px rgba(0, 0, 0, .9); position: relative; overflow: hidden; }
.va-phone::before { content: ""; position: absolute; top: 7px; left: 50%; width: 64px; height: 17px; margin-left: -32px; border-radius: 99px; background: #000; }
.va-top { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; }
.va-top .os-mono { width: 22px; height: 22px; border-radius: 7px; font-size: 10.5px; }
.va-top i { margin-left: auto; font-style: normal; opacity: .6; }
.va-hello small { display: block; }
.va-hello h6 { margin: 2px 0 0; font: 300 19px/1.08 var(--serif); letter-spacing: -.02em; }
.va-card { padding: 11px; border-radius: 14px; background: var(--cream); color: var(--ink); display: grid; gap: 2px; position: relative; }
.va-card small { color: rgba(15, 15, 15, .6); font-size: 10.5px; }
.va-card b { font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.va-card span { font-size: 11px; color: rgba(15, 15, 15, .7); }
.va-card em { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 10px; padding: 3px 7px; border-radius: 99px; background: rgba(15, 15, 15, .08); }
.va-slots { display: flex; gap: 5px; }
.va-slots i { flex: 1; text-align: center; font-style: normal; font-size: 10px; padding: 6px 0; border-radius: 9px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.va-slots i.on { background: rgba(194, 204, 229, .18); border-color: rgba(194, 204, 229, .5); }
.va-rewards { align-self: start; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 6px; font-size: 10.5px; }
.va-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.va-bar i { display: block; height: 100%; width: 70%; background: linear-gradient(90deg, var(--peri), var(--rose)); border-radius: 4px; animation: grow 2.4s var(--ease) both; }
@keyframes grow { from { width: 0; } }
.va-tabs { display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .07); }
.va-tabs i { font-style: normal; font-size: 9.5px; color: rgba(251, 246, 234, .55); }
.va-tabs i.on { color: var(--cream); }
.svc--wide { grid-column: 1 / -1 !important; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.svc--wide .viz-wrap { order: 2; height: 380px; }
.svc--wide .card { padding: 28px; }
@media (max-width: 900px) { .svc--wide { grid-template-columns: 1fr; } .svc--wide .viz-wrap { order: 0; } }

/* ---------- how Portal works: the eight-part poster ---------- */
.poster-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.poster-frame { position: relative; aspect-ratio: 1080 / 1530; }
#how-it-works > .wrap, #whole-business > .wrap { position: relative; z-index: 1; }   /* the words sit above the poster, which is drawn on the whole section */
.poster-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.parts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; }
.parts li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font: 400 15px/1.5 var(--sans); color: rgba(251, 246, 234, .86); }
.parts li b { font: 400 13px/1.6 var(--mono); color: var(--cream); font-weight: 400; }
.parts li[data-name] { cursor: pointer; transition: opacity .3s, color .3s; }
.parts li[data-name]:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }
.parts.has-on li:not(.on) { opacity: .5; }
.parts li.on { color: var(--cream); }
.parts li .more { display: block; max-height: 0; overflow: hidden; opacity: 0; color: rgba(251, 246, 234, .62); transition: max-height .4s, opacity .4s, margin .4s; }
.parts li.on .more { max-height: 90px; opacity: 1; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .parts li[data-name], .parts li .more { transition: none; } }
@media (max-width: 900px) { .poster-wrap { grid-template-columns: 1fr; } .parts li { grid-template-columns: 100px 1fr; } }

/* ---------- Apple's system type for the interface (Solomon, 2026-10-04) ----------
   SF Pro comes from the visitor's own device (Apple devices); others get their system face.
   Story stays in Newsreader; the logo and timecodes stay in DM Mono. */
:root { --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
        --apple-serif: ui-serif, "New York", "Newsreader", Georgia, serif; }
.tab, .signin, .btn, .seg button, .tablist button, .chip, .try span, .svc .more, .label, .credits a, .credits h2, .price .what, .timeline .n, .sky-hint, .sheet a.big small, .sheet-foot .btn {
  font-family: var(--sans); letter-spacing: -.01em; }
.tab, .signin { font-size: 14px; font-weight: 500; }
.btn { font-size: 15px; font-weight: 500; }
.label { font-size: 13.5px; }
.credits a { font-size: 15px; }
.credits h2 { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.answer h3, .qa summary { font-family: var(--apple-serif); }
.qa summary { font-weight: 400; }

/* tall capitals (Anton) reach above their line box, so a word waiting below its mask could peek.
   Waiting words sit lower and stay invisible until they rise. */
.w > span { transform: translateY(135%); opacity: 0; transition: transform 1.1s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.is-in .w > span, .w.is-in > span { transform: none; opacity: 1; }
.hero .w > span { transition-delay: calc(.55s + var(--i) * 70ms); }
@media (prefers-reduced-motion: reduce) { .w > span { opacity: 1 !important; } }

/* the star sky gets its own open sky: the words form in the upper half, the closing words and
   button sit below them, never on top (Solomon, 2026-10-05) */
.finale--sky { min-height: 150svh; }
@media (max-width: 760px) { .finale--sky { min-height: 125svh; } }

/* =====================================================================
   Liquid glass buttons (Solomon, 2026-10-05): every button is shiny liquid glass.
   Layers: the glass body (tint + curved top highlight), a rim with a whisper of colour,
   and a light that sweeps across. Over imagery it stays clear; on paper it tints ink.
   ===================================================================== */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn {
  border: 1px solid rgba(255, 255, 255, .26);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .07));
  backdrop-filter: blur(14px) saturate(1.7); -webkit-backdrop-filter: blur(14px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(255, 255, 255, .14), inset 0 0 14px rgba(255, 255, 255, .06), 0 10px 28px -14px rgba(0, 0, 0, .7);
  color: var(--cream); text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.btn::before { /* the light that sweeps across the glass */
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, .12) 54%, transparent 66%);
  transform: translateX(-130%); animation: none;
}
.btn::after { /* a rim of bent light, a whisper of colour */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--spin), rgba(194, 204, 229, .9), rgba(241, 157, 155, .55), rgba(247, 216, 161, .6), rgba(251, 246, 234, .9), rgba(194, 204, 229, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .45; transition: opacity .4s;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { border-color: rgba(255, 255, 255, .45); background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .1)); }
.btn:hover::before { animation: glassSweep 1s var(--ease-io) 1; }
.btn:hover::after { opacity: .85; animation: rimSpin 3s linear infinite; }
@keyframes glassSweep { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes rimSpin { to { --spin: 360deg; } }

/* the one action: liquid cream glass */
.btn--act {
  color: var(--ink); text-shadow: none; border-color: rgba(255, 255, 255, .9);
  background:
    radial-gradient(110% 80% at 50% -20%, #fff, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #FFFDF8, #F4EDDF 52%, #E7DDCB);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(56, 25, 4, .12), 0 0 0 1px rgba(251, 246, 234, .25), 0 14px 36px -12px rgba(251, 246, 234, .55);
}
.btn--act::before { animation: glassSweep 1.1s var(--ease-io) 2.2s 1; background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .95) 48%, rgba(255, 255, 255, .3) 54%, transparent 66%); }
.btn--act:hover { background:
    radial-gradient(110% 80% at 50% -20%, #fff, rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, #fff, #F8F2E7 52%, #ECE3D3); }
.btn--act::after { opacity: .6; }

/* on paper (cream sections) the glass tints ink */
.scene--cream .btn, .scene--paper .btn {
  color: var(--ink); text-shadow: none; border-color: rgba(15, 15, 15, .16);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(15, 15, 15, .03) 60%, rgba(255, 255, 255, .35));
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(15, 15, 15, .06), 0 10px 26px -14px rgba(56, 25, 4, .35);
}
.scene--cream .btn--act, .scene--paper .btn--act {
  color: var(--cream); border-color: rgba(15, 15, 15, .9);
  background: radial-gradient(110% 80% at 50% -20%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #2a2530, #0F0F0F 55%, #060409);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -14px rgba(15, 15, 15, .7);
}

/* sign in: a little more flash — a turning rim of light, a glowing dot, a shine */
.signin {
  position: relative; overflow: hidden; isolation: isolate; border: 1px solid rgba(255, 255, 255, .3);
  background: radial-gradient(120% 80% at 50% -15%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 22px -6px rgba(194, 204, 229, .55);
}
.signin::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin), #C2CCE5, #F19D9B, #F7D8A1, #FBF6EA, #C2CCE5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rimSpin 4s linear infinite;
}
.signin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 64%);
  transform: translateX(-140%); animation: glassSweep 1.3s var(--ease-io) 1.5s infinite; animation-duration: 1.3s;
}
.signin i { animation: dotPulse 2.2s ease-in-out infinite; }
@keyframes dotPulse { 50% { box-shadow: 0 0 16px 3px var(--peri); } }
.signin:hover { background: radial-gradient(120% 80% at 50% -15%, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); border-color: rgba(255, 255, 255, .5); }

/* the phone menu: a glass panel under the bar, not the whole screen */
.sheet {
  inset: auto; top: calc(14px + var(--bar-h) + 10px); right: max(var(--gutter), 12px); left: auto; bottom: auto;
  width: min(330px, calc(100% - 2 * max(var(--gutter), 12px))); padding: 14px; border-radius: 26px; gap: 2px;
  background: rgba(14, 10, 18, .72); border: 1px solid rgba(251, 246, 234, .16);
  backdrop-filter: blur(30px) saturate(1.3); -webkit-backdrop-filter: blur(30px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 80px -20px rgba(0, 0, 0, .8);
  transform-origin: top right; transform: translateY(-8px) scale(.96);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
html.menu-open .sheet { transform: none; }
.sheet a.big { font-size: 26px; line-height: 1; padding: 12px 10px; border-radius: 14px; transition: background .25s, transform .6s var(--ease), opacity .6s; }
.sheet a.big:hover, .sheet a.big:focus-visible { background: rgba(251, 246, 234, .07); }
.sheet .sheet-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sheet .sheet-foot .btn { flex: 1; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .signin::before, .signin::after, .signin i, .btn::before, .btn::after { animation: none !important; } }

/* ---------- legal pages: the short version up top, then the full text beside a contents list ---------- */
.legal-head { position: relative; padding: 170px 0 56px; overflow: hidden; isolation: isolate; }
.legal-head .display { max-width: 16ch; }
.legal-head .lede { margin-top: 22px; max-width: 54ch; }
.legal-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 400 13px var(--sans); color: var(--faint); }
.short { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 clamp(56px, 7vw, 90px); }
.short .glass { padding: 20px 20px 22px; border-radius: 20px; display: grid; gap: 8px; align-content: start; }
.short b { font: 500 16px/1.3 var(--sans); color: var(--cream); }
.short span { font: 400 14.5px/1.55 var(--sans); color: rgba(251, 246, 234, .82); }
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-bottom: 140px; }
.toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; }
.toc p { margin: 0 0 10px; font: 600 12px var(--sans); color: var(--faint); letter-spacing: .02em; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 8px; border-radius: 10px; font: 400 13.5px/1.35 var(--sans); color: var(--muted); transition: background .25s, color .25s; }
.toc a::before { counter-increment: t; content: counter(t, decimal-leading-zero); font: 400 11px/1.7 var(--mono); color: var(--faint); }
.toc a:hover, .toc a.on { background: rgba(251, 246, 234, .07); color: var(--cream); }
.legal article > section { padding: 34px 0 30px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.legal article > section:first-child { border-top: 0; padding-top: 0; }
.legal h2 { margin: 0 0 16px; font: 300 clamp(26px, 2.6vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; display: flex; gap: 14px; align-items: baseline; }
.legal h2 small { font: 400 12px var(--mono); color: var(--faint); }
.legal h3 { margin: 24px 0 8px; font: 600 16.5px/1.35 var(--sans); color: var(--cream); letter-spacing: -.01em; }
.legal p, .legal li, .legal td, .legal th { font: 400 16px/1.72 var(--sans); color: rgba(251, 246, 234, .86); }
.legal p { margin: 0 0 14px; max-width: 72ch; }
.legal ul { margin: 0 0 14px; padding-left: 1.15em; max-width: 72ch; }
.legal li { margin: 5px 0; }
.legal li::marker { color: var(--peri); }
.legal strong { color: var(--cream); font-weight: 600; }
.legal a { color: var(--peri); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal .box { margin: 6px 0 18px; padding: 16px 20px; border-radius: 16px; background: rgba(194, 204, 229, .07); border: 1px solid rgba(194, 204, 229, .24); max-width: 72ch; }
.legal .box p:last-child { margin-bottom: 0; }
.legal table { width: 100%; max-width: 72ch; border-collapse: collapse; margin: 6px 0 18px; }
.legal th { text-align: left; font-weight: 600; color: var(--cream); font-size: 14px; }
.legal th, .legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 16px; border-radius: 20px; background: rgba(14, 10, 18, .5); border: 1px solid var(--line); }
  .legal-head { padding-top: 130px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; } .legal td { border: 0; padding: 2px 0; } .legal tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
}
/* tall capitals reach below their line; give the sentence under them room */
.finale .move { line-height: .98; }
.finale .move + .lede { margin-top: clamp(34px, 3.4vw, 52px); }
/* the headline arrives sooner: it is the largest thing on the first screen */
.hero .w > span { transition-delay: calc(.2s + var(--i) * 55ms); }

/* ---------- built to be found (services: SEO from the audit to the monthly check) ---------- */
.found { background: radial-gradient(70% 50% at 85% 0%, rgba(194, 204, 229, .10), transparent 60%), var(--night); }
.found .label { color: var(--peri); margin-bottom: 14px; }
.found-flow { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.found-step { position: relative; padding: 24px 22px 26px; border-radius: 22px; background: rgba(251, 246, 234, .035); border: 1px solid var(--line); display: grid; align-content: start; gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: border-color .5s var(--ease), background .5s var(--ease); }
.found-step:hover { border-color: var(--line-strong); background: rgba(251, 246, 234, .055); }
.found-step:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -14px; width: 14px; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.found-step .n { font: 400 12px/1 var(--mono); color: var(--peri); }
.found-step h3 { font: 500 clamp(20px, 1.6vw, 24px)/1.2 var(--sans); letter-spacing: -.015em; margin: 8px 0 0; color: var(--cream); }
.found-step .sub { font: 400 12.5px/1.4 var(--mono); color: var(--faint); margin: 0 0 10px; }
.found-step ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.found-step li { position: relative; padding-left: 20px; font: 400 15px/1.5 var(--sans); color: rgba(251, 246, 234, .84); }
.found-step li::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; background: var(--peri);
  -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; }
.found-note { margin: 26px 0 0; font: 400 14px/1.5 var(--sans); color: var(--muted); }
.found-flow[data-reveal] .found-step { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .5s, background .5s; }
.found-flow.is-in .found-step { opacity: 1; transform: none; }
.found-flow.is-in .found-step:nth-child(2) { transition-delay: .1s; }
.found-flow.is-in .found-step:nth-child(3) { transition-delay: .2s; }
.found-flow.is-in .found-step:nth-child(4) { transition-delay: .3s; }
@media (max-width: 1100px) { .found-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .found-step::after { display: none; } }
@media (max-width: 620px) { .found-flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .found-flow[data-reveal] .found-step { opacity: 1; transform: none; transition: none; } }

/* ---------- complete at rest (Solomon, 2026-10-09) ----------
   No scene waits for the scroll to open it. The footage, the front and back,
   the demo devices and the timeline are laid out whole; at most they fade in once. */
.aperture { height: auto; }
.aperture-stick { position: relative; height: auto; min-height: min(88svh, 860px); padding-block: clamp(90px, 12vw, 160px); }
.aperture-frame { clip-path: none; }
.aperture-frame video, .aperture-frame img { transform: none; }
.aperture-copy > * { opacity: 1; transform: none; }
.cut { height: auto; }
.cut-stick { position: relative; height: auto; padding-block: clamp(90px, 10vw, 140px); }
.cut-steps li { color: var(--ink); }
.cut .flow-card { opacity: 1; transform: none; }
.cut-stage { height: min(64vh, 600px); }
.cut .layer--back { inset: 0 0 0 18%; }
.cut .layer--front { inset: auto auto -5% 0; width: 46%; height: 58%; transform: none; opacity: 1; border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(15, 15, 15, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
.cut .layer--front::after { display: none; }
.cut .layer--front .site-ui { padding: 16px 18px; }
.cut .layer--front .site-ui h4 { font-size: clamp(20px, 2.1vw, 30px); margin-bottom: 10px; }
.device { --tilt: 0; transform: none; }
.timeline .rail { transform: none; }
@media (max-width: 860px) {
  .cut-stage { height: auto; }
  .cut .layer--back, .cut .layer--front { inset: auto; width: auto; }
  .cut .layer--front { height: 300px; }
}

/* ---------- the business types: a slim band that divides the page ---------- */
.scene.band { padding-block: 0; }
.band .marquee { padding: 15px 0; border-block: 1px solid rgba(251, 246, 234, .16);
  background: linear-gradient(90deg, rgba(194, 204, 229, .06), rgba(247, 216, 161, .07) 50%, rgba(241, 157, 155, .06)); }
.band .marquee-track { gap: 34px; }
.band .marquee-track span { font-size: clamp(20px, 2vw, 28px); gap: 34px; }
.band .marquee-track span::after { width: 11px; height: 11px; }

/* ---------- Image Glass on the site (2026-10-09): a real place behind, glass on top, Portal's light
   at two corners. Rules and the full set live in the Portal Design System (Image Glass). ---------- */
.ig { --g1: rgba(194, 204, 229, .5); --g2: rgba(241, 157, 155, .4); position: relative; isolation: isolate; overflow: hidden; color: var(--cream);
  padding-block: clamp(90px, 11vw, 150px); background: var(--night); }
.ig-photo { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; }
.ig::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(42% 40% at 92% 6%, var(--g1), transparent 66%), radial-gradient(40% 42% at 4% 96%, var(--g2), transparent 66%); }
.ig::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 4, 9, .72), rgba(6, 4, 9, .3) 34%, rgba(6, 4, 9, .22) 70%, rgba(6, 4, 9, .82)); }
.ig .title, .ig .lede { color: var(--cream); text-shadow: 0 2px 26px rgba(0, 0, 0, .45); }
.ig .lede { margin-top: 18px; max-width: 46ch; }
.ig-kicker { color: var(--peri); margin-bottom: 16px; }
.ig-glass { position: relative; border-radius: 22px; background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 30px 70px -30px rgba(0, 0, 0, .65); }
.ig-glass.rim::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none;
  background: var(--rim, linear-gradient(135deg, var(--peri), rgba(251, 246, 234, .9)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.rim-peri { --rim: linear-gradient(135deg, var(--peri), rgba(194, 204, 229, .25) 55%, var(--peri)); }
.rim-butter { --rim: linear-gradient(135deg, var(--butter), rgba(247, 216, 161, .2) 55%, var(--butter)); }
.rim-rose { --rim: linear-gradient(135deg, var(--rose), rgba(241, 157, 155, .2) 55%, var(--rose)); }
.rim-mauve { --rim: linear-gradient(135deg, var(--mauve-text), rgba(167, 151, 171, .2) 55%, var(--peri)); }

/* the diagram: stages joined by a line of brand light, each with what comes out of it */
.map { --n: 3; list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.map::before { content: ""; position: absolute; top: 13px; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); height: 2px;
  background: linear-gradient(90deg, var(--peri), var(--butter), var(--rose)); box-shadow: 0 0 14px rgba(247, 216, 161, .55); }
.map > li { position: relative; padding-top: 46px; display: grid; gap: 14px; align-content: start; }
.map > li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: var(--cream);
  -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(194, 204, 229, .9)); }
.map .node { padding: 22px; display: grid; gap: 10px; }
.map .n { font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--peri); }
.map h3 { margin: 0; font: 400 clamp(24px, 2.2vw, 30px)/1.15 var(--serif); letter-spacing: -.01em; }
.map .node p { margin: 0; font: 400 15.5px/1.55 var(--sans); color: rgba(251, 246, 234, .86); }
.map .outs { list-style: none; margin: 0 0 0 22px; padding: 0 0 0 18px; display: grid; gap: 8px; justify-items: start; border-left: 1px solid rgba(251, 246, 234, .32); }
.map .outs li { position: relative; font: 400 13px/1.3 var(--mono); padding: 8px 12px; border-radius: 999px; color: var(--cream);
  background: rgba(6, 4, 9, .4); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.map .outs li::before { content: ""; position: absolute; left: -19px; top: 50%; width: 18px; height: 1px; background: rgba(251, 246, 234, .32); }
.map .outs li.piece { background: rgba(251, 246, 234, .92); color: var(--ink); border-color: transparent; }
@media (max-width: 900px) {
  .map { grid-template-columns: minmax(0, 1fr); }
  .map::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--peri), var(--butter), var(--rose)); }
  .map > li { padding-top: 0; padding-left: 38px; }
  .map > li::before { top: 22px; left: 0; margin-left: 0; }
}

/* the calmer-home mock wears Image Glass: Solomon's forest lake behind, glass controls on top */
.site-ui .site-nav { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-ui .fake-form span { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); color: rgba(251, 246, 234, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

