/* Värit: kolme teemaa. Päivä (Sammal) on oletus ja [data-theme="light"],
   Yö (Matrix) [data-theme="dark"] ja Korkea kontrasti [data-theme="contrast"],
   tumma. theme.ts valitsee teeman; Järjestelmä valitsee kontrastin, kun laite
   pyytää sitä (prefers-contrast: more). Punainen on varattu virheelle.

   Text pairs reach 4.5:1 and marks and focus rings 3:1 against their
   backgrounds in Päivä and Yö; in Korkea kontrasti 7:1 and 4.5:1. */

/* Boundaries (WCAG 1.4.11): a line that tells a control or a state-carrying
   box from what is around it (--ah-control-line, --ah-line-strong,
   --ah-current-line and the tone lines --ah-accent-line, --ah-ok-line,
   --ah-turn-line, --ah-err-line) reaches 3:1 against the hardest background
   it can sit on: --ah-rail in Päivä, --ah-current in Yö. In Korkea kontrasti
   they reach 4.5:1 on black.
   The surface fills alone stay near 1:1 by design, so the line carries the
   boundary. --ah-line and --ah-line-soft are separators, not boundaries, and
   stay quiet. A disabled control is outside the rule; --ah-disabled-line
   keeps it from standing out more than an enabled one. */

:root,
[data-theme="light"] {
  --ah-syntax-keyword: #71419b;
  --ah-syntax-string: #216142;
  --ah-syntax-number: #8a4b16;
  --ah-syntax-title: #185e87;
  --ah-syntax-comment: #5c675d;
  --ah-syntax-deletion: #a3412b;
  /* Neutral marks for the person's other services (Integraatiot): letter
     tiles, not brand colours, so they follow the syntax hues of each theme. */
  --ah-source-1: var(--ah-syntax-title);
  --ah-source-2: var(--ah-syntax-string);
  --ah-source-3: var(--ah-syntax-keyword);
  /* A workspace's name-derived glyph (workspace icons): eight hues the name's
     hash picks from, the syntax hues and three more of the same weight. */
  --ah-glyph-0: var(--ah-accent);
  --ah-glyph-1: var(--ah-syntax-title);
  --ah-glyph-2: var(--ah-syntax-keyword);
  --ah-glyph-3: var(--ah-syntax-string);
  --ah-glyph-4: var(--ah-syntax-number);
  --ah-glyph-5: #9b3d73;
  --ah-glyph-6: #4a5a6b;
  --ah-glyph-7: #5c6a1a;
  --ah-sunken: #eff3ea;
  --ah-hover: rgba(20, 40, 20, 0.06);
  --ah-bg: #f6f8f2;
  --ah-surface: #ffffff;
  --ah-surface-2: #fbfcf9;
  /* Agent HTML views draw their own page on a browser tab's canvas, in every
     themes, so content that assumes a white page stays legible. */
  --ah-content-canvas: #ffffff;
  --ah-rail: #eef2e8;
  --ah-line: #dde4d5;
  --ah-line-soft: #e9eee2;

  --ah-ink: #17201a;
  --ah-ink-2: #3a453c;
  --ah-muted: #5c675d;
  --ah-faint: #626d63;

  --ah-accent: #2c6e3f;
  --ah-accent-ink: #1f5430;
  --ah-accent-soft: #e3f1e1;
  --ah-accent-line: #6a9272;
  --ah-on-accent: #ffffff;
  /* Terminal selection must stand apart from the canvas, even unfocused.
     Override ANSI text too: its original colour may match the selection. */
  --ah-terminal-selection: var(--ah-accent);
  --ah-terminal-selection-ink: var(--ah-on-accent);

  --ah-ok: #0f6f78;
  --ah-ok-soft: #e4f3f5;
  /* Sinun vuorosi: the state mark for a question or an unread reply. */
  --ah-turn: #a86400;
  --ah-err: #a3412b;
  --ah-err-soft: #fdf1ee;
  --ah-err-line: #bf7565;
  --ah-line-strong: #7f8b78;
  --ah-accent-hover: #245e35;
  --ah-accent-press: #1f5430;
  --ah-on-err: #ffffff;
  --ah-err-hover: #8e3825;
  --ah-err-press: #7a2f1f;
  --ah-err-soft-hover: #fae4de;
  --ah-err-soft-press: #f6d6cd;
  --ah-surface-hover: #f1f4ec;
  --ah-surface-press: #e7ecdf;
  --ah-current: #ffffff;
  --ah-current-line: #828b7e;
  --ah-disabled-bg: #ebefe5;
  --ah-disabled-fg: #5c675d;
  --ah-focus: #2c6e3f;
  --ah-composer-focus: #086bc1;
  --ah-scrim: rgba(20, 32, 22, 0.32);
  /* Text buttons: a tint of the ink, so the button reads on the page and on a card alike. */
  --ah-control: rgba(20, 40, 20, 0.06);
  --ah-control-hover: rgba(20, 40, 20, 0.1);
  --ah-control-press: rgba(20, 40, 20, 0.14);
  --ah-control-line: #7f8b78;
  --ah-ok-line: #47949b;
  --ah-turn-line: #b07a22;
  --ah-disabled-line: #dde4d5;
}

[data-theme="dark"] {
  --ah-syntax-keyword: #c9a6f0;
  --ah-syntax-string: #9ad8a0;
  --ah-syntax-number: #edba8d;
  --ah-syntax-title: #8fd0e8;
  --ah-syntax-comment: #96a69a;
  --ah-syntax-deletion: #f0a08c;
  /* Restated so they resolve against this theme's values where the theme is
     set below the root. */
  --ah-source-1: var(--ah-syntax-title);
  --ah-source-2: var(--ah-syntax-string);
  --ah-source-3: var(--ah-syntax-keyword);
  --ah-glyph-0: var(--ah-accent);
  --ah-glyph-1: var(--ah-syntax-title);
  --ah-glyph-2: var(--ah-syntax-keyword);
  --ah-glyph-3: var(--ah-syntax-string);
  --ah-glyph-4: var(--ah-syntax-number);
  --ah-glyph-5: #e7a3c8;
  --ah-glyph-6: #a8b8ae;
  --ah-glyph-7: #d3cf74;
  --ah-sunken: #090d0b;
  --ah-hover: rgba(160, 255, 170, 0.07);
  --ah-bg: #0d1210;
  --ah-surface: #141b17;
  --ah-surface-2: #101613;
  --ah-rail: #0a0f0d;
  --ah-line: #24302a;
  --ah-line-soft: #1b2520;

  --ah-ink: #e3ece4;
  --ah-ink-2: #bccabf;
  --ah-muted: #8d9e92;
  --ah-faint: #879a8c;

  --ah-accent: #8fe36b;
  --ah-accent-ink: #a6ee86;
  --ah-accent-soft: #17301b;
  --ah-accent-line: #4c8447;
  --ah-on-accent: #0a1a0b;
  --ah-terminal-selection: var(--ah-accent);
  --ah-terminal-selection-ink: var(--ah-on-accent);

  --ah-ok: #86dba6;
  --ah-ok-soft: #14261c;
  --ah-turn: #e8b450;
  --ah-err: #ff8370;
  --ah-err-soft: #3a1814;
  --ah-err-line: #b0503f;
  --ah-line-strong: #617267;
  --ah-accent-hover: #a2ec82;
  --ah-accent-press: #b6f29b;
  --ah-on-err: #1a0c08;
  --ah-err-hover: #ffa48f;
  --ah-err-press: #ffb8a7;
  --ah-err-soft-hover: #481e19;
  --ah-err-soft-press: #56241e;
  --ah-surface-hover: #1a231e;
  --ah-surface-press: #212c26;
  --ah-current: #1c2620;
  --ah-current-line: #64736a;
  --ah-disabled-bg: #171e1a;
  --ah-disabled-fg: #8d9e92;
  --ah-focus: #8fe36b;
  --ah-composer-focus: #79c0ff;
  --ah-scrim: rgba(0, 0, 0, 0.55);
  --ah-control: rgba(190, 255, 200, 0.09);
  --ah-control-hover: rgba(190, 255, 200, 0.13);
  --ah-control-press: rgba(190, 255, 200, 0.17);
  --ah-control-line: #617267;
  --ah-ok-line: #45795f;
  --ah-turn-line: #886a2c;
  --ah-disabled-line: #24302a;
}

/* :root[...] as well: spacing.css restates the shadow tokens on :root,
   which would otherwise win on <html> by coming later. */
:root[data-theme="contrast"],
[data-theme="contrast"] {
  --ah-syntax-keyword: #dcc0ff;
  --ah-syntax-string: #a8f0b8;
  --ah-syntax-number: #ffd0a0;
  --ah-syntax-title: #a8dcff;
  --ah-syntax-comment: #d6d6d6;
  --ah-syntax-deletion: #ffb3a0;
  /* Restated so they resolve against this theme's values where the theme is
     set below the root. */
  --ah-source-1: var(--ah-syntax-title);
  --ah-source-2: var(--ah-syntax-string);
  --ah-source-3: var(--ah-syntax-keyword);
  --ah-glyph-0: var(--ah-accent);
  --ah-glyph-1: var(--ah-syntax-title);
  --ah-glyph-2: var(--ah-syntax-keyword);
  --ah-glyph-3: var(--ah-syntax-string);
  --ah-glyph-4: var(--ah-syntax-number);
  --ah-glyph-5: #ffb8dc;
  --ah-glyph-6: #d0d8e0;
  --ah-glyph-7: #e6ee8a;
  --ah-content-canvas: #ffffff;
  --ah-sunken: #000000;
  --ah-hover: #1f1f1f;
  --ah-bg: #000000;
  --ah-surface: #000000;
  --ah-surface-2: #000000;
  --ah-rail: #000000;
  --ah-line: #8c8c8c;
  --ah-line-soft: #5c5c5c;

  --ah-ink: #ffffff;
  --ah-ink-2: #ffffff;
  --ah-muted: #d6d6d6;
  --ah-faint: #d6d6d6;

  --ah-accent: #9dff70;
  --ah-accent-ink: #b9ff99;
  --ah-accent-soft: #12300a;
  --ah-accent-line: #b3b3b3;
  --ah-on-accent: #000000;
  --ah-terminal-selection: var(--ah-accent);
  --ah-terminal-selection-ink: var(--ah-on-accent);

  --ah-ok: #7dffb0;
  --ah-ok-soft: #06240f;
  --ah-turn: #ffd34d;
  --ah-err: #ffa08a;
  --ah-err-soft: #300c05;
  --ah-err-line: #ffa08a;
  --ah-line-strong: #ffffff;
  --ah-accent-hover: #b9ff99;
  --ah-accent-press: #d2ffbd;
  --ah-on-err: #000000;
  --ah-err-hover: #ffb7a6;
  --ah-err-press: #ffcdc0;
  --ah-err-soft-hover: #45130a;
  --ah-err-soft-press: #3a0f08;
  --ah-surface-hover: #1f1f1f;
  --ah-surface-press: #333333;
  --ah-current: #1c1c1c;
  --ah-current-line: #ffffff;
  --ah-disabled-bg: #1c1c1c;
  --ah-disabled-fg: #b8b8b8;
  --ah-focus: #9dff70;
  --ah-composer-focus: #9ecbff;
  --ah-scrim: rgba(0, 0, 0, 0.75);
  /* Fixed greys, not translucent tints: a tint of white reads 1.35–2.46:1
     on black, so a text button's state would be a shade alone. */
  --ah-control: #1f1f1f;
  --ah-control-hover: #333333;
  --ah-control-press: #474747;
  --ah-control-line: #ffffff;
  --ah-ok-line: #7dffb0;
  --ah-turn-line: #ffd34d;
  --ah-disabled-line: #5c5c5c;
  /* A shadow does not show on black; floating surfaces draw a line instead
     (the contrast rules at the end of web/src/components/components.css). */
  --ah-shadow-app: none;
  --ah-shadow-float: none;
  --ah-shadow-menu: none;
  --ah-shadow-dialog: none;
}

/* Designer's Latin/Latin-ext families are bundled with the release, never fetched at runtime.
   OFL licenses and original font files are in ../fonts/. */
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  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;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  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;
}

/* The shell field uses contextual positioning, not substituted text or
   ligatures: one extra space advance after its leading ! / !!. */
@font-face {
  font-family: "Habitat Composer";
  src: url("fonts/habitat-composer.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --ah-composer-mono: "Habitat Composer", var(--ah-mono);
  --ah-font: "Instrument Sans", system-ui, sans-serif;
  --ah-mono: "JetBrains Mono", ui-monospace, monospace;

  --ah-size-h1: 22px;
  --ah-size-h2: 16px;
  --ah-size-title: 15.5px;
  --ah-size-body: 14.5px;
  --ah-size-ui: 13.5px;
  --ah-size-meta: 12.5px;
  --ah-size-label: 11px;
  --ah-size-code: 12.5px;

  --ah-lh-body: 1.6;
  --ah-lh-ui: 1.55;
  --ah-measure: 70ch;

  /* Multiplies the positive tracking of uppercase labels and eyebrows:
     letter-spacing: calc(0.06em * var(--ah-tracking-caps)). Scripts without
     letter case, written without spaces, are spread apart by it instead. */
  --ah-tracking-caps: 1;
}

:root:lang(zh),
:root:lang(ja),
:root:lang(ko) {
  --ah-tracking-caps: 0;
}

/* Väli ja muoto. 4px-ruudukko, keskitiheä. */

:root {
  --ah-s1: 4px;
  --ah-s2: 6px;
  --ah-s3: 9px;
  --ah-s4: 12px;
  --ah-s5: 14px;
  --ah-s6: 18px;
  --ah-s7: 24px;
  --ah-s8: 36px;

  --ah-r-sm: 5px;
  --ah-r-md: 8px;
  --ah-r-lg: 10px;
  --ah-r-xl: 12px;
  --ah-r-pill: 999px;

  --ah-shadow-app: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .06);
  --ah-shadow-float: 0 2px 8px rgba(16, 24, 40, .08);
  --ah-shadow-menu: 0 6px 18px rgba(16, 24, 40, .10);
  --ah-shadow-dialog: 0 12px 40px rgba(16, 24, 40, .18);

  --ah-app-max: 960px;
  --ah-rail-fixed-width: 296px;
  --ah-rail-width: var(--ah-rail-fixed-width);
  /* The adaptive rail is 20 % wider while the
     window still leaves the conversation the room the fixed rail leaves it
     at about 1170 px; in a narrower window it narrows back to the fixed
     width before the conversation gives anything up. */
  --ah-rail-adaptive-width: 356px;
  --ah-rail-adaptive-leaves: 814px;
  --ah-rail-compact-width: 52px;
  --ah-conversation-width: 780px;
  --ah-column-pad-block: 22px;
  /* Keskustelun alareunus: viimeinen rivi istuu kentän päällä, kuten
     Agentin vuoro -luonnoksessa (Jari 30.10.2026). */
  --ah-column-pad-block-end: 8px;
  --ah-column-pad-inline: 24px;
  --ah-topbar-pad-block: 13px;
  --ah-topbar-pad-inline: 24px;
  --ah-composer-pad-block: 12px;
  --ah-composer-field-gap: 6px;
  --ah-composer-rest-height: 44px;
  --ah-r-nav: 9px;
  --ah-touch: 44px;
  /* C2a workspace heading: tiles with the action column beside them. */
  --ah-workspace-tile-height: 120px;
  --ah-workspace-tile-side: 112px;
  --ah-workspace-actions-width: 168px;
  --ah-workspace-tile-gap: 10px;
  --ah-workspace-tile-compact: 64px;
  --ah-workspace-name-compact: 96px;
  --ah-editor-tree-width: 15rem;
  --ah-editor-picker-height: 420px;
  /* Painikkeiden koko roolin mukaan (Rooli ratkaisee, Jari 17.10.2026).
     page: näkymän päätoiminto (käyttöönotto, vahvistus, lähetys);
     row: kortin tai listarivin toiminto;
     inline: pillerit, segmentit ja kentän tai palkin sisäiset kontrollit.
     Ikonipainike on neliö, jonka sivu on roolin korkeus. */
  --ah-control-page: 44px;
  --ah-control-page-font: 14.5px;
  --ah-control-page-pad: 16px;
  --ah-control-page-icon: 18px;
  --ah-control-page-gap: 8px;
  --ah-control-row: 32px;
  --ah-control-row-font: 13px;
  --ah-control-row-pad: 12px;
  --ah-control-row-icon: 16px;
  --ah-control-row-gap: 6px;
  --ah-control-inline: 26px;
  --ah-control-inline-font: 12px;
  --ah-control-inline-pad: 9px;
  --ah-control-inline-icon: 14px;
  --ah-control-inline-gap: 5px;
  /* Fokusrengas: 2 px, 1 px kontrollin ulkopuolella. Vierekkäiset kontrollit
     ovat vähintään --ah-control-gap päässä toisistaan, jolloin renkaat eivät
     koskaan peitä toisiaan; toisiinsa kiinni olevat segmentit piirtävät
     renkaan sisäpuolelleen (--ah-focus-inset). Vierivä säiliö jättää
     reunoilleen --ah-focus-room-verran tilaa. */
  --ah-focus-width: 2px;
  --ah-focus-offset: 1px;
  --ah-focus-inset: calc(-1 * var(--ah-focus-width));
  /* Space a scrolling container keeps outside a control for its focus ring. */
  --ah-focus-room: calc(var(--ah-focus-width) + var(--ah-focus-offset));
  --ah-control-gap: calc(2 * var(--ah-focus-room));
  /* Tiivis conversation rhythm. Shared by live and saved turns. */
  --ah-turn-gap: 3px;
  --ah-turn-column-gap: 8px;
  --ah-turn-work-gap: 6px;
  --ah-feed-gap: 8px;
  --ah-turn-card-padding: 8px 10px;
}

@media (max-width: 800px) {
  :root {
    --ah-topbar-pad-block: 6px;
    --ah-topbar-pad-inline: 14px;
    --ah-column-pad-block: 12px;
    --ah-column-pad-block-end: 6px;
    --ah-column-pad-inline: 14px;
    /* Puhelimessa rivien toiminnot kasvavat 40 px:iin ja sisäiset 32 px:iin. */
    --ah-control-row: 40px;
    --ah-control-row-font: 14px;
    --ah-control-inline: 32px;
  }
}
:root {
  --ah-composer-max-height: 268px;
}

/* Liike. Hillitty ja aina vähennettävissä. */

:root {
  --ah-title-spin: ah-title-spin 1000ms linear infinite;
  --ah-title-dot: ah-title-dot 1000ms ease-in-out infinite;
  --ah-title-dot-step: 120ms;
  --ah-pulse: 1.6s ease-in-out infinite;
  --ah-expand: 180ms cubic-bezier(.2, .7, .3, 1);
  --ah-fade: 160ms ease;
  --ah-appear: 180ms cubic-bezier(.2, .7, .3, 1);
  --ah-transition: 120ms ease;
  /* Rail state-change round 2, A: shared travel, then a brief arrival. */
  --ah-rail-move-ms: 620;
  --ah-rail-edge-ms: 340;
  --ah-rail-flight-ms: 1700;
  --ah-rail-move-ease: cubic-bezier(.25, .75, .25, 1);
  --ah-rail-roll: 480ms var(--ah-rail-move-ease) both;
  --ah-rail-glow: 1.8s ease-out both;
}

@keyframes ah-title-spin { to { transform: rotate(360deg) } }

@keyframes ah-title-dot { 0%, 70%, 100% { opacity: .45 } 35% { opacity: 1; transform: translateY(-2px) } }

@keyframes ah-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes ah-appear { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }

@media (prefers-reduced-motion: reduce) {
  :root { --ah-pulse: none; --ah-expand: 0ms; --ah-fade: 0ms; --ah-appear: 0ms; --ah-transition: 0ms; }
  * { animation: none !important; transition: none !important; }
}

/* The brand Jari chose on 13.11.2026: the themes Päivä, Yö and Korkea
   kontrasti on the --ah-* token names, and the mark with its states. The
   blocks are the round 2026-11-13-website-front-page brand.css (itself the
   brand-themes-and-state-mark issue's CSS) unchanged. Loaded after
   design-system/styles.css, so they replace its colours here until the
   design system's own tokens carry them; then this file goes. */
