/* arborepruina.com + apred.ca
   Brand: Arbore Pruina manual (orange #e0592a, Neutral Black #222, Black 7C #3d3935, Montserrat)
   and the APRed manual (same palette + red #c32e26). Layout: full-screen snapping panels. */

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-ext.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #e0592a;          /* Pantone 7579 C */
  --orange-deep: #c44a1f;     /* text-safe orange: 4.83:1 with white */
  --orange-deeper: #b03f17;
  --orange-on-dark: #e8734a;  /* orange text on ink: 5.29:1 */
  --red: #c32e26;             /* Pantone P 49-7 U (APRed): 5.6:1 with white */
  --red-deep: #a3241d;
  --ink: #222222;             /* Pantone Neutral Black C */
  --ink-7c: #3d3935;          /* Pantone Black 7 C */
  --ink-deep: #161514;
  --muted: #5a534c;
  --line: #e6e2dd;
  --mist: #f4f2ef;
  --paper: #ffffff;
  --vesk: #313131;
  --vesk-fg: #f7f8f6;

  --drench: var(--orange);
  --primary: var(--orange-deep);
  --primary-hover: var(--orange-deeper);
  --accent-on-dark: var(--orange-on-dark);

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 6px;
}
[data-site='apred'] {
  --drench: var(--red);
  --primary: var(--red);
  --primary-hover: var(--red-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
html.page--home { scroll-snap-type: y mandatory; }
html.is-locked { overflow: hidden; }
body { margin: 0; min-height: 100vh; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }

[hidden] { display: none !important; }
.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(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; font-size: .875rem; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
[data-theme='dark'] :focus-visible, [data-theme='brand'] :focus-visible, .nav :focus-visible { outline-color: currentColor; }

/* ─────────────────────────────────────────── type */
.eyebrow {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-soft);
}
.eyebrow__num { color: var(--fg-accent); font-variant-numeric: tabular-nums; }
.eyebrow__num::after { content: ''; display: inline-block; width: 22px; height: 1px; margin-left: 10px; vertical-align: middle; background: currentColor; opacity: .6; }
.eyebrow--lg { font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--fg); }
.display {
  font-weight: 600; font-size: clamp(2rem, 1.15rem + 3.5vw, 3.9rem); line-height: 1.07; letter-spacing: -.02em;
  max-width: 17ch; margin-inline: auto; text-wrap: balance;
}
.title {
  font-weight: 600; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -.015em;
  max-width: 22ch; margin-inline: auto; text-wrap: balance;
}
.title--xl { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); max-width: 20ch; }
.lede {
  font-size: clamp(1rem, .93rem + .35vw, 1.1875rem); font-weight: 500; line-height: 1.55;
  max-width: 48ch; margin-inline: auto; color: var(--fg-soft); text-wrap: pretty;
}
.lede strong { color: var(--fg); }
.lede--strong { font-size: 1.25rem; font-weight: 700; color: var(--fg); }
.panel__head > * + * { margin-top: 14px; }
.panel__head > .eyebrow + .display, .panel__head > .eyebrow + .title { margin-top: 16px; }

.label-block { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; font-size: .8125rem; letter-spacing: .08em; line-height: 1.15; text-align: left; color: var(--fg-soft); }
.label-block span:last-child { display: flex; flex-direction: column; font-weight: 400; }
.label-block b { font-weight: 700; color: var(--fg); }
.label-block__bar { width: 44px; height: 26px; background: var(--drench); flex: none; }

