/* CLEAN TECH · iOS OPTIONS
   Six options in the iOS idiom, each with a light and a dark mode (?direction=glass&mode=dark).
   Built on the Daylight design system: the options only set semantic values (layer 2, --s-*) and
   art-direction values (--direction-*). One shared component layer below reads them through
   --ios-* roles. Values follow Apple's system palette (systemGroupedBackground, label, separator,
   systemBlue and friends) and the iOS 26 material guidance: glass for controls and navigation,
   color used sparingly, no glass on glass. */

/* ─────────────────────────────── 1 · SHARED ROLES ─────────────────────────────── */

html[data-ios][data-theme="light"] {
  color-scheme: light;
  --s-line: rgb(60 60 67 / .14);
  --s-line-strong: rgb(60 60 67 / .24);
  --s-glass: rgb(255 255 255 / .62);
  --s-glass-strong: rgb(255 255 255 / .82);
  --s-glass-side: rgb(255 255 255 / .78);
  --s-glass-bar: rgb(249 249 251 / .72);
  --s-glass-edge: rgb(255 255 255 / .7);
  --s-control: #ffffff;
  --s-control-hover: rgb(255 255 255 / .9);
  --s-control-edge: rgb(60 60 67 / .18);
  --s-shadow-card: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -14px rgb(0 0 0 / .14);
  --s-shadow-float: 0 24px 60px -20px rgb(0 0 0 / .25);
  --s-shadow-control: 0 3px 8px rgb(0 0 0 / .12), 0 0 0 .5px rgb(0 0 0 / .04);
  --s-shadow-primary: none;

  --ios-accent: #007aff;
  --ios-on-accent: #ffffff;
  --ios-link: var(--ios-accent);
  --ios-btn-ink: var(--ios-link);
  --ios-fill: rgb(118 118 128 / .12);
  --ios-fill-hover: rgb(118 118 128 / .18);
  --ios-row: rgb(118 118 128 / .07);
  --ios-row-hover: rgb(118 118 128 / .13);
  --ios-card: rgb(255 255 255 / .62);
  --ios-card-blur: blur(28px) saturate(180%);
  --ios-card-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 0 0 1px rgb(255 255 255 / .5),
    0 1px 2px rgb(0 0 0 / .04), 0 18px 44px -18px rgb(0 0 0 / .2);
  --ios-radius: 26px;
  --ios-radius-media: 14px;
  --ios-bar: rgb(249 249 251 / .72);
  --ios-sep: rgb(60 60 67 / .2);
  --ios-seg-track: rgb(118 118 128 / .12);
  --ios-seg-thumb: #ffffff;
  --ios-seg-shadow: 0 3px 8px rgb(0 0 0 / .12), 0 3px 1px rgb(0 0 0 / .04);
  --ios-primary-shadow: 0 8px 20px -10px color-mix(in srgb, var(--ios-accent) 70%, transparent);
  --ios-field: none;
  --ios-photo: none;
  --ios-photo-opacity: 0;
  --ios-eyebrow: var(--direction-muted);
}

html[data-ios][data-theme="dark"] {
  color-scheme: dark;
  --s-line: rgb(84 84 88 / .42);
  --s-line-strong: rgb(84 84 88 / .65);
  --s-glass: rgb(44 44 46 / .55);
  --s-glass-strong: rgb(36 36 38 / .86);
  --s-glass-side: rgb(28 28 30 / .9);
  --s-glass-bar: rgb(22 22 24 / .72);
  --s-glass-edge: rgb(255 255 255 / .1);
  --s-control: #636366;
  --s-control-hover: rgb(255 255 255 / .14);
  --s-control-edge: rgb(255 255 255 / .16);
  --s-shadow-card: 0 20px 50px -24px rgb(0 0 0 / .9);
  --s-shadow-float: 0 30px 80px -24px rgb(0 0 0 / .9);
  --s-shadow-control: 0 3px 8px rgb(0 0 0 / .4);
  --s-shadow-primary: none;

  --ios-accent: #0a84ff;
  --ios-on-accent: #ffffff;
  --ios-link: var(--ios-accent);
  --ios-btn-ink: var(--ios-link);
  --ios-fill: rgb(118 118 128 / .24);
  --ios-fill-hover: rgb(118 118 128 / .34);
  --ios-row: rgb(118 118 128 / .12);
  --ios-row-hover: rgb(118 118 128 / .22);
  --ios-card: rgb(44 44 46 / .5);
  --ios-card-blur: blur(28px) saturate(170%);
  --ios-card-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 0 0 1px rgb(255 255 255 / .07),
    0 24px 60px -24px rgb(0 0 0 / .85);
  --ios-radius: 26px;
  --ios-radius-media: 14px;
  --ios-bar: rgb(22 22 24 / .7);
  --ios-sep: rgb(84 84 88 / .6);
  --ios-seg-track: rgb(118 118 128 / .24);
  --ios-seg-thumb: #636366;
  --ios-seg-shadow: 0 3px 8px rgb(0 0 0 / .3);
  --ios-primary-shadow: 0 10px 26px -12px color-mix(in srgb, var(--ios-accent) 80%, transparent);
  --ios-field: none;
  --ios-photo: none;
  --ios-photo-opacity: 0;
  --ios-eyebrow: var(--direction-muted);
}

/* ─────────────────────────────── 2 · THE SIX OPTIONS ─────────────────────────────── */

/* 0 · LIQUID GLASS · CLEAN TONES. One recipe, five tones. Each tone sets a hue (--lq-h) and a
   small chroma (--lq-c); every colour below is derived in OKLCH, so lightness steps stay even and
   no tone can turn saturated. The background mixes three nearby hues at very low chroma. */
html[data-direction="clay"] { --lq-h: 52;  --lq-c: .05; }
html[data-direction="sage"] { --lq-h: 155; --lq-c: .045; }
html[data-direction="mist"] { --lq-h: 240; --lq-c: .05; }
html[data-direction="fog"]  { --lq-h: 265; --lq-c: .015; }
html[data-direction="dusk"] { --lq-h: 320; --lq-c: .045; }