/* Kolme teemaa nykyisillä --ah-*-nimillä: Päivä, Yö ja Korkea kontrasti. */

/* Päivä (Sammal) */
:root,
[data-theme="light"] {
  --ah-source-1: var(--ah-syntax-title);
  --ah-source-2: var(--ah-syntax-string);
  --ah-source-3: var(--ah-syntax-keyword);
  --ah-glyph-0: var(--ah-accent);
  --ah-glyph-1: var(--ah-syntax-title);
  --ah-glyph-2: var(--ah-syntax-keyword);
  --ah-glyph-3: var(--ah-syntax-string);
  --ah-glyph-4: var(--ah-syntax-number);
  --ah-syntax-keyword: #71419b;
  --ah-syntax-string: #216142;
  --ah-syntax-number: #8a4b16;
  --ah-syntax-title: #185e87;
  --ah-syntax-comment: #5c675d;
  --ah-syntax-deletion: #a3412b;
  --ah-glyph-5: #9b3d73;
  --ah-glyph-6: #4a5a6b;
  --ah-glyph-7: #5c6a1a;
  --ah-sunken: #eff3ea;
  --ah-hover: rgba(20, 40, 20, 0.06);
  --ah-bg: #f6f8f2;
  --ah-surface: #ffffff;
  --ah-surface-2: #fbfcf9;
  --ah-content-canvas: #ffffff;
  --ah-rail: #eef2e8;
  --ah-line: #dde4d5;
  --ah-line-soft: #e9eee2;
  --ah-ink: #17201a;
  --ah-ink-2: #3a453c;
  --ah-muted: #5c675d;
  --ah-faint: #626d63;
  --ah-accent: #2c6e3f;
  --ah-accent-ink: #1f5430;
  --ah-accent-soft: #e3f1e1;
  --ah-accent-line: #c5dfc3;
  --ah-on-accent: #ffffff;
  --ah-ok: #0f6f78;
  --ah-ok-soft: #e4f3f5;
  --ah-turn: #a86400;
  --ah-err: #a3412b;
  --ah-err-soft: #fdf1ee;
  --ah-err-line: #bf7565;
  --ah-line-strong: #bfcab3;
  --ah-accent-hover: #245e35;
  --ah-accent-press: #1f5430;
  --ah-on-err: #ffffff;
  --ah-err-hover: #8e3825;
  --ah-err-press: #7a2f1f;
  --ah-err-soft-hover: #fae4de;
  --ah-err-soft-press: #f6d6cd;
  --ah-surface-hover: #f1f4ec;
  --ah-surface-press: #e7ecdf;
  --ah-current: #ffffff;
  --ah-current-line: #d0d9c6;
  --ah-disabled-bg: #ebefe5;
  --ah-disabled-fg: #5c675d;
  --ah-focus: #2c6e3f;
  --ah-composer-focus: #086bc1;
  --ah-scrim: rgba(20, 32, 22, 0.32);
  --ah-control: rgba(20, 40, 20, 0.06);
  --ah-control-hover: rgba(20, 40, 20, 0.1);
  --ah-control-press: rgba(20, 40, 20, 0.14);
  --ah-control-line: #b3bfa8;
}

/* Yö (Matrix) */
[data-theme="dark"] {
  --ah-source-1: var(--ah-syntax-title);
  --ah-source-2: var(--ah-syntax-string);
  --ah-source-3: var(--ah-syntax-keyword);
  --ah-glyph-0: var(--ah-accent);
  --ah-glyph-1: var(--ah-syntax-title);
  --ah-glyph-2: var(--ah-syntax-keyword);
  --ah-glyph-3: var(--ah-syntax-string);
  --ah-glyph-4: var(--ah-syntax-number);
  --ah-syntax-keyword: #c9a6f0;
  --ah-syntax-string: #9ad8a0;
  --ah-syntax-number: #edba8d;
  --ah-syntax-title: #8fd0e8;
  --ah-syntax-comment: #96a69a;
  --ah-syntax-deletion: #f0a08c;
  --ah-glyph-5: #e7a3c8;
  --ah-glyph-6: #a8b8ae;
  --ah-glyph-7: #d3cf74;
  --ah-sunken: #090d0b;
  --ah-hover: rgba(160, 255, 170, 0.07);
  --ah-bg: #0d1210;
  --ah-surface: #141b17;
  --ah-surface-2: #101613;
  --ah-content-canvas: #ffffff;
  --ah-rail: #0a0f0d;
  --ah-line: #24302a;
  --ah-line-soft: #1b2520;
  --ah-ink: #e3ece4;
  --ah-ink-2: #bccabf;
  --ah-muted: #8d9e92;
  --ah-faint: #879a8c;
  --ah-accent: #8fe36b;
  --ah-accent-ink: #a6ee86;
  --ah-accent-soft: #17301b;
  --ah-accent-line: #2b5230;
  --ah-on-accent: #0a1a0b;
  --ah-ok: #86dba6;
  --ah-ok-soft: #14261c;
  --ah-turn: #e8b450;
  --ah-err: #ff8370;
  --ah-err-soft: #3a1814;
  --ah-err-line: #b0503f;
  --ah-line-strong: #3a4b42;
  --ah-accent-hover: #a2ec82;
  --ah-accent-press: #b6f29b;
  --ah-on-err: #1a0c08;
  --ah-err-hover: #ffa48f;
  --ah-err-press: #ffb8a7;
  --ah-err-soft-hover: #481e19;
  --ah-err-soft-press: #56241e;
  --ah-surface-hover: #1a231e;
  --ah-surface-press: #212c26;
  --ah-current: #1c2620;
  --ah-current-line: #33443a;
  --ah-disabled-bg: #171e1a;
  --ah-disabled-fg: #8d9e92;
  --ah-focus: #8fe36b;
  --ah-composer-focus: #79c0ff;
  --ah-scrim: rgba(0, 0, 0, 0.55);
  --ah-control: rgba(190, 255, 200, 0.09);
  --ah-control-hover: rgba(190, 255, 200, 0.13);
  --ah-control-press: rgba(190, 255, 200, 0.17);
  --ah-control-line: #4a5c51;
}

/* Korkea kontrasti (tumma) */
[data-theme="contrast"] {
  --ah-source-1: var(--ah-syntax-title);
  --ah-source-2: var(--ah-syntax-string);
  --ah-source-3: var(--ah-syntax-keyword);
  --ah-glyph-0: var(--ah-accent);
  --ah-glyph-1: var(--ah-syntax-title);
  --ah-glyph-2: var(--ah-syntax-keyword);
  --ah-glyph-3: var(--ah-syntax-string);
  --ah-glyph-4: var(--ah-syntax-number);
  --ah-syntax-keyword: #dcc0ff;
  --ah-syntax-string: #a8f0b8;
  --ah-syntax-number: #ffd0a0;
  --ah-syntax-title: #a8dcff;
  --ah-syntax-comment: #d6d6d6;
  --ah-syntax-deletion: #ffb3a0;
  --ah-glyph-5: #ffb8dc;
  --ah-glyph-6: #d0d8e0;
  --ah-glyph-7: #e6ee8a;
  --ah-sunken: #000000;
  --ah-hover: rgba(255, 255, 255, 0.14);
  --ah-bg: #000000;
  --ah-surface: #000000;
  --ah-surface-2: #000000;
  --ah-content-canvas: #ffffff;
  --ah-rail: #000000;
  --ah-line: #8c8c8c;
  --ah-line-soft: #5c5c5c;
  --ah-ink: #ffffff;
  --ah-ink-2: #ffffff;
  --ah-muted: #d6d6d6;
  --ah-faint: #d6d6d6;
  --ah-accent: #9dff70;
  --ah-accent-ink: #b9ff99;
  --ah-accent-soft: #12300a;
  --ah-accent-line: #8c8c8c;
  --ah-on-accent: #000000;
  --ah-ok: #7dffb0;
  --ah-ok-soft: #06240f;
  --ah-turn: #ffd34d;
  --ah-err: #ffa08a;
  --ah-err-soft: #300c05;
  --ah-err-line: #ffa08a;
  --ah-line-strong: #ffffff;
  --ah-accent-hover: #b9ff99;
  --ah-accent-press: #d2ffbd;
  --ah-on-err: #000000;
  --ah-err-hover: #ffb7a6;
  --ah-err-press: #ffcdc0;
  --ah-err-soft-hover: #45130a;
  --ah-err-soft-press: #5a1a0e;
  --ah-surface-hover: #1f1f1f;
  --ah-surface-press: #333333;
  --ah-current: #1c1c1c;
  --ah-current-line: #ffffff;
  --ah-disabled-bg: #1c1c1c;
  --ah-disabled-fg: #b8b8b8;
  --ah-focus: #9dff70;
  --ah-composer-focus: #9ecbff;
  --ah-scrim: rgba(0, 0, 0, 0.75);
  --ah-control: rgba(255, 255, 255, 0.14);
  --ah-control-hover: rgba(255, 255, 255, 0.22);
  --ah-control-press: rgba(255, 255, 255, 0.3);
  --ah-control-line: #ffffff;
}

/* Open Habitat -merkki ja sen tilat. Kehä on habitaatti, piste asukas (agentti), aukko ovi.
   Merkki: <svg class="oh-mark" data-state="…" viewBox="-12 -12 24 24">
             <path class="oh-ring" pathLength="100" d="M9 -2v6a5 5 0 0 1-5 5h-8a5 5 0 0 1-5-5v-8a5 5 0 0 1 5-5h8a5 5 0 0 1 5 5z"/>
             <circle class="oh-dot" r="2.5"/>
             <g class="oh-orbit"><circle class="oh-sub" data-state="…" r="1.3" cx cy/>…</g>   (aliagentit, säde 5.6)
           </svg>
   Väri tulee currentColorista; tila näkyy sekä muodosta että väristä:
   sinun vuorosi --ah-turn, valmis --ah-ok, virhe --ah-err. */
.oh-mark{overflow:visible;flex:none;--tx:5px;--ty:-5px}
.oh-ring{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:81.3 18.7}
.oh-dot,.oh-sub{fill:currentColor;transform-box:fill-box;transform-origin:center}

/* idle: paikallaan, sama kuin logo */
/* thinking: asukas hengittää */
.oh-mark[data-state=thinking] .oh-dot{animation:oh-breathe 1.5s ease-in-out infinite}
@keyframes oh-breathe{0%,100%{transform:scale(.55);opacity:.55}50%{transform:scale(1.2);opacity:1}}
/* working: ovi kiertää kehää */
/* alkaa puolikierroksen päästä, jotta pysäytyskuvakin eroaa logosta */
.oh-mark[data-state=working] .oh-ring{stroke-dashoffset:-50;animation:oh-turn 1.7s cubic-bezier(.65,0,.35,1) infinite}
@keyframes oh-turn{to{stroke-dashoffset:-150}}
/* waiting: asukas tulee ovelle ja koputtaa, sinun vuorosi -värillä */
/* koko merkki vaihtaa väriä, koska pelkkä piste ei erotu 14–16 px:ssä */
.oh-mark[data-state=waiting]{color:var(--ah-turn)}
.oh-mark[data-state=waiting] .oh-dot{animation:oh-knock 2.6s ease-in-out infinite}
@keyframes oh-knock{0%,8%{transform:translate(0,0)}28%{transform:translate(var(--tx),var(--ty))}38%{transform:translate(calc(var(--tx)*.75),calc(var(--ty)*.75))}48%{transform:translate(var(--tx),var(--ty))}58%{transform:translate(calc(var(--tx)*.75),calc(var(--ty)*.75))}68%,82%{transform:translate(var(--tx),var(--ty))}100%{transform:translate(0,0)}}
/* done: ovi kiinni, kehä ehjä */
.oh-mark[data-state=done]{color:var(--ah-ok)}
.oh-mark[data-state=done] .oh-ring{stroke-dasharray:100 0}
/* error: virheväri, ontto asukas */
.oh-mark[data-state=error]{color:var(--ah-err)}
.oh-mark[data-state=error] .oh-dot{fill:none;stroke:currentColor;stroke-width:1.6}
/* read: vastaus on jo luettu. Asukas seisoo ovella hiljaa: ontto, ei koputusta. */
.oh-mark[data-state=read]{color:var(--ah-turn)}
.oh-mark[data-state=read] .oh-dot{fill:none;stroke:currentColor;stroke-width:1.6;transform:translate(var(--tx),var(--ty))}
/* background: agentti odottaa taustatyötä. Asukas on himmeä ja ovi kiertää hitaasti, tasaisesti. */
.oh-mark[data-state=background] .oh-dot{opacity:.45}
.oh-mark[data-state=background] .oh-ring{stroke-dashoffset:-25;animation:oh-drift 6s linear infinite}
@keyframes oh-drift{to{stroke-dashoffset:-125}}
/* awaited: aliagentti, jota pääagentti odottaa. Työskentelee, ja asukas hengittää samalla. */
.oh-mark[data-state=awaited] .oh-ring{stroke-dashoffset:-50;animation:oh-turn 1.7s cubic-bezier(.65,0,.35,1) infinite}
.oh-mark[data-state=awaited] .oh-dot{animation:oh-breathe 1.5s ease-in-out infinite}
/* unknown: tilaa ei tiedetä. Katkoviivakehä, himmeä väri, ei asukasta. */
.oh-mark[data-state=unknown]{color:var(--ah-muted)}
.oh-mark[data-state=unknown] .oh-ring{stroke-dasharray:4.5 8}
.oh-mark[data-state=unknown] .oh-dot{display:none}
/* stopping: vuoroa pysäytetään. Ovi sulkeutuu ja aukeaa. */
.oh-mark[data-state=stopping] .oh-ring{animation:oh-close 1.2s ease-in-out infinite alternate}
.oh-mark[data-state=stopping] .oh-dot{opacity:.45}
@keyframes oh-close{from{stroke-dasharray:81.3 18.7}to{stroke-dasharray:100 0}}
/* loading: kehä hakee muotoaan, asukas ei ole vielä kotona */
.oh-mark[data-state=loading] .oh-dot{transform:scale(.4);opacity:.3}
.oh-mark[data-state=loading] .oh-ring{animation:oh-load 1.8s ease-in-out infinite}
@keyframes oh-load{0%{stroke-dasharray:8 92;stroke-dashoffset:0}50%{stroke-dasharray:70 30;stroke-dashoffset:-40}100%{stroke-dasharray:8 92;stroke-dashoffset:-100}}
/* intro: sivu avataan, kehä piirtyy ja asukas astuu ovesta sisään (kerran) */
.oh-mark[data-state=intro] .oh-ring{animation:oh-draw 1.1s ease-in-out both}
@keyframes oh-draw{from{stroke-dasharray:0 100}to{stroke-dasharray:81.3 18.7}}
.oh-mark[data-state=intro] .oh-dot{animation:oh-enter .7s cubic-bezier(.3,1.3,.5,1) .9s both}
@keyframes oh-enter{from{transform:translate(calc(var(--tx)*2.6),calc(var(--ty)*2.6)) scale(.4);opacity:0}30%{opacity:1}to{transform:none;opacity:1}}

/* aliagentit: kiertolaiset */
.oh-orbit{animation:oh-orbit 16s linear infinite}
@keyframes oh-orbit{to{transform:rotate(360deg)}}
.oh-mark:has(.oh-sub) .oh-dot{r:2px}
.oh-sub[data-state=working]{animation:oh-breathe .9s ease-in-out infinite}
.oh-sub[data-state=thinking]{animation:oh-breathe 1.9s ease-in-out infinite}
.oh-sub[data-state=waiting]{fill:var(--ah-turn);animation:oh-blink 1.2s steps(2,jump-none) infinite}
.oh-sub[data-state=error]{fill:var(--ah-err)}
@keyframes oh-blink{0%{opacity:1}100%{opacity:.2}}

/* Liikkeen vähennys: tila näkyy silti muodosta ja väristä (ovella, kiinni, ontto). */
@media (prefers-reduced-motion:reduce){
 .oh-mark *,.oh-orbit{animation:none!important}
 .oh-mark[data-state=waiting] .oh-dot{transform:translate(var(--tx),var(--ty))}
 .oh-mark[data-state=read] .oh-dot{transform:translate(var(--tx),var(--ty))}
}


/* Page and story engine: shared, not a block worker's file. Ported from round 6's round.css (variant 1 only). */

body { margin: 0; background: var(--ah-bg); }
/* ---------- Shared page pieces ---------- */
.pg { font-family: var(--ah-font); color: var(--ah-ink); background: var(--ah-bg); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; padding-bottom: 76px; /* room for the floating picker at the end */ }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg h1, .pg h2, .pg h3 { margin: 0; text-wrap: balance; }
.pg p { margin: 0 0 0.8em; text-wrap: pretty; }
.pg a { color: var(--ah-accent-ink); }
.pg code { font-family: var(--ah-mono); font-size: 0.86em; }
.pg pre { font-family: var(--ah-mono); font-size: 13px; line-height: 1.7; background: var(--ah-surface); border: 1px solid var(--ah-line); border-radius: var(--ah-r-lg); padding: 14px 16px; overflow-x: auto; color: var(--ah-ink-2); margin: 0 0 1em; }
.pg figure { margin: 0; }
.pg img { display: block; max-width: 100%; height: auto; }
.pg .shot { border-radius: 12px; border: 1px solid var(--ah-line); box-shadow: var(--ah-shadow-app); background: var(--ah-surface); }
.pg .shot.plain { border: 0; box-shadow: none; background: none; border-radius: 0; }
.pg .quiet { color: var(--ah-muted); }
.pg .brandword { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ah-ink); text-decoration: none; }
.pg .brandword .oh-mark { color: var(--ah-accent); }
.pg .btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: var(--ah-r-pill); background: var(--ah-accent); color: var(--ah-on-accent); font-weight: 600; text-decoration: none; transition: background-color 150ms ease-out; }
.pg .btn:hover { background: var(--ah-accent-hover); }
.pg .btn.ghost { background: transparent; color: var(--ah-accent-ink); box-shadow: inset 0 0 0 1.5px var(--ah-control-line); }
.pg .btn.ghost:hover { background: var(--ah-accent-soft); }
.pg .kicker { font-family: var(--ah-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ah-accent-ink); margin-bottom: 14px; }
.pg .foot { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 40px) 20px; border-top: 1px solid var(--ah-line); color: var(--ah-ink-2); font-size: 14px; }
.pg .foot .quiet { flex-basis: 100%; }

/* The message to your coding agent, with a copy button. */

/* ---------- Hero: identical in all three ---------- */
.top { display: flex; justify-content: space-between; align-items: center; max-width: 1240px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 40px); }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ah-ink-2); }
.top nav a:hover { color: var(--ah-accent-ink); }
.hero { text-align: center; max-width: 920px; margin: 0 auto; padding: clamp(24px, 6vw, 64px) 20px 0; }
.eyebrow { font-size: 14px; color: var(--ah-muted); letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 22px; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--ah-ink-2); max-width: 680px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }
/* The band is the capture's own background colour (build.mjs), full width, so
   the image has no visible edge; the image is centred inside it. */
.pg .hero-band { margin: clamp(32px, 5vw, 56px) 0 0; padding: 0 clamp(4px, 3vw, 48px); background: rgb(232, 236, 229); display: flex; justify-content: center; }
.pg .hero-img { width: 100%; max-width: 1380px; }

@media (max-width: 720px) {
  .pg { font-size: 16px; }
  .top nav a:not(:last-child) { display: none; }
  .hero h1 br { display: none; }
}

/* ---------- The day's shared pieces ---------- */
.day-intro { max-width: 780px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) clamp(20px, 4vw, 40px) clamp(28px, 4vw, 52px); text-align: center; }
.day-intro h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 20px; }
.day-intro p:last-child { font-size: clamp(17px, 1.8vw, 20px); color: var(--ah-ink-2); }
.day-end { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px) 0; text-align: center; }
.day-end p { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: var(--ah-ink); font-weight: 500; text-wrap: balance; }
.pg .ask { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.16; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 14px; }
.pg .did { color: var(--ah-ink-2); }
.pg .back, .pg .why { font-size: 15px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 2px 12px; border-top: 1px solid var(--ah-line); padding-top: 10px; margin-bottom: 10px; }
.pg .back { color: var(--ah-ink); }
.pg .why { color: var(--ah-accent-ink); }
.pg .back > span, .pg .why > span { font-family: var(--ah-mono); font-size: 11px; line-height: 2; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ah-muted); }
.pg .why > span { color: var(--ah-accent); }