.link {
  display: inline; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; color: inherit; transition: text-decoration-thickness .2s, text-underline-offset .2s;
}
.link:hover { text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ─────────────────────────────────────────── buttons (Tesla proportions, brand colors) */
.btns { display: flex; justify-content: center; gap: 16px 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 248px; min-height: 44px; padding: 10px 26px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: rgba(244, 244, 244, .92); color: #171615; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--secondary:hover { background: #fff; }
[data-theme='light'] .btn--secondary { background: #efedea; }
[data-theme='light'] .btn--secondary:hover { background: #e4e1dc; }
.panel--uninova .btn--secondary { background: #fff; box-shadow: inset 0 0 0 1px #d6d1cb; }
.panel--uninova .btn--secondary:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
[data-theme='brand'] .btn--primary { background: #fff; color: var(--ink); }
[data-theme='brand'] .btn--primary:hover { background: #f1efec; }
[data-theme='brand'] .btn--secondary { background: var(--ink); color: #fff; backdrop-filter: none; }
[data-theme='brand'] .btn--secondary:hover { background: #000; }
.btn--block { width: 100%; }

/* ─────────────────────────────────────────── nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  color: var(--nav-fg);
  --nav-fg: #fff; --nav-pill: rgba(255, 255, 255, .14);
  --logo-ink: #fff; --logo-acc: #fff; --logo-arc: #fff;
  transition: color .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
[data-site='apred'] .nav { --logo-acc: var(--orange); --logo-arc: var(--red); }
html[data-nav='brand'] .nav { --logo-acc: #fff; --logo-arc: #fff; }
html[data-nav='light'] .nav { --nav-fg: #171615; --nav-pill: rgba(23, 22, 21, .07); --logo-ink: var(--ink); --logo-acc: var(--orange); --logo-arc: var(--red); }
html.page--doc .nav { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.logo { height: auto; width: 142px; overflow: visible; }  /* manual minimum for digital: 142px wide */
.logo path { transition: fill .45s var(--ease); }
.logo .ink { fill: var(--logo-ink); }
.logo .acc { fill: var(--logo-acc); }
.logo .arc { fill: var(--logo-arc); }
.nav__logo { display: block; flex: none; border-radius: 4px; }
.nav__logo .logo { width: 148px; }
[data-site='apred'] .nav__logo .logo { width: 142px; margin-top: 6px; }
.nav__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nav__links { display: flex; gap: 2px; position: relative; z-index: 1; }
.nav__links a, .nav__cta, .nav__menu, .nav__lang {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; letter-spacing: .005em;
  transition: background-color .3s var(--ease);
}
.nav__pill {
  position: absolute; left: 0; top: 0; height: 34px; width: 0; border-radius: var(--radius); background: var(--nav-pill);
  opacity: 0; pointer-events: none; transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s var(--ease), background-color .45s;
}
.nav__right { display: flex; align-items: center; gap: 4px; }
.nav__lang:hover, .nav__cta:hover, .nav__menu:hover { background: var(--nav-pill); }
.nav__cta { box-shadow: inset 0 0 0 1.5px currentColor; margin-left: 6px; }
.nav__menu { display: none; background: var(--nav-pill); }
@media (max-width: 1180px) {
  .nav__center, .nav__cta, .nav__lang { display: none; }
  .nav__menu { display: inline-flex; }
}

/* ─────────────────────────────────────────── panels */
.panel {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  scroll-snap-align: start;
  color: var(--fg); --t: 0; --a: 0;
}
.panel[data-theme='dark'] { --fg: #fff; --fg-soft: rgba(255, 255, 255, .8); --fg-accent: var(--accent-on-dark); background: var(--ink); }
.panel[data-theme='light'] { --fg: var(--ink); --fg-soft: var(--muted); --fg-accent: var(--primary); background: var(--paper); }
.panel[data-theme='brand'] { --fg: #fff; --fg-soft: #fff; --fg-accent: #fff; background: var(--drench); }
.panel__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.panel__bg > * { position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; will-change: transform; transform: translate3d(0, calc(var(--t) * var(--depth) * 100vh), 0); }
.panel__inner {
  position: relative; z-index: 1; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 20px;
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(20px, 7vh, 84px)) var(--gutter) clamp(28px, 6.5vh, 64px);
  text-align: center;
  opacity: max(0, calc(1 - var(--a) * 1.8));
  transform: translate3d(0, calc(var(--t) * -42vh), 0);
  will-change: opacity, transform;
}
.panel.is-away .panel__inner { pointer-events: none; }
.panel__mid { display: flex; align-items: center; justify-content: center; min-height: 0; }
.panel__foot { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.panel__aside { font-size: .9375rem; font-weight: 500; color: var(--fg-soft); }
.panel__aside .link { color: var(--fg); }
.panel__note { font-size: .8125rem; font-weight: 500; color: var(--fg-soft); margin-top: -6px; }

/* motif: the manual's outlined rocket lifting off through clouds */
.motif {
  position: absolute; left: 50%; bottom: -3%; width: min(1640px, 170vw); aspect-ratio: 840 / 379; transform: translateX(-50%);
  background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.motif--rocket { --m: url('/img/motif-rocket.svg'); }
.motif--clouds { --m: url('/img/motif-clouds.svg'); }

/* 1 · hero sky */
.sky { background: linear-gradient(180deg, #121110 0%, #1b1a18 42%, #27221f 100%); color: #fff; }
.sky__glow { position: absolute; inset: 0; background: radial-gradient(70% 52% at 50% 104%, rgba(224, 89, 42, .62) 0%, rgba(224, 89, 42, .2) 42%, transparent 72%); }
[data-site='apred'] .sky__glow { background: radial-gradient(70% 52% at 50% 104%, rgba(195, 46, 38, .66) 0%, rgba(224, 89, 42, .16) 44%, transparent 72%); }
.sky__stars {
  position: absolute; inset: 0 0 40%; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 17% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 26% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 47% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 66% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 74% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 83% 27%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 96% 48%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 4% 47%, #fff 50%, transparent 51%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .28; } }
.sky .motif--clouds { color: rgba(255, 255, 255, .1); }
.sky .motif--rocket { color: rgba(255, 255, 255, .16); animation: liftoff 2.4s var(--ease) both; }
@keyframes liftoff { from { transform: translate(-50%, 9%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.layer--drift .motif { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-51.5%); } to { transform: translateX(-48.5%); } }
.sky__arc {
  position: absolute; left: 50%; bottom: 8%; width: min(760px, 118vw); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-38%, 22%) rotate(-24deg);
  border: 3px solid transparent; border-right-color: rgba(195, 46, 38, .85); border-top-color: rgba(195, 46, 38, .35);
  -webkit-mask: linear-gradient(90deg, transparent 45%, #000 80%); mask: linear-gradient(90deg, transparent 45%, #000 80%);
}
.panel--hero .panel__inner { grid-template-rows: auto 1fr auto; }
.panel--hero .eyebrow { color: rgba(255, 255, 255, .78); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 10px; z-index: 2; width: 36px; height: 36px; margin-left: -18px;
  display: grid; place-items: center; color: rgba(255, 255, 255, .85); border-radius: 50%;
  opacity: max(0, calc(1 - var(--a) * 4));
}
.scroll-cue svg { width: 22px; height: 22px; animation: nudge 2.2s var(--ease-io) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* 2 · stakes: the four pains as pieces that don't fit */
.paper { background: var(--paper); color: rgba(34, 34, 34, .06); }
.motif--faint { bottom: auto; top: 6%; }
.shards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px);
  width: min(920px, 100%); text-align: left;
}
.shard {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: clamp(16px, 2.2vw, 26px); border-radius: 10px; background: #fff;
  box-shadow: 0 1px 0 rgba(34, 34, 34, .04), 0 18px 50px -28px rgba(34, 34, 34, .35); border: 1px solid var(--line);
  transform: translate3d(calc(var(--dx) * var(--t) * 90px), calc(var(--dy) * var(--t) * 70px), 0) rotate(calc(var(--r) * (0.35 + var(--a))));
  font-size: clamp(.9375rem, .88rem + .25vw, 1.0625rem); font-weight: 500; line-height: 1.5; color: var(--ink);
}
.shard:nth-child(2) { top: 18px; }
.shard:nth-child(3) { left: -14px; }
.shard:nth-child(4) { top: -10px; left: 10px; }
.shard__n { flex: none; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--primary); padding-top: 3px; }
.closer { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.05rem, .95rem + .5vw, 1.375rem); font-weight: 700; line-height: 1.35; max-width: 40ch; text-align: left; }
.closer__block { flex: none; width: 10px; align-self: stretch; min-height: 28px; background: var(--drench); }

/* 3 · empathy: brand drench with the manual's outlined wordmark */
.drench { background: var(--drench); }
.outline-mark { position: absolute; left: -6%; bottom: -9%; width: min(1500px, 128vw); height: auto; overflow: visible; }
.outline-mark path { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.outline-mark--final { left: auto; right: -8%; bottom: -12%; width: min(1300px, 118vw); }
.panel--empathy .outline-mark { left: 50%; top: 50%; bottom: auto; width: min(1180px, 104vw); transform: translate(-50%, -46%); }
.panel--empathy .outline-mark path { stroke: rgba(255, 255, 255, .3); }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; width: min(1040px, 100%); }
.spec { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.spec dd { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.spec dt { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; max-width: 16ch; }  /* ≥18.66px bold: large text on orange */

/* 4 · door: idea → fork between Vesk and OrbStudio */
.ink { background: radial-gradient(90% 70% at 50% 110%, #2f2a26 0%, var(--ink) 60%); color: rgba(255, 255, 255, .05); }
.motif--ghost { bottom: -18%; }
.fork { position: relative; width: min(760px, 100%); padding-bottom: 86px; }
.fork__lines { position: absolute; left: 0; right: 0; bottom: 8px; width: 100%; height: 90px; overflow: visible; }
.fork__lines path { fill: none; stroke: var(--accent-on-dark); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(var(--a) * 1.6); stroke-linecap: round; }
.fork__origin { position: absolute; left: 50%; bottom: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(224, 89, 42, .18); }
.fork__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); }
.fork__card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; text-decoration: none;
  padding: clamp(16px, 2.2vw, 24px); border-radius: 10px; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.fork__card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.fork__logo { height: clamp(18px, 2vw, 24px); width: auto; margin-bottom: 8px; }
.fork__tag { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-dark); }
.fork__text { font-size: clamp(.9375rem, .88rem + .3vw, 1.125rem); font-weight: 600; line-height: 1.3; padding-right: 26px; }
.fork__go { position: absolute; right: 16px; bottom: 16px; width: 20px; height: 20px; opacity: .7; transition: transform .3s var(--ease), opacity .3s; }
.fork__card:hover .fork__go { transform: translateX(3px); opacity: 1; }

/* 5 · door: business → Vesk, in Vesk's own charcoal */
.panel--vesk { background: var(--vesk); --fg: var(--vesk-fg); --fg-soft: rgba(247, 248, 246, .78); }
.vesk-field { background: radial-gradient(80% 60% at 50% 50%, #3a3a3a 0%, var(--vesk) 70%); }
.vesk-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(247, 248, 246, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 248, 246, .05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center;
  -webkit-mask: radial-gradient(60% 55% at 50% 50%, #000 0%, transparent 100%); mask: radial-gradient(60% 55% at 50% 50%, #000 0%, transparent 100%);
}
.vesk { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 4vh, 40px); width: min(880px, 100%); }
.vesk__logo { width: min(440px, 72vw); height: auto; }
.modules { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.module { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: .875rem; font-weight: 600; }
.module.is-now { background: var(--vesk-fg); color: var(--vesk); }
.module.is-soon { box-shadow: inset 0 0 0 1px rgba(247, 248, 246, .3); color: rgba(247, 248, 246, .82); }
.module span { font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

/* 6 · door: institution → Uninova */
.panel--uninova { background: var(--mist); }
.mist { background: var(--mist); }
.rings {
  position: absolute; left: 50%; top: 55%; width: min(1100px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 58px, rgba(34, 34, 34, .06) 58px 59px);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.uni { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 4vh, 36px); }
.uni__logo { width: min(380px, 66vw); height: auto; }
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; }
.features li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; font-weight: 600; }
.features li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* 7 · door: invest → Black 7C with the isotype as a tonal supergraphic (manual: envelope) */
.panel--invest { background: var(--ink-7c); }
.stone { background: radial-gradient(90% 80% at 80% 40%, #4a453f 0%, var(--ink-7c) 60%); }
.supergraphic { position: absolute; right: -4vw; top: 50%; height: min(118vh, 1150px); width: auto; transform: translateY(-46%) rotate(28deg); overflow: visible; }
.supergraphic path { fill: rgba(255, 255, 255, .06); }
[data-site='apred'] .supergraphic .arc { fill: rgba(195, 46, 38, .5); }

/* 8 · values */
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; width: 100%; text-align: left; counter-reset: v; }
.value {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 1.6vw, 24px); border-radius: 10px;
  background: var(--mist); border-top: 4px solid var(--drench);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.value:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 22px 50px -30px rgba(34, 34, 34, .45); }
.value__n { font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--primary); }
.value__t { font-size: clamp(1rem, .9rem + .35vw, 1.1875rem); font-weight: 700; line-height: 1.25; }
.value__d { font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.values__hint { display: none; }

/* 9 · why */
.night { background: linear-gradient(180deg, #1a1918 0%, var(--ink) 55%, #2a2522 100%); color: rgba(255, 255, 255, .07); }
.motif--night { bottom: 2%; }
.panel--why .panel__inner { grid-template-rows: auto 1fr auto; }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(24px, 5vw, 72px); width: min(1080px, 100%); text-align: left; }
.why__item { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 18px; }
.why__label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-on-dark); }
.why__text { margin-top: 10px; font-size: clamp(1rem, .92rem + .4vw, 1.25rem); font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.why__note { margin-top: 6px; font-size: .875rem; color: var(--fg-soft); max-width: 60ch; }

/* 10 · final */
.panel--final .panel__mid { flex-direction: column; gap: clamp(28px, 5vh, 48px); }
.panel--final .display { max-width: 16ch; }

/* ─────────────────────────────────────────── footer */
.site-footer { position: relative; z-index: 2; scroll-snap-align: end; background: var(--ink-deep); color: rgba(255, 255, 255, .78); --logo-ink: #fff; --logo-acc: #fff; --logo-arc: #fff; }
[data-site='apred'] .site-footer { --logo-acc: var(--orange); --logo-arc: var(--red); }
.site-footer__inner { max-width: 1320px; margin: 0 auto; padding: 56px var(--gutter) 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer__brand p { margin-top: 18px; max-width: 36ch; font-size: .9375rem; line-height: 1.6; }
.site-footer__logo { display: inline-block; }
.site-footer h2 { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer__h2-gap { margin-top: 26px; }
.site-footer li { font-size: .9375rem; line-height: 1.5; }
.site-footer li + li { margin-top: 8px; }
.footer__link { text-decoration: none; color: rgba(255, 255, 255, .78); transition: color .2s; text-align: left; }
.footer__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__base { max-width: 1320px; margin: 0 auto; padding: 20px var(--gutter) 28px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: rgba(255, 255, 255, .62); }
.site-footer__lang a { color: #fff; font-weight: 600; }

/* ─────────────────────────────────────────── dialogs: menu + form drawers (right), quiz (center) */
dialog { padding: 0; border: 0; max-width: none; max-height: none; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(10, 10, 10, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog[open]::backdrop { animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; width: min(460px, 100vw); }
.drawer--menu { width: min(340px, 100vw); }
.drawer__box { height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); padding: 18px 24px 32px; box-shadow: -30px 0 80px -40px rgba(0, 0, 0, .5); }
.drawer[open] .drawer__box { animation: slide-in .42s var(--ease); }
.drawer.is-closing .drawer__box { animation: slide-out .28s var(--ease-io) forwards; }
.drawer.is-closing::backdrop, .modal.is-closing::backdrop { animation: fade .28s reverse forwards; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 14px; }
.drawer__title { font-size: 1.25rem; font-weight: 700; }
.drawer--menu .drawer__title { font-size: .875rem; font-weight: 600; color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; transition: background-color .2s; flex: none; }
.icon-btn:hover { background: #efedea; }
.icon-btn svg { width: 22px; height: 22px; }
.menu li a, .menu li button { display: flex; width: 100%; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--radius); font-size: 1.0625rem; font-weight: 600; text-decoration: none; text-align: left; transition: background-color .2s; }
.menu li a:hover, .menu li button:hover { background: #efedea; }
.menu li:nth-last-child(3) { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.menu li:nth-last-child(3) button { background: var(--primary); color: #fff; justify-content: center; }
.menu li:nth-last-child(3) button:hover { background: var(--primary-hover); }
[data-site='apred'] .menu li:nth-last-child(2) { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
[data-site='apred'] .menu li:nth-last-child(2) button { background: var(--primary); color: #fff; justify-content: center; }
[data-site='apred'] .menu li:nth-last-child(3) { margin-top: 0; border-top: 0; padding-top: 0; }
[data-site='apred'] .menu li:nth-last-child(3) button { background: none; color: inherit; justify-content: flex-start; }
.menu li:last-child a { font-size: .9375rem; color: var(--muted); }

.modal { position: fixed; inset: 0; margin: auto; width: min(600px, calc(100vw - 32px)); height: fit-content; max-height: calc(100vh - 32px); }
.modal__box { background: var(--paper); border-radius: 14px; overflow: hidden auto; max-height: calc(100vh - 32px); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .6); display: flex; flex-direction: column; }
.modal[open] .modal__box { animation: pop .38s var(--ease); }
.modal.is-closing .modal__box { animation: pop .24s var(--ease-io) reverse forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 0 28px; }
.modal__title { font-size: .8125rem; font-weight: 600; color: var(--muted); padding-top: 11px; }
.modal__title span { color: var(--ink); }
.modal__foot { display: flex; justify-content: space-between; padding: 0 28px 22px; min-height: 22px; font-size: .875rem; color: var(--muted); }
.quiz__progress { height: 3px; margin: 14px 28px 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: calc(var(--q, 1) / 3 * 100%); background: var(--drench); transition: width .45s var(--ease); }
.quiz__body { padding: 22px 28px 20px; }
.quiz__step:not([hidden]) { animation: step-in .4s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } }
.quiz__count { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.quiz__q { margin-top: 8px; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; outline: none; }
.quiz__opts { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 12px 18px;
  border-radius: 10px; background: var(--mist); text-align: left; font-size: 1rem; font-weight: 600; line-height: 1.3;
  box-shadow: inset 0 0 0 1px transparent; transition: background-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.opt svg { width: 20px; height: 20px; flex: none; color: var(--primary); transition: transform .25s var(--ease); }
.opt:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--primary); }
.opt:hover svg { transform: translateX(3px); }
.quiz__brand { margin-top: 16px; }
.quiz__logo { height: 26px; width: auto; }
.quiz__d { margin-top: 12px; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.btns--stack { margin-top: 24px; justify-content: flex-start; }
.btns--stack .btn { min-width: 0; flex: 1 1 220px; }

/* forms */
.form__intro { font-size: .9375rem; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
.field--half { grid-column: auto; }
.field__label { font-size: .8125rem; font-weight: 600; color: var(--ink-7c); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid #d6d1cb; background: #fff;
  font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; font-size: .9375rem; line-height: 1.5; color: var(--ink-7c); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.check.is-invalid span { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5em; margin-top: 12px; font-size: .875rem; font-weight: 500; color: #b3261e; }
.form button[type='submit'][disabled] { opacity: .7; cursor: progress; }
.form__done { padding: 40px 0 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.form__done[hidden] { display: none; }
.form__iso { height: 64px; width: auto; }
.form__iso .ink { fill: var(--ink); } .form__iso .acc { fill: var(--orange); } .form__iso .arc { fill: var(--red); }
.form__done-text { font-size: 1.125rem; font-weight: 600; line-height: 1.5; max-width: 30ch; outline: none; }

/* ─────────────────────────────────────────── document pages (legal, delete account, 404) */
.page--doc body { background: var(--paper); }
.doc { padding: calc(var(--nav-h) + clamp(40px, 8vh, 88px)) var(--gutter) clamp(64px, 10vh, 120px); background: var(--paper); --fg: var(--ink); --fg-soft: var(--muted); }
.doc__article { max-width: 760px; margin: 0 auto; }
.doc__title { margin-top: 22px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.doc__updated { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.doc__intro { margin-top: 26px; font-size: 1.125rem; line-height: 1.7; color: var(--ink-7c); }
.doc__section { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc__section h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.doc__section p { margin-top: 12px; font-size: 1rem; line-height: 1.75; color: var(--ink-7c); }
.doc__list { margin-top: 14px; display: grid; gap: 10px; }
.doc__list li { position: relative; padding-left: 22px; line-height: 1.6; color: var(--ink-7c); }
.doc__list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--drench); }
.doc__form { margin-top: 36px; padding: clamp(20px, 3vw, 32px); border-radius: 14px; background: var(--mist); }
.doc__form .form__done { padding: 12px 0; }
.doc__contact { margin-top: 48px; padding: 24px 28px; border-radius: 12px; background: var(--ink); color: rgba(255, 255, 255, .7); font-size: .875rem; }
.doc__contact a { display: inline-block; margin-top: 6px; color: #fff; font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
.doc__contact a:hover { color: var(--orange-on-dark); }
.page--doc .label-block { --fg: var(--ink); --fg-soft: var(--muted); }

.page--lost .doc { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: #fff; --fg: #fff; --fg-soft: rgba(255, 255, 255, .8); }
.page--lost.page--doc body { background: var(--ink); }
html.page--lost .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lost { position: relative; text-align: center; display: flex; flex-direction: column; gap: 22px; align-items: center; padding: 40px 0; }
.lost__bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; color: rgba(255, 255, 255, .08); background: radial-gradient(70% 50% at 50% 105%, rgba(224, 89, 42, .45), transparent 70%); }
.lost > :not(.lost__bg) { position: relative; z-index: 1; }

/* ─────────────────────────────────────────── responsive */
@media (max-width: 1180px) {
  .values { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .value { grid-column: span 2; }
  .value:nth-child(4) { grid-column: 2 / span 2; }
  .value:nth-child(5) { grid-column: 4 / span 2; }
  .value__d { font-size: .875rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav__logo .logo { width: 142px; }
  .panel__inner { gap: 14px; padding-top: calc(var(--nav-h) + clamp(16px, 5vh, 44px)); padding-bottom: clamp(20px, 4vh, 36px); }
  .btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; margin-inline: auto; gap: 12px; }
  .btn { min-width: 0; width: 100%; }
  .lede { font-size: .9688rem; }
  .lede--strong { font-size: 1.1875rem; }
  .panel__aside { font-size: .875rem; }

  .sky .motif { width: 230vw; bottom: 17%; }
  .sky .motif--clouds { bottom: 30%; }
  .panel--empathy .outline-mark { top: auto; bottom: 40%; width: 150vw; transform: translate(-50%, 0); }
  .panel--empathy .outline-mark path { stroke: rgba(255, 255, 255, .26); }
  .shards { grid-template-columns: 1fr; gap: 10px; }
  .shard { padding: 14px 16px; font-size: .9063rem; gap: 12px; top: auto !important; left: auto !important; transform: translate3d(calc(var(--dx) * var(--t) * 40px), 0, 0) rotate(calc(var(--r) * .25)); }
  .closer { font-size: 1rem; }

  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .spec dd { font-size: 2.4rem; }
  .spec dt { font-size: 1.1875rem; }

  .fork { padding-bottom: 64px; }
  .fork__lines { height: 64px; }
  .fork__cards { gap: 10px; }
  .fork__card { padding: 14px 14px 40px; }
  .fork__text { font-size: .9063rem; padding-right: 0; }
  .fork__go { right: 12px; bottom: 12px; }

  .module, .features li { height: 32px; padding: 0 12px; font-size: .8125rem; }

  /* values: a swipeable row, one card at a time */
  .panel--values .panel__mid { flex-direction: column; margin-inline: calc(var(--gutter) * -1); gap: 10px; }
  .values { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px var(--gutter) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .values::-webkit-scrollbar { display: none; }
  .value, .value:nth-child(4), .value:nth-child(5) { flex: 0 0 min(80%, 340px); scroll-snap-align: center; grid-column: auto; }
  .value:hover { transform: none; }
  .value__d { font-size: .9375rem; }
  .values__hint { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

  .why { grid-template-columns: 1fr; gap: 14px; }
  .why__item { padding-top: 12px; }
  .why__text { font-size: .9375rem; margin-top: 6px; }
  .why__note { font-size: .8125rem; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 44px; }
  .site-footer__col:last-child { grid-column: 1 / -1; }

  .drawer { width: 100vw; }
  .drawer--menu { width: min(360px, 100vw); }
  .modal { width: 100vw; max-height: 100%; margin: auto 0 0; }
  .modal__box { border-radius: 16px 16px 0 0; max-height: calc(100svh - 24px); }
  .modal[open] .modal__box { animation: sheet .4s var(--ease); }
  .modal.is-closing .modal__box { animation: sheet .26s var(--ease-io) reverse forwards; }
  @keyframes sheet { from { transform: translateY(100%); } }
  .modal__head { padding: 14px 12px 0 20px; }
  .quiz__progress { margin-inline: 20px; }
  .quiz__body { padding: 18px 20px 16px; }
  .modal__foot { padding: 0 20px 18px; }
  .btns--stack .btn { flex: none; }
  .form__grid { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
}

/* short screens: compress the vertical rhythm so every panel still fits */
@media (max-height: 760px) and (min-width: 761px) {
  .panel__inner { padding-top: calc(var(--nav-h) + 22px); padding-bottom: 26px; gap: 14px; }
  .display { font-size: clamp(2rem, 1rem + 3.2vw, 3.2rem); }
  .title { font-size: clamp(1.6rem, 1rem + 2vw, 2.5rem); }
  .panel__head > * + * { margin-top: 10px; }
  .value { padding: 16px; }
  .value__d { font-size: .8438rem; }
  .shard { padding: 14px 18px; font-size: .9375rem; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .title { font-size: 1.5rem; }
  .display { font-size: 1.9rem; }
  .panel__head > * + * { margin-top: 8px; }
  .lede { font-size: .9063rem; line-height: 1.5; }
  .shard { padding: 11px 14px; font-size: .8438rem; }
  .spec dd { font-size: 2rem; }
  .spec dt { font-size: 1rem; font-weight: 700; }
  .why__text { font-size: .875rem; }
  .fork__logo { margin-bottom: 2px; }
  .btn { min-height: 42px; }
}
/* landscape phones and tiny windows: panels grow with their content instead of snapping */
@media (max-height: 540px) {
  html.page--home { scroll-snap-type: none; }
  .panel { height: auto; min-height: 100svh; }
  .panel__inner { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .panel__inner, .layer, .shard { transform: none !important; }
  .panel__inner { opacity: 1 !important; }
}