html[data-liquid][data-theme="light"] {
  --direction-ground: oklch(96.2% .003 var(--lq-h));
  --direction-surface: oklch(99.4% .001 var(--lq-h));
  --direction-ink: oklch(21% .004 var(--lq-h));
  --direction-muted: oklch(52% .006 var(--lq-h));
  --direction-accent: oklch(46% calc(var(--lq-c) * .5) var(--lq-h));
  --direction-glow: oklch(96.2% .003 var(--lq-h));
  --thread-start: oklch(68% calc(var(--lq-c) * .5) var(--lq-h));
  --thread-end: oklch(40% calc(var(--lq-c) * .35) var(--lq-h));
  --s-line: oklch(30% .003 var(--lq-h) / .1);
  --s-line-strong: oklch(30% .003 var(--lq-h) / .18);
  --s-glass-strong: oklch(98% .003 var(--lq-h) / .8);
  --ios-accent: oklch(22% .006 var(--lq-h));
  --ios-on-accent: oklch(99% 0 0);
  --ios-link: oklch(34% .012 var(--lq-h));
  --ios-btn-ink: var(--direction-ink);
  --ios-fill: oklch(100% 0 0 / .3);
  --ios-fill-hover: oklch(100% 0 0 / .48);
  --ios-row: oklch(100% 0 0 / .34);
  --ios-row-hover: oklch(100% 0 0 / .56);
  --ios-bar: oklch(98% .003 var(--lq-h) / .6);
  --ios-sep: oklch(30% .003 var(--lq-h) / .12);
  --ios-seg-track: oklch(40% .003 var(--lq-h) / .08);
  --ios-seg-thumb: oklch(100% 0 0 / .9);
  --ios-seg-shadow: 0 3px 10px oklch(30% .02 var(--lq-h) / .14), inset 0 1px 0 #fff;
  --ios-primary-shadow: 0 12px 26px -12px oklch(25% .02 var(--lq-h) / .5);
  --ios-eyebrow: var(--direction-muted);
  --ios-field: none;
  --ascii-ink: oklch(24% .004 var(--lq-h));
  --ascii-tone: oklch(8% 0 0);
  --ascii-alpha: .19;
  /* Light mode: the pools are daylight on a slightly toned ground. */
  --ambient-colour: oklch(100% 0 0);
  --ambient-alpha: .9;
}
html[data-liquid][data-theme="dark"] {
  /* Not black: a deep warm grey, so the light pools and the glass have room to show. */
  --direction-ground: oklch(19% .004 var(--lq-h));
  --direction-surface: oklch(24% .004 var(--lq-h));
  --direction-ink: oklch(96% .002 var(--lq-h));
  --direction-muted: oklch(72% .005 var(--lq-h));
  --direction-accent: oklch(82% calc(var(--lq-c) * .45) var(--lq-h));
  --direction-glow: oklch(19% .004 var(--lq-h));
  --thread-start: oklch(84% calc(var(--lq-c) * .45) var(--lq-h));
  --thread-end: oklch(56% calc(var(--lq-c) * .35) var(--lq-h));
  --s-line: oklch(95% .003 var(--lq-h) / .09);
  --s-line-strong: oklch(95% .003 var(--lq-h) / .16);
  --s-glass-strong: oklch(26% .004 var(--lq-h) / .86);
  --ios-accent: oklch(96% .002 var(--lq-h));
  --ios-on-accent: oklch(16% .003 var(--lq-h));
  --ios-link: oklch(90% .008 var(--lq-h));
  --ios-btn-ink: var(--direction-ink);
  --ios-fill: oklch(100% 0 0 / .08);
  --ios-fill-hover: oklch(100% 0 0 / .15);
  --ios-row: oklch(100% 0 0 / .05);
  --ios-row-hover: oklch(100% 0 0 / .1);
  --ios-bar: oklch(24% .004 var(--lq-h) / .6);
  --ios-sep: oklch(95% .003 var(--lq-h) / .12);
  --ios-seg-track: oklch(100% 0 0 / .08);
  --ios-seg-thumb: oklch(100% 0 0 / .18);
  --ios-seg-shadow: 0 3px 10px oklch(0% 0 0 / .4), inset 0 1px 0 oklch(100% 0 0 / .22);
  --ios-primary-shadow: 0 12px 30px -12px oklch(0% 0 0 / .8);
  --ios-eyebrow: var(--direction-muted);
  --ios-field: none;
  --ascii-ink: oklch(94% .004 var(--lq-h));
  --ascii-tone: oklch(100% 0 0);
  --ascii-alpha: .17;
  /* Soft studio light drifting over the ground: near white, a trace of the tone. */
  --ambient-colour: oklch(80% calc(var(--lq-c) * .5) var(--lq-h));
  --ambient-alpha: .15;
}

/* 1 · LIQUID GLASS. iOS 26: system grays, clear glass with a lit rim, system blue,
   a floating capsule bar, and a soft wallpaper so the glass has something to bend. */
