/* OnDrive site: foundation. Tokens, framed grid, type, nav, hero, stat, CTA, footer, floating controls.
   Section modules (css/<mod>.css) use only these tokens so light, dark and theme-dark bands all work. */
@font-face { font-family: "Schibsted Grotesk"; src: url("../assets/fonts/SchibstedGrotesk-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #111111;
  --fg-2: #3a3b3d;
  --mist: #6f6f6f;
  --line: #dcdcdc;
  --line-strong: #bdbdbd;
  --surface: #f5f5f5;
  --surface-raised: #fafafa;
  --accent: #DA2C1C;          /* solid fills with white text (buttons, highlight marks): 4.8:1 */
  --accent-line: #EA3323;     /* OnDrive logo red: strokes, wires, small marks */
  --accent-text: #C62817;     /* small red text on light */
  --accent-ink: #ffffff;
  --accent-soft: rgba(234, 51, 35, 0.08);
  --ok: #1F8A5B;
  --ok-text: #1A7A50;
  --gold: #E8A93A;
  --blue: #2F6FC0;
  --danger: #C62817;
  --grain: 0.32;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --content: 1240px;
  --nav-h: 64px;
  --pad: clamp(64px, 7.5vw, 112px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-h1: clamp(38px, 3.6vw, 52px);
  --t-h2: clamp(30px, 2.9vw, 42px);
  --t-h3: clamp(21px, 1.7vw, 24px);
  color-scheme: light;
}
/* dark bands (and the whole page in dark mode) */
.theme-dark, :root[data-theme="dark"] {
  --bg: #111111;
  --fg: #ededed;
  --fg-2: #c9cacc;
  --mist: #8a8b8d;
  --line: #26272b;
  --line-strong: #3a3b40;
  --surface: #161618;
  --surface-raised: #1b1c1e;
  --accent-text: #FF6B5B;
  --accent-soft: rgba(234, 51, 35, 0.14);
  --ok-text: #4CC98F;
  --grain: 0.42;
  --nav-bg: rgba(17, 17, 17, 0.96);
  color-scheme: dark;
}
:root[data-theme="dark"] .theme-dark { --bg: #0b0b0c; --surface: #121214; --surface-raised: #17171a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; transition: background-color .3s var(--ease), color .3s var(--ease); }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 1px solid var(--accent-line); outline-offset: 4px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- framed grid ---------- */
.frame { position: relative; width: calc(100% - 2 * var(--gutter)); max-width: var(--content); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.inset { padding-left: var(--gutter); padding-right: var(--gutter); }
.act { position: relative; border-top: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.act > .frame { padding-top: var(--pad); padding-bottom: var(--pad); }
.act.theme-dark { border-top-color: var(--line); }
.act.theme-dark > .frame { border-color: transparent; }
.theme-dark .grainy, .act.theme-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain); mix-blend-mode: soft-light; background-image: var(--noise); background-size: 200px 200px; z-index: 0; }
.act.theme-dark > * { position: relative; z-index: 1; }

/* section head: title + sub on the left, link on the right (reference "act-head") */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.head__copy { max-width: 720px; }
.h2 { font: 500 var(--t-h2)/1.12 var(--f-body); letter-spacing: -0.03em; color: var(--fg); text-wrap: balance; }
.sub { margin-top: 18px; max-width: 560px; color: var(--mist); font-size: 16px; line-height: 1.55; }
.h3 { font: 500 var(--t-h3)/1.2 var(--f-body); letter-spacing: -0.02em; color: var(--fg); }
.body { color: var(--mist); font-size: 15px; line-height: 1.55; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--mist); font: 500 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.label { color: var(--mist); font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); }

/* text link with underline and arrow nudge */
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); white-space: nowrap; }
.link svg { width: 12px; height: 12px; transition: transform .2s var(--ease-out); }
.link:hover { color: var(--fg); text-decoration-color: currentColor; }
.link:hover svg { transform: translateX(3px); }