/* The stub below the day: where round 2's install and limits would continue. */
.stub { max-width: 860px; margin: clamp(56px, 8vw, 104px) auto 56px; padding: 40px clamp(20px, 4vw, 48px); text-align: center; background: var(--ah-surface); border: 1px solid var(--ah-line); border-radius: 22px; }
.stub h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 14px; }
.stub > p:not(.kicker):not(.cta):not(.stub-note) { color: var(--ah-ink-2); max-width: 620px; margin-left: auto; margin-right: auto; }
.stub .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; }
.pg .stub-note { margin: 22px 0 0; font-size: 13px; color: var(--ah-muted); font-style: italic; }

/* ---------- Round 4: pieces shared by the three forms ---------- */
.pg .u-note { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--ah-muted); }
.u-note svg { width: 14px; height: 14px; }
.pg .diff-h small { margin-left: auto; font: 600 10.5px var(--ah-font); letter-spacing: .06em; text-transform: uppercase; color: var(--ah-accent-ink); background: var(--ah-accent-soft); padding: 2px 8px; border-radius: var(--ah-r-pill); white-space: nowrap; }
.pg .run-lbl { display: flex; align-items: center; gap: 8px; color: var(--ah-ink-2); font-size: 13.5px; }
.run-lbl .oh-mark { color: var(--ah-accent); }
.pg .hist { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--ah-line-soft); font-size: 12.5px; color: var(--ah-muted); }
.quiet-btn { border: 0; background: none; padding: 4px 8px; border-radius: var(--ah-r-pill); font: 600 12.5px var(--ah-font); color: var(--ah-accent-ink); cursor: pointer; }
.quiet-btn:hover { background: var(--ah-control); }

/* Time and place, and the three state counts in the product's words. */
.when { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.when > b { font: 600 15px var(--ah-mono); font-variant-numeric: tabular-nums; color: var(--ah-ink); }
.when > span { display: inline-flex; align-items: center; gap: 6px; color: var(--ah-ink-2); font-size: 14px; }
.pl-ic { width: 17px; height: 17px; flex: none; color: var(--ah-muted); }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chips i, .ph-chips i { font: 600 12px var(--ah-font); font-style: normal; padding: 3px 9px 3px 8px; border-radius: var(--ah-r-pill); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chips i::before, .ph-chips i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.c-turn { background: color-mix(in srgb, var(--ah-turn) 13%, var(--ah-surface)); color: var(--ah-turn); }
.c-run { background: var(--ah-accent-soft); color: var(--ah-accent-ink); }
.c-quiet { background: var(--ah-sunken); color: var(--ah-muted); }

/* The sidebar: Your turn, Running, Quiet, as in the product. */
.rl { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; }
.rl-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 0 8px; font: 600 11px var(--ah-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ah-muted); }
.rl-sec h4 b { font-weight: 500; }
.rl-sec-turn h4 { color: var(--ah-turn); }
.rl-sec-run h4 { color: var(--ah-accent-ink); }
.rl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pg .rl-none { margin: 0; padding: 2px 8px; font-size: 12.5px; color: var(--ah-faint); }
.rl-row { width: 100%; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; grid-template-areas: "m t time" ". l l"; align-items: center; column-gap: 9px; padding: 6px 8px; border: 0; border-radius: var(--ah-r-md); background: transparent; color: var(--ah-ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 120ms ease-out; }
.rl-row:hover { background: var(--ah-hover); }
.rl-row:focus-visible, .s3-b:focus-visible, .ln-pin:focus-visible, .d2-b:focus-visible, .s2-play:focus-visible { outline: 2px solid var(--ah-focus); outline-offset: 2px; }
.rl-row[aria-current] { background: var(--ah-current); box-shadow: inset 0 0 0 1px var(--ah-current-line); }
.rl-row .oh-mark { grid-area: m; color: var(--ah-accent); }
.rl-turn .oh-mark { color: var(--ah-turn); }
.rl-quiet .oh-mark { color: var(--ah-line-strong); }
.rl-t { grid-area: t; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-quiet .rl-t { font-weight: 400; color: var(--ah-ink-2); }
.rl-l { grid-area: l; font-size: 12.5px; color: var(--ah-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-turn .rl-l { color: var(--ah-turn); }
.rl-row time { grid-area: time; font: 400 11.5px var(--ah-mono); color: var(--ah-muted); }
.rl-small { gap: 8px; font-size: 13px; }
.rl-small .rl-row { grid-template-columns: 13px minmax(0, 1fr) auto auto; grid-template-areas: "m t time n"; padding: 4px 6px; cursor: default; }
.rl-small .rl-row:not(.hot):hover { background: transparent; }
.rl-small .rl-row.hot { cursor: pointer; background: var(--ah-surface); box-shadow: inset 0 0 0 1px var(--ah-line); }
.rl-small .rl-row.hot:hover { box-shadow: inset 0 0 0 1px var(--ah-accent-line); }
.rl-small h4 { padding: 0 6px; margin-bottom: 2px; }
.rl-n { grid-area: n; font: 600 11px var(--ah-font); font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ah-accent); color: var(--ah-on-accent); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 1 Sivupalkki: steps beside the product's own screen ---------- */
.s1 { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.s1-inline { display: none; }
.s1-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0; opacity: .38; transition: opacity 250ms ease-out; }
.s1-step:first-child { min-height: 60vh; padding-top: 0; justify-content: flex-start; }
.s1-step:last-child { min-height: 70vh; }
.s1-step.on { opacity: 1; }
.pg .s1-when { margin-bottom: 14px; }
.pg .s1-count { margin: 4px 0 0; font-size: 13.5px; color: var(--ah-muted); font-family: var(--ah-mono); }
.s1-app { grid-column: 2; grid-row: 1; position: sticky; top: 20px; height: calc(100vh - 104px); min-height: 520px; display: flex; flex-direction: column; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-bg); box-shadow: var(--ah-shadow-app); overflow: hidden; }
.s1-steps { grid-column: 1; grid-row: 1; }
.s1-top { flex: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--ah-surface); border-bottom: 1px solid var(--ah-line); font-size: 13.5px; }
.s1-top .oh-mark { color: var(--ah-accent); }
.s1-clock { margin-left: auto; }
.s1-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.s1-rail { overflow-y: auto; padding: 14px 8px; background: var(--ah-rail); border-right: 1px solid var(--ah-line); }
.s1-main { overflow-y: auto; min-width: 0; }
.s1-main > .blk > .scr, .s1-main > .blk > .ph-stage { border: 0; border-radius: 0; box-shadow: none; min-height: 100%; }
.s1-main > .blk > .scr > .scr-bar { position: sticky; top: 0; z-index: 1; }
@media (max-width: 1100px) { .s1-body { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .s1 { display: block; padding: 0; }
  .s1-app { display: none; }
  .s1-steps { padding: 0 16px; }
  .s1-step { min-height: 0; opacity: 1; padding: 44px 0 8px; }
  .s1-step:first-child { min-height: 0; padding-top: 28px; }
  .s1-step:last-child { min-height: 0; }
  .s1-inline { display: block; margin-top: 18px; }
}

@media (max-width: 520px) {
  .scr-convo { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .s1-step, .ln-place, .vid-cloth { transition: none; }
  .s3-dlg[open] { animation: none; }
}

/* =====================================================================
   Round 5: people, story sections, roles, capabilities and their mocks
   ===================================================================== */
.av { width: var(--px); height: var(--px); flex: none; border-radius: 50%; background: var(--av); color: #fff; display: inline-grid; place-items: center; font: 600 calc(var(--px) * .46)/1 var(--ah-font); }
.who-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.who-tag > span:last-child { color: var(--ah-muted); }
.mw { font: 600 11px var(--ah-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ah-turn); background: color-mix(in srgb, var(--ah-turn) 12%, var(--ah-surface)); padding: 3px 9px; border-radius: var(--ah-r-pill); }
.pg .s1-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.when-sep { width: 1px; height: 16px; background: var(--ah-line); }
.pg .hand { font-size: 14.5px; color: var(--ah-accent-ink); border-left: 3px solid var(--ah-accent-line); padding: 2px 0 2px 12px; }
.mw-step { padding-left: 18px !important; border-left: 2px dashed var(--ah-line-strong); }
.mw-step .ask { font-size: clamp(19px, 1.9vw, 24px); }
.s1-top .av { --px: 22px; }
.s1-org { color: var(--ah-muted); }
.s1-app { transition: box-shadow 200ms ease-out; }
.s1-app.mw-app { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ah-turn) 35%, transparent), var(--ah-shadow-app); }
.s1-norail .s1-body { grid-template-columns: minmax(0, 1fr); }
.s1-cap .s1-step, .s1-role .s1-step { min-height: 66vh; }
.s1-cap .s1-step:first-child, .s1-role .s1-step:first-child { min-height: 50vh; padding-top: 4vh; }
.s1-cap .s1-step:last-child, .s1-role .s1-step:last-child { min-height: 56vh; }
.s1-cap .s1-app { height: calc(100vh - 120px); max-height: 760px; }
.cap-tag { font: 600 12px var(--ah-mono); color: var(--ah-accent-ink); background: var(--ah-accent-soft); padding: 3px 9px; border-radius: var(--ah-r-pill); }
.cap-who { font-size: 14px; color: var(--ah-muted); }
.cap-prog { font: 500 12px var(--ah-mono); color: var(--ah-muted); }

/* ---------- 1 Oma osio: the roles section ---------- */
.roles { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--ah-line); }
.role-nav, .cast { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.role-nav a, .cast li { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border: 1px solid var(--ah-line); border-radius: var(--ah-r-pill); background: var(--ah-surface); text-decoration: none; color: var(--ah-ink-2); font-size: 13.5px; text-align: left; }
.role-nav a > span:last-child, .cast li > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.role-nav a b, .cast li b { color: var(--ah-ink); font-weight: 600; }
.role-nav a:hover { border-color: var(--ah-accent-line); }
.role { padding-top: clamp(40px, 6vw, 72px); }
.role-h { max-width: 1320px; margin: 0 auto clamp(12px, 2vw, 24px); padding: 0 clamp(20px, 3vw, 40px); display: flex; gap: 16px; align-items: flex-start; }
.role-h h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; }
.pg .role-h p { margin: 0; color: var(--ah-ink-2); max-width: 62ch; }
.pg .role-h .role-k { font: 500 12.5px var(--ah-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ah-muted); margin-bottom: 2px; }
.role-n { margin-left: auto; font: 500 13px var(--ah-mono); color: var(--ah-faint); }

/* ---------- The capabilities section ---------- */
.caps { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--ah-line); }
.caps-intro { max-width: 980px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) clamp(20px, 4vw, 40px) 10px; text-align: center; }
.caps-intro h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 20px; }
.caps-intro > p:not(.kicker) { font-size: clamp(17px, 1.8vw, 20px); color: var(--ah-ink-2); max-width: 760px; margin-left: auto; margin-right: auto; }
.lib { list-style: none; padding: 0; margin: 28px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; text-align: left; }
.lib li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-surface); }
.lib b { font-size: 18px; letter-spacing: -.01em; }
.lib small { font: 500 11px var(--ah-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ah-muted); }
.lib q { font-size: 14.5px; color: var(--ah-ink-2); margin: 4px 0; }
.lib a { margin-top: auto; font: 400 12px var(--ah-mono); }
.pg .caps-intro .lib-also { font-size: 14.5px; color: var(--ah-muted); max-width: 760px; margin: 0 auto; }
.cap-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.cap-nav a { padding: 6px 12px; border: 1px solid var(--ah-line); border-radius: var(--ah-r-pill); text-decoration: none; color: var(--ah-ink-2); font-size: 13.5px; background: var(--ah-bg); }
.cap-nav a b { font-weight: 500; color: var(--ah-muted); margin-left: 4px; }
.cap-nav a:hover { border-color: var(--ah-accent-line); color: var(--ah-accent-ink); }
.cap-g { padding-top: clamp(48px, 7vw, 88px); }
.cap-gh { max-width: 1320px; margin: 0 auto 10px; padding: 0 clamp(20px, 3vw, 40px); }
.cap-gh h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; }
.pg .cap-gh p { color: var(--ah-ink-2); margin: 4px 0 0; }
.cap-more { max-width: 1320px; margin: 8px auto 0; padding: 0 clamp(20px, 3vw, 40px); }
.cap-more > summary { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--ah-r-pill); background: var(--ah-control); font: 600 14px var(--ah-font); cursor: pointer; list-style: none; }
.cap-more > summary::-webkit-details-marker, .cap-it summary::-webkit-details-marker { display: none; }
.cap-more > summary::before, .cap-it summary::before { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); transition: transform 150ms ease-out; }
.cap-more[open] > summary::before, .cap-it[open] summary::before { transform: rotate(45deg); }
.cap-more ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 8px; align-items: start; }
.cap-it { border: 1px solid var(--ah-line); border-radius: 12px; background: var(--ah-surface); }
.cap-it summary { display: flex; align-items: baseline; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.cap-it summary::before { flex: none; align-self: center; }
.cap-t { font-weight: 500; font-size: 15px; }
.cap-p { margin-left: auto; font: 400 11.5px var(--ah-mono); color: var(--ah-muted); text-align: right; }
.cap-b { padding: 0 12px 12px; }
.cap-b .scr { box-shadow: none; }
.cap-b .bubble-head time:empty { display: none; }
.pg .cap-by { margin: 8px 2px 0; font-size: 12.5px; color: var(--ah-muted); }

/* The slim product window and the pieces around the conversation (attachment, drafts, diff, view panel). Shared; from round 6's round.css. */

/* ---------- A screen: the product's conversation language in a slim window ---------- */
.scr { container-type: inline-size; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-bg); box-shadow: var(--ah-shadow-app); overflow: hidden; font: 400 var(--ah-size-body)/var(--ah-lh-body) var(--ah-font); color: var(--ah-ink); text-align: left; }
.scr-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--ah-line); background: var(--ah-surface); font-size: 13px; }
.scr-bar .oh-mark { color: var(--ah-accent); }
.scr-bar b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-bar span { color: var(--ah-muted); margin-left: auto; white-space: nowrap; }
.scr-main { display: grid; }
.scr-convo { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-width: 0; }
.pg .scr p { margin: 0; }
.pg .scr .prose p { margin: 0 0 .5em; }
.pg .scr .prose p:last-child { margin-bottom: 0; }
.pg .scr code { font-size: var(--ah-size-code); }
.pg .scr .prose em { font-style: italic; }
.pg .scr pre { margin: 0; padding: 8px 10px; font: 400 12px/1.6 var(--ah-mono); border: 1px solid var(--ah-line-soft); background: var(--ah-sunken); border-radius: 8px; color: var(--ah-ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.scr .cell { display: flex; flex-direction: column; gap: 10px; }
.scr .md-table { margin-bottom: .5em; }
.scr .md-table table { font-size: 13px; }
.scr .md-table :is(td, th) { overflow-wrap: normal; white-space: nowrap; padding-right: 14px; }
@container (max-width: 420px) { .scr .md-table :is(td, th) { padding-right: 8px; font-size: 12.5px; } }
.scr .working-lbl { margin: 4px 0 0; }

/* A file the person attached, and a file the agent offers. */
.att { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--ah-line); border-radius: 8px; background: var(--ah-surface); font-size: 13px; width: fit-content; max-width: 100%; }
.att svg, .offer svg, .diff-h svg, .f-h svg, .scr-view-h svg { width: 16px; height: 16px; flex: none; color: var(--ah-muted); }
.att-n { font-weight: 500; }
/* Mail drafts in the person's own mailbox. */
.drafts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dr { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--ah-line); border-radius: 10px; background: var(--ah-surface); font-size: 13px; }
.dr > svg { width: 17px; height: 17px; color: var(--ah-muted); margin-top: 1px; }
.dr-main { display: flex; flex-direction: column; min-width: 0; }
.dr-to { color: var(--ah-muted); font-size: 12px; overflow-wrap: anywhere; }
.dr-first { color: var(--ah-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-s { font: 600 11px var(--ah-font); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--ah-r-pill); white-space: nowrap; }
.dr-sent .dr-s { background: var(--ah-ok-soft); color: var(--ah-ok); }
@container (max-width: 460px) {
  .dr { grid-template-columns: 18px minmax(0, 1fr); }
  .dr-s { grid-column: 2; justify-self: start; }
}
.dr-draft .dr-s { background: var(--ah-sunken); color: var(--ah-turn); box-shadow: inset 0 0 0 1px var(--ah-turn-line); }

/* What changed: the product's own diff colours. */
.diff { display: flex; flex-direction: column; gap: 4px; }
.pg .diff-h, .pg .f-h { display: flex; align-items: center; gap: 6px; font: 500 12px var(--ah-mono); color: var(--ah-ink-2); }
.pg .scr .diff pre span, .f-file pre span { display: block; padding: 0 6px; margin: 0 -6px; border-radius: 3px; }
.diff pre .add, .f-file pre .add { background: var(--ah-accent-soft); color: var(--ah-accent-ink); }
.diff pre .del, .f-file pre .del { background: var(--ah-err-soft); color: var(--ah-err); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ah-err) 50%, transparent); }
.pg .scr pre.outbox { white-space: pre; overflow-x: auto; }
.pg .hist { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--ah-line-soft); font-size: 12.5px; color: var(--ah-muted); }
.hist .quiet-btn { margin-left: -8px; color: var(--ah-accent-ink); }