html[data-direction="glass"][data-theme="light"] {
  --direction-ground: #f2f2f7;
  --direction-surface: #ffffff;
  --direction-ink: #000000;
  --direction-muted: #6e6e73;
  --direction-accent: #007aff;
  --direction-glow: #dde8ff;
  --thread-start: #0a84ff;
  --thread-end: #bf5af2;
  --ios-field:
    radial-gradient(42% 52% at 86% 18%, #bcd5ff, transparent 70%),
    radial-gradient(38% 46% at 8% 78%, #f6d4ee, transparent 70%),
    radial-gradient(34% 40% at 58% 104%, #c8f0e2, transparent 70%);
}
html[data-direction="glass"][data-theme="dark"] {
  --direction-ground: #000000;
  --direction-surface: #1c1c1e;
  --direction-ink: #ffffff;
  --direction-muted: #98989d;
  --direction-accent: #0a84ff;
  --direction-glow: #0a1830;
  --thread-start: #0a84ff;
  --thread-end: #bf5af2;
  --ios-field:
    radial-gradient(42% 52% at 86% 18%, #0d2f73, transparent 70%),
    radial-gradient(38% 46% at 8% 78%, #3c1150, transparent 70%),
    radial-gradient(34% 40% at 58% 104%, #063a3c, transparent 70%);
}

/* 2 · GROUPED. The Settings / Health idiom: inset grouped cards on the grouped background,
   opaque, hairline separators, no glass on content, one tint. The quietest option. */
html[data-direction="grouped"][data-theme="light"] {
  --direction-ground: #f2f2f7;
  --direction-surface: #ffffff;
  --direction-ink: #000000;
  --direction-muted: #6c6c70;
  --direction-accent: #007aff;
  --direction-glow: #f2f2f7;
  --thread-start: #34c759;
  --thread-end: #007aff;
  --ios-card: #ffffff;
  --ios-card-blur: none;
  --ios-card-shadow: none;
  --ios-radius: 18px;
  --ios-radius-media: 10px;
  --ios-row: #f2f2f7;
  --ios-row-hover: #e9e9ee;
  --ios-primary-shadow: none;
}
html[data-direction="grouped"][data-theme="dark"] {
  --direction-ground: #000000;
  --direction-surface: #1c1c1e;
  --direction-ink: #ffffff;
  --direction-muted: #8e8e93;
  --direction-accent: #0a84ff;
  --direction-glow: #000000;
  --thread-start: #30d158;
  --thread-end: #0a84ff;
  --ios-card: #1c1c1e;
  --ios-card-blur: none;
  --ios-card-shadow: none;
  --ios-radius: 18px;
  --ios-radius-media: 10px;
  --ios-row: #2c2c2e;
  --ios-row-hover: #3a3a3c;
  --ios-primary-shadow: none;
}

/* 3 · PRO GRAPHITE. Apple's Pro product pages: near-white or true black, graphite ink,
   large tight display type, pill buttons in ink, blue only for links. */
html[data-direction="graphite"][data-theme="light"] {
  --direction-ground: #f5f5f7;
  --direction-surface: #ffffff;
  --direction-ink: #1d1d1f;
  --direction-muted: #6e6e73;
  --direction-accent: #1d1d1f;
  --direction-glow: #f5f5f7;
  --thread-start: #aeaeb2;
  --thread-end: #3a3a3c;
  --ios-accent: #1d1d1f;
  --ios-on-accent: #ffffff;
  --ios-link: #0066cc;
  --ios-btn-ink: #1d1d1f;
  --ios-card: #ffffff;
  --ios-card-blur: none;
  --ios-card-shadow: 0 4px 30px -6px rgb(0 0 0 / .08);
  --ios-radius: 20px;
  --ios-radius-media: 12px;
  --ios-row: #f5f5f7;
  --ios-row-hover: #ececf0;
  --ios-bar: rgb(245 245 247 / .8);
  --ios-primary-shadow: none;
  --ios-eyebrow: #bf4800;
}
html[data-direction="graphite"][data-theme="dark"] {
  --direction-ground: #000000;
  --direction-surface: #161617;
  --direction-ink: #f5f5f7;
  --direction-muted: #86868b;
  --direction-accent: #f5f5f7;
  --direction-glow: #000000;
  --thread-start: #48484a;
  --thread-end: #d2d2d7;
  --ios-accent: #f5f5f7;
  --ios-on-accent: #1d1d1f;
  --ios-link: #2997ff;
  --ios-btn-ink: #f5f5f7;
  --ios-card: #161617;
  --ios-card-blur: none;
  --ios-card-shadow: none;
  --ios-radius: 20px;
  --ios-radius-media: 12px;
  --ios-row: #1d1d1f;
  --ios-row-hover: #272729;
  --ios-bar: rgb(22 22 23 / .8);
  --ios-primary-shadow: none;
  --ios-eyebrow: #f56300;
}

/* 4 · AURORA. A lock-screen wallpaper (indigo, peach, sky) behind thick glass.
   The most colourful option; colour lives in the wallpaper, not in the controls. */
html[data-direction="aurora"][data-theme="light"] {
  --direction-ground: #eef0fb;
  --direction-surface: #ffffff;
  --direction-ink: #0b0b1a;
  --direction-muted: #5c5f73;
  --direction-accent: #5856d6;
  --direction-glow: #e1dcff;
  --thread-start: #5856d6;
  --thread-end: #ff2d55;
  --ios-accent: #5856d6;
  --ios-card: rgb(255 255 255 / .5);
  --ios-card-blur: blur(40px) saturate(200%);
  --ios-field:
    radial-gradient(55% 65% at 92% 8%, #c6bfff, transparent 72%),
    radial-gradient(50% 60% at 4% 30%, #bfe2ff, transparent 72%),
    radial-gradient(60% 55% at 70% 96%, #ffd0c2, transparent 72%),
    radial-gradient(40% 40% at 20% 100%, #ffe3f1, transparent 72%);
}
html[data-direction="aurora"][data-theme="dark"] {
  --direction-ground: #06071a;
  --direction-surface: #15162b;
  --direction-ink: #ffffff;
  --direction-muted: #a6a8c4;
  --direction-accent: #7d7aff;
  --direction-glow: #1c1650;
  --thread-start: #7d7aff;
  --thread-end: #ff375f;
  --ios-accent: #5e5ce6;
  --ios-link: #a5a3ff;
  --ios-card: rgb(30 30 52 / .42);
  --ios-card-blur: blur(40px) saturate(190%);
  --ios-field:
    radial-gradient(55% 65% at 92% 8%, #33238f, transparent 72%),
    radial-gradient(50% 60% at 4% 30%, #0b3f6e, transparent 72%),
    radial-gradient(60% 55% at 70% 96%, #6e1a4f, transparent 72%),
    radial-gradient(40% 40% at 20% 100%, #2a1060, transparent 72%);
}

/* 5 · INTELLIGENCE. Plain white or black like a system sheet, with the Apple Intelligence
   edge light (orange, pink, purple, blue) used in one place: the hero edge and the main button. */
html[data-direction="intelligence"][data-theme="light"] {
  --direction-ground: #ffffff;
  --direction-surface: #f5f5f7;
  --direction-ink: #000000;
  --direction-muted: #6e6e73;
  --direction-accent: #bf5af2;
  --direction-glow: #ffffff;
  --thread-start: #ff9f0a;
  --thread-end: #0a84ff;
  --ios-accent: #000000;
  --ios-on-accent: #ffffff;
  --ios-link: #0071e3;
  --ios-card: #f5f5f7;
  --ios-card-blur: none;
  --ios-card-shadow: none;
  --ios-radius: 24px;
  --ios-row: #ffffff;
  --ios-row-hover: #fbfbfd;
  --ios-primary-shadow: 0 10px 30px -10px rgb(191 90 242 / .55);
  --ios-edge-opacity: .85;
}
html[data-direction="intelligence"][data-theme="dark"] {
  --direction-ground: #000000;
  --direction-surface: #1c1c1e;
  --direction-ink: #ffffff;
  --direction-muted: #98989d;
  --direction-accent: #da8fff;
  --direction-glow: #000000;
  --thread-start: #ff9f0a;
  --thread-end: #0a84ff;
  --ios-accent: #ffffff;
  --ios-on-accent: #000000;
  --ios-link: #2997ff;
  --ios-card: #111113;
  --ios-card-blur: none;
  --ios-card-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
  --ios-radius: 24px;
  --ios-row: #1c1c1e;
  --ios-row-hover: #242426;
  --ios-primary-shadow: 0 10px 34px -8px rgb(191 90 242 / .6);
  --ios-edge-opacity: 1;
}

/* 6 · VISION. visionOS windows: one of our own captured worlds, blurred, is the room;
   content sits on large-radius glass panels; no accent colour, white is the highlight. */
html[data-direction="vision"][data-theme="light"] {
  --direction-ground: #dfe3e6;
  --direction-surface: #f4f5f6;
  --direction-ink: #000000;
  --direction-muted: #4f5359;
  --direction-accent: #000000;
  --direction-glow: #eef0f2;
  --thread-start: #ffffff;
  --thread-end: #7f8a96;
  --ios-accent: #ffffff;
  --ios-on-accent: #000000;
  --ios-link: #000000;
  --ios-fill: rgb(255 255 255 / .42);
  --ios-fill-hover: rgb(255 255 255 / .62);
  --ios-row: rgb(255 255 255 / .38);
  --ios-row-hover: rgb(255 255 255 / .6);
  --ios-card: rgb(246 246 248 / .5);
  --ios-card-blur: blur(50px) saturate(160%);
  --ios-card-shadow: inset 0 1px 0 rgb(255 255 255 / .85), inset 0 0 0 1px rgb(255 255 255 / .35),
    0 30px 70px -30px rgb(0 0 0 / .35);
  --ios-radius: 34px;
  --ios-radius-media: 20px;
  --ios-bar: rgb(246 246 248 / .55);
  --ios-seg-track: rgb(255 255 255 / .3);
  --ios-primary-shadow: 0 10px 30px -12px rgb(0 0 0 / .35);
  --ios-photo: url("./worlds/glass-pavilion.jpg");
  --ios-photo-opacity: .75;
}
html[data-direction="vision"][data-theme="dark"] {
  --direction-ground: #15171a;
  --direction-surface: #2a2b2e;
  --direction-ink: #ffffff;
  --direction-muted: #c5c7cc;
  --direction-accent: #ffffff;
  --direction-glow: #23262b;
  --thread-start: #ffffff;
  --thread-end: #8e96a3;
  --ios-accent: #ffffff;
  --ios-on-accent: #000000;
  --ios-link: #ffffff;
  --ios-fill: rgb(255 255 255 / .12);
  --ios-fill-hover: rgb(255 255 255 / .2);
  --ios-row: rgb(255 255 255 / .07);
  --ios-row-hover: rgb(255 255 255 / .14);
  --ios-card: rgb(128 128 128 / .3);
  --ios-card-blur: blur(50px) saturate(150%);
  --ios-card-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 0 0 1px rgb(255 255 255 / .08),
    0 30px 80px -30px rgb(0 0 0 / .9);
  --ios-radius: 34px;
  --ios-radius-media: 20px;
  --ios-bar: rgb(90 90 94 / .45);
  --ios-seg-track: rgb(255 255 255 / .1);
  --ios-seg-thumb: rgb(255 255 255 / .22);
  --ios-primary-shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  --ios-photo: url("./worlds/lounge.jpg");
  --ios-photo-opacity: .62;
}

/* ─────────────────────────────── 3 · COMPONENT LAYER ─────────────────────────────── */
/* Prefix html[data-ios][data-theme][data-direction] outranks the earlier direction rules. */

/* Type: the platform face. SF Pro on Apple devices, the system face elsewhere. */
html[data-ios] .vds {
  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --c-font-sans: var(--f-sans);
  --c-font-mono: var(--f-mono);
  --f-rounded: ui-rounded, "SF Pro Rounded", var(--f-sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.011em;
}
html[data-ios][data-theme][data-direction] .vds {
  --accent: var(--ios-link);
  --accent-deep: var(--ios-link);
  --p-glass-fill: var(--ios-card);
  --p-radius-card: var(--ios-radius);
  --p-radius-control: 999px;
  --nav-item-radius: 8px;
  --media-radius: var(--ios-radius-media);
  --surface-frost: var(--ios-card-blur);
  --control-frost: blur(30px) saturate(180%);
  --lilac: var(--thread-start);
  --orange: var(--thread-end);
}
html[data-ios][data-theme][data-direction] .vds :is(h1, h2, h3) {
  font-family: var(--f-sans);
  font-weight: 700;
  letter-spacing: -.022em;
}
html[data-ios][data-theme][data-direction] .pg-home #heroLayer h1 {
  letter-spacing: -.038em;
  line-height: 1.02;
}
html[data-ios][data-theme][data-direction="graphite"] .vds :is(h1, h2) { font-weight: 600; letter-spacing: -.03em; }

/* Labels that were mono and uppercase read as iOS footnotes and section headers. */
html[data-ios][data-theme][data-direction] .vds :is(.u-kicker, .u-mono, .cta, .ghost, .domains a, .item__cta, .see,
  .chips li, .chips span, .sf__mail, .sf__social a, .sf__col a, .sf__h, .sf__bar, .haves__col h3, .haves__grp,
  .carousel__treat button, .dg__k, .sessions__l, .hint) {
  font-family: var(--f-sans);
  letter-spacing: -.005em;
  text-transform: none;
}
html[data-ios][data-theme][data-direction] .vds .u-kicker,
html[data-ios][data-theme][data-direction] .pg-home .kick {
  font-size: 15px;
  font-weight: 600;
  color: var(--ios-eyebrow);
}
html[data-ios][data-theme][data-direction] .vds :is(.haves__col h3, .sf__h) {
  font-size: 13px;
  font-weight: 600;
  color: var(--direction-muted);
}
html[data-ios][data-theme][data-direction] .vds .haves__col--train b { letter-spacing: -.01em; text-transform: capitalize; }
html[data-ios][data-theme][data-direction] .vds :is(.sessions__n, .stat .n) {
  font-family: var(--f-rounded);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
html[data-ios][data-theme][data-direction] .vds :is(.direction-emphasis, .accent, .hl) { color: var(--ios-link); }

/* No grain, no painted artwork, no Daylight sun shafts: iOS surfaces are clean. */
html[data-ios] body.vds::after { opacity: 0; }
html[data-ios] #bg { visibility: hidden; }
html[data-ios] .direction-art { display: none; }
html[data-ios][data-theme][data-direction] body.vds { background: var(--direction-ground); }

/* Wallpaper: gradient blobs, or (Vision) one of our worlds, blurred. */
html[data-ios] .direction-field {
  background: var(--ios-field), var(--direction-ground);
}
html[data-ios] .direction-field.is-under-hero { opacity: 1; }
html[data-ios] .direction-field::before {
  inset: -80px;
  background: var(--ios-photo) center / cover no-repeat;
  filter: blur(46px) saturate(1.25);
  opacity: var(--ios-photo-opacity);
  mix-blend-mode: normal;
  mask-image: none;
}
html[data-ios] .direction-field.is-under-hero::before { opacity: calc(var(--ios-photo-opacity) * .45); }
html[data-ios][data-direction="aurora"] .direction-field {
  background-size: 120% 120%;
  animation: ios-aurora 38s ease-in-out infinite alternate;
}
@keyframes ios-aurora {
  from { background-position: 0% 0%; }
  to { background-position: 100% 60%; }
}

/* Apple Intelligence edge light: a blurred conic ring on the viewport edge while the hero shows. */
@property --ios-edge-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
html[data-ios][data-direction="intelligence"] .direction-field::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 10px;
  background: conic-gradient(from var(--ios-edge-angle), #ff9f0a, #ff375f, #bf5af2, #0a84ff, #64d2ff, #ff9f0a);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: blur(16px);
  opacity: 0;
  transition: opacity 600ms ease;
  animation: ios-edge 9s linear infinite;
}
html[data-ios][data-direction="intelligence"] .direction-field.is-under-hero::after { opacity: var(--ios-edge-opacity); }
@keyframes ios-edge { to { --ios-edge-angle: 360deg; } }
html[data-ios][data-theme][data-direction="intelligence"] .vds .direction-emphasis,
html[data-ios][data-theme][data-direction="intelligence"] .vds .direction-emphasis span {
  background: linear-gradient(90deg, #ff9f0a, #ff375f 30%, #bf5af2 62%, #0a84ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation bar: chrome material, scroll-edge hairline only once content is under it. */
html[data-ios][data-theme][data-direction] .vds :is(.nav, .nav.solid, .salon__top) {
  background: var(--ios-bar);
  border-bottom: .5px solid transparent;
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
}
html[data-ios][data-theme][data-direction] .vds :is(.nav.solid, .salon__top) { border-bottom-color: var(--ios-sep); }

/* Tabs as an iOS segmented control; the existing selection slide becomes the moving thumb. */
html[data-ios][data-theme][data-direction] .vds .nav .nav__links {
  --selection-radius: 8px;
  gap: 0;
  padding: 2px;
  border-radius: 10px;
  background: var(--ios-seg-track);
}
html[data-ios][data-theme][data-direction] .vds .nav .nav__links a,
html[data-ios][data-theme][data-direction] .vds .salon__crumb {
  padding: 5px clamp(9px, 1vw, 15px);
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--direction-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
}
html[data-ios][data-theme][data-direction] .vds .nav .nav__links a.on {
  background: var(--ios-seg-thumb);
  box-shadow: var(--ios-seg-shadow);
  font-weight: 600;
}
html[data-ios][data-theme][data-direction] .vds .nav .nav__links.has-selection-slide a.on { background: transparent; box-shadow: none; }
html[data-ios][data-theme][data-direction] .vds .nav .nav__links.has-selection-slide::before {
  background: var(--ios-seg-thumb);
  box-shadow: var(--ios-seg-shadow);
  transition: translate 380ms cubic-bezier(.3, 1.15, .4, 1), width 380ms cubic-bezier(.3, 1.15, .4, 1);
}
html[data-ios][data-theme][data-direction] .vds .nav__panel { background: var(--s-glass-side); }
html[data-ios][data-theme][data-direction] .vds .nav__panel a {
  border: 0;
  border-bottom: .5px solid var(--ios-sep);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: -.02em;
}
html[data-ios][data-theme][data-direction] .vds .nav__panel a.on { color: var(--ios-link); }

/* Buttons: filled capsule for the one main action, gray-filled capsule for the rest. */
html[data-ios][data-theme][data-direction] .vds .vds-btn,
html[data-ios][data-theme][data-direction] .vds :is(.nav__toggle, .carousel__nav) {
  border: 0;
  border-radius: 999px;
  background: var(--ios-fill);
  color: var(--ios-btn-ink);
  box-shadow: none;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform 120ms ease-out, background-color 160ms ease, filter 160ms ease;
}
html[data-ios][data-theme][data-direction] .vds .vds-btn:hover { background: var(--ios-fill-hover); }
html[data-ios][data-theme][data-direction] .vds :is(.vds-btn, .nav__toggle):active { transform: scale(.96); }
html[data-ios][data-theme][data-direction] .vds .nav__toggle { color: var(--direction-ink); }
html[data-ios][data-theme][data-direction] .vds .vds-btn--primary,
html[data-ios][data-theme][data-direction] .vds .vds-btn--primary:hover {
  background: var(--ios-accent);
  color: var(--ios-on-accent);
  box-shadow: var(--ios-primary-shadow);
}
html[data-ios][data-theme][data-direction] .vds .vds-btn--primary:hover { filter: brightness(1.08); }
html[data-ios][data-theme][data-direction] .vds .nav__cta {
  --btn-h: 34px;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--ios-accent);
  color: var(--ios-on-accent);
  /* The phone layout sets the original label's size with !important (pages.css). */
  font-size: 0 !important;
  letter-spacing: 0 !important;
}
html[data-ios][data-theme][data-direction] .vds .nav__cta::before { content: "Build a world"; font-size: 14px; }
html[data-ios][data-theme][data-direction="intelligence"] .vds .vds-btn--primary {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--ios-accent), var(--ios-accent)) padding-box,
    conic-gradient(from 200deg, #ff9f0a, #ff375f, #bf5af2, #0a84ff, #64d2ff, #ff9f0a) border-box;
}

/* Cards and panels. Media inside follows the card's corner rhythm. */
html[data-ios][data-theme][data-direction] .vds .vds-card {
  background: var(--ios-card);
  border: 0;
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-card-shadow);
  -webkit-backdrop-filter: var(--ios-card-blur);
  backdrop-filter: var(--ios-card-blur);
}
html[data-ios][data-theme][data-direction] .vds :is(.worlds__wall .w, .dg__step figure, .clip-media) { border-radius: var(--ios-radius-media); }
html[data-ios][data-theme][data-direction] .vds .worlds__wall figcaption {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
}

/* We have / We train as inset grouped lists: rows on a tinted fill, icons in the thread colours. */
html[data-ios][data-theme][data-direction] .vds .haves__col li {
  background: var(--ios-row);
  box-shadow: none;
  border-radius: 14px;
}
html[data-ios][data-theme][data-direction] .vds .haves__col li:has(> a):is(:hover, :focus-within) { background: var(--ios-row-hover); }
html[data-ios][data-theme][data-direction] .vds .haves__col b { font-weight: 600; letter-spacing: -.015em; }

/* Logo strip and footer. */
html[data-ios][data-theme][data-direction] .pg-home .press { background: transparent; }
html[data-ios][data-theme][data-direction] .vds .sf__col a:hover { color: var(--ios-link); }

/* Focus ring in the tint, as on iOS with a keyboard. */
html[data-ios][data-theme][data-direction] .vds :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ios-link) 55%, transparent);
  outline-offset: 2px;
}

/* Style menu as an iOS context menu. */
html[data-ios] .style-picker > summary,
html[data-ios] .style-picker__list {
  border: 0;
  border-radius: 14px;
  background: var(--s-glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  box-shadow: 0 0 0 .5px var(--s-line-strong), 0 18px 50px -12px rgb(0 0 0 / .35);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
html[data-ios] .style-picker > summary { border-radius: 999px; padding-inline: 16px; }
html[data-ios] .style-picker > summary::after { color: var(--ios-link); }
html[data-ios] .style-picker__list { padding: 6px; border-radius: 16px; }
html[data-ios] .style-picker__list a { border-radius: 10px; }
html[data-ios] .style-picker__list a[aria-current] { color: var(--ios-link); }

/* Accessibility: frostier, solid surfaces; still motion. */
@media (prefers-reduced-transparency: reduce) {
  html[data-ios] .vds :is(.vds-card, .nav, .style-picker > summary, .style-picker__list) {
    background: var(--direction-surface) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ios] .direction-field,
  html[data-ios] .direction-field::after { animation: none; }
}


/* ─────────────────────────────── 4 · LIQUID GLASS MATERIAL ─────────────────────────────── */
/* Built to Apple's description (WWDC25, "Meet Liquid Glass"): the material shows itself by
   lensing, not by frosting. liquid-glass.js draws a lens for each surface's own shape
   (--lg-filter): refraction through a squircle rim, a slight RGB split, and a specular highlight
   from the top left. So the CSS adds almost nothing: a whisper of tint, a hairline, a shadow.
   - Controls (buttons, tabs, the counter) are clear glass: the backdrop stays sharp and visible.
   - Panels (cards) are thicker: a flat top, some scattering, and more tint, because text sits on them.
   - The main actions are the same glass tinted with ink (Apple's prominent glass).
   - Under the pointer the glass lights up where the finger is, its lensing swells and it warms
     toward the tone; the data behind it surfaces and lights in the tone too (ascii-field.js), so
     the colour change arrives through the refraction. On press it grows. Each surface's lensing
     ramps up as it comes into view. Shadows deepen once content scrolls under the bar. */
@property --lg-light { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --lg-warm { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --lg-lift { syntax: "<number>"; inherits: true; initial-value: 1.03; }

html[data-lg][data-theme="light"] {
  --lg-tint: oklch(100% 0 0 / .05);
  --lg-tone-tint: oklch(100% 0 0 / .34);
  --lg-lift: 1.06;
  --lg-tint-card: oklch(99.5% .002 var(--lq-h, 265) / .5);
  --lg-tint-nested: oklch(100% 0 0 / .5);
  --lg-light-colour: oklch(100% 0 0 / .7);
  --lg-hairline: oklch(100% 0 0 / .9);
  --lg-edge: oklch(20% 0 0 / .22);
  --lg-shade: oklch(20% 0 0 / .1);
  --lg-rim-shade: oklch(20% 0 0 / .3);
  --lg-shine: 1.3;
  --lg-drop: 0 10px 26px -12px oklch(20% 0 0 / .3), 0 1px 3px oklch(20% 0 0 / .08);
  --lg-drop-scrolled: 0 14px 34px -14px oklch(20% 0 0 / .34), 0 2px 4px oklch(20% 0 0 / .08);
  --lg-prominent: oklch(19% .004 var(--lq-h, 265) / .82);
  --lg-prominent-hover: oklch(19% .004 var(--lq-h, 265) / .74);
  --lg-on-prominent: oklch(99% 0 0);
  --lg-thumb: oklch(100% 0 0 / .72);
  --lg-row: oklch(100% 0 0 / .42);
  --lg-row-hover: oklch(100% 0 0 / .68);
  --lg-edge-fade: oklch(96.2% .003 var(--lq-h, 265) / .78);
  --lg-fallback: blur(12px) saturate(1.6);
  /* Light mode bends harder: the ground is pale, so the lens needs more depth to read. */
  --lg-depth: 1.35;
  --lg-lift-hover: 1.1;
}
html[data-lg][data-theme="dark"] {
  --lg-tint: oklch(100% 0 0 / .055);
  --lg-tone-tint: oklch(100% 0 0 / .1);
  --lg-lift: 1.16;
  --lg-tint-card: oklch(27% .004 var(--lq-h, 265) / .58);
  --lg-tint-nested: oklch(100% 0 0 / .06);
  --lg-light-colour: oklch(100% 0 0 / .2);
  --lg-hairline: oklch(100% 0 0 / .2);
  --lg-edge: oklch(0% 0 0 / .5);
  --lg-shade: oklch(0% 0 0 / .3);
  --lg-rim-shade: oklch(0% 0 0 / 0);
  --lg-shine: 1;
  --lg-drop: 0 10px 30px -12px oklch(0% 0 0 / .7);
  --lg-drop-scrolled: 0 16px 40px -14px oklch(0% 0 0 / .9);
  --lg-prominent: oklch(97% .003 var(--lq-h, 265) / .86);
  --lg-prominent-hover: oklch(97% .003 var(--lq-h, 265) / .95);
  --lg-on-prominent: oklch(15% 0 0);
  --lg-thumb: oklch(100% 0 0 / .14);
  --lg-row: oklch(100% 0 0 / .04);
  --lg-row-hover: oklch(100% 0 0 / .085);
  --lg-edge-fade: oklch(19% .004 var(--lq-h, 265) / .82);
  --lg-fallback: blur(12px) saturate(1.4);
  --lg-depth: 1;
  --lg-lift-hover: 1.26;
}

/* The material. */
html[data-ios][data-theme][data-lg][data-direction] .vds :is(.nav__links, .nav__cta, .nav__toggle, .vds-btn, .vds-card, .carousel__nav, .carousel__treat),
html[data-ios][data-theme][data-lg][data-direction] .style-picker > summary {
  --lg-light: 0%;
  --lg-warm: 0%;
  border: 0;
  background:
    radial-gradient(circle at var(--lg-px, 50%) var(--lg-py, 0%), color-mix(in oklch, var(--lg-light-colour) var(--lg-light), transparent), transparent 75%),
    color-mix(in oklch, var(--lg-tint), var(--lg-tone-tint) var(--lg-warm));
  -webkit-backdrop-filter: var(--lg-fallback);
  backdrop-filter: var(--lg-filter, var(--lg-fallback)) saturate(1.5) brightness(var(--lg-lift, 1.03));
  box-shadow:
    inset 0 0 0 .5px var(--lg-hairline),
    inset -1px -1.5px 1px -.5px var(--lg-rim-shade),
    inset 0 -10px 18px -14px var(--lg-shade),
    0 0 0 .5px var(--lg-edge),
    var(--lg-drop);
  color: var(--direction-ink);
  transition: transform 420ms cubic-bezier(.3, 1.6, .45, 1), --lg-light 260ms ease, --lg-warm 600ms ease, --lg-lift 300ms ease, box-shadow 300ms ease;
}
html[data-ios][data-theme][data-lg][data-direction] .vds .vds-card {
  background:
    radial-gradient(circle at var(--lg-px, 50%) var(--lg-py, 0%), color-mix(in oklch, var(--lg-light-colour) calc(var(--lg-light) * .5), transparent), transparent 70%),
    color-mix(in oklch, var(--lg-tint-card), var(--lg-tone-tint) calc(var(--lg-warm) * .6));
  border-radius: var(--ios-radius);
}
html[data-ios][data-theme][data-lg][data-direction] .vds :is(.nav__links, .nav__cta, .nav__toggle, .vds-btn, .vds-card, .carousel__nav, .carousel__treat):hover,
html[data-ios][data-theme][data-lg][data-direction] .style-picker > summary:hover {
  --lg-light: 100%;
  --lg-warm: 100%;
  --lg-lift: var(--lg-lift-hover);
  filter: none;
}
html[data-ios][data-theme][data-lg][data-direction] .vds :is(.vds-btn, .nav__toggle, .carousel__nav, .carousel__treat):active,
html[data-ios][data-theme][data-lg][data-direction] .style-picker > summary:active {
  transform: scale(1.05);
  transition-duration: 160ms, 160ms, 300ms;
}

/* Browsers that cannot bend the backdrop get a lit rim instead of the drawn highlight. */
html[data-ios][data-theme][data-lg]:not([data-lg-lens])[data-direction] .vds :is(.nav__links, .nav__cta, .nav__toggle, .vds-btn, .vds-card, .carousel__nav, .carousel__treat) {
  box-shadow:
    inset 1.5px 1.5px 0 -.5px oklch(100% 0 0 / .7),
    inset 0 0 0 .5px var(--lg-hairline),
    0 0 0 .5px var(--lg-edge),
    var(--lg-drop);
}

/* Prominent actions: the same glass with an ink tint. */
html[data-ios][data-theme][data-lg][data-direction] .vds .vds-btn.vds-btn--primary,
html[data-ios][data-theme][data-lg][data-direction] .vds .nav .nav__cta {
  background:
    radial-gradient(circle at var(--lg-px, 50%) var(--lg-py, 0%), color-mix(in oklch, var(--lg-light-colour) calc(var(--lg-light) * .3), transparent), transparent 60%),
    var(--lg-prominent);
  color: var(--lg-on-prominent);
}
html[data-ios][data-theme][data-lg][data-direction] .vds .vds-btn.vds-btn--primary:hover,
html[data-ios][data-theme][data-lg][data-direction] .vds .nav .nav__cta:hover {
  background:
    radial-gradient(circle at var(--lg-px, 50%) var(--lg-py, 0%), color-mix(in oklch, var(--lg-light-colour) calc(var(--lg-light) * .3), transparent), transparent 60%),
    var(--lg-prominent-hover);
}

/* Glass inside glass: tint and hairline only (Apple: never stack glass on glass). */
html[data-ios][data-theme][data-lg][data-direction] .vds [data-lg-nested] {
  background: var(--lg-tint-nested);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 0 0 .5px var(--lg-hairline), 0 0 0 .5px var(--lg-edge);
}

/* Navigation: no slab. The tabs and the action float as separate pieces of glass. Once content
   scrolls behind them a soft scroll-edge blur appears and their shadows deepen. */
html[data-ios][data-theme][data-lg][data-direction] .vds :is(.nav, .nav.solid) {
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-ios][data-theme][data-lg][data-direction] .vds .nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--lg-edge-fade), transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent);
  mask-image: linear-gradient(180deg, #000 35%, transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}
html[data-ios][data-theme][data-lg][data-direction] .vds .nav.solid::before { opacity: 1; }
html[data-ios][data-theme][data-lg][data-direction] .vds .nav.solid :is(.nav__links, .nav__cta, .nav__toggle) { --lg-drop: var(--lg-drop-scrolled); }
/* The capsule hugs its tabs (about 40px tall) instead of stretching to the bar's height. */
html[data-ios][data-theme][data-lg][data-direction] .vds .nav .nav__links {
  --selection-radius: 999px;
  align-self: center;
  align-items: center;
  height: auto;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
}
html[data-ios][data-theme][data-lg][data-direction] .vds .nav .nav__links a {
  height: auto;
  line-height: 1.2;
  padding: 8px clamp(10px, 1vw, 15px);
  border-radius: 999px;
  color: var(--direction-ink);
}
html[data-ios][data-theme][data-lg][data-direction] .vds .nav .nav__links.has-selection-slide::before,
html[data-ios][data-theme][data-lg][data-direction] .vds .nav .nav__links:not(.has-selection-slide) a.on {
  background: var(--lg-thumb);
  box-shadow: inset 0 0 0 .5px var(--lg-hairline), 0 3px 10px -5px oklch(0% 0 0 / .3);
}
html[data-ios][data-theme][data-lg][data-direction] .vds .nav .nav__cta { --btn-h: 38px; padding-inline: 18px; }
html[data-ios][data-theme][data-lg][data-direction] .vds .nav__toggle { border-radius: 999px; }

/* Rows in the We have / We train lists: thin chips inside the card (not glass on glass). */
html[data-ios][data-theme][data-lg][data-direction] .vds .haves__col li {
  background: var(--lg-row);
  box-shadow: inset 0 0 0 .5px var(--lg-hairline);
}
html[data-ios][data-theme][data-lg][data-direction] .vds .haves__col li:has(> a):is(:hover, :focus-within) { background: var(--lg-row-hover); }
html[data-ios][data-theme][data-lg][data-direction] .vds .vds-card :is(p, span, li) { font-weight: 500; }
html[data-ios][data-theme][data-liquid] .pg-home #fx { filter: none; }

@media (prefers-reduced-transparency: reduce) {
  html[data-ios] .vds :is(.vds-card, .vds-btn, .nav__links) { backdrop-filter: none !important; }
}

/* ─────────────────────────────── 5 · TEXT WITHOUT A BRAND COLOUR ─────────────────────────────── */
/* Clean tones: no coloured text. Emphasis is ink with depth (a vertical metal gradient) and a
   slow glint of light that travels across the line; key words get a hairline that fades out. */
html[data-liquid][data-theme="light"] {
  --em-top: oklch(22% .004 var(--lq-h));
  --em-bottom: oklch(58% calc(var(--lq-c) * .5) var(--lq-h));
  --em-glint: oklch(93% .006 var(--lq-h));
}
html[data-liquid][data-theme="dark"] {
  --em-top: oklch(99% 0 0);
  --em-bottom: oklch(64% calc(var(--lq-c) * .45) var(--lq-h));
  --em-glint: oklch(100% 0 0);
}
html[data-ios][data-theme][data-liquid][data-direction] .vds :is(.direction-emphasis, .direction-emphasis span, .worlds__head .accent, .worlds__head .accent span) {
  background:
    linear-gradient(100deg, transparent 44%, var(--em-glint) 50%, transparent 56%) 100% 0 / 320% 100% no-repeat fixed,
    linear-gradient(180deg, var(--em-top) 12%, var(--em-bottom) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: lq-glint 8s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes lq-glint {
  0%, 28% { background-position: 100% 0, 0 0; }
  78%, 100% { background-position: 0% 0, 0 0; }
}
html[data-ios][data-theme][data-liquid][data-direction] .vds .hl {
  color: var(--direction-ink);
  font-weight: 600;
  background: linear-gradient(90deg, transparent, var(--em-bottom) 30%, var(--em-bottom) 70%, transparent) 0 100% / 100% 1px no-repeat;
}
html[data-direction-paused] .vds :is(.direction-emphasis, .direction-emphasis span, .worlds__head .accent, .worlds__head .accent span) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  html[data-liquid] .vds :is(.direction-emphasis, .direction-emphasis span, .worlds__head .accent, .worlds__head .accent span) { animation: none; }
}

/* ─────────────────────────────── 6 · TYPE, ONE STEP SMALLER ─────────────────────────────── */
/* About 15% under the original scale, closer to Apple's own page sizes. */
html[data-ios] .vds {
  --type-1: clamp(30px, min(4.3vw, 7vh), 72px);
  --type-2: clamp(20px, 2.05vw, 33px);
  --type-3: clamp(15px, 1.18vw, 19px);
  --t-display: clamp(32px, 4.2vw, 72px);
  --t-h1: clamp(28px, 3.3vw, 54px);
  --t-h2: clamp(21px, 2.15vw, 34px);
  --t-h3: clamp(17px, 1.25vw, 20px);
  --t-lede: clamp(16px, 1.2vw, 19px);
  --t-body: 15.5px;
  --t-small: 14px;
}
html[data-ios][data-theme][data-direction] .vds .haves__col b { font-size: clamp(14px, 1vw, 16px); }
html[data-ios][data-theme][data-direction] .vds .haves__col li span { font-size: clamp(12.5px, .85vw, 13.5px); }
html[data-ios][data-theme][data-direction] .vds .haves__col li { padding: 13px 16px; gap: 14px; }
html[data-ios][data-theme][data-direction] .vds .haves__col svg { width: 28px; height: 28px; }
html[data-ios][data-theme][data-direction] .vds .sessions__n { font-size: clamp(22px, 2vw, 30px); }
html[data-ios][data-theme][data-direction] .vds .vds-btn:not(.nav__cta) { font-size: 14px; }
html[data-ios][data-theme][data-direction] .vds .nav__cta::before { font-size: 13px; }
html[data-ios][data-theme][data-direction] .vds .nav .nav__links a { font-size: 12.5px; }

/* ─────────────────────────────── 7 · THE BACKGROUND: A DATA FIELD UNDER GLASS ─────────────────────────────── */
/* Clean tones only. ascii-field.js draws simulated capture telemetry (numbers in fixed columns,
   never real data) that surfaces and sinks with a slow height field. There are no glass objects
   of its own: the numbers gather around the page's glass, light up under a hovered surface, and
   swell under the pointer as if under an invisible lens. In the reading sections it steps back. */
.ascii-field { display: none; }
html[data-liquid] .ascii-field {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 100% 95% at 55% 42%, #000 30%, rgb(0 0 0 / .45) 75%, transparent 110%);
  mask-image: radial-gradient(ellipse 100% 95% at 55% 42%, #000 30%, rgb(0 0 0 / .45) 75%, transparent 110%);
  transition: opacity 900ms ease;
}
/* In the reading sections the terrain steps back. */
html[data-liquid][data-lg-calm] .ascii-field { opacity: .72; }

/* The light pools: a small canvas the compositor scales up (they are only soft gradients). */
.ascii-light { display: none; }
html[data-liquid] .ascii-light {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─────────────────────────────── 8 · PHONE AND TABLET ─────────────────────────────── */
/* Under 860px the tab capsule gives way to the menu button. The logo then sits on the page, so
   the scroll edge does more work: content fades and blurs well before it reaches the bar. */
@media (max-width: 860px) {
  html[data-ios][data-theme][data-lg][data-direction] .vds .nav::before {
    inset: 0 0 -36px;
    background: linear-gradient(180deg, var(--direction-ground) 0%, var(--lg-edge-fade) 55%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
  }
  /* The original phone layout shrinks labels to 9.5px tracked caps; iOS keeps footnotes legible. */
  html[data-ios][data-theme][data-direction] .vds .u-kicker,
  html[data-ios][data-theme][data-direction] .pg-home .kick {
    font-size: 13px !important;
    letter-spacing: -.005em !important;
  }
  /* The style switch floats bottom-left as a small glass pill, level with the motion button. */
  html[data-ios][data-direction] .pg-home .style-picker,
  html[data-ios][data-direction] .style-picker {
    position: fixed;
    inset: auto auto max(16px, env(safe-area-inset-bottom)) 16px;
  }
  html[data-ios] .pg-home .style-picker__list { left: 0; right: auto; }
  html[data-ios] .style-picker > summary { min-height: 40px; padding-inline: 14px; gap: 8px; }
  html[data-ios] .style-picker > summary span { display: none; }
  /* Horizontal strips scroll; their edges fade so a cut-off item reads as "more this way". */
  html[data-ios] .vds .dg__doms {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}
/* Phones: We have and We train stack, one full-width list each. */
@media (max-width: 600px) {
  html[data-ios][data-theme][data-direction] .vds .haves,
  html[data-ios][data-theme][data-direction] .vds .haves:has(.haves__col--two) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  html[data-ios][data-theme][data-direction] .vds .haves__link { display: none; }
}