/* highlight mark: solid red block behind words, revealed as a mosaic of tiles (core.js) */
mark, .hl { position: relative; z-index: 1; color: inherit; background: none; padding: 0 0.14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: color .2s var(--ease); }
.hl.is-on, .no-js .hl, .hl.is-static { color: var(--accent-ink); background: linear-gradient(var(--accent), var(--accent)) 0 56% / 100% 1.08em no-repeat; }
.hl-tiles { position: absolute; pointer-events: none; display: flex; flex-wrap: wrap; z-index: 0; }
.hl-tiles i { display: block; background: var(--accent); opacity: 0; transition: opacity .14s linear; }
.hl.is-lit { color: var(--accent-ink); }

/* buttons: square, 1px, reference proportions */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; font: 500 13px/1 var(--f-body); color: var(--fg); text-decoration: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 0; cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .2s var(--ease-out); }
.btn:hover { border-color: var(--fg); }
.btn--solid { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.btn--solid:hover { background: color-mix(in srgb, var(--accent) 86%, #000); border-color: transparent; }
.btn--lg { padding: 15px 28px; font-size: 15px; min-height: 46px; }
.btn--ghost { border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn svg { width: 14px; height: 14px; }

/* icons from the sprite */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* reveal on view */
/* reveal: content is visible at rest; it only settles upward when scrolled into view */
.js [data-reveal] { transform: translateY(16px); transition: transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { transform: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--nav-h); background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease-out); }
.nav.over-dark { --bg: #111111; --fg: #ededed; --fg-2: #c9cacc; --mist: #8a8b8d; --line: #26272b; --line-strong: #3a3b40; --surface: #1b1c1e; --nav-bg: rgba(17, 17, 17, 0.97); color-scheme: dark; }
.nav__inner { display: flex; align-items: center; gap: 8px; width: calc(100% - 2 * var(--gutter)); max-width: var(--content); height: 100%; margin: 0 auto; padding: 0 var(--gutter); color: var(--fg); }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.lockup__tile { width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface); transition: background .25s var(--ease); }
.lockup__tile img { width: 24px; height: auto; }
.lockup__word { height: 14px; width: auto; }
.lockup__div { width: 1px; height: 18px; background: var(--line-strong); margin: 0 2px; }
.lockup__by { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.lockup__by img { height: 15px; width: auto; }
.nav__links { display: flex; align-items: center; margin-left: 28px; }
.nav__link { position: relative; padding: 8px 12px; color: var(--mist); font-size: 14px; text-decoration: none; transition: color .15s var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .15s cubic-bezier(.23, 1, .32, 1); }
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--fg); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav__film { color: var(--mist); font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; transition: color .15s var(--ease); }
.nav__film:hover { color: var(--fg); }
.nav__cta { padding: 10px 16px; }
.nav__menu { display: none; width: 40px; height: 40px; margin-left: 4px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.nav__menu span, .nav__menu span::before { position: absolute; left: 11px; width: 16px; height: 1.5px; background: var(--fg); transition: transform .25s var(--ease-out); }
.nav__menu span { top: 16px; }
.nav__menu span::before { content: ""; left: 0; top: 6px; }
.nav.is-open .nav__menu span { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__menu span::before { transform: translateY(-6px) rotate(-90deg); }
.nav__sheet { display: none; }
.logo-white { display: none !important; }
:root[data-theme="dark"] .logo-ink, .nav.over-dark .logo-ink, .theme-dark .logo-ink { display: none !important; }
:root[data-theme="dark"] .logo-white, .nav.over-dark .logo-white, .theme-dark .logo-white { display: block !important; }
@media (max-width: 980px) {
  .nav__links, .nav__film, .lockup__by span { display: none; }
  .nav__menu { display: block; }
  .nav__sheet { position: absolute; top: var(--nav-h); left: 0; right: 0; display: grid; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .3s var(--ease-out); }
  .nav__sheet a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 17px; }
  .nav.is-open .nav__sheet { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 520px) { .nav__cta { display: none; } .lockup__by img { height: 13px; } }

/* ---------- hero ---------- */
.hero { border-top: 0; }
.hero > .frame { padding-top: clamp(56px, 8vw, 116px); padding-bottom: clamp(48px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--mist); font: 500 12px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: color .15s var(--ease); }
.hero__eyebrow .tile { width: 18px; height: 18px; display: grid; place-items: center; background: var(--fg); transition: background .2s var(--ease); }
.hero__eyebrow .tile img { width: 12px; height: 12px; }
.hero__eyebrow:hover { color: var(--fg); }
:root[data-theme="dark"] .hero__eyebrow .tile img { filter: invert(1); }
:root[data-theme="dark"] .hero__eyebrow:hover .tile img { filter: none; }
.hero__eyebrow:hover .tile { background: var(--accent); }
.hero__title { margin-top: 34px; font: 500 var(--t-h1)/1.06 var(--f-body); letter-spacing: -0.03em; }
.hero__title .ln { display: block; }
.hero__sub { margin-top: 30px; max-width: 560px; color: var(--mist); font-size: 16px; line-height: 1.6; }
.chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 7px 12px; background: var(--surface); border: 1px solid var(--line); font: 400 12.5px/1 var(--f-mono); color: var(--fg-2); }
.chip b { color: var(--accent-text); font-weight: 600; }
.chip .caret { display: inline-block; width: 7px; height: 13px; margin-left: -6px; background: var(--accent-line); animation: caret 1s steps(1) infinite; vertical-align: -2px; }
@keyframes caret { 50% { opacity: 0; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.js .hero [data-in] { animation: heroin .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms + 80ms); }
@keyframes heroin { from { opacity: 0; transform: translateY(12px); } }

/* hero flow graph (hero.js) */
.hf { position: relative; height: 380px; }
.hf__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hf__wire { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.hf__route { fill: none; stroke: var(--accent-line); stroke-width: 1.6; stroke-linejoin: miter; }
.hf__rider { fill: var(--accent-line); }
.hf__key { position: absolute; width: 104px; height: 104px; display: grid; place-items: center; align-content: center; gap: 12px; background: var(--bg); border: 1px solid var(--line-strong); transition: border-color .3s var(--ease); z-index: 1; }
.hf__key img { width: 46px; height: auto; }
.hf__key span { font: 500 10px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--mist); text-transform: uppercase; white-space: nowrap; text-align: center; }
.hf__key.is-on { border-color: var(--accent-line); }
.hf__tiles { position: absolute; display: grid; grid-template-columns: repeat(3, 48px); grid-auto-rows: 48px; gap: 8px; z-index: 1; }
.hf__tile { position: relative; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: #9a9b9d; cursor: pointer; padding: 0; transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease); }
.hf__tile .ic { width: 20px; height: 20px; }
.hf__tile:hover { color: var(--fg); border-color: var(--line-strong); }
.hf__tile.is-on { background: var(--bg); border-color: var(--accent-line); color: var(--fg); }
.hf__tile.is-danger.is-on { color: var(--accent-text); }
.hf__ring { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border: 1px solid var(--accent-line); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.hf__tile.is-on .hf__ring { animation: ring 1.2s var(--ease) both; }
@keyframes ring { 0% { opacity: .7; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(2.1); } }
.hf__tip { position: absolute; z-index: 3; padding: 6px 9px; background: var(--fg); color: var(--bg); font: 500 11px/1 var(--f-mono); letter-spacing: 0.04em; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s var(--ease), transform .2s var(--ease-out); }
.hf__tip.on { opacity: 1; transform: none; }
.hf__log { position: absolute; left: 0; right: 0; bottom: 0; text-align: left; height: 22px; overflow: hidden; font: 400 13px/22px var(--f-mono); color: var(--fg); white-space: nowrap; }
.hf__log-inner { display: flex; gap: 14px; align-items: baseline; }
.hf__log-inner.rise { animation: rise .4s var(--ease) both; }
@keyframes rise { from { transform: translateY(22px); } }
.hf__verb { color: var(--accent-text); font-weight: 600; min-width: 64px; }
.hf__obj { color: var(--fg); }
.hf__obj i { display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -1px; background: var(--accent-line); animation: caret 1s steps(1) infinite; }
.hf__dest { color: var(--mist); opacity: 0; transition: opacity .3s var(--ease); overflow: hidden; text-overflow: ellipsis; }
.hf__dest.on { opacity: 1; }
@media (max-width: 1100px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hf { max-width: 560px; } }
@media (max-width: 1100px) and (min-width: 701px) { .hero__copy { max-width: 720px; } }
@media (max-width: 700px) {
  .hero > .frame { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__stage { margin: 8px calc(-1 * var(--gutter)) 0; padding: 22px 16px 16px; background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hf { height: 300px; max-width: none; text-align: left; }
  .hf__key { width: 80px; height: 80px; gap: 8px; }
  .hf__key img { width: 36px; }
  .hf__key span { font-size: 8.5px; letter-spacing: 0.08em; }
  .hero__title .br { display: block; }
  .hf__tiles { grid-template-columns: repeat(3, 40px); grid-auto-rows: 40px; gap: 6px; }
  .hf__log { font-size: 11.5px; height: 44px; }
  .hf__log-inner { flex-wrap: wrap; column-gap: 10px; }
  .hf__verb { min-width: 0; }
  .hf__dest { flex-basis: 100%; }
}

/* ---------- zero stat ---------- */
.zero__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.zero__stat { justify-self: center; text-align: left; }
.zero__big { display: block; font: 400 clamp(72px, 8.6vw, 128px)/1 var(--f-body); letter-spacing: -0.04em; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; color: var(--fg); }
.zero__big small { font-size: 0.78em; letter-spacing: -0.03em; }
.zero__label { display: block; margin-top: 26px; }
.zero__copy .h2 { font-size: clamp(30px, 2.7vw, 38px); }
.zero__copy .body { margin-top: 16px; max-width: 500px; }
.zero__copy .link { margin-top: 12px; color: var(--accent-text); text-decoration: none; }
@media (max-width: 760px) { .zero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .zero__stat { justify-self: start; order: 2; } }

/* ---------- close CTA ---------- */
.close > .frame { text-align: center; padding-top: clamp(80px, 9vw, 128px); padding-bottom: clamp(80px, 9vw, 128px); }
.close__title { font: 500 clamp(36px, 4vw, 56px)/1.06 var(--f-body); letter-spacing: -0.035em; }
.close .sub { margin: 26px auto 0; max-width: 460px; }
.close__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.close__mosaic { display: grid; place-items: center; margin: 0 auto 36px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot > .frame { padding-top: 80px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 72px; }
.foot__brand p { margin-top: 22px; max-width: 290px; color: var(--mist); font-size: 14px; line-height: 1.55; }
.foot h4 { margin-bottom: 18px; color: var(--mist); font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot li a, .foot li span { color: var(--fg-2); font-size: 14px; text-decoration: none; transition: color .15s var(--ease); }
.foot li a:hover { color: var(--fg); }
.foot__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 30px; border-top: 1px solid var(--line); color: var(--mist); font: 500 11px/1.5 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.foot__fine { color: var(--mist); font-size: 12px; line-height: 1.5; padding-bottom: 22px; max-width: 760px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__brand { grid-column: 1 / -1; } }

/* ---------- floating controls: theme + Human/Agent ---------- */
.dock { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 55; display: flex; gap: 10px; align-items: stretch; }
.dock__theme { width: 36px; height: 36px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--mist); cursor: pointer; transition: color .15s var(--ease), border-color .15s var(--ease), background .3s var(--ease); }
.dock__theme:hover { color: var(--fg); border-color: var(--mist); }
.dock__theme .ic { width: 16px; height: 16px; }
.dock__theme .moon, :root[data-theme="dark"] .dock__theme .sun { display: none; }
:root[data-theme="dark"] .dock__theme .moon { display: block; }
.dock__seg { display: flex; border: 1px solid var(--line); background: var(--bg); transition: background .3s var(--ease); }
.dock__seg button { padding: 0 13px; height: 34px; font: 500 13px/1 var(--f-body); color: var(--mist); background: transparent; border: 0; cursor: pointer; transition: color .15s var(--ease), background .15s var(--ease); }
.dock__seg button:hover { color: var(--fg); }
.dock__seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 700px) { .dock { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } .dock__seg button { padding: 0 10px; } }

/* agent view: the page as plain text for AI assistants */
.agent { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(10, 10, 10, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.agent.is-open { opacity: 1; pointer-events: auto; }
.agent__card { width: min(760px, 100%); max-height: min(78vh, 760px); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line-strong); transform: translateY(10px); transition: transform .35s var(--ease-out); }
.agent.is-open .agent__card { transform: none; }
.agent__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.agent__bar .label { margin-right: auto; }
.agent__body { margin: 0; padding: 20px 22px 26px; overflow: auto; font: 400 13px/1.7 var(--f-mono); color: var(--fg-2); white-space: pre-wrap; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { transform: none; }
}