/* A view opened beside the conversation: here, slides. */
.scr-view { border-top: 1px solid var(--ah-line); background: var(--ah-surface); min-width: 0; display: flex; flex-direction: column; }
.pg .scr-view-h { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--ah-line-soft); font: 500 12.5px var(--ah-mono); }
.scr-view-h small { margin-left: auto; font: 600 10.5px var(--ah-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ah-muted); }
.scr-view-b { padding: 14px; background: var(--ah-sunken); flex: 1; }
.slides { display: flex; flex-direction: column; gap: 10px; }
.slide { aspect-ratio: 16 / 9; display: flex; flex-direction: column; gap: 5px; padding: 6% 7%; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); color: #1d2a3a; container-type: inline-size; }
.slide small { font-size: max(9px, 3.6cqi); color: #5a7a5f; letter-spacing: .04em; text-transform: uppercase; }
.slide b { font-size: max(12px, 6.4cqi); line-height: 1.12; }
.slide span { font-size: max(10px, 4.2cqi); color: #4b5563; margin-top: auto; }
.slide i { display: block; width: var(--w); padding: 1.4cqi 2cqi; margin-top: 1.4cqi; border-radius: 3px; background: #dfe9dd; font: 600 max(9px, 3.8cqi) var(--ah-font); font-style: normal; color: #1f5430; }
.slide i:first-of-type { background: #f2dcd3; color: #8a3a22; }
.slide.s1 { background: #23432c; color: #fff; }
.slide.s1 small { color: #a9d0b0; }
.slide.s1 span { color: #d7e7d9; }
@container (min-width: 640px) {
  .has-view .scr-main { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .scr-view { border-top: 0; border-left: 1px solid var(--ah-line); }
}

/* ---------- Scrolling: "Yläreuna" (Jari, 23.11.2026; round 2026-11-23-vieritys) ----------
   A step is active once its text reaches the line where the sticky screen's
   top edge rests (phone: the bottom of the page's sticky bar, --pn-h in
   nav.css). Appended here so it wins over page.css's .s1 rules. */
:root { --vr-top: 20px; }
/* ---------- Shared by all three ---------- */
@media (min-width: 901px) {
  .s1-app { top: var(--vr-top); }
  /* Steps start with their text at the top of their box (v1 centred it). */
  .s1 > .s1-steps > .s1-step { justify-content: flex-start; padding: 0; scroll-margin-top: var(--vr-top); }
  /* The last step holds the screen pinned until its text has reached the line. */
  .s1 > .s1-steps > .s1-step:last-child { min-height: calc(100vh - var(--vr-top) - 64px); }
}
/* ---------- The phone: each day a timeline (round 2026-11-24-mobiili, 3 "Aikajana") ----------
   A step is a row (time, the conversation's sidebar line at that moment, the
   ask); a tap opens its text and its screen in place, one open per story
   (client.js). The row carries the ask, so the text's own copy and its time
   are not repeated. Without JavaScript there is no row and every step is
   open, as before. */
.s1-row { display: none; }
@media (max-width: 900px) {
  .s1 > .s1-steps { padding: 0 12px; }
  .s1 > .s1-steps > .s1-step, .s1 > .s1-steps > .s1-step:first-child { min-height: 0; padding: 16px 0 36px; scroll-margin-top: var(--pn-h); }
  .js .s1 > .s1-steps > .s1-step, .js .s1 > .s1-steps > .s1-step:first-child { padding: 0; border-top: 1px solid var(--ah-line); }
  .js .s1 > .s1-steps > .s1-step:last-child { border-bottom: 1px solid var(--ah-line); }
  .js .s1 > .s1-steps > .s1-step.s1-open { padding-bottom: 22px; }
  .js .s1-step:not(.s1-open) > :is(.s1-txt, .s1-inline) { display: none; }
  .js .s1-txt .ask, .js .s1-txt .s1-when .when > b, .js .s1-txt .s1-when .cap-tag { display: none; }
  .js .s1-txt { padding: 0 4px; }
  .js .s1-step > .s1-inline { margin-top: 12px; }
  .js .s1-row { display: block; margin: 0; font: inherit; letter-spacing: 0; text-wrap: initial; }
  .s1-row button { width: 100%; min-height: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) 14px; grid-template-areas: "time chip chev" "ask ask chev"; align-items: center; gap: 5px 10px; padding: 11px 6px 12px 4px; border: 0; background: none; color: var(--ah-ink); text-align: left; font: inherit; font-size: 15.5px; cursor: pointer; -webkit-tap-highlight-color: transparent; scroll-margin: calc(var(--pn-h) + 12px) 0 24px; }
  .s1-row button:focus-visible { outline: 2px solid var(--ah-focus); outline-offset: 2px; }
  .s1-row-time { grid-area: time; font: 600 13px var(--ah-mono); font-variant-numeric: tabular-nums; }
  .s1-row-time:empty { display: none; }
  .s1-row-time:empty + .s1-chip { grid-column: 1 / 3; }
  .s1-chip { grid-area: chip; justify-self: start; max-width: 100%; padding: 2px 9px; border-radius: var(--ah-r-pill); font-weight: 600; font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .s1-chip-turn { background: color-mix(in srgb, var(--ah-turn) 13%, var(--ah-surface)); color: var(--ah-turn); }
  .s1-chip-run { background: var(--ah-accent-soft); color: var(--ah-accent-ink); }
  .s1-chip-quiet { background: var(--ah-sunken); color: var(--ah-muted); }
  .s1-chip-tag { background: var(--ah-accent-soft); color: var(--ah-accent-ink); font-family: var(--ah-mono); }
  .s1-row-ask { grid-area: ask; line-height: 1.32; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .s1-row [aria-expanded="true"] .s1-row-ask { display: block; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
  .s1-row-chev { grid-area: chev; justify-self: center; width: 7px; height: 7px; border-right: 1.8px solid var(--ah-muted); border-bottom: 1.8px solid var(--ah-muted); transform: translateY(-2px) rotate(45deg); }
  .s1-row [aria-expanded="true"] .s1-row-chev { transform: translateY(2px) rotate(-135deg); }
  @media (prefers-reduced-motion: no-preference) { .s1-row-chev { transition: transform 150ms ease-out; } }
}

/* ---------- 3 Yläreunan aktivointi: free scrolling, activation at the top line ----------
   Each text is sticky at the line inside its own step box (no overlap): it
   rises with the page, rests beside the screen's top while its step lasts, and
   is pushed off by the next text rising beneath it. The active step is the one
   whose text has come within 64px of the line. Every text's opacity follows
   its distance from the line (client.js sets --vr-o), so the next one brightens
   as it comes up and the old one dims as it leaves. */
@media (min-width: 901px) {
  .s1 > .s1-steps > .s1-step { min-height: 0; height: 87.5vh; opacity: 1; transition: none; }
  .s1 > .s1-steps > .s1-step:last-child { height: auto; min-height: 87.5vh; }
  .s1-txt { position: sticky; top: var(--vr-top); opacity: var(--vr-o, 1); }
}
/* 2 and 3: the last text is as tall as the screen, so the two are let go by
   the section's end at the same moment and leave together. */
@media (min-width: 901px) {
  .s1 > .s1-steps > .s1-step:last-child > .s1-txt { min-height: calc(100vh - var(--vr-top) - 84px); }
}


/* The conversation in the product's shapes. Shared; not a block worker's file.
   Class names and values are the product's own, resolved for the reading view:
   web/src/components/components.css (.ah-feed, .ah-message, .ah-agent-turn,
   .ah-turn-stage/-work/-reply, .ah-tool-row, .ah-think-row, .ah-status),
   Controls.module.css (.toolDisclosure) and the design-system tokens. Where the
   product composes several rules, the value here is the one that wins in the
   product's reading view; compare against docs/assets/readme/agent-at-work.png,
   view.png and workers.png. */

.scr .c-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ah-feed-gap); }
.scr .c-you { display: flex; justify-content: flex-end; }
.scr .c-you + .c-agent { margin-top: calc(-1 * var(--ah-s2) + var(--ah-feed-gap)); }
.scr .c-agent + .c-you { margin-top: var(--ah-s2); }

/* ---------- Message cards (Conversation.tsx Message) ---------- */
.scr .ah-message { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; min-width: 0; max-width: min(var(--ah-measure), 100%); padding: var(--ah-s2) var(--ah-s3); border: 1px solid var(--ah-line); border-radius: var(--ah-r-lg); background: var(--ah-surface); font-size: var(--ah-size-body); line-height: var(--ah-lh-body); color: var(--ah-ink); }
.scr .ah-message-user { max-width: min(560px, 100%); width: fit-content; }
.scr .ah-message > header { display: flex; align-items: center; justify-content: flex-start; gap: var(--ah-s2); font-size: var(--ah-size-meta); min-height: 22px; }
.scr .ah-message > header strong { font-size: var(--ah-size-label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ah-ink); }
.scr .ah-message > header time { margin-inline-start: auto; color: var(--ah-muted); font-variant-numeric: tabular-nums; }
.scr .ah-copy { display: inline-grid; place-items: center; padding: var(--ah-s1, 3px); color: var(--ah-ink-2); }
.scr .ah-copy svg { width: 14px; height: 14px; }
.scr .ah-message .ah-prose { min-width: 0; line-height: var(--ah-lh-body); overflow-wrap: anywhere; }
.scr .ah-message .ah-prose > :first-child { margin-top: 0; }
.scr .ah-message .ah-prose > :last-child { margin-bottom: 0; }
.pg .scr .ah-prose p { margin: 0 0 0.5em; }
.pg .scr .ah-prose p:last-child { margin-bottom: 0; }
.scr .ah-prose em { font-style: italic; }
.scr .ah-prose ol, .scr .ah-prose ul { margin: 0.3em 0 0.5em; padding-left: 1.4em; }
.scr .ah-message > :not(header):not(.ah-prose) { margin-top: var(--ah-s2); }
/* A reply card: "✓ Reply done" / "Interim reply", not uppercase (.ah-message-reply). */
.scr .ah-message-reply > header strong { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: var(--ah-size-meta); }
.scr .ah-message-reply > header strong svg { width: 14px; height: 14px; }
.scr .ah-message-interim { border-color: var(--ah-accent-line); }
.scr .ah-message-interim > header strong { color: var(--ah-accent-ink); }

/* ---------- The turn and its rail (AgentTurn.tsx) ---------- */
.scr .ah-agent-turn { --ah-card-inner-pad: var(--ah-turn-card-padding); display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: var(--ah-turn-column-gap); row-gap: var(--ah-turn-gap); min-width: 0; position: relative; }
.scr .ah-agent-turn::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: var(--ah-line); }
.scr :is(.ah-turn-stage, .ah-turn-work, .ah-turn-reply, .ah-turn-strip) { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; min-width: 0; position: relative; }
.scr .ah-turn-work[hidden] { display: none; }
.scr .ah-turn-reply > .ah-message { grid-column: 2; width: 100%; max-width: none; padding: var(--ah-card-inner-pad); }
/* The stage's summary row: the quiet weight of a work row's label. */
.scr .ah-turn-stage > button { grid-column: 2; display: flex; align-items: center; gap: 6px; width: calc(100% + 7px); min-width: 0; min-height: 24px; margin-left: -7px; border: 0; padding: 2px 7px; background: transparent; color: var(--ah-muted); text-align: left; font: 400 var(--ah-size-meta) var(--ah-font); cursor: pointer; white-space: nowrap; }
.scr .ah-turn-stage > button:hover { background: var(--ah-hover); border-radius: 6px; color: var(--ah-ink-2); }
.scr .ah-turn-stage > button:focus-visible { outline: 2px solid var(--ah-focus); outline-offset: 1px; border-radius: 6px; }
.scr .ah-stage-elapsed { font-variant-numeric: tabular-nums; }
/* Closed, the chevron points right; open, it straightens into a bar (Jari 29.10.). */
.scr .ah-turn-stage .ah-disclosure-chevron { position: relative; flex: none; width: 6px; height: 10px; }
.scr .ah-turn-stage .ah-disclosure-chevron::before, .scr .ah-turn-stage .ah-disclosure-chevron::after { content: ""; position: absolute; left: 3px; width: 1.5px; height: 5.75px; border-radius: 1px; background: currentColor; transition: transform 180ms ease-out; }
.scr .ah-turn-stage .ah-disclosure-chevron::before { top: 0; transform-origin: 50% calc(100% - 0.75px); transform: rotate(-45deg); }
.scr .ah-turn-stage .ah-disclosure-chevron::after { bottom: 0; transform-origin: 50% 0.75px; transform: rotate(45deg); }
.scr .ah-turn-stage > button[aria-expanded="true"] .ah-disclosure-chevron::before, .scr .ah-turn-stage > button[aria-expanded="true"] .ah-disclosure-chevron::after { transform: none; }
.scr .ah-turn-work { row-gap: var(--ah-turn-work-gap); }
.scr .ah-ordered-blocks { grid-column: 2; min-width: 0; display: grid; gap: var(--ah-turn-work-gap); }
.scr .ah-ordered-blocks > * { position: relative; min-width: 0; }
/* Nodes on the rail: a dashed square for a stage, a filled square for a finished
   tool, a filled circle for the final reply, an accent ring for an interim reply. */
.scr :is(.ah-ordered-blocks > *, .ah-turn-stage, .ah-turn-reply, .ah-turn-strip)::before { content: ""; position: absolute; left: calc(7px - 18px - var(--ah-turn-column-gap)); top: 8px; width: 8px; height: 8px; border: 2px solid var(--ah-line-strong); border-radius: 50%; background: var(--ah-surface); box-sizing: border-box; z-index: 1; }
.scr .ah-ordered-blocks > .ah-pi-tool-use::before { border-radius: 2px; border-color: var(--ah-ok); background: var(--ah-ok); }
.scr .ah-turn-stage::before { left: 7px; border-style: dashed; border-radius: 2px; border-width: 1.5px; }
.scr .ah-turn-reply::before { left: 7px; border-color: var(--ah-ok); background: var(--ah-ok); }
.scr .ah-turn-interim::before { border-color: var(--ah-accent); background: var(--ah-accent-soft); }
.scr .ah-turn-strip::before { width: 10px; height: 10px; left: 6px; border-color: var(--ah-accent); }
.scr .ah-turn-strip { align-items: center; }
.scr .ah-turn-strip > * { grid-column: 2; }
.scr .ah-turn-strip { grid-template-columns: subgrid; }
.scr .ah-turn-strip > .ah-show-work { grid-column: 2; justify-self: start; border: 0; padding: 4px 9px; border-radius: 6px; background: var(--ah-accent-soft); color: var(--ah-accent-ink); font: 500 var(--ah-size-meta) var(--ah-font); }
.scr .ah-turn-strip > .ah-status { grid-column: 2; grid-row: 2; }
.scr .ah-status { display: inline-flex; align-items: center; gap: var(--ah-s2); font-size: var(--ah-size-meta); font-weight: 600; }
.scr .ah-status-working { color: var(--ah-accent-ink); }
.scr .ah-status-working .oh-mark { color: var(--ah-accent); }
/* Reasoning (ThinkingRow). */
.scr .ah-think-row { display: flex; align-items: baseline; gap: 8px; color: var(--ah-ink-2); font-size: var(--ah-size-ui, 13.5px); font-weight: 600; }
.scr .ah-think-row > span:first-child { flex: none; color: var(--ah-muted); font-size: var(--ah-size-meta); font-weight: 400; }
.scr .ah-work-other { min-width: 0; }

/* ---------- Tool rows (ToolRow, .toolDisclosure) ---------- */
.scr .ah-tool-row { width: 100%; border: 1px solid var(--ah-line); border-radius: 10px; background: var(--ah-surface); overflow: hidden; }
.scr .ah-tool-disclosure { display: flex; align-items: center; gap: var(--ah-s2); width: 100%; padding: 9px 12px; border: 0; background: transparent; color: var(--ah-ink); text-align: left; font: 500 13.5px var(--ah-font); cursor: pointer; }
.scr .ah-tool-disclosure:hover { background: var(--ah-hover); }
.scr .ah-tool-disclosure:focus-visible { outline: 2px solid var(--ah-focus); outline-offset: -2px; }
.scr .ah-tool-disclosure > .ah-ic { flex: none; width: 15px; height: 15px; color: var(--ah-ink-2); transition: transform 150ms ease-out; }
.scr .ah-tool-disclosure[aria-expanded="true"] > .ah-ic { transform: rotate(90deg); }
.scr .ah-tool-names { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; white-space: nowrap; }
.scr .ah-tool-name { flex: none; }
.scr .ah-tool-target { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ah-muted); font: 400 var(--ah-size-code) var(--ah-mono); }
.scr .ah-file-stat { flex: none; font: 400 12px var(--ah-mono); color: var(--ah-muted); }
.scr .ah-tool-disclosure > .ah-status { flex: none; margin-inline-start: auto; font-weight: 400; color: var(--ah-ink-2); }
.scr .ah-file-stat + .ah-status { margin-inline-start: 0; }
.scr .ah-status .ah-ic { width: 14px; height: 14px; }
.scr .ah-tool-row .ah-disclosure-panel { padding: var(--ah-turn-card-padding); border-top: 1px solid var(--ah-line-soft); }
.scr .ah-tool-row .ah-disclosure-panel[hidden] { display: none; }
.pg .scr .ah-tool-row pre { max-height: 320px; overflow: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--ah-sunken); border: 1px solid var(--ah-line-soft); border-radius: 8px; padding: 10px 12px; font: 400 12px/1.6 var(--ah-mono); color: var(--ah-ink-2); }

/* ---------- The offered file (OfferCard) ---------- */
.scr .ah-offer { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--ah-line); border-radius: 10px; background: var(--ah-surface-2); }
.scr .ah-offer-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--ah-accent-soft); color: var(--ah-accent-ink); }
.scr .ah-offer-ic svg { width: 17px; height: 17px; }
.scr .ah-offer-n { display: flex; flex-direction: column; min-width: 0; }
.scr .ah-offer-n b { font: 500 13px var(--ah-mono); overflow-wrap: anywhere; }
.scr .ah-offer-n small { font: 400 12px var(--ah-font); color: var(--ah-muted); }
.scr .ah-offer-b { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--ah-control-line, var(--ah-line)); border-radius: var(--ah-r-pill); background: var(--ah-surface); color: var(--ah-ink); font: 600 12.5px var(--ah-font); cursor: pointer; white-space: nowrap; }
.scr .ah-offer-b svg { width: 14px; height: 14px; }
.scr .ah-offer-b:hover { background: var(--ah-hover); }
.scr .ah-offer-b.done { background: var(--ah-ok-soft); color: var(--ah-ok); border-color: transparent; }
@container (max-width: 460px) { .scr .ah-offer { flex-wrap: wrap; } .scr .ah-offer-b { margin-left: 42px; } }

/* ---------- The workers panel (workers.png) ---------- */
.scr .ah-workers { margin-top: var(--ah-s2); border: 1px solid var(--ah-line); border-radius: 12px; background: var(--ah-surface); overflow: hidden; }
.pg .scr .ah-workers-tabs { display: flex; gap: 14px; margin: 0; padding: 0 12px; border-bottom: 1px solid var(--ah-line-soft); }
.scr .ah-workers-tabs .on { display: inline-flex; align-items: center; gap: 7px; padding: 9px 2px; border-bottom: 2px solid var(--ah-accent); font: 600 13.5px var(--ah-font); color: var(--ah-ink); }
.scr .ah-workers-tabs .on b { font-weight: 400; color: var(--ah-muted); }
.scr .ah-workers-tabs svg { width: 15px; height: 15px; color: var(--ah-ink-2); }
.scr .ah-workers ul { list-style: none; margin: 0; padding: 4px 0; }
.scr .ah-workers li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 7px 12px; font-size: 13.5px; }
.scr .ah-workers li .oh-mark { margin-top: 2px; color: var(--ah-accent); }
.scr .ah-workers li.wk-done .oh-mark { color: var(--ah-ok); }
.scr .wk-main { display: flex; flex-direction: column; min-width: 0; }
.scr .wk-main b { font-weight: 500; }
.scr .wk-t { color: var(--ah-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr .wk-p { font-size: 12.5px; color: var(--ah-muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .scr .ah-turn-stage .ah-disclosure-chevron::before, .scr .ah-turn-stage .ah-disclosure-chevron::after, .scr .ah-tool-disclosure > .ah-ic { transition: none; } }

/* ---------- Without JavaScript the work is open, so all text reads ---------- */
.no-js .scr .ah-turn-work[hidden], .no-js .scr .ah-tool-row .ah-disclosure-panel[hidden] { display: grid; }
.no-js .s1-app { display: none; }
.no-js .s1 { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.no-js .s1-step { opacity: 1; min-height: 0; }
.no-js .s1-inline { display: block; margin-top: 18px; }

/* ---------- The sidebar's section heads (AdaptiveRail.css, your-turn.png) ---------- */
.rl-sec h4, .rl-sec-turn h4, .rl-sec-run h4 { color: var(--ah-muted); }
.rl-sec-turn h4 b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ah-accent); color: var(--ah-on-accent); font-weight: 600; }
.s1-main > .blk { min-height: 100%; display: flex; flex-direction: column; }
.s1-main > .blk > .scr { flex: 1; }

/* ---------- The view beside the conversation (ViewPanel, view.png) ---------- */
.pg .scr .scr-view-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--ah-line-soft); background: var(--ah-surface); font: inherit; }
.scr .scr-view-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--ah-accent-soft); color: var(--ah-accent-ink); }
.scr .scr-view-ic svg { width: 16px; height: 16px; color: inherit; }
.scr .scr-view-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.scr .scr-view-t b { font: 600 14px var(--ah-font); color: var(--ah-ink-2); overflow-wrap: anywhere; }
.scr .scr-view-t small { margin: 0; font: 400 12px var(--ah-font); letter-spacing: 0; text-transform: none; color: var(--ah-muted); }

/* Landing page only (not in the product): a visible cue that the work opens, for readers who have never seen the product. Same look as the product's running-turn Show work pill. */
.scr .ah-turn-stage .ah-stage-pill { margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--ah-accent-soft); color: var(--ah-accent-ink); font-weight: 500; }
.scr .ah-turn-stage > button:hover .ah-stage-pill { filter: brightness(0.96); }

/* Round 6's mock views beside a conversation. Shared legacy: a block that replaces its view styles the new one in its own block.css. */

