/* AliensMinds · cinematic dark. Thin tracked geometric type, one glowing orb, letterbox bars. */
:root {
  color-scheme: dark;
  --bg: #02050b; --bg-2: #060b16;
  --panel: rgba(120, 170, 220, .04); --panel-2: rgba(120, 170, 220, .09);
  --line: rgba(140, 190, 235, .14); --line-2: rgba(140, 190, 235, .28);
  --text: #b6cbd2; --muted: #7d949e; --title: #9dbdc6;
  --ink: #02050b; --blue: #3d8bff; --violet: #5b4ae6; --violet-l: #8b7dff; --mint: #4ce0bc; --err: #ff9b92;
  --wrap: 1180px; --gut: clamp(20px, 4vw, 44px); --bar: clamp(46px, 8vh, 76px);
  --f-head: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', ui-sans-serif, system-ui, sans-serif;
  --f-mono: var(--f-head);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 20px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; padding-bottom: var(--bar); font: 300 1.0625rem/1.7 var(--f-body); letter-spacing: .02em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: #8fc0ff; }
:focus-visible { outline: 1px solid var(--mint); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 300; margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
code { font: .88em ui-monospace, Menlo, Consolas, monospace; background: rgba(255, 255, 255, .08); padding: .1em .4em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--ink); font-weight: 500; padding: 10px 16px; }
.skip:focus { top: 12px; color: var(--ink); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Backdrop, orb canvas, letterbox bars */
#scene { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; display: block; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
#scene[data-ready] { opacity: 1; }
.no-webgl #scene { display: none; }
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 52%, rgba(30, 90, 170, .30), transparent 70%), radial-gradient(90% 60% at 50% 100%, rgba(10, 40, 90, .35), transparent 70%), var(--bg); }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(110% 90% at 50% 50%, transparent 55%, rgba(0, 2, 6, .8)); }
.bar { position: fixed; left: 0; right: 0; z-index: 45; height: var(--bar); background: #000; pointer-events: none; }
.bar--t { top: 0; } .bar--b { bottom: 0; }
main, .site-footer { position: relative; z-index: 3; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 30px; font: 400 .8125rem/1 var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--title); border: 1px solid var(--line-2); border-radius: 0; background: rgba(61, 139, 255, .06); text-decoration: none; cursor: pointer; transition: border-color .25s, background .25s, color .25s, box-shadow .25s; }
.btn:hover { color: #fff; border-color: var(--blue); background: rgba(61, 139, 255, .16); box-shadow: 0 0 32px rgba(61, 139, 255, .35); }
.btn--sm { min-height: 40px; padding: 0 18px; }
.btn--primary { border-color: rgba(76, 224, 188, .5); }
.btn--primary:hover { border-color: var(--mint); box-shadow: 0 0 32px rgba(76, 224, 188, .3); }
.btn__ext { width: 14px; height: 14px; margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.linklike { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.linklike:hover { color: #fff; text-decoration: underline; }

/* Header (sits in the top bar) */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--bar); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--title); flex: none; }
.logo:hover { color: #fff; }
.logo img { width: 24px; height: auto; }
.logo__name { font: 300 .8125rem/1 var(--f-head); letter-spacing: .4em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; flex: 1; }
.site-nav__list { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; transition: opacity .4s; }
.site-nav__link { display: inline-block; padding: 10px 14px; color: var(--muted); text-decoration: none; font: 300 .75rem/1 var(--f-head); letter-spacing: .3em; text-transform: uppercase; }
.site-nav__link:hover, .site-nav__link[aria-current="true"] { color: #fff; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--title); font: 300 .75rem/1 var(--f-head); letter-spacing: .3em; text-transform: uppercase; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 16px; height: 1px; background: currentColor; position: relative; transition: transform .2s var(--ease), background .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; } .nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 819px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 8px var(--gut) 24px; background: rgba(0, 3, 8, .97); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; margin: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__link { display: block; padding: 18px 4px; font-size: .8125rem; }
}

/* Type */
.eyebrow { display: block; font: 300 .75rem/1.4 var(--f-head); letter-spacing: .34em; text-transform: uppercase; color: var(--mint); margin-bottom: 22px; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.7; color: var(--muted); max-width: 58ch; }
.lede.center { margin-inline: auto; text-align: center; }
.grad { color: var(--mint); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { background: linear-gradient(95deg, var(--mint), var(--violet-l) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}

/* Single-screen app mode: every panel fills the space between the bars. Without JS they simply stack. */
html.app, html.app body { height: 100%; overflow: hidden; }
html.app body { padding-bottom: 0; }
html.app main { position: fixed; top: var(--bar); bottom: var(--bar); left: 0; right: 0; z-index: 3; }
.panel { position: relative; padding: calc(var(--bar) + 24px) 0 calc(var(--bar) + 24px); }
.panel__in { width: 100%; }
html.app .panel { position: absolute; inset: 0; padding: clamp(10px, 2vh, 28px) 0; display: flex; align-items: center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility 0s linear .55s; scrollbar-width: none; }
html.app .panel::-webkit-scrollbar { display: none; }
html.app .panel.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
html.app .panel__in { margin: auto; }
@media (prefers-reduced-motion: no-preference) {
  html.app .panel [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  html.app .panel.is-active [data-reveal] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 180ms); }
  @keyframes rise { to { opacity: 1; transform: none; filter: none; } }
}
@media (prefers-reduced-motion: reduce) { html.app .panel { transition: none; } }

/* Orb anchor: the 3D orb is drawn into this box; the fallback shows when WebGL is unavailable */
.orb-anchor { width: 100%; position: relative; display: grid; place-items: center; }
.orb-fallback { display: none; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(61, 139, 255, .35), rgba(20, 60, 140, .15) 55%, transparent 70%); box-shadow: 0 0 80px rgba(61, 139, 255, .35) inset, 0 0 60px rgba(61, 139, 255, .25); }
.orb-fallback img { width: 34%; height: auto; filter: drop-shadow(0 0 24px rgba(76, 224, 188, .6)); }
.no-webgl .orb-fallback { display: grid; }

/* Home */
.hero { text-align: center; }
.hero .panel__in { display: flex; flex-direction: column; align-items: center; height: 100%; max-height: 860px; }
.hero .orb-anchor { flex: 1 1 auto; min-height: 150px; margin-bottom: clamp(4px, 1.5vh, 16px); }
.hero__title { font: 300 clamp(.95rem, .2rem + 3.3vw, 3.5rem)/1 var(--f-head); letter-spacing: .85em; margin: 0; padding-left: .85em; text-transform: uppercase; color: var(--title); text-shadow: 0 0 40px rgba(70, 150, 255, .45), 0 0 6px rgba(0, 0, 0, .8); }
.hero__title:focus { outline: none; }
.hero__sub { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.4em; margin: clamp(.9em, 2.4vh, 1.8em) 0 0; font: 300 clamp(.58rem, .45rem + .55vw, .9rem)/1.4 var(--f-head); letter-spacing: .5em; text-transform: uppercase; color: #9fb8c1; text-shadow: 0 0 14px #000, 0 0 3px #000; }
.hero__sub i { font-style: normal; opacity: .6; }
.hero__verb { margin: clamp(.7em, 1.8vh, 1.4em) 0 0; font: 300 clamp(.85rem, .75rem + .4vw, 1.1rem)/1.3 var(--f-head); letter-spacing: .18em; color: #c4d8de; text-shadow: 0 0 14px #000; }
.rot { display: inline-block; min-width: 5.2em; text-align: left; }
.rot__word { display: inline-block; transition: opacity .38s var(--ease), transform .38s var(--ease), filter .38s var(--ease); }
.rot__word.is-out { opacity: 0; transform: translateY(.3em); filter: blur(8px); }
.hero__nav { margin-top: clamp(14px, 3.4vh, 40px); }
.hero__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(24px, 6vw, 96px); list-style: none; margin: 0; padding: 0; }
.hero__nav a { display: inline-block; padding: 10px 6px; font: 300 clamp(.68rem, .6rem + .3vw, .85rem)/1 var(--f-head); letter-spacing: .4em; text-transform: uppercase; color: #a9c2cb; text-shadow: 0 0 14px #000, 0 0 3px #000; text-decoration: none; transition: color .25s, text-shadow .25s; }
.hero__nav a:hover, .hero__nav a:focus-visible { color: #fff; text-shadow: 0 0 18px rgba(120, 190, 255, .85); }

/* Panel titles: a huge ghost word with the real heading set small and tracked over it */
.stitle { position: relative; text-align: center; margin: 0 auto clamp(8px, 2vh, 24px); padding: clamp(20px, 4.5vh, 54px) 0; }
.stitle__ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; font: 300 clamp(2.6rem, 1rem + 9vw, 9rem)/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: rgba(150, 190, 220, .07); white-space: nowrap; pointer-events: none; user-select: none; overflow: hidden; }
.stitle__h { position: relative; margin: 0 auto; max-width: 34ch; font: 300 clamp(.78rem, .65rem + .5vw, 1.05rem)/1.9 var(--f-head); letter-spacing: .5em; text-transform: uppercase; color: var(--title); }
@media (max-width: 640px) { .stitle__h { letter-spacing: .28em; } .stitle__ghost { letter-spacing: .06em; } }
.lede { font-size: clamp(.95rem, .9rem + .25vw, 1.12rem); line-height: 1.7; color: var(--muted); max-width: 58ch; }
.lede.center { margin-inline: auto; text-align: center; }

/* Capability tiles */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; list-style: none; margin: clamp(12px, 2.6vh, 32px) 0 0; padding: 0; border: 1px solid var(--line); background: var(--line); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; padding: clamp(14px, 2.6vh, 30px) clamp(16px, 1.8vw, 28px); background: rgba(2, 6, 14, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; isolation: isolate; }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(61, 139, 255, .22), transparent 60%); }
.card:hover::before { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(8px, 2vh, 24px); }
.card__ic { color: var(--blue); }
.card__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.card__n { font: 300 .72rem/1 var(--f-head); letter-spacing: .3em; color: var(--muted); }
.h3 { font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--title); margin-bottom: .6em; line-height: 1.6; }
.card p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-bottom: .6em; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: auto 0 0; }
.tags li { font: 300 .64rem/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
@media (min-width: 901px) and (max-height: 780px) { .tags, .cap-lede { display: none; } .card p { font-size: .85rem; } }

/* Approach */
.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: clamp(4px, 2vh, 24px); }
@media (max-width: 860px) { .approach { grid-template-columns: 1fr; } }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: clamp(12px, 2.4vh, 26px) 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font: 300 .78rem/2.2 var(--f-head); color: var(--blue); letter-spacing: .3em; }
.principles h3 { margin: 0; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: var(--title); }
.principles p { margin: 0; color: var(--muted); font-size: .92rem; }
.steps { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: clamp(10px, 2.2vh, 22px); }
.steps::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--blue), rgba(139, 125, 255, .25)); }
.steps li { position: relative; padding-top: 2px; }
.steps li::after { content: ''; position: absolute; top: 5px; left: -30px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--blue); box-shadow: 0 0 14px rgba(61, 139, 255, .8); }
.steps h3 { font-size: .82rem; margin: 0 0 3px; letter-spacing: .26em; text-transform: uppercase; color: var(--title); display: inline; }
.steps .n { display: inline; font: 300 .72rem/1 var(--f-head); letter-spacing: .3em; color: var(--blue); margin-right: 12px; }
.steps p { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
@media (max-height: 760px) and (min-width: 861px) { .principles p, .steps p { font-size: .84rem; line-height: 1.45; } }

/* SignzWare: proudly produced */
.sz__grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: center; height: 100%; max-height: 720px; }
.sz__grid .orb-anchor { height: 100%; min-height: 220px; }
.sz__card { padding: clamp(20px, 3.4vh, 40px) clamp(22px, 3vw, 40px); border: 1px solid var(--line-2); background: rgba(2, 6, 14, .74); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 80px rgba(30, 90, 190, .18); }
.sz__logo { margin: clamp(12px, 2.4vh, 24px) 0 clamp(14px, 2.6vh, 26px); }
.sz__logo img { width: min(100%, 320px); height: auto; }
.sz__word { font: 500 clamp(1.6rem, 1rem + 2.4vw, 2.6rem)/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; background: linear-gradient(90deg, var(--mint), var(--violet-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sz__h { font: 300 clamp(.9rem, .8rem + .5vw, 1.2rem)/1.7 var(--f-head); letter-spacing: .24em; text-transform: uppercase; color: var(--title); margin: 0 0 1em; }
.sz .actions { margin-top: 22px; }
@media (max-width: 860px) { .sz__grid { grid-template-columns: 1fr; height: auto; } .sz__grid .orb-anchor { order: -1; height: 34vh; } }
@media (max-width: 860px) { .hero .orb-anchor { min-height: 34vh; } }

/* Cookie notice */
.cookie { position: fixed; z-index: 70; right: 20px; bottom: calc(var(--bar) + 14px); width: min(420px, calc(100% - 40px)); padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 0; background: rgba(2, 6, 14, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); font-size: .9375rem; line-height: 1.5; color: var(--text); opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie__h { font: 400 .8rem/1.3 var(--f-head); letter-spacing: .3em; text-transform: uppercase; margin: 0 0 6px; color: #fff; }
.cookie p { margin: 0; color: var(--muted); }
.cookie a, .cookie .linklike { color: var(--blue); text-decoration: underline; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 520px) { .cookie { left: 12px; right: 12px; bottom: calc(var(--bar) + 10px); width: auto; } .cookie__btns .btn { flex: 1; } }
@media (min-width: 900px) {
  .cookie { left: 0; right: 0; bottom: 0; width: auto; height: var(--bar); display: flex; align-items: center; justify-content: center; gap: 12px 28px; padding: 0 var(--gut); border: 0; border-top: 1px solid var(--line-2); background: #000; box-shadow: none; font-size: .76rem; line-height: 1.4; letter-spacing: .03em; transform: none; }
  .cookie__h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .cookie p { max-width: 900px; }
  .cookie__btns { margin: 0; flex: none; flex-wrap: nowrap; }
  .cookie .btn { min-height: 34px; padding: 0 16px; letter-spacing: .22em; font-size: .7rem; }
}
html.cookie-open .site-footer { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; transform: none; } }

/* Page head (legal) */
.phead { padding: calc(var(--bar) + 80px) 0 24px; }
.h1 { font: 300 clamp(1.4rem, .8rem + 3vw, 3rem)/1.3 var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--title); margin-bottom: .6em; }
.h1:focus { outline: none; }
.prose h2, .prose h3 { font-size: 1rem; letter-spacing: .24em; text-transform: uppercase; color: var(--title); margin-top: 2em; }
.prose { max-width: 70ch; }

/* Footer: lives inside the bottom bar */
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; height: var(--bar); display: flex; align-items: center; font-size: .78rem; color: var(--muted); letter-spacing: .08em; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer__copy { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.site-footer a, .site-footer .linklike { color: var(--text); text-decoration: none; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: none; }
@media (max-width: 560px) { .footer__row { justify-content: center; text-align: center; } .footer__copy { display: none; } }

/* Preview-only chrome */
/*PB*/.preview-bar { position: fixed; top: var(--bar); left: 0; z-index: 44; max-width: 100%; background: rgba(0,0,0,.72); color: #9fb0c8; font-size: .68rem; pointer-events: none; }
.preview-bar .wrap { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: center; padding: 4px 12px; max-width: none; }
.preview-bar strong { color: var(--mint); font-weight: 600; }
.preview-bar ul { display: contents; list-style: none; }
.preview-bar li::before { content: '○ '; color: #f0c46b; } .preview-bar li.ok::before { content: '● '; color: var(--mint); }
dialog.sheet { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 0; background: var(--bg-2); color: var(--text); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .7); }
.sheet__in { padding: clamp(24px, 4vw, 40px); }
.sheet__close { float: right; margin: -8px -8px 0 16px; }
.draft-note { margin: 20px 0; padding: 14px 16px; border: 1px dashed rgba(240, 196, 107, .5); background: rgba(240, 196, 107, .07); border-radius: 12px; font-size: .9rem; color: #f3dba6; }
.draft-note ul { margin: 8px 0 0; padding-left: 20px; }

@media (prefers-reduced-motion: reduce) { .rot__word, .card, .btn, #scene { transition: none; } }
@media print { #scene, .backdrop, .vignette, .bar, .site-header, .hero__nav, .site-footer { display: none; } body { background: #fff; color: #000; } }

/* Notices (legal pages / preview) */
.notice { margin: 0 0 20px; padding: 14px 16px; border: 1px solid rgba(240, 196, 107, .5); background: rgba(240, 196, 107, .08); border-radius: 0; color: #f3dba6; font-size: .9375rem; }
.notice a { color: #f3dba6; }

/* ── Glass surfaces (sub-pages) ── translucent frosted panels over the animated background, and a slightly smaller type scale */
:root { --glass: linear-gradient(150deg, rgba(160, 200, 255, .12), rgba(90, 130, 220, .05) 60%, rgba(160, 120, 255, .06)), rgba(3, 8, 20, .5); --glass-line: rgba(190, 220, 255, .17); --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .02), 0 12px 40px rgba(0, 4, 16, .4); --r: 18px; }
.cards, .principles, .steps { gap: clamp(10px, 1.6vh, 16px); }
.cards { border: 0; background: none; }
.card, .principles li, .steps li, .sz__card, .prose, dialog.sheet {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.card::before { border-radius: inherit; }
.card { transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.card:hover, .principles li:hover, .steps li:hover { border-color: rgba(150, 200, 255, .38); box-shadow: var(--glass-shadow), 0 0 40px rgba(61, 139, 255, .16); }
.card:hover { transform: translateY(-2px); }
.principles li { border-top: 1px solid var(--glass-line); padding: clamp(10px, 1.8vh, 18px) clamp(14px, 1.6vw, 22px); transition: border-color .3s, box-shadow .3s; }
.principles li:last-child { border-bottom: 1px solid var(--glass-line); }
.steps li { padding: clamp(8px, 1.5vh, 14px) clamp(14px, 1.6vw, 20px); transition: border-color .3s, box-shadow .3s; }
.steps li::after { left: -30px; top: 50%; margin-top: -6px; }
.steps::before { top: 14px; bottom: 14px; }
.sz__card { padding: clamp(22px, 3.6vh, 42px) clamp(22px, 3vw, 42px); box-shadow: var(--glass-shadow), 0 0 90px rgba(30, 90, 190, .2); }
.btn { border-radius: 999px; }
.draft-note, .notice { border-radius: 14px; }

/* smaller type on the sub-pages */
.stitle__h { font-size: clamp(.7rem, .6rem + .4vw, .92rem); }
.lede { font-size: clamp(.88rem, .84rem + .2vw, 1rem); }
.card p { font-size: .84rem; }
.h3 { font-size: .74rem; }
.card__n { font-size: .66rem; }
.tags li { font-size: .58rem; }
.principles h3 { font-size: .78rem; } .principles p { font-size: .85rem; }
.principles li::before { font-size: .72rem; }
.steps h3 { font-size: .76rem; } .steps .n { font-size: .66rem; } .steps p { font-size: .84rem; }
.sz__h { font-size: clamp(.8rem, .74rem + .4vw, 1.02rem); }
@media (min-width: 901px) and (max-height: 780px) { .card p { font-size: .8rem; } }
@media (max-height: 760px) and (min-width: 861px) { .principles p, .steps p { font-size: .8rem; } }

/* legal pages and the preview dialog */
.prose { max-width: 78ch; padding: clamp(20px, 3.4vw, 40px); font-size: .9rem; line-height: 1.7; }
.prose h2, .prose h3 { font-size: .8rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
dialog.sheet { font-size: .9rem; line-height: 1.7; }
dialog.sheet h2 { font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--title); margin: 1.6em 0 .5em; }
dialog.sheet article > h2:first-child { margin-top: 0; font-size: 1.05rem; }
dialog.sheet::backdrop { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.h1 { font-size: clamp(1.2rem, .8rem + 1.6vw, 1.9rem); }
@media (max-width: 640px) { :root { --r: 14px; } }