/* ---------- Mock views beside a conversation ---------- */
.vid { display: flex; flex-direction: column; gap: 8px; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #2f2a24; }
.vid-cloth { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, #3e5b6e 0 14px, #e9e1d2 14px 18px, #3e5b6e 18px 40px), #3e5b6e; transition: filter 300ms ease-out; }
.vid-frame[data-k="1"] .vid-cloth { background: radial-gradient(circle at 30% 40%, #b45a33 0 18%, transparent 19%), radial-gradient(circle at 70% 60%, #b45a33 0 14%, transparent 15%), #e9e1d2; }
.vid-frame[data-k="2"] .vid-cloth { background: repeating-radial-gradient(circle at 50% 50%, #31553a 0 8px, #e9e1d2 8px 16px); }
.vid-frame[data-k="3"] .vid-cloth { background: linear-gradient(160deg, #c9b79a, #8c6f4e); }
.vid-frame[data-k="4"] .vid-cloth { background: #23432c; }
.vid-cap { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); padding: 3px 10px; border-radius: 4px; background: rgba(0, 0, 0, .62); color: #fff; font: 600 max(11px, 3.4cqi) var(--ah-font); white-space: nowrap; }
.vid-play { position: absolute; left: 50%; top: 42%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #17201a; display: grid; place-items: center; cursor: pointer; transition: opacity 150ms ease-out, transform 120ms ease-out; }
.vid-play svg { width: 22px; height: 22px; margin-left: 3px; }
.vid-play:active { transform: scale(.96); }
.vid.playing .vid-play { opacity: 0; }
.vid.playing .vid-frame:hover .vid-play { opacity: .8; }
.vid-bar { height: 4px; border-radius: 2px; background: var(--ah-line); overflow: hidden; }
.vid-prog { display: block; height: 100%; background: var(--ah-accent); transform: scaleX(0); transform-origin: left; }
.pg .vid-meta { display: flex; justify-content: space-between; margin: 0; font: 400 11.5px var(--ah-mono); color: var(--ah-muted); }
.scr-view-b { container-type: inline-size; }
.nl { background: #fff; color: #1d2a22; border-radius: 6px; padding: 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); font-size: 12.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.pg .nl p { margin: 0; }
.pg .nl-from { font-weight: 600; font-size: 12px; }
.nl-from span { font-weight: 400; color: #5c675d; margin-left: 6px; }
.nl-img { aspect-ratio: 3 / 1; border-radius: 4px; background: repeating-linear-gradient(90deg, #2f4f73 0 10px, #e9e1d2 10px 13px, #b45a33 13px 22px, #e9e1d2 22px 25px, #31553a 25px 36px, #e9e1d2 36px 39px); }
.nl-h { font-size: 17px; letter-spacing: -.01em; }
.nl-btn { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #23432c; color: #fff; font-weight: 600; font-size: 12px; }
.pg .nl-foot { font-size: 10.5px; color: #6b746c; border-top: 1px solid #e6e9e2; padding-top: 6px; }
.files { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 3px; font: 400 12px var(--ah-mono); }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 4px 8px; background: var(--ah-surface); border-radius: 5px; }
.files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa { color: var(--ah-accent-ink); font-weight: 600; }
.fd { color: var(--ah-err); font-weight: 600; }

/* Alice's phone at lunch. */
.ph-stage { display: flex; justify-content: center; padding: 22px 12px; background: var(--ah-sunken); border-radius: 14px; }
.ph { width: min(100%, 330px); border-radius: 34px; padding: 10px; background: #17201a; box-shadow: var(--ah-shadow-app); display: flex; flex-direction: column; position: relative; }
.ph-notch { position: absolute; top: 14px; left: 50%; width: 76px; height: 18px; margin-left: -38px; border-radius: 10px; background: #000; }
.ph-top { display: flex; flex-direction: column; gap: 6px; padding: 38px 14px 10px; background: var(--ah-surface); border-radius: 26px 26px 0 0; border-bottom: 1px solid var(--ah-line); }
.ph-top b { font-size: 14px; }
.ph-chips { display: flex; gap: 6px; }
.ph-body { background: var(--ah-bg); padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.ph-body .bubble { font-size: 13px; }
.away { border: 1px solid var(--ah-line); border-radius: 10px; background: var(--ah-surface); padding: 9px 11px; }
.pg .away-h { font: 600 11px var(--ah-font); letter-spacing: .07em; text-transform: uppercase; color: var(--ah-muted); margin-bottom: 3px; }
.ph-comp { display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; background: var(--ah-surface); border-radius: 0 0 26px 26px; border-top: 1px solid var(--ah-line); color: var(--ah-muted); font-size: 13px; }
.ph-comp svg { width: 18px; height: 18px; color: var(--ah-accent); }

/* ---------- Mock views ---------- */
.mk { display: block; width: 100%; height: auto; border-radius: 6px; }
.tg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px !important; padding: 3px; border-radius: var(--ah-r-pill); background: var(--ah-control); }
.tg button { border: 0; background: transparent; padding: 5px 11px; border-radius: var(--ah-r-pill); font: 500 12px var(--ah-font); color: var(--ah-ink-2); cursor: pointer; transition: background-color 150ms ease-out, color 150ms ease-out; }
.tg button[aria-pressed="true"] { background: var(--ah-surface); color: var(--ah-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.sp-a { color: #2c6e3f; } .sp-b { color: #3e5b6e; } .sp-c { color: #b45a33; }
i.sp-a, i.sp-b, i.sp-c { font-style: normal; font-weight: 600; }
/* Transcript */
.tr { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.tr-wave { display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 2px; }
.tr-wave i { flex: 1; height: var(--h); border-radius: 2px; background: currentColor; opacity: .7; }
.pg .tr-len { font: 400 11.5px var(--ah-mono); color: var(--ah-muted); }
.tr ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tr li { display: grid; grid-template-columns: 44px 62px minmax(0, 1fr); gap: 8px; padding: 7px 9px; background: var(--ah-surface); border-radius: 6px; }
.tr time { font: 400 11.5px var(--ah-mono); color: var(--ah-muted); }
/* Memo */
.doc { background: #fff; color: #1d2a22; border-radius: 6px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); font-size: 12.5px; line-height: 1.5; }
.pg .doc-k { font: 500 10.5px var(--ah-mono); color: #6b746c; margin-bottom: 8px; }
.doc-h { display: block; font-size: 13.5px; margin: 6px 0 4px; }
.doc ol, .doc ul { margin: 0 0 6px; padding-left: 18px; }
.doc time { font: 400 10.5px var(--ah-mono); color: #6b746c; margin-left: 4px; }
.doc-tasks { list-style: none; padding: 0 !important; }
.doc-tasks li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 6px; padding: 3px 0; border-top: 1px solid #eef0ea; }
.doc-tasks small { grid-column: 2; font: 400 10.5px var(--ah-mono); color: #6b746c; }
.doc-tasks .more { display: block; color: #6b746c; }
/* A browser frame around something live */
.br { border: 1px solid var(--ah-line); border-radius: 8px; overflow: hidden; background: #fff; }
.pg .br-url { display: flex; align-items: center; gap: 7px; padding: 6px 10px; background: var(--ah-surface-2); border-bottom: 1px solid var(--ah-line); font: 400 11.5px var(--ah-mono); color: var(--ah-ink-2); }
.br-lock { width: 8px; height: 8px; border: 1.5px solid var(--ah-muted); border-radius: 2px; }
.live { margin-left: auto; font: 600 10.5px var(--ah-font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ah-ok); display: inline-flex; align-items: center; gap: 5px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ah-ok); animation: ah-pulse var(--ah-pulse); }
.op { padding: 12px; color: #1d2a22; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.pg .op-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.op-h span { color: #6b746c; font-size: 11.5px; }
.op-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid #eef0ea; }
.op-row small { color: #6b746c; font: 400 11.5px var(--ah-mono); }
.op-q { display: inline-flex; align-items: center; gap: 4px; }
.op-q output { min-width: 22px; text-align: center; font: 600 12.5px var(--ah-mono); }
.op-b { width: 24px; height: 24px; border: 1px solid #d5dbd2; border-radius: 6px; background: #f6f7f4; color: #1d2a22; font: 600 14px/1 var(--ah-font); cursor: pointer; }
.op-b:hover { background: #ecefe8; }
.op-b:active { transform: scale(.94); }
.pg .op-tot { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid #d5dbd2; font-size: 13px; }
.op-sum { font-variant-numeric: tabular-nums; }
.op-send { align-self: flex-end; padding: 6px 12px; border-radius: 999px; background: #23432c; color: #fff; font-weight: 600; font-size: 12px; }
/* Stems */
.stem { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12px; color: var(--ah-ink-2); transition: opacity 200ms ease-out; }
.stem i { display: flex; align-items: center; gap: 2px; height: 34px; }
.stem b { flex: 1; height: var(--h); background: var(--ah-accent); border-radius: 2px; }
.stem-vocal b { background: var(--ah-turn); }
.stems[data-state="backing"] .stem-vocal, .stems[data-state="vocal"] .stem-backing { opacity: .18; }
.pg .stems-n { font: 400 11.5px var(--ah-mono); color: var(--ah-muted); }
/* Cut-outs */
.cut-pair { height: 130px; border-radius: 6px; display: grid; place-items: center; background: #fff; transition: background 200ms ease-out; }
.cut[data-state="before"] .cut-pair { background: repeating-linear-gradient(35deg, #b9ad98 0 9px, #a89c86 9px 16px), #b9ad98; }
.cut[data-state="before"] .cut-pair .it { filter: drop-shadow(10px 8px 4px rgba(0, 0, 0, .35)) brightness(.86); transform: rotate(-6deg) scale(.86); }
.it { display: block; width: 46px; height: 52px; background: var(--c); border-radius: 6px 6px 10px 10px; position: relative; transition: transform 200ms ease-out, filter 200ms ease-out; }
.cut-pair .it { width: 74px; height: 82px; }
.it-mug::after { content: ""; position: absolute; right: -28%; top: 22%; width: 34%; height: 44%; border: 5px solid var(--c); border-left: 0; border-radius: 0 40% 40% 0; }
.it-tote { border-radius: 3px; } .it-tote::after { content: ""; position: absolute; left: 25%; top: -30%; width: 50%; height: 36%; border: 4px solid var(--c); border-bottom: 0; border-radius: 30px 30px 0 0; }
.it-towel { border-radius: 2px; width: 40px; background: repeating-linear-gradient(90deg, var(--c) 0 8px, rgba(255, 255, 255, .35) 8px 10px), var(--c); }
.it-apron { border-radius: 4px 4px 12px 12px; clip-path: polygon(30% 0, 70% 0, 70% 22%, 100% 30%, 92% 100%, 8% 100%, 0 30%, 30% 22%); }
.it-napkin { height: 40px; width: 40px; border-radius: 2px; transform: rotate(45deg) scale(.8); }
.it-cushion { height: 40px; border-radius: 14px; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25); }
.cut-c .it-napkin { width: 36%; height: 36%; }
.pg .cut-h { margin: 10px 0 6px; font: 500 11.5px var(--ah-mono); color: var(--ah-ink-2); }
.cut-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.cut-c { aspect-ratio: 1; background: #fff; border-radius: 4px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--ah-line-soft); }
.cut-c .it { width: 42%; height: 48%; }
.cut-c.flag { box-shadow: inset 0 0 0 2px var(--ah-turn); }
/* Vector */
.vec-b { position: relative; aspect-ratio: 1.6; background: #fff; border-radius: 6px; display: grid; place-items: center; }
.vec-b svg { position: absolute; height: 82%; width: auto; transition: opacity 200ms ease-out; }
.vec-o { image-rendering: pixelated; filter: blur(.6px); }
.vec[data-state="vector"] .vec-o, .vec[data-state="original"] .vec-v { opacity: 0; }
.pg .raw-n, .pg .dd-n, .pg .ci-n, .pg .tl-n, .pg .up-n, .pg .pm-n, .pg .fl-n, .pg .vec-n, .pg .brk-n, .pg .map-n, .pg .score-n, .pg .fc-n, .pg .tt-n, .pg .scan-n, .pg .lease-n, .pg .cert-n, .pg .tt5-n, .pg .blur-n, .pg .cards-n, .pg .capf-n, .pg .pst-n, .pg .frames-n { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font: 400 11.5px var(--ah-mono); color: var(--ah-muted); }
/* Turntable */
.tt-stage { position: relative; aspect-ratio: 1.5; border-radius: 6px; background: radial-gradient(ellipse at 50% 40%, #fbfaf6, #e7e4dc); perspective: 700px; display: grid; place-items: center; overflow: hidden; }
.tt-spin { transform-style: preserve-3d; animation: tt-turn 8s linear infinite; }
.tt-tote { --w: 112px; --h: 120px; --d: 18px; --cloth: #2f4f73; --edge: #1f3753; position: relative; width: var(--w); height: var(--h); margin-top: 36px; transform-style: preserve-3d; transform: rotateX(-10deg); }
.tt[data-state="rust"] .tt-tote { --cloth: #b45a33; --edge: #8a3f20; }
.tt-tote i { position: absolute; background: var(--cloth); box-shadow: inset 0 0 0 1px var(--edge); }
.tt-tote .tt-f, .tt-tote .tt-b { inset: 0; }
.tt-tote .tt-f { transform: translateZ(calc(var(--d) / 2)); background: radial-gradient(circle, rgba(244, 239, 228, .6) 0 3px, transparent 4px) 0 0 / 16px 16px, var(--cloth); }
.tt-tote .tt-b { transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); filter: brightness(.86); }
.tt-tote .tt-l, .tt-tote .tt-r { top: 0; width: var(--d); height: var(--h); left: calc(50% - var(--d) / 2); filter: brightness(.76); }
.tt-tote .tt-l { transform: translateX(calc(var(--w) / -2)) rotateY(90deg); }
.tt-tote .tt-r { transform: translateX(calc(var(--w) / 2)) rotateY(90deg); }
.tt-tote .tt-d { left: 0; width: var(--w); height: var(--d); top: calc(var(--h) - var(--d) / 2); transform: rotateX(90deg); filter: brightness(.6); }
.tt-tote .tt-f::before, .tt-tote .tt-b::before { content: ""; position: absolute; left: 28%; width: 44%; top: -44px; height: 46px; box-sizing: border-box; border: 6px solid var(--cloth); border-bottom: 0; border-radius: 40px 40px 0 0; }
.tt-floor { position: absolute; bottom: 16%; left: 50%; width: 200px; height: 26px; margin-left: -100px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .16), transparent 70%); }
@keyframes tt-turn { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
/* Scan */
.scan-p { background: #fffdf7; color: #2b2b2b; border-radius: 4px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(16, 24, 40, .14); font: 12px/1.8 Georgia, serif; transition: transform 200ms ease-out, filter 200ms ease-out; }
.scan[data-state="scan"] .scan-p { transform: rotate(-2.6deg); filter: contrast(.8) blur(.3px) sepia(.3); }
.scan[data-state="scan"] mark { background: none; color: inherit; }
.scan-h { font-weight: 700; margin-bottom: 4px !important; }
.scan-l { display: block; }
.scan mark { background: #ffe07a; padding: 0 2px; border-radius: 2px; }
/* Maps */
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.sw-o { background: #b45a33; }
/* Certificates: three pages of the same template, fanned */
.cert-st { display: grid; padding: 6px 28px 18px 6px; }
.cert-p { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 16px; aspect-ratio: 1.414; background: #fff; border: 1px solid #e3ddc9; outline: 4px double #c9b98a; outline-offset: -10px; border-radius: 3px; box-shadow: 0 2px 6px rgba(16, 24, 40, .12); color: #1d2a3a; text-align: center; transform: translate(calc(var(--k) * 11px), calc(var(--k) * 8px)); z-index: calc(3 - var(--k)); }
.cert-p small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8a7a4a; }
.cert-p b { font: 600 17px Georgia, serif; }
.cert-p i { font: italic 20px Georgia, serif; color: #23432c; }
.cert-p span { font-size: 11px; color: #5c675d; }
/* Score */
.score .mk { background: #fff; }
.score-notes { transition: transform 200ms ease-out; }
.score[data-state="low"] .score-notes { transform: translateY(5px); }
/* Timetable */
.tt5 { font-size: 11.5px; }
.pg .tt5-h { display: flex; justify-content: space-between; margin-bottom: 6px; }
.tt5-h span { color: var(--ah-muted); font-family: var(--ah-mono); }
.tt5-g { display: grid; grid-template-columns: 22px repeat(5, 1fr); gap: 3px; }
.tt5-d, .tt5-p { text-align: center; font: 500 10.5px var(--ah-mono); color: var(--ah-muted); align-self: center; }
.tt5-c { text-align: center; padding: 6px 0; border-radius: 4px; font-weight: 600; background: var(--ah-surface); color: var(--ah-ink-2); }
.tt5-c.s-Ma { background: #dfe9dd; } .tt5-c.s-En { background: #e3e7f0; } .tt5-c.s-Sc { background: #f2e5d8; } .tt5-c.s-Ar { background: #f2dcd3; } .tt5-c.s-PE { background: #e6efe2; }
.tt5-c.flag { box-shadow: inset 0 0 0 2px var(--ah-turn); }
/* Forecast */
.fc .mk { background: #fff; }
/* Site check */
.chk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chk li { display: flex; flex-direction: column; padding: 9px 12px 9px 30px; background: var(--ah-surface); border-radius: 8px; position: relative; font-size: 12.5px; }
.chk li::before { content: ""; position: absolute; left: 11px; top: 13px; width: 9px; height: 9px; border-radius: 50%; }
.chk-err::before { background: var(--ah-err); } .chk-warn::before { background: var(--ah-turn); } .chk-ok::before { background: var(--ah-ok); }
.chk span { color: var(--ah-muted); }
/* A small website */
.site { padding: 12px; color: #1d2a22; font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }
.pg .site-nav { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 11.5px; color: #5c675d; }
.site-nav b { color: #1d2a22; font-size: 12.5px; margin-right: auto; }
.site-hero { aspect-ratio: 3; border-radius: 4px; background: linear-gradient(180deg, #cfe0ea 0 55%, #6d8fa6 55% 60%, #3e5b6e 60%); }
.site-h { font-size: 16px; letter-spacing: -.01em; }
.pg .site p { margin: 0; color: #4b5563; }
/* Sheet and bars */
.sheet { font-size: 12px; background: #fff; border-radius: 6px; padding: 8px; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.pg .sheet-h, .pg .bars-h { display: flex; align-items: center; gap: 6px; font: 500 11.5px var(--ah-mono); color: var(--ah-ink-2); margin-bottom: 6px; }
.sheet-h svg { width: 14px; height: 14px; color: #1f7a43; }
.sheet table { width: 100%; border-collapse: collapse; color: #1d2a22; }
.sheet th { text-align: left; font-weight: 600; background: #eef3ec; padding: 4px 6px; border: 1px solid #dfe5dc; }
.sheet td { padding: 4px 6px; border: 1px solid #e8ece5; font-variant-numeric: tabular-nums; }
.pg .sheet-n, .pg .bars-n { margin: 6px 0 0; font: 400 11px var(--ah-mono); color: var(--ah-muted); }
.bars { font-size: 12px; }
.bar { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 0 0 5px !important; }
.bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ah-ink-2); }
.bar i { height: 14px; width: var(--w); border-radius: 3px; background: var(--ah-line-strong); }
.bar.hot i { background: var(--ah-accent); }
.bar b { font: 500 11.5px var(--ah-mono); }
/* Ink mixing */
.ink { padding: 12px; color: #1d2a22; }
.ink-row { display: grid; }
.ink-set { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity 200ms ease-out; }
.ink-set span { width: 56px; height: 56px; border-radius: 50%; background: var(--c); }
.ink-set .ink-m { width: 80px; height: 80px; border-radius: 16px; }
.ink-set i { font-style: normal; font-size: 20px; color: #6b746c; }
.ink[data-state="indigo-rust"] .ink-indigo-rust, .ink[data-state="indigo-yellow"] .ink-indigo-yellow, .ink[data-state="rust-yellow"] .ink-rust-yellow { opacity: 1; }
.pg .ink-n { text-align: center; margin: 12px 0 0; font-size: 13px; font-weight: 500; }
/* Blurred faces */
.blur-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.blur-p { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; background: linear-gradient(180deg, #d9d2c3 0 60%, #9c8f78 60%); overflow: hidden; }
.blur-p i { position: absolute; left: var(--x); top: 22%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #e2b48f; }
.blur-p i::after { content: ""; position: absolute; left: -20%; top: 100%; width: 140%; height: 140%; border-radius: 40% 40% 0 0; background: #3e5b6e; }
.blur-p i.b { filter: blur(5px); }
/* Flash cards */
.card { display: grid; min-height: 120px; padding: 16px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(16, 24, 40, .14); color: #1d2a22; place-items: center; text-align: center; font-size: 14px; }
.card p { grid-area: 1 / 1; margin: 0; transition: opacity 200ms ease-out; }
.card-q { font-weight: 600; }
.cards[data-state="q"] .card-a, .cards[data-state="a"] .card-q { opacity: 0; }
/* Captions */
.capf-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #3a332b; }
.capf-pic { position: absolute; inset: 0; background: radial-gradient(circle at 30% 60%, #8c6f4e 0 14%, transparent 15%), linear-gradient(160deg, #6d5b47, #2f2a24); }
.capf-en, .capf-fi { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); width: max-content; max-width: 90%; padding: 3px 10px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font: 600 12.5px var(--ah-font); text-align: center; }
.capf[data-state="en"] .capf-fi, .capf[data-state="fi"] .capf-en { display: none; }
/* Checklist */
.cl { background: #fff; border-radius: 6px; padding: 12px; color: #1d2a22; font-size: 12.5px; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.pg .cl-h { font-weight: 600; margin-bottom: 6px; }
.cl ul { list-style: none; margin: 0; padding: 0; }
.cl li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid #eef0ea; }
.cl-b { width: 14px; height: 14px; border: 1.5px solid #9aa59b; border-radius: 3px; }
.cl li.done .cl-b { background: #2c6e3f; border-color: #2c6e3f; }
.cl li.done > span:nth-child(2) { color: #6b746c; text-decoration: line-through; }
.cl small { color: #6b746c; font: 400 10.5px var(--ah-mono); }
/* Poster */
.pst { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 10px; align-items: end; }
.pst > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 10px; border-radius: 3px; color: #f4efe4; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .3)), radial-gradient(circle at 60% 35%, #e9e1d2 0 10%, transparent 11%), #2f4f73; box-shadow: 0 2px 6px rgba(16, 24, 40, .16); }
.pst-a3 { aspect-ratio: 1 / 1.414; } .pst-a5 { aspect-ratio: 1 / 1.414; } .pst-sq { aspect-ratio: 1; background: #b45a33 !important; }
.pst small { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.pst b { font: 700 clamp(13px, 2.4cqi, 20px)/1.05 Georgia, serif; }
.pst span { font-size: 10px; }
.pst-n { grid-column: 1 / -1; }
/* Animation frames */
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.frame-k { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; background: #101820; overflow: hidden; color: #e8eef3; }
.fr-fib { position: absolute; left: 10%; right: 10%; top: 40%; height: 18%; border-radius: 10px; background: #d9cdb6; }
.fr-dots { position: absolute; inset: 0; background: radial-gradient(circle, var(--dc) 0 3px, transparent 4px) 0 0 / 16px 16px; }
.frame-k:nth-child(1) { --dc: #3f63c9; } .frame-k:nth-child(2) { --dc: #b7c94a; } .frame-k:nth-child(3) { --dc: #2f4fb3; }
.frame-k:nth-child(3) .fr-fib { background: #4d6fb8; }
.frame-k small { position: absolute; left: 6px; top: 4px; font: 600 10px var(--ah-mono); opacity: .7; }
.frame-k p { position: absolute; left: 6px; right: 6px; bottom: 4px; margin: 0; font-size: 9.5px; line-height: 1.25; }
.frames-n { grid-column: 1 / -1; }
.frames-print .frame-k { background: #f4efe4; color: #2b2b2b; }
.frames-print .fr-fib { background: #8c6f4e; top: 30%; height: 30%; border-radius: 4px; }
.frames-print .fr-dots { left: 10%; right: 10%; top: 30%; bottom: auto; height: 30%; inset-inline: 10%; }
.frames-print .frame-k:nth-child(1) { --dc: rgba(244, 239, 228, .7); } .frames-print .frame-k:nth-child(2) { --dc: #2f4f73; } .frames-print .frame-k:nth-child(3) { --dc: #b45a33; }
.frames-print .frame-k:nth-child(2) .fr-fib, .frames-print .frame-k:nth-child(3) .fr-fib { background: #e9e1d2; }

/* Round 6: views for the cast */
.dd-l { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); color: #1d2a22; font-size: 12.5px; }
.dd-l li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; border-top: 1px solid #eef0ea; }
.dd-l li:first-child { border-top: 0; }
.dd-l small { color: #6b746c; font: 400 10.5px var(--ah-mono); align-self: center; }
.dd[data-state="before"] .dd-after, .dd[data-state="after"] .dd-before { display: none; }
.dd-one { box-shadow: inset 3px 0 0 #2c6e3f; }
.qt table { width: 100%; border-collapse: collapse; margin: 4px 0 6px; }
.qt td { padding: 5px 0; border-top: 1px solid #eef0ea; font-variant-numeric: tabular-nums; }
.qt td:last-child { text-align: right; }
.qt-tot td { font-weight: 700; border-top: 1.5px solid #1d2a22; }
.pg .qt-n { margin: 0; font: 400 10.5px var(--ah-mono); color: #6b746c; }
.sld { aspect-ratio: 16 / 10; display: flex; flex-direction: column; background: #fff; color: #1d2a22; border-radius: 6px; padding: 14px 16px 10px; box-shadow: 0 1px 4px rgba(16, 24, 40, .14); }
.pg .sld-k { margin: 0; font: 500 10px var(--ah-mono); color: #6b746c; }
.sld-h { font-size: 16px; line-height: 1.25; margin: 4px 0 2px; }
.sld .mk { flex: 1; min-height: 0; width: 100%; }
.pg .sld-n { margin: 0; font-size: 11px; color: #4b5563; }
.raw-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.raw-p { aspect-ratio: 3 / 2; border-radius: 3px; background: radial-gradient(circle at 50% 50%, var(--c) 0 32%, transparent 33%), linear-gradient(160deg, #f1ece2, #d8d0c0); transition: filter 200ms ease-out; }
.raw[data-state="raw"] .raw-p { filter: saturate(.35) contrast(.7) brightness(1.12); }
.raw-p.best { box-shadow: 0 0 0 2px #2c6e3f; }
.rota { font-size: 11px; }
.pg .rota-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.rota-h span { color: var(--ah-muted); font-family: var(--ah-mono); }
.rota-g { display: grid; grid-template-columns: minmax(56px, auto) repeat(7, minmax(0, 1fr)); gap: 3px; }
.rota-d { text-align: center; font: 500 10px var(--ah-mono); color: var(--ah-muted); }
.rota-p { font-weight: 600; color: var(--ah-ink-2); align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rota-c { text-align: center; padding: 5px 0; border-radius: 4px; font-size: 9.5px; font-weight: 600; color: #1d2a22; background: var(--ah-surface); overflow: hidden; }
.r-pack { background: #f2e5d8; } .r-shop { background: #dfe9dd; } .r-off { background: #e3e7f0; } .r-crs { background: #efe0ec; }
.rota-c.hot { box-shadow: inset 0 0 0 2px #2c6e3f; }
.pg .rota-n { margin: 8px 0 0; font: 400 11px var(--ah-mono); color: var(--ah-muted); }
.rd p { margin: 0 0 6px; }
.rd-x { font-style: normal; background: #111; color: transparent; border-radius: 2px; user-select: none; }
.pg .rd-n { margin: 8px 0 0; font: 400 10.5px var(--ah-mono); color: #1f5430; }
.ci { background: #fff; border-radius: 6px; padding: 6px 8px; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.ci .mk { width: 100%; height: auto; }
.kpi-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.kpi-g p { margin: 0; padding: 8px 10px; border-radius: 6px; background: #f3f5f1; display: flex; flex-direction: column; }
.kpi-g small { font-size: 10.5px; color: #6b746c; }
.kpi-g b { font-size: 18px; font-variant-numeric: tabular-nums; }
.kpi-g span { font-size: 10.5px; color: #4b5563; }
.pg .kpi-n { margin: 0; font: 400 10.5px var(--ah-mono); color: #6b746c; }
.pg .mdl-n { margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: var(--ah-current); font-weight: 600; font-size: 13px; color: var(--ah-ink); }
.mdl .sheet td:not(:first-child) { background: #fff7d1; }
.tl-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tl-f { position: relative; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: repeating-linear-gradient(90deg, transparent 0 14px, #7f8b95 14px 22px) 0 18% / 100% 26% no-repeat, repeating-linear-gradient(90deg, transparent 0 14px, #7f8b95 14px 22px) 0 60% / 100% 26% no-repeat, linear-gradient(#cfd8dd 0 12%, #e2d3b8 12%); }
.tl-scaf { position: absolute; left: 0; right: 0; bottom: 0; height: calc((5 - var(--k)) * 20%); background: repeating-linear-gradient(45deg, rgba(120, 100, 70, .75) 0 3px, transparent 3px 9px), repeating-linear-gradient(-45deg, rgba(120, 100, 70, .75) 0 3px, transparent 3px 9px); }
.tl-f small { position: absolute; right: 4px; top: 3px; font: 600 10px var(--ah-mono); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.up-b { border-radius: 6px; overflow: hidden; }
.up-s { display: block; width: 100%; height: auto; transition: filter 200ms ease-out; filter: sepia(.25); }
.up[data-state="before"] .up-s { filter: sepia(.6) blur(2.2px) contrast(.7); }
.pm { display: grid; justify-items: center; }
.pm-s { width: min(100%, 220px); height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(16, 24, 40, .2); }
.pm-n { justify-self: stretch; }
.fl .mk { width: 100%; height: auto; background: #fff; border-radius: 6px; }
.fl-b rect { fill: #eef3ec; stroke: #4b5a4e; stroke-width: 1.2; }
.fl-b text { font: 600 10.5px system-ui, sans-serif; fill: #1d2a22; }
.fl-b.flag rect { fill: #fbeee6; stroke: #b45a33; stroke-dasharray: 4 3; stroke-width: 1.8; }
.fl-a { stroke: #6b746c; stroke-width: 1.5; fill: none; }
.ds { padding: 10px; }
.pg .ds-q { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; color: #4b5563; }
.ds-q b { flex: 1; padding: 5px 8px; border: 1px solid #cfd6cc; border-radius: 5px; font-weight: 500; color: #1d2a22; }
.cap-days { max-width: 1320px; margin: 10px auto 0; padding: 0 clamp(20px, 3vw, 40px); }
.pg .cap-days-h { margin: 0 0 6px; font: 600 13px var(--ah-font); color: var(--ah-ink-2); }
.cap-days ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 6px 8px; }
.cap-in { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 9px 14px; border: 1px dashed var(--ah-line); border-radius: 12px; font-size: 14px; }
.cap-in .cap-t { flex: 1 1 200px; }
.pg .cap-in .cap-p { margin-left: 0; text-align: left; }
.cap-role { font-weight: 600; color: var(--ah-accent-ink); white-space: nowrap; }
.cap-role::after { content: " →"; }
.cap-role:focus-visible { outline: 2px solid var(--ah-focus); outline-offset: 2px; border-radius: 3px; }
.more-intro { padding-top: 56px; }

@media (max-width: 900px) {
  .mw-step { padding-left: 14px !important; }
  .s1-cap .s1-step, .s1-role .s1-step { min-height: 0; }
  .role-h { padding: 0 16px; }
  .role-n { display: none; }
  .cap-gh, .cap-more, .cap-days { padding: 0 16px; }
  .when-sep { display: none; }
  .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lib li { padding: 12px; }
  .lib b { font-size: 16px; }
  .lib q { font-size: 13.5px; }
}
@media (max-width: 520px) {
  .tr li { grid-template-columns: 40px minmax(0, 1fr); }
  .tr li span { grid-column: 1 / -1; }
  .pst { grid-template-columns: 1fr 1fr; }
  .pst-a3 { grid-row: span 2; }
  .cap-it summary { flex-wrap: wrap; }
  .cap-p { margin-left: 17px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-spin { animation: none; transform: rotateY(-28deg); }
  .live::before { animation: none; }
  .s1-app, .tg button, .who-b, .stem, .cut-pair, .it, .raw-p, .up-s, .vec-b svg, .scan-p, .score-notes, .ink-set, .card p, .cap-more > summary::before, .cap-it summary::before { transition: none; }
}

/* Media from a block's assets (kit image(), video()). */
.m-img, .m-video { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--ah-sunken); }

/* open-habitat.ai's front page. Loaded after the design-system tokens, the
   brand's Päivä theme (website brand.css), the v1 engine's page, screen,
   product and views CSS and the shown blocks' own CSS. Page pieces .j-*, the
   feature rows .b-*, the connectors hub .hub-*, the program cloud .pc-*, the
   install prompt .ag-* and the live demo .demo-*. */

/* ===================== Page ===================== */
.j-page { padding-bottom: 96px; }
.j-top nav { flex-wrap: wrap; justify-content: flex-end; }
.j-sec { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 40px) 0; }
.j-head { max-width: 800px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.pg .j-head h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 18px; }
.pg .j-lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ah-ink-2); margin: 0; }
.pg .j-head:has(h2:last-child) h2 { margin-bottom: 0; }
.j-page .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.pg .btn .oh-mark { margin-right: 8px; color: currentColor; }

.j-copy { border: 1px solid var(--ah-control-line); background: var(--ah-surface); border-radius: var(--ah-r-pill); padding: 3px 12px; font: 600 12px var(--ah-font); color: var(--ah-ink); cursor: pointer; transition: background-color 150ms ease-out; }
.j-copy:hover { background: var(--ah-hover); }
.j-copy:focus-visible { outline: 2px solid var(--ah-focus); outline-offset: 2px; }
.pg .foot.j-foot { margin-top: clamp(72px, 10vw, 120px); }
@media (max-width: 900px) {
  .j-top nav a:not(:last-child) { display: none; }
}

/* ===================== Feature rows ===================== */
.b-rows { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); }
.b-row { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.b-flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.b-flip .b-txt { order: 2; }
.pg .b-n { margin: 0 0 10px; font: 500 12px var(--ah-mono); color: var(--ah-accent-ink); }
.pg .b-txt h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 14px; }
.pg .b-txt > p:nth-of-type(2) { font-size: 17.5px; color: var(--ah-ink-2); }
.b-scr { position: relative; max-height: 640px; overflow: hidden; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-bg); box-shadow: var(--ah-shadow-app); }
/* The screen is cut, never scrolled: a fade says there is more below. */
.b-scr:not(.b-scr-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(180deg, transparent, var(--ah-bg)); pointer-events: none; }
.b-scr > .blk > .scr, .b-scr > .blk > .ph-stage { border: 0; border-radius: 0; box-shadow: none; }
.b-scr > .blk > .scr > .scr-bar { position: relative; }
@media (max-width: 900px) {
  .b-row, .b-flip { grid-template-columns: minmax(0, 1fr); }
  .b-flip .b-txt { order: 0; }
  .b-scr { max-height: none; }
}

/* ===================== Hero and core facts ===================== */
.j-hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.pg .j-hero .lede { max-width: 760px; }
.j-hero .cta { justify-content: center; }
.j-coresec { padding-top: clamp(40px, 5vw, 64px); }
.j-coresec + .hero-band { margin-top: clamp(40px, 5vw, 64px); }
.j-core { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ah-line); }
.j-core li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px 0; border-bottom: 1px solid var(--ah-line); }
.j-core li:not(:nth-child(4n + 1)) { padding-left: 18px; border-left: 1px solid var(--ah-line); }
.j-core b { font: 500 14.5px var(--ah-mono); color: var(--ah-ink); letter-spacing: -0.01em; }
.j-core span { font-size: 14.5px; line-height: 1.45; color: var(--ah-ink-2); }
@media (max-width: 1000px) { .j-core { grid-template-columns: 1fr 1fr; } .j-core li:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; } .j-core li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--ah-line); } }
@media (max-width: 560px) {
  .j-core { grid-template-columns: minmax(0, 1fr); }
  .j-core li:nth-child(even) { padding-left: 0; border-left: 0; }
}

.b-scr.b-scr-open { max-height: none; overflow: visible; border: 0; background: none; box-shadow: none; }
.b-notes { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--ah-line); }
.b-notes li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--ah-line); font-size: 14.5px; color: var(--ah-ink-2); }
.b-notes b { font-size: 13px; font-weight: 600; color: var(--ah-ink); }
/* Window dots, as in the install prompt's window bar */
.bw-dots { display: inline-flex; gap: 4px; }
.bw-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c7ced6; }

/* ===================== Connectors: a hub with lines into Open Habitat ===================== */
.b-scr.b-scr-open:has(.hub) { align-self: center; }
.hub { position: relative; margin: 88px auto 72px; aspect-ratio: 1 / .9; max-width: 640px; margin-inline: auto; width: 100%; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines line { vector-effect: non-scaling-stroke; fill: none; }
.hub-base line { stroke: var(--ah-line-strong); stroke-width: 1.2; }
.hub-pulse line { stroke: var(--ah-accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 5 95; stroke-dashoffset: 105; opacity: 0; animation: hub-pulse 3s cubic-bezier(.4, 0, .6, 1) infinite; animation-delay: var(--d); }
@keyframes hub-pulse { 0% { stroke-dashoffset: 105; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { stroke-dashoffset: 5; opacity: 0; } }
.hub-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 22px; border-radius: 16px; background: var(--ah-surface); border: 1.5px solid var(--ah-accent-line); box-shadow: var(--ah-shadow-app); }
.hub-c .oh-mark { color: var(--ah-accent); }
.hub-c b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.hub-c small { font-size: 12px; color: var(--ah-muted); }
.hub-ts { list-style: none; margin: 0; padding: 0; }
.hub-t { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -23px); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 104px; text-align: center; }
.hub-l { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ah-surface); border: 1px solid var(--ah-line); color: var(--ah-ink); margin-bottom: 4px; }
/* In the upper half the label sits above the logo, so a line reaches the logo from inside without crossing text. */
.hub-up { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + 23px)); }
.hub-up .hub-l { margin: 4px 0 0; }
.hub-l svg { width: 24px; height: 24px; }
.hub-t b { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.hub-t small { font-size: 11px; line-height: 1.25; color: var(--ah-muted); }
@media (prefers-reduced-motion: reduce) { .hub-pulse { display: none; } }
@media (max-width: 640px) {
  .hub { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .hub-lines { display: none; }
  .hub-c { position: static; transform: none; }
  .hub-ts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; width: 100%; }
  .hub-t, .hub-up { position: static; transform: none; width: auto; flex-direction: column; }
  .hub-up .hub-l { margin: 0 0 4px; }
}

/* Programs: a scattered cloud of logos in their own colours (positions from screens.mjs) */
.pc { list-style: none; position: relative; margin: 0 auto; padding: 0; max-width: 1040px; aspect-ratio: 1040 / 440; }
.pc-i { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-l { display: grid; place-items: center; color: var(--c); }
.pc-l svg { width: var(--s); height: var(--s); }
.pc-i b { font-size: 12.5px; font-weight: 500; color: var(--ah-ink-2); white-space: nowrap; }
@media (max-width: 640px) {
  .pc { aspect-ratio: 350 / 760; max-width: 350px; }
  .pc-i { left: var(--mx); top: var(--my); }
  .pc-l svg { width: var(--ms); height: var(--ms); }
  .pc-i b { font-size: 11.5px; }
}

/* Install: the prompt in a coding agent's window */
.ag-win { max-width: 860px; margin: 0 auto; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-surface); box-shadow: var(--ah-shadow-app); overflow: hidden; }
.ag-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--ah-line-soft); font: 500 12.5px var(--ah-mono); color: var(--ah-muted); }
.ag-bar .j-copy { margin-left: auto; padding: 5px 16px; font-size: 13px; }
.ag-body { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 26px; background: var(--ah-sunken); font: 400 16px/1.6 var(--ah-mono); }
.ag-p { color: var(--ah-accent); font-weight: 500; }
.pg .ag-text { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--ah-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-caret { display: inline-block; vertical-align: -0.2em; width: 9px; height: 1.2em; margin-left: 4px; background: var(--ah-accent); animation: ag-blink 1.1s steps(1) infinite; }
@keyframes ag-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ag-caret { animation: none; } }
@media (max-width: 640px) { .ag-body { font-size: 14px; padding: 16px; } }

.hub-pill { width: auto; padding: 0 14px; font: 600 13px var(--ah-font); white-space: nowrap; }
.pg .foot .j-credit { font-size: 12.5px; }
.hub-back line { animation-name: hub-pulse-back; animation-delay: calc(var(--d) + 1.5s); }
@keyframes hub-pulse-back { 0% { stroke-dashoffset: 5; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { stroke-dashoffset: 105; opacity: 0; } }
.m-still { display: block; width: 100%; height: auto; }
/* The phone screen's feed keeps its newest messages in view without scrolling on its own. */
.j-page [data-block="alice-07-lunch-phone"] .lp-feed { overflow: hidden; }

/* ===================== The feature rows' live demos (screens.mjs demo) =====================
   The poster with a frosted glass play button and the scene's length; once it
   plays, a pause/play and a full-screen button in the corner that show on
   hover, focus and pause (always on touch and in full screen). The circle
   scales with the frame (a container unit), and its SVG covers the circle, so
   the triangle keeps its 40 %. */
.demo { margin: 0; }
.demo-box { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--ah-line); border-radius: 14px; overflow: hidden; background: #0d1210; box-shadow: var(--ah-shadow-app); color: var(--ah-ink); isolation: isolate; container-type: inline-size; }
.demo-poster, .demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The iframe goes under the poster; the poster leaves once the scene has
   drawn its first frame (client.js removes data-loading), and the play
   button as soon as it is pressed. */
.demo-poster { object-fit: cover; transition: opacity 180ms ease-out; }
.demo-box:not([data-state="idle"]):not([data-loading]) .demo-poster { opacity: 0; }
.demo-frame { pointer-events: none; background: transparent; }
.demo-hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.demo-box[data-state="idle"] :is(.demo-hit, .demo-corner) { display: none; }
.demo-box button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--ah-accent); }

.demo-big { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--ah-ink); cursor: pointer; }
.demo-big[hidden] { display: none; }
.demo-big { transition: opacity 150ms ease-out, visibility 0s; }
.demo-box:not([data-state="idle"]) .demo-big { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms ease-out, visibility 0s 150ms; }
.demo-big-i { display: grid; place-items: center; width: clamp(56px, 12cqi, 88px); height: clamp(56px, 12cqi, 88px); border-radius: 50%; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 28px rgba(8, 14, 10, .22), 0 1px 3px rgba(8, 14, 10, .16); transition: transform 180ms cubic-bezier(.23, 1, .32, 1), background-color 180ms ease-out, box-shadow 180ms ease-out; }
.demo-big-i svg { display: block; width: 100%; height: 100%; }
.demo-big:hover .demo-big-i { transform: scale(1.04); background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 32px rgba(8, 14, 10, .26), 0 1px 3px rgba(8, 14, 10, .16); }
.demo-big:active .demo-big-i { transform: scale(.97); }
.demo-big:focus-visible { outline: none; box-shadow: none; }
.demo-big:focus-visible .demo-big-i { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--ah-accent); }
.demo-len { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--ah-ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 500 13px var(--ah-mono); font-variant-numeric: tabular-nums; }

.demo-corner { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 8px; opacity: 0; transform: translateY(4px); transition: opacity 180ms ease-out, transform 180ms ease-out; }
.demo-box:is(:hover, :focus-within, [data-fs], [data-state="paused"]) .demo-corner { opacity: 1; transform: none; }
@media (hover: none) { .demo-corner { opacity: 1; transform: none; } }
.demo-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); color: var(--ah-ink); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color 150ms ease-out, transform 120ms ease-out; }
.demo-btn:hover { background: rgba(255, 255, 255, .92); }
.demo-btn:active { transform: scale(.95); }
.demo-btn svg { display: block; width: 100%; height: 100%; }
.demo-btn[hidden] { display: none; }
.demo-box[data-state="playing"] .demo-i-play, .demo-box:not([data-state="playing"]) .demo-i-pause, .demo-box[data-fs] .demo-i-fs, .demo-box:not([data-fs]) .demo-i-fs-exit { display: none; }

/* Full screen: the box fills the screen, letterboxed; the scene scales itself. */
.demo-box:fullscreen { box-sizing: border-box; aspect-ratio: auto; width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #000; }
.demo-box:-webkit-full-screen { aspect-ratio: auto; width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #000; }
.demo-box[data-fs] .demo-poster { object-fit: contain; }
.demo-box[data-fs] .demo-btn { width: 48px; height: 48px; }
.demo-box[data-fs] .demo-big-i { width: 96px; height: 96px; }
.demo figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ah-ink-2); }
@media (max-width: 640px) { .demo-btn { width: 34px; height: 34px; } .demo-corner { right: 8px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .demo-box *, .demo-box *::before { transition: none !important; }
  .demo-big:is(:hover, :active) .demo-big-i, .demo-btn:active { transform: none; }
}

/* The release line's caveat under the hero's buttons. */
.pg .j-hero .j-release { margin: 16px auto 0; max-width: 640px; font-size: 14px; color: var(--ah-muted); }
.pg .j-hero .j-release a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Jussi's front page in our look: the three directions. Loaded after the
   design-system tokens, the brand's Päivä theme (website brand.css) and the
   landing page v1 engine's page, screen and product CSS, so the screens are
   the product's shapes and the page is the v1 page's language. Shared pieces
   are .j-*; 1 Tuoteruutu .t-*, 2 Asiakkaat .e-*, 3 Tarina .s-*. */

/* ===================== Shared ===================== */
.j-page { padding-bottom: 96px; }
.j-page sup { color: var(--ah-accent); font-weight: 600; font-size: .7em; }
.j-page .top { position: relative; z-index: 2; }
.j-top nav { flex: 1; justify-content: center; }
.j-top-r { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; }
.j-chip { font: 500 12px var(--ah-mono); color: var(--ah-muted); border: 1px solid var(--ah-line); border-radius: var(--ah-r-pill); padding: 5px 10px; white-space: nowrap; }
.pg .j-gh { color: var(--ah-ink-2); text-decoration: none; }
.pg .j-btn-s { height: 36px; padding: 0 16px; font-size: 14px; }
.j-sec { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 40px) 0; }
.j-head { max-width: 800px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.j-head h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 18px; }
.pg .j-lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ah-ink-2); margin: 0; }
.pg .j-fn { font-size: 13.5px; color: var(--ah-muted); max-width: 620px; margin: 16px auto 0; }
.j-page .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.pg button.btn { border: 0; font: 600 15px var(--ah-font); cursor: pointer; }

.j-logos { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(36px, 5vw, 56px) 20px 0; }
.j-logos .kicker { margin: 0; color: var(--ah-muted); }
.j-logos > div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px); }
.j-logos a { display: block; filter: grayscale(1); opacity: .72; transition: opacity 150ms ease-out, filter 150ms ease-out; }
.j-logos a:hover { filter: none; opacity: 1; }
.pg .j-logo { display: block; height: 38px; width: auto; }
.pg .j-logo-vensum { height: 50px; }
.pg .j-logo-threedbear { height: auto; width: 150px; }

.j-impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 36px 0 0; }
.j-impact > div { padding: 20px 20px 18px; border: 1px solid var(--ah-line); border-radius: 12px; background: var(--ah-surface); }
.j-impact dt { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: var(--ah-accent-ink); }
.j-impact dd { margin: 10px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ah-ink-2); }

.j-pwc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.j-pwc h4, .j-didai h4 { margin: 0 0 8px; font: 500 12px var(--ah-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ah-accent-ink); }
.pg .j-pwc p { margin: 0; font-size: 16px; color: var(--ah-ink-2); }
.j-pwc strong { color: var(--ah-ink); font-weight: 600; }

.j-q { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0; padding: 22px; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-surface); }
.j-q > img, .j-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.j-av { display: grid; place-items: center; background: var(--ah-accent-soft); color: var(--ah-accent-ink); font-weight: 600; font-size: 20px; }
.j-q blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ah-ink); }
.j-q-big { grid-template-columns: 72px minmax(0, 1fr); }
.j-q-big > img { width: 72px; height: 72px; }
.j-q-big blockquote { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; letter-spacing: -0.01em; font-weight: 500; }
.j-q figcaption { margin-top: 10px; font-size: 14px; color: var(--ah-muted); }
.j-q figcaption b { color: var(--ah-ink); font-weight: 600; }

.j-didai { margin-top: 36px; }
.j-didai ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.j-didai li { padding: 6px 12px; border: 1px solid var(--ah-line); border-radius: var(--ah-r-pill); background: var(--ah-surface); font-size: 14px; color: var(--ah-ink-2); }

.j-prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; margin-top: 36px; padding: clamp(20px, 3vw, 32px); border-radius: 16px; background: var(--ah-sunken); border: 1px solid var(--ah-line-soft); }
.pg .j-prod-logo { height: 30px; width: auto; margin-bottom: 14px; }
.j-prod h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin-bottom: 8px; }
.pg .j-prod p { color: var(--ah-ink-2); margin: 0; }
.j-prod-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.j-prod-shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }

.j-small { zoom: .62; pointer-events: none; user-select: none; }
.j-small .scr { box-shadow: none; }

/* Pieces inside the screens */
.pg .j-closed { display: flex; align-items: center; gap: 8px; margin: 2px 0 0 28px; font-size: 12.5px; color: var(--ah-accent-ink); }
.j-closed .oh-mark { color: var(--ah-accent); }
.j-offers { display: flex; flex-direction: column; gap: 6px; }
.j-hist { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-left: 28px; padding: 8px 10px; border: 1px dashed var(--ah-line-strong); border-radius: 10px; font-size: 12.5px; color: var(--ah-ink-2); }
.j-hist-k { font: 600 10.5px var(--ah-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ah-muted); }
.j-hist .quiet-btn { margin-left: auto; }
.j-hist.undone > span:nth-child(2) { text-decoration: line-through; color: var(--ah-muted); }
.pg .scr pre.j-tree { white-space: pre; overflow-x: auto; font-size: 12.5px; line-height: 1.75; background: var(--ah-surface-2); }
.j-tree span { color: var(--ah-muted); font-family: var(--ah-font); margin-left: 14px; font-size: 12px; }
.j-plan, .j-rep { background: var(--ah-surface); border: 1px solid var(--ah-line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.pg .j-plan-h, .pg .j-rep-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 10px; }
.j-plan-h span, .j-rep-h span { color: var(--ah-accent-ink); font-size: 12px; }
.j-plan ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.j-plan li { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.j-pg { font: 500 11.5px var(--ah-mono); color: var(--ah-muted); }
.j-psec { font-size: 12.5px; color: var(--ah-ink-2); }
.j-bars { display: flex; gap: 3px; }
.j-bars i { flex: 1; height: 14px; border-radius: 3px; background: var(--ah-accent-soft); box-shadow: inset 0 0 0 1px var(--ah-accent-line); }
.j-bars i:first-child { flex: 2; }
.j-ok { font: 500 11.5px var(--ah-mono); color: var(--ah-accent-ink); text-align: right; }
.pg .j-plan-f { margin: 10px 0 0; font-size: 12px; color: var(--ah-turn); }
.j-rep ul { list-style: none; margin: 0; padding: 0; }
.j-rep li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--ah-line-soft); }
.j-rep li code { flex: none; color: var(--ah-syntax-title); }
.j-deck-tg { display: inline-flex; gap: 2px; padding: 2px; margin: 0 0 10px; border-radius: var(--ah-r-pill); background: var(--ah-control); }
.j-deck-tg button { border: 0; background: none; padding: 4px 12px; border-radius: var(--ah-r-pill); font: 600 12px var(--ah-font); color: var(--ah-ink-2); cursor: pointer; }
.j-deck-tg button[aria-pressed="true"] { background: var(--ah-surface); color: var(--ah-ink); box-shadow: 0 0 0 1px var(--ah-line); }
.j-deck[data-state="after"] .j-before, .j-deck[data-state="before"] .j-after { display: none; }
.slide.j-striped { background: linear-gradient(180deg, #e8572f 0 7%, #fff 7% 93%, #2a8fd6 93%); }
.slide.j-striped b { background: linear-gradient(90deg, #185e87 55%, #c0471f 55%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide.j-plain b { color: #1d2a3a; }

/* The rest of Jussi's page, shared by all three */
.j-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.j-area { padding: 22px 24px; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-surface); }
.j-area h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.j-area ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; color: var(--ah-ink-2); }
.j-area li { margin: 5px 0; }
.j-tech { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; margin-top: 56px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--ah-line); border-radius: 18px; background: var(--ah-surface); }
.j-tech h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin-bottom: 14px; }
.pg .j-tech p { color: var(--ah-ink-2); }
.pg .j-tech pre { background: var(--ah-sunken); margin: 16px 0 0; white-space: pre-wrap; }
.j-pkgs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.j-pkgs li { font: 500 12.5px var(--ah-mono); padding: 6px 9px; border-radius: 7px; background: var(--ah-sunken); border: 1px solid var(--ah-line-soft); color: var(--ah-ink-2); }
.j-specs dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; }
.j-specs dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ah-line); font-size: 15.5px; }
.j-specs dt { font-weight: 600; }
.j-specs dd { margin: 0; color: var(--ah-ink-2); }
.j-people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.j-person { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; padding: 24px; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-surface); }
.j-person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.j-person h3 { font-size: 19px; font-weight: 600; }
.pg .j-role { margin: 2px 0 8px; font-size: 14.5px; font-weight: 600; color: var(--ah-accent-ink); }
.pg .j-person p:last-child { margin: 0; font-size: 15.5px; color: var(--ah-ink-2); }
.j-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.j-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--ah-line); border-radius: 18px; background: var(--ah-surface); }
.j-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.pg .j-card p { flex: 1; color: var(--ah-ink-2); margin: 0 0 8px; }
.j-card .btn { align-self: flex-start; }
.j-card-hl { background: var(--ah-accent-soft); border-color: var(--ah-accent-line); }
.pg .foot.j-foot { margin-top: clamp(72px, 10vw, 120px); }

@keyframes j-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes j-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .j-top nav, .j-chip, .j-gh { display: none; }
  .j-pwc, .j-areas, .j-tech, .j-specs dl, .j-people, .j-cards, .j-prod { grid-template-columns: minmax(0, 1fr); }
  .j-specs dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .j-impact { grid-template-columns: 1fr 1fr; }
  .j-q-big { grid-template-columns: 52px minmax(0, 1fr); }
  .j-q-big > img { width: 52px; height: 52px; }
}

/* ===================== 1 Tuoteruutu ===================== */
.t-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px) minmax(0, 1fr); gap: 28px; align-items: center; max-width: 1400px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(20px, 3vw, 40px) 0; }
.t-hero-c { text-align: center; }
.t-hero h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin-bottom: 18px; }
.pg .t-sub { font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -0.015em; color: var(--ah-accent-ink); margin-bottom: 18px; }
.pg .t-intro { font-size: clamp(17px, 1.8vw, 19px); color: var(--ah-ink-2); max-width: 600px; margin: 0 auto 26px; }
.t-hero .cta { justify-content: center; }
.t-pains { display: flex; flex-direction: column; gap: 18px; }
.t-pains-l { align-items: flex-start; }
.t-pains-r { align-items: flex-end; }
.t-pain { max-width: 290px; padding: 9px 13px 11px; border: 1px solid var(--ah-line); border-radius: var(--ah-r-lg); background: var(--ah-surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); animation: j-in 260ms cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i) * 140ms + 200ms); }
.t-pains-l .t-pain:nth-child(2) { margin-left: 36px; }
.t-pains-r .t-pain:nth-child(2) { margin-right: 36px; }
.t-pain header strong { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ah-muted); }
.pg .t-pain p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.4; color: var(--ah-ink); }
.t-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.t-pillars > div { padding: 28px 30px; border-radius: 16px; background: var(--ah-sunken); border: 1px solid var(--ah-line-soft); }
.t-pillars h3 { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 10px; }
.pg .t-pillars p:last-child { color: var(--ah-ink-2); margin: 0; }
.t-n { font: 500 12px var(--ah-mono); color: var(--ah-accent-ink); }

.t-x { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); grid-auto-rows: min-content; column-gap: clamp(20px, 3vw, 40px); row-gap: 4px; align-items: start; }
.t-x-it { display: contents; }
.t-x-b { grid-column: 1; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--ah-ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms ease-out; }
.t-x-b:hover { background: var(--ah-hover); }
.t-x-b:focus-visible { outline: 2px solid var(--ah-focus); outline-offset: 2px; }
.t-x-b .t-n { padding-top: 4px; }
.t-x-b b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.t-x-b span span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ah-muted); }
.t-x-it.on .t-x-b { background: var(--ah-surface); box-shadow: inset 0 0 0 1px var(--ah-line), 0 1px 2px rgba(16, 24, 40, .04); }
.t-x-it.on .t-x-b span span { color: var(--ah-ink-2); }
.t-x-scr { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 20px; }

.t-st-tabs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.t-st-tabs button { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 12px 14px 14px; border: 1px solid var(--ah-line); border-top: 3px solid var(--ah-line); border-radius: 10px; background: transparent; color: var(--ah-ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.t-st-tabs button:hover { background: var(--ah-hover); }
.t-st-tabs button:focus-visible { outline: 2px solid var(--ah-focus); outline-offset: 2px; }
.t-st-tabs button[aria-pressed="true"] { background: var(--ah-surface); border-top-color: var(--ah-accent); }
.t-st-tabs b { font-size: 15px; line-height: 1.25; font-weight: 600; }
.t-st-tabs span:last-child { font-size: 13.5px; line-height: 1.4; color: var(--ah-muted); }
.t-st-scr { max-width: 1000px; margin: 0 auto; }
.t-st-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 20px 0 0; font: 500 13px var(--ah-mono); color: var(--ah-muted); }

.t-case { padding-top: clamp(56px, 7vw, 88px); }
.t-case + .t-case { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ah-line); }
.t-case-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.t-case-h .j-logo { margin-bottom: 20px; }
.t-case-h h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 16px; }
.pg .t-what { font-size: 17.5px; color: var(--ah-ink-2); margin: 0; }
.t-what strong { color: var(--ah-ink); font-weight: 600; }
.t-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 32px; }
.t-photos figure { margin: 0; }
.t-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--ah-line); }
.t-photos figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ah-muted); }
.t-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.t-quotes .j-q-big { grid-column: 1 / -1; }

@media (max-width: 1180px) {
  .t-hero { grid-template-columns: minmax(0, 1fr); }
  .t-pains { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(-1 * clamp(20px, 3vw, 40px)); padding: 4px clamp(20px, 3vw, 40px) 8px; scrollbar-width: none; }
  .t-pains-l { order: 2; }
  .t-pains-r { order: 3; margin-top: -18px; }
  .t-pain { flex: none; width: 250px; scroll-snap-align: start; }
  .t-pains .t-pain:nth-child(2) { margin: 0; }
}
@media (max-width: 900px) {
  .t-pillars, .t-case-h, .t-quotes { grid-template-columns: minmax(0, 1fr); }
  .t-x { grid-template-columns: minmax(0, 1fr); }
  .t-x-scr { grid-column: 1; grid-row: auto; position: static; margin: 4px 0 18px; }
  .t-st-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px 16px; padding: 0 20px 4px; scrollbar-width: none; }
  .t-st-tabs li { flex: none; width: 72%; scroll-snap-align: center; }
}

/* ===================== 2 Asiakkaat ===================== */
.e-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; max-width: 1240px; margin: 0 auto; padding: clamp(32px, 7vw, 96px) clamp(20px, 4vw, 40px) clamp(40px, 6vw, 72px); }
.e-hero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .96; letter-spacing: -0.045em; font-weight: 600; margin-bottom: 24px; }
.pg .e-sub { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ah-accent-ink); margin-bottom: 20px; }
.pg .e-intro { font-size: clamp(17px, 1.7vw, 20px); color: var(--ah-ink-2); max-width: 640px; margin-bottom: 26px; }
.e-hero .j-fn { margin-left: 0; }
.e-pains { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ah-line); }
.e-pains li { padding: 14px 0 15px; border-top: 1px solid var(--ah-line); font-size: 17.5px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ah-ink); animation: j-fade 240ms ease-out both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.e-pains li span { display: block; margin-bottom: 3px; font: 500 11px var(--ah-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ah-muted); }
.e-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pg .e-tri-it { position: relative; display: block; aspect-ratio: 4 / 4.4; max-height: 620px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ah-ink); }
.e-tri-it img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.23, 1, .32, 1); }
.e-tri-it:hover img { transform: scale(1.025); }
.e-tri-cap { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 4px; padding: 80px clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 30px); background: linear-gradient(180deg, transparent, rgba(12, 20, 14, .78)); }
.pg .e-tri-logo { height: 28px; width: auto; max-width: 140px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); margin-bottom: 10px; }
.e-tri-cap b { font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: #fff; }
.e-tri-cap > span { font-size: 15px; color: rgba(255, 255, 255, .86); }
.e-left { text-align: left; margin-left: 0; }
.e-why { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.e-why-l { position: sticky; top: 24px; }
.e-cap { margin: 0; }
.e-cap img { border-radius: 12px; border: 1px solid var(--ah-line); max-width: 420px; }
.e-cap figcaption { margin-top: 8px; font-size: 13px; color: var(--ah-muted); }
.e-pillar { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--ah-line); }
.e-pillar h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 12px; }
.pg .e-pillar p:last-child { font-size: 18px; color: var(--ah-ink-2); margin: 0; }
.e-ben { list-style: none; counter-reset: b; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.e-ben li { counter-increment: b; display: flex; flex-direction: column; gap: 6px; }
.e-ben li::before { content: counter(b, decimal-leading-zero); font: 500 12px var(--ah-mono); color: var(--ah-accent-ink); }
.e-ben b { font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
.e-ben span { font-size: 15.5px; color: var(--ah-ink-2); }
.e-film { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.e-film li { display: flex; flex-direction: column; gap: 6px; }
.e-film-n { font: 500 12px var(--ah-mono); color: var(--ah-accent-ink); }
.e-film .j-small { height: 380px; overflow: hidden; border-radius: 14px; margin-bottom: 8px; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.e-film b { font-size: 16px; line-height: 1.25; font-weight: 600; }
.e-film li > span:last-child { font-size: 14px; color: var(--ah-ink-2); }
.e-case { padding-top: clamp(40px, 6vw, 80px); }
.e-case + .e-case { padding-top: clamp(80px, 10vw, 136px); }
.pg .e-case-img { margin: 0 calc(50% - 50vw); }
.e-case-img img { width: 100%; height: clamp(280px, 42vw, 600px); object-fit: cover; }
.e-case-t { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 72px); align-items: end; margin-top: clamp(32px, 5vw, 56px); }
.e-case-t .j-logo { grid-column: 1 / -1; }
.e-case-t h3 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.pg .e-what { font-size: 18px; color: var(--ah-ink-2); margin: 0; }
.e-what strong { color: var(--ah-ink); font-weight: 600; }
.e-num { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--ah-ink); }
.e-num > div { padding: 18px 20px 0 0; }
.e-num > div + div { padding-left: 20px; border-left: 1px solid var(--ah-line); }
.e-num dt { white-space: nowrap; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; color: var(--ah-accent-ink); }
.e-num dd { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--ah-ink-2); max-width: 240px; }
.pg .e-pull { max-width: 980px; margin: clamp(48px, 6vw, 80px) 0 0; }
.e-pull blockquote { margin: 0; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.24; letter-spacing: -0.02em; font-weight: 500; text-wrap: pretty; }
.e-pull figcaption { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 15px; color: var(--ah-muted); }
.e-pull figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.e-pull figcaption b { display: block; color: var(--ah-ink); font-weight: 600; }
.e-case-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.e-case-body .j-pwc { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.e-case-body .j-pwc > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--ah-line); }
.e-case-body .j-pwc p { font-size: 17px; }
.e-inprod .kicker { color: var(--ah-muted); }
.e-inprod .j-small { zoom: .7; max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.e-gal { display: grid; gap: 12px; margin-top: 40px; }
.e-gal-2 { grid-template-columns: 1fr 1fr; }
.e-gal figure { margin: 0; }
.e-gal img { width: 100%; border-radius: 12px; }
.e-gal-1 img { aspect-ratio: 21 / 9; object-fit: cover; }
.e-gal-2 img { aspect-ratio: 16 / 10; object-fit: cover; }
.e-gal figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ah-muted); }
.e-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.e-prod { background: none; border: 0; border-top: 1px solid var(--ah-line); border-radius: 0; padding: 32px 0 0; }
@media (max-width: 900px) {
  .e-hero, .e-why, .e-case-t, .e-case-body, .e-quotes, .e-gal-2 { grid-template-columns: minmax(0, 1fr); }
  .e-why-l { position: static; }
  .e-tri { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .e-tri-it { aspect-ratio: 16 / 11; }
  .e-ben { grid-template-columns: minmax(0, 1fr); }
  .e-film { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .e-film li { flex: none; width: 76%; scroll-snap-align: start; }
  .e-num { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .e-num dt { font-size: 40px; }
  .e-num > div + div { padding-left: 0; border-left: 0; }
  .e-num > div { padding: 16px 0; border-bottom: 1px solid var(--ah-line); }
  .e-case-body .j-pwc > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .e-inprod { display: none; }
}

/* ===================== 3 Tarina ===================== */
.s-hero { max-width: 980px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 40px) 0; text-align: center; }
.s-hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin-bottom: 18px; }
.pg .s-sub { font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -0.015em; color: var(--ah-accent-ink); margin-bottom: clamp(28px, 4vw, 44px); }
.s-pains { list-style: none; margin: 0 0 clamp(28px, 4vw, 40px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; text-align: left; }
.s-pains li { padding-left: 14px; border-left: 2px solid var(--ah-accent-line); font-size: 16px; line-height: 1.42; color: var(--ah-ink-2); animation: j-fade 240ms ease-out both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.s-pains li span { display: block; margin-bottom: 2px; font: 500 11px var(--ah-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ah-muted); }
.pg .s-intro { font-size: clamp(17px, 1.8vw, 20px); color: var(--ah-ink); max-width: 700px; margin: 0 auto 26px; }
.s-hero .cta { justify-content: center; }
.s-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.s-pillars > div { padding: 26px 28px; border-radius: 16px; background: var(--ah-sunken); border: 1px solid var(--ah-line-soft); }
.s-pillars h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; }
.pg .s-pillars p:last-child { margin: 0; color: var(--ah-ink-2); }
.s-ben { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.s-ben li { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-surface); }
.s-ben b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.s-ben li > span:last-child { font-size: 15px; color: var(--ah-ink-2); }

.s-story { max-width: 1320px; margin: clamp(72px, 10vw, 128px) auto 0; padding: 0 clamp(20px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.s-steps { grid-column: 1; grid-row: 1; }
.s-step { min-height: 88vh; padding-bottom: 8vh; }
.s-step:last-child { min-height: calc(100vh - 40px); }
.s-top { margin-bottom: 40px; }
.pg .s-h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 14px; }
.pg .s-lead { color: var(--ah-ink-2); font-size: 17px; }
.s-txt { position: sticky; top: 20px; opacity: .36; transition: opacity 250ms ease-out; }
.s-step.on .s-txt { opacity: 1; }
.pg .s-k { margin: 0 0 10px; font: 500 12px var(--ah-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ah-muted); }
.s-txt .j-logo { margin-bottom: 18px; }
.s-txt strong { font-weight: 600; color: var(--ah-ink); }
.s-impact { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.s-impact > div { padding: 14px 14px 12px; }
.s-impact dt { font-size: 26px; }
.s-impact dd { font-size: 13px; margin-top: 6px; }
.s-inline { display: none; }
.s-app { grid-column: 2; grid-row: 1; position: sticky; top: 20px; height: calc(100vh - 104px); min-height: 520px; display: flex; flex-direction: column; border: 1px solid var(--ah-line); border-radius: 14px; background: var(--ah-bg); box-shadow: var(--ah-shadow-app); overflow: hidden; }
.s-app-top { flex: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--ah-surface); border-bottom: 1px solid var(--ah-line); font-size: 13.5px; }
.s-app-org { display: inline-flex; align-items: center; gap: 8px; }
.s-app-org .oh-mark { color: var(--ah-accent); }
.s-app-n { margin-left: auto; font: 500 12px var(--ah-mono); color: var(--ah-muted); }
.s-app-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.s-app-rail { overflow-y: auto; padding: 14px 8px; background: var(--ah-rail); border-right: 1px solid var(--ah-line); }
.s-app-rail .rl-row { cursor: default; }
.s-app-main { overflow-y: auto; min-width: 0; }
.s-app-main > .scr { border: 0; border-radius: 0; box-shadow: none; min-height: 100%; }
.s-app-main > .scr > .scr-bar { position: sticky; top: 0; z-index: 1; }
.s-more { padding-top: clamp(40px, 6vw, 72px); }
.s-case + .s-case { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--ah-line); }
.s-case-h { display: flex; align-items: center; gap: 16px; }
.pg .s-case-h p { margin: 0; font: 500 12px var(--ah-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ah-muted); }
.s-case-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.s-case-media figure { margin: 0; }
.s-case-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.s-case-media figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ah-muted); }
@media (max-width: 1100px) { .s-app-body { grid-template-columns: 190px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .s-pains, .s-pillars, .s-ben { grid-template-columns: minmax(0, 1fr); }
  .s-story { grid-template-columns: minmax(0, 1fr); }
  .s-app { display: none; }
  .s-step, .s-step:last-child { min-height: 0; padding-bottom: 48px; }
  .s-txt { position: static; opacity: 1; }
  .s-inline { display: block; margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .t-pain, .e-pains li, .s-pains li { animation: none; }
  .s-txt, .e-tri-it img { transition: none; }
}

/* The demo frame, three directions (data-style on .vf-page): quiet, player, card.
   Shared: the 16:9 box, the poster, the iframe over it, the big play button,
   full screen. Loaded after the live front page round's style.css. */
.vf-sec { padding-top: clamp(48px, 6vw, 80px); }
.vf-box { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--ah-line); border-radius: 14px; overflow: hidden; background: #0d1210; box-shadow: var(--ah-shadow-app); color: #fff; isolation: isolate; }
.vf-poster, .vf-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vf-poster { object-fit: cover; }
.vf-frame { pointer-events: none; background: transparent; }
.vf-hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.vf-box[data-state="idle"] .vf-hit { display: none; }
.vf-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 14, 12, .62); color: #fff; cursor: pointer; transition: background-color 150ms ease-out, transform 120ms ease-out; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vf-btn:hover { background: rgba(10, 14, 12, .82); }
.vf-btn:active { transform: scale(.95); }
.vf-btn svg { width: 100%; height: 100%; display: block; }
.vf-box :is(button, .vf-hit):focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--ah-accent); }
.vf-toggle svg:last-child, .vf-box[data-state="playing"] .vf-toggle svg:first-child { display: none; }
.vf-box[data-state="playing"] .vf-toggle svg:last-child { display: block; }
.vf-fs svg:last-child, .vf-box[data-fs] .vf-fs svg:first-child { display: none; }
.vf-box[data-fs] .vf-fs svg:last-child { display: block; }

/* The big play button: shown only before the first play (and the card's on pause too). */
.vf-big { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: #fff; font: 600 15px var(--ah-font); cursor: pointer; }
.vf-big-i { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ah-accent); color: var(--ah-on-accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .28), 0 0 0 8px rgba(255, 255, 255, .22); transition: transform 180ms cubic-bezier(.23, 1, .32, 1), box-shadow 180ms ease-out; }
.vf-big-i .vf-big-svg { width: 100%; height: 100%; display: block; }
.vf-big:hover .vf-big-i { transform: scale(1.05); box-shadow: 0 12px 34px rgba(0, 0, 0, .32), 0 0 0 10px rgba(255, 255, 255, .28); }
.vf-big:active .vf-big-i { transform: scale(.97); }
.vf-box:not([data-state="idle"]) .vf-big { display: none; }
.vf-len, .vf-time { font: 500 13px var(--ah-mono); font-variant-numeric: tabular-nums; }

/* 1 Hillitty: round play in the middle, its length below; once playing, two
   buttons in the corner that show on hover or focus (always on touch and in full screen). */
[data-style="quiet"] .vf-big { left: 50%; top: 50%; transform: translate(-50%, -50%); flex-direction: column; }
[data-style="quiet"] .vf-len { padding: 3px 10px; border-radius: 999px; background: rgba(10, 14, 12, .62); }
[data-style="quiet"] .vf-corner { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 8px; opacity: 0; transform: translateY(4px); transition: opacity 180ms ease-out, transform 180ms ease-out; }
[data-style="quiet"] .vf-box[data-state="idle"] .vf-corner { display: none; }
[data-style="quiet"] .vf-box:is(:hover, :focus-within, [data-fs], [data-state="paused"]) .vf-corner { opacity: 1; transform: none; }
@media (hover: none) { [data-style="quiet"] .vf-corner { opacity: 1; transform: none; } }

/* Full screen: the box fills the screen, letterboxed; the scene scales itself. */
.vf-box:fullscreen { box-sizing: border-box; aspect-ratio: auto; width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #000; }
.vf-box:-webkit-full-screen { aspect-ratio: auto; width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #000; }
.vf-box[data-fs] .vf-poster { object-fit: contain; }
.vf-box[data-fs] .vf-btn { width: 48px; height: 48px; }

@media (max-width: 640px) {
  .vf-btn { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-box *, .vf-box *::before { transition: none !important; }
}
/* The player's bar is taller in full screen, so its larger buttons fit inside it. */
[data-style="player"] .vf-box[data-fs] .vf-bar { height: 60px; padding: 0 16px; gap: 16px; }
[data-style="player"] .vf-box[data-fs] :is(.vf-frame, .vf-hit) { height: calc(100% - 60px); }

/* ===================== Riff: three characters of the play button =====================
   The circle scales with the frame (clamp 56–88 px against the frame's width,
   a container unit); the SVG covers the circle, so the triangle keeps its 40 %. */
.vf-box { container-type: inline-size; }
.vf-big-i { width: clamp(56px, 12cqi, 88px); height: clamp(56px, 12cqi, 88px); box-shadow: none; transition: transform 180ms cubic-bezier(.23, 1, .32, 1), background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out; }
.vf-big:hover .vf-big-i { box-shadow: none; }
.vf-box[data-fs] .vf-big-i { width: 96px; height: 96px; }

/* 1 Lasi: a frosted white circle, a dark triangle, a soft shadow, 1.04 on hover. */
[data-play="glass"] .vf-big-i { background: rgba(255, 255, 255, .78); color: var(--ah-ink); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 28px rgba(8, 14, 10, .22), 0 1px 3px rgba(8, 14, 10, .16); }
[data-play="glass"] .vf-big:hover .vf-big-i { transform: scale(1.04); background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 32px rgba(8, 14, 10, .26), 0 1px 3px rgba(8, 14, 10, .16); }
[data-play="glass"] .vf-len { background: rgba(255, 255, 255, .78); color: var(--ah-ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
[data-play="glass"] .vf-btn { background: rgba(255, 255, 255, .78); color: var(--ah-ink); }
[data-play="glass"] .vf-btn:hover { background: rgba(255, 255, 255, .92); }

/* 2 Aksentti: an opaque circle in the brand's accent, a white triangle, the length under it. */
[data-play="accent"] .vf-big-i { background: var(--ah-accent); color: var(--ah-on-accent); box-shadow: 0 10px 28px rgba(8, 14, 10, .3); }
[data-play="accent"] .vf-big:hover .vf-big-i { background: var(--ah-accent-hover); transform: scale(1.03); box-shadow: 0 12px 32px rgba(8, 14, 10, .34); }
[data-play="accent"] .vf-big:active .vf-big-i { background: var(--ah-accent-press); }
[data-play="accent"] .vf-len { background: rgba(8, 14, 10, .7); color: #fff; }
[data-play="accent"] .vf-btn { background: var(--ah-accent); color: var(--ah-on-accent); -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-play="accent"] .vf-btn:hover { background: var(--ah-accent-hover); }

/* 3 Rengas: a thin white ring and a filled triangle; on hover the ring fills and the triangle turns dark. */
[data-play="ring"] .vf-big-i { background: rgba(8, 14, 10, .34); color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 2px 12px rgba(0, 0, 0, .18); }
[data-play="ring"] .vf-big:hover .vf-big-i { background: #fff; color: var(--ah-ink); }
[data-play="ring"] .vf-len { background: rgba(8, 14, 10, .34); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9); }
[data-play="ring"] .vf-btn { background: rgba(8, 14, 10, .3); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9); -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-play="ring"] .vf-btn:hover { background: #fff; color: var(--ah-ink); }
@media (prefers-reduced-motion: reduce) { .vf-big:hover .vf-big-i { transform: none !important; } }

/* The itsellesi.fi page. Loaded last: after open-habitat.ai's front page style,
   the Tuoteruutu style (round1.css) and the Lasi demo frame (frame.css). */
.fc-top { gap: 20px; }
.fc-top nav { flex: 1; justify-content: center; }
.fc-for { font-weight: 500; color: var(--ah-muted); }
.fc-top-r { display: inline-flex; align-items: center; gap: 16px; font-size: 14.5px; }
.pg .fc-soft { color: var(--ah-ink-2); text-decoration: none; }
.pg .fc-soft:hover { color: var(--ah-accent-ink); }
.pg .fc-btn-s { height: 38px; padding: 0 18px; font-size: 14.5px; }
.pg .t-hero .eyebrow { margin-bottom: 14px; }
.pg .t-hero h1 { font-size: clamp(36px, 4.8vw, 62px); }
.pg .fc-sub { font-size: clamp(17px, 1.8vw, 20px); font-weight: 400; letter-spacing: 0; color: var(--ah-ink-2); line-height: 1.5; margin-bottom: 26px; }
.pg .fc-intro { max-width: 760px; margin: clamp(36px, 5vw, 56px) auto 0; padding: 0 20px; text-align: center; font-size: clamp(17px, 1.8vw, 19px); color: var(--ah-ink); }
.t-pillars { margin-bottom: clamp(48px, 7vw, 88px); }
.pg .fc-more { margin-top: 14px; color: var(--ah-ink-2); }
.t-case-h .t-case-scr { max-height: 560px; }
.fc-start { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fc-primary h3 { font-size: 24px; }
.fc-contact-box { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 48px); text-align: center; border-radius: 20px; background: var(--ah-accent-soft); border: 1px solid var(--ah-accent-line); }
.pg .fc-contact-box h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin-bottom: 12px; }
.pg .fc-contact-box p { color: var(--ah-ink-2); }
.fc-contact-box .cta { justify-content: center; margin-top: 20px; }
.b-scr-open .demo { width: 100%; }
.pg .fc-contact-box .fc-mail { margin: 14px 0 0; font-size: 15px; }
.pg .fc-mail a { color: var(--ah-accent-ink); }
.pg .foot .fc-company { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 0; }
.pg .foot .fc-company a { color: inherit; }
.fc-itsellesi { width: 66px; height: auto; display: block; }
@media (max-width: 1100px) { .fc-top nav { display: none; } }
@media (max-width: 900px) {
  .fc-start { grid-template-columns: minmax(0, 1fr); }
  .fc-top-r .fc-soft { display: none; }
}
@media (max-width: 420px) { .fc-for { display: none; } }
.fc-page .b-scr:not([data-cut])::after { display: none; }
/* With the quotes gone the photos carry the case: larger, up to three a row. */
.t-photos { grid-template-columns: repeat(auto-fit, minmax(240px, 380px)); gap: 16px; }
.pg .t-photos figcaption { font-size: 13.5px; }
