/* Design tokens for index.html and os-story.html: custom properties, and the text colour roles block, linked first in both.
   Page CSS reads them with var() and may set its own value on an element below <html>.

   Sheets: desktop is drawn on a 3840px sheet, mobile on a 390px sheet. --u is one design pixel at
   the current width; grid, gaps and type are counted in it. Vertical rhythm inside a section is
   counted in lines of body type (--line, --tl-b).

   ============ BREAKPOINTS ============
   CSS has no named media queries, so the long forms repeat. The names used in comments:
   compact          (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px)
                    phones, portrait tablets, short landscape screens: 12 columns on the 390 sheet
   wide             (min-width:1024px),(min-width:768px) and (min-aspect-ratio:1/1) and (min-height:500px)
                    laptops, desktops, landscape tablets: 24 columns on the 3840 sheet.
                    For whole-pixel viewports wide is exactly "not compact"; a square screen is wide.
   compact-tablet   (min-width:768px) and (max-width:1023px) and (max-aspect-ratio:9999/10000),
                    (min-width:768px) and (max-width:1023px) and (max-height:499px): compact from 768 up
   compact-600      (min-width:600px) and (max-width:767px), then compact-tablet: large phones and up
   phone            (max-width:767px)
   landscape-phone  (max-width:1023px) and (max-height:500px) and (orientation:landscape): the menu sheet fix
   768+             (min-width:768px): wide and compact-tablet together
   desktop steps    (min-width:1024px) and (max-width:1279px), (min-width:1280px), (min-width:1440px)
   story-narrow     (max-width:699px),(max-width:1023px) and (orientation:portrait): os-story.html, the same
                    test as its NAR flag (W<700, or portrait under 1024), and index.html's .os-hold, whose length
                    follows NAR's pace. NAR reads the frame, the screen less the nav, so the two differ on a portrait
                    screen within the nav's height of square
   One-offs, one rule each: (min-width:641px) and (max-width:767px) then compact-tablet, and
   (max-width:767px),(min-width:1024px) and (max-width:1279px).
   This file, index.html, os-story.html, the router and the pin script all spell out compact and
   wide; change them together. */

:root{
  /* colour. Headings, subheadings and links in --ink; body text in --text; --grey only for marks (icons, dots, logos)
     and hover fades; --soon only for Coming Soon; --ink-2 is the app mock's secondary ink (icons, top bar, avatars); --sheet* is the menu sheet */
  --ink:#201F1E; --ink-2:#55544f; --paper:#ffffff; --ph:#dfdfdf; --red:#e0372b;
  --text:#707070; --grey:#8f8f8f; --soon:#a8a8a8; --rule:#dedede;
  --sheet:#201F1E; --sheet-ink:#a8a8a8; --sheet-hi:#f8f4f4; --sheet-rule:#5a5a5a;

  /* story palette: what the story's 3D scene, its canvases and its overlays paint; tokens.js reads
     these. Accents by hue, neutrals by what they paint. -02 is the 02 "how" engine's value for the
     name before it, one step apart, kept until the engines merge. Several neutrals share a value;
     merging them is a visual decision. Page-coloured things (clear colour, stage, white fades) use
     --paper; labels and lines --ink and --grey. */
  --story-light:#ffffff; --story-light-ground:#bdbdbd;    /* key, fill and sky light; hemisphere ground */
  --story-white:#ffffff;                                  /* untinted materials: glass, frost, white lerp targets */
  --story-red:#e3243f; --story-red-dark:#940c17; --story-red-dark-glow:#320508;   /* bolted-on blocks, rails, jenga */
  --story-pink:#f7b8c1;                                   /* bolted-on patches */
  --story-hurt-shell:#f7d2d8; --story-hurt-wall:#ef8696; --story-hurt-glow:#e83e56; --story-hurt-haze:#f07a8c;
  --story-rose:#F43F5E; --story-rose-line:#E39A91; --story-coral:#e0685c;          /* 01: problems */
  --story-blue:#4F86C6; --story-navy:#2a4fb0;             /* 02 accent; frost core */
  --story-lime:#84CC16; --story-amber:#EAB308;            /* approved, not approved */
  --story-mint:#4cc38a;                                   /* 03: a layer that is done */
  --story-green:#9BD13F;                                  /* service paths */
  --story-halo-1:#b0bed6; --story-halo-2:#bac6dc; --story-halo-3:#c8d2e4; --story-halo-4:#d2dae8;  /* globe halo ring */
  --story-glow-1:#c4d4ec; --story-glow-2:#cedaee; --story-glow-3:#d6e0f0;          /* globe glow */
  --story-chart-1:#96b9e1; --story-chart-2:#c0d4e8;       /* 02 chart fill, top to bottom */
  /* the app window's screen */
  --story-screen:#ffffff; --story-screen-tint:#f6f6f6;
  --still-tint:#fbfbfb;
  /* neutrals, light to dark */
  --story-body:#f7f7f7; --story-tile:#F5F5F5; --story-cap:#F4F4F4; --story-shell:#F2F2F2; --story-bar:#f1f1f1;
  --story-element:#eeeeee;                                /* the cube's layer elements: machines, connectors, the dome's core */
  --story-tile-alt:#EDEDED; --story-path-02:#EAEAEA; --story-rail:#e9e9e9; --story-path:#E9E9E9;
  --story-tray-rim:#E6E6E6; --story-lid:#E2E2E2; --story-line-quiet:#E0E0E0; --story-tray-wall:#D9D9D9;
  --story-slab:#D6D6D6; --story-block:#d3d3d3; --story-tile-base:#D2D2D2; --story-steel:#C7C7C7;
  --story-ring:#bdbdbd; --story-dot:#9a9a9a;
  --story-lane:#989898; --story-icon:#8f8c87; --story-line:#8d8d8d; --story-hub:#878787;
  --story-info:#6c6c6c; --story-particles:#6c6c6c; --story-tube:#6a6a6a;
  --story-puck-shade:#3c3832; --story-shadow-02:#383838; --story-shadow:#373737; --story-ao:#282828;

  /* type: one face, four roles (h Display, l Lead, b Body, s Small). Each size is the role's sheet
     size (-k) times --u, floored at -min; -lr line height, -tr tracking, -w weight */
  --font-sans:"ABC Areal";
  --u:calc(min(100vw,var(--u-max)) / 3840); --u-max:1440px;   /* stops at the 1440 desktop step, where --gutter already holds the page to 1280, so wider screens keep 1440's type and spacing (WEB-204) */
  --h-k:86; --h-min:0px; --l-k:56; --l-min:0px; --b-k:36; --b-min:13px; --s-k:26; --s-min:11px;
  --h-lr:1.1; --l-lr:1.15; --b-lr:1.45; --s-lr:1.4;
  --b-ui-lr:1.3; --s-ui-lr:1.3;
  --h-tr:-0.02em; --l-tr:-0.02em; --b-tr:-0.01em; --s-tr:0em;
  --h-w:var(--l-w); --l-w:500; --b-w:450; --s-w:var(--b-w);
  --fs-h:max(var(--h-min),calc(var(--h-k) * var(--u))); --fs-l:max(var(--l-min),calc(var(--l-k) * var(--u)));
  --fs-b:max(var(--b-min),calc(var(--b-k) * var(--u))); --fs-s:max(var(--s-min),calc(var(--s-k) * var(--u)));
  --fs-m:var(--fs-b); --fs-sub:var(--fs-b);
  --tl-h:calc(var(--fs-h) * var(--h-lr)); --tl-l:calc(var(--fs-l) * var(--l-lr));
  --tl-b:calc(var(--fs-b) * var(--b-lr)); --tl-s:calc(var(--fs-s) * var(--s-lr)); --tl-s-ui:calc(var(--fs-s) * var(--s-ui-lr));
  --lh-b:var(--b-lr);
  --body-wt:var(--b-w)!important; --title-wt:480!important;
  /* the OS page's scale, measured against linear.app (WEB-30): head is every heading, the hero's headline and each
     section and story heading alike (WEB-64: midway between WEB-30's hero and section sizes; WEB-81: k 128), menu the phone menu's
     links (WEB-30's section size), b and s its body and small type. /os, /about and /careers map their roles onto
     these below <html> (components.css), so --line and the other spacing :root computes from the roles above stay as they are */
  --os-head-k:128; --os-head-min:0px; --os-menu-k:128; --os-menu-min:0px; --os-d-lr:1.08; --os-m-lr:1.33;
  --os-b-k:40; --os-b-min:15px; --os-s-k:26; --os-s-min:13px;
  --os-fs-head:max(var(--os-head-min),calc(var(--os-head-k) * var(--u)));
  --os-fs-menu:max(var(--os-menu-min),calc(var(--os-menu-k) * var(--u)));
  --os-fs-b:max(var(--os-b-min),calc(var(--os-b-k) * var(--u))); --os-fs-s:max(var(--os-s-min),calc(var(--os-s-k) * var(--u)));
  --os-tl-head:calc(var(--os-fs-head) * var(--os-d-lr));
  --os-tl-menu:calc(var(--os-fs-menu) * var(--os-m-lr));   /* the phone menu's links: Linear's menu size on its 1.33 leading */
  --os-tl-b:calc(var(--os-fs-b) * var(--b-lr)); --os-tl-s:calc(var(--os-fs-s) * var(--s-lr)); --os-tl-s-ui:calc(var(--os-fs-s) * var(--s-ui-lr));
  /* WEB-135 Subheading: the site's lead (--fs-l: 56 units wide, the 390 sheet's lead on phones), never under 20px,
     on the lead's line height (1.15 wide, 1.2 compact): 20/24 at 390, 20/23 at 1024, 21/24 at 1440 */
  --os-fs-sub:max(20px,var(--fs-l)); --os-tl-sub:calc(var(--os-fs-sub) * var(--l-lr));
  /* one em of the site's body, small and display type, and one line of body type, computed here so /os's
     remap cannot reach them. Widths, measures, side padding and How/layers spacing drawn from the site's
     type read these, so the OS scale changes type, not those layout values */
  --em-b:var(--fs-b); --em-s:var(--fs-s); --em-d:clamp(calc(var(--fs-h) * 1.35),4vw,calc(var(--fs-h) * 1.8));
  --em-tl-b:var(--tl-b);

  /* spacing */
  --edge:calc(50 * var(--u)); --gut:calc(25 * var(--u));
  --line:calc(var(--fs-b) * var(--lh-b));
  --top:calc(677 * var(--u));          /* first rule on inner pages */
  --navH:62px;                         /* the header's height until the start-line script measures it */
  --lift:10px;
  --gui-max:1200px; --gui-r:clamp(8px,.85vw,12px); --gui-bleed:40px;
  --gui-hair:1px;   /* the window's border as drawn: a hairline on dense screens */
  --gui-line:1px;   /* the border the window's size allows for: Chromium lays a sub-pixel border out at 1px, so live's content is the box less 2px */
  --gui-shadow:0 1px 2px rgba(32,31,30,.04),0 10px 24px -12px rgba(32,31,30,.10),0 32px 64px -32px rgba(32,31,30,.16);
  --gui-a:calc(912 / 1440);
  --gui-slab-r-per-w:.0333;
  --gui-cmp:.877;   /* the composer's top: row 800 of the 912 */
  --gui-desk:720px;   /* the window's width on compact screens: half the 1440 px capture, the scale Linear's phone hero draws its app at, so the rail reads and the viewport crops the right side. index.html's img sizes repeat it */
  --os-hero-fill:.72;   /* compact /os: the hero, page top to the Works-with row, is this share of the first screen, so the window peeks in over its last quarter */
  --r2t:calc(26.667 * var(--u));       /* rule to text */
  --r2c:calc(37.333 * var(--u));       /* rule to capitals: 14px at 1440 */
  --section-gap:calc(48 * var(--u)); --sec:calc(500 * var(--u)); --row:calc(153 * var(--u));
  --lg:clamp(48px,10vh,120px);         /* OS page: space under the nav before the opening and the story */
  --mk:.5em;                           /* link marker size */
  --li-dot:8px; --li-halo:3px; --li-gap:calc(var(--em-b) * .75);   /* story list markers */
  --hud-top:50px;                      /* story: where every chapter headline sits, under the safe area */
  --pin-gap:var(--hud-top);            /* every pinned heading's gap under the header (WEB-110): How it works' */
  --pin-unit:1px;                      /* heading-pin.js writes scroll offsets unitless; this makes them lengths */

  /* lines and focus: --stroke is the one stroke (rules, Team rules, the glass edge) */
  --stroke:.75px; --focus-w:2px; --focus-off:3px; --tap:44px;   /* --tap: the smallest touch target */

  /* glass: the story question chips' frosted material; the header veil shares its blur */
  --glass:#f0f1f3; --blur-glass:14px;
  --shadow-glass:inset 0 1px 0 color-mix(in srgb,var(--paper) 95%,transparent),inset 0 0 0 1px color-mix(in srgb,var(--paper) 45%,transparent),
    0 0 0 var(--stroke) color-mix(in srgb,var(--ink) 10%,transparent),0 10px 26px -16px color-mix(in srgb,var(--ink) 22%,transparent);

  /* layers. Page: the pinned story frame sits under the hero and the features; the bottom veil, the
     menu sheet and the header sit above everything. behind, raise and sticky are local to their own
     stacking contexts. Story: chapter lines and tags, chapter overlays, progress and note. */
  --z-behind:-1; --z-raise:2; --z-sticky:6;
  --z-story:15; --z-over-story:16; --z-veil:17; --z-sheet:19; --z-header:20;
  --z-lines:6; --z-overlay:7;

  /* motion: reveal timings, the header slide (labels that stick under it follow it) and the case
     slideshow crossfade. --dur-1 to --dur-4 and --dur-fade are one scale on 150ms steps; --dur-long
     is the marker loop and the image settle. The header enters at --enter-delay, nav links
     --enter-step apart; the rows menu staggers --menu-step a link. --t-home* are the home hero. */
  --ease:cubic-bezier(0.33,1,0.68,1); --soft:cubic-bezier(0.4,0,0.2,1);
  --t-text:1100ms; --t-img:1600ms; --t-rule:900ms;
  --dur-nav:520ms; --dur-fade:800ms; --ease-fade:ease-in-out;
  --dur-1:150ms; --dur-2:300ms; --dur-3:450ms; --dur-4:600ms; --dur-long:2400ms;
  --enter-delay:280ms; --enter-step:55ms; --menu-step:35ms;
  --t-home:1400ms; --t-home-beat:900ms; --home-ease:cubic-bezier(0.25,0.1,0.25,1);

  /* os-story JS copy offsets (WEB-194). Fixed so every breakpoint keeps the previous
     literals. --story-nav is the iframe's own top clear, not the parent --navH;
     --story-nav-bleed stays 40px on compact (the page --gui-bleed does not). */
  --story-nav:72px; --story-nav-bleed:40px; --story-nav-clear:112px;
  --story-hero-gap-min:44px; --story-hero-gap-max:80px;
  --story-copy-gap:16px; --story-src-gap:10px; --story-nums-gap:20px; --story-sub-gap:12px;
  --story-enter:22px; --story-leave:60px; --story-layer-enter:14px;
  --story-title-nudge:10px; --story-t2-gap:40px; --story-edge-min:16px;
  --story-rule-nudge:-.4em;

  /* JS clocks (WEB-195). Values equal the previous named literals. --t-img is 1.6s,
     --t-text 1.1s, --dur-3 .45s; these fill the gaps on that scale. */
  --grad-loop:60s; --grad-follow:0.55s; --grad-morph-hold:3.6s;
  --grad-home-mobile:6s; --grad-home-desktop:70s;
  --nolock-leave:0.7s;
}
@supports (width:round(1px,1px)){
  :root{--tl-h:round(calc(var(--fs-h) * var(--h-lr)),1px); --tl-l:round(calc(var(--fs-l) * var(--l-lr)),1px);
        --tl-b:round(calc(var(--fs-b) * var(--b-lr)),1px); --tl-s:round(calc(var(--fs-s) * var(--s-lr)),1px); --tl-s-ui:round(calc(var(--fs-s) * var(--s-ui-lr)),1px);
        --os-tl-head:round(calc(var(--os-fs-head) * var(--os-d-lr)),1px);
        --os-tl-menu:round(calc(var(--os-fs-menu) * var(--os-m-lr)),1px);
        --os-tl-sub:round(calc(var(--os-fs-sub) * var(--l-lr)),1px);
        --os-tl-b:round(calc(var(--os-fs-b) * var(--b-lr)),1px); --os-tl-s:round(calc(var(--os-fs-s) * var(--s-lr)),1px); --os-tl-s-ui:round(calc(var(--os-fs-s) * var(--s-ui-lr)),1px)}
}

/* compact: the 390 sheet, capped so tablets do not scale type up */
@media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px){
  :root{
    --u:max(calc(100vw / 560),min(calc(100vw / 390),1.6px));
    --h-k:21; --h-min:26px; --l-k:14; --l-min:20px; --b-k:10.5; --b-min:14px; --s-k:7.5; --s-min:11px;
    --h-lr:1.15; --l-lr:1.2; --b-ui-lr:1.36; --s-ui-lr:1.3;
    --os-head-k:24; --os-head-min:28px; --os-menu-k:20; --os-menu-min:24px; --os-d-lr:1.15;
    --os-b-k:10.5; --os-b-min:15px; --os-s-k:7.5; --os-s-min:13px;
    /* a phone on its side clears the notch / Dynamic Island on both sides (insets are 0 in portrait) */
    --edge:calc(16px + max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)))!important;
    --gut:calc(11 * var(--u)); --cols:8;
    --lift:6px;
    --r2t:calc(6 * var(--u)); --r2c:calc(10 * var(--u));
    --section-gap:calc(21 * var(--u)); --sec:calc(var(--tl-b) * 7)!important; --row:calc(44 * var(--u));
    --start:calc(149 * var(--u));
    --hud-top:22px;
    /* home: the hero keeps its 390 lockup, easing toward the desktop marks above 640px */
    --home-u:min(var(--u),calc(.85px + .75 * (1023px - 100vw) / 383));
  }
}
@media (max-width:767px){:root{--gui-bleed:24px}}
@media (min-resolution:2dppx){:root{--gui-hair:.5px}}
/* compact-600: large phones and compact tablets step the type down from the 390 sheet */
@media (min-width:600px) and (max-width:767px),(min-width:768px) and (max-width:1023px) and (max-aspect-ratio:9999/10000),(min-width:768px) and (max-width:1023px) and (max-height:499px){
  :root{--h-k:17.5; --l-k:13.1; --b-k:9.4; --s-k:7; --os-head-k:19.5; --os-menu-k:17; --os-b-k:9.4; --os-s-k:7}
}

/* Columns from 768 up. One set of placements, two column counts: wide (desktop and landscape
   tablets) runs on 24 columns, compact tablets (768 to 1023, portrait or short) on 12. Phones keep
   the 8-column grid and full-width content. Every placement reads from these start lines, so moving
   one line moves everything that sits on it. Numbers are grid lines: column 5 starts on line 5, and
   "ends at column 10" is line 11.                                wide / tablet

     --c-title      titles and page headlines start here       1 / 1
     --c-head-end   page headlines run to here                 9 / 4
     --c-body       everything you read starts here, and so does the nav
                                                              10 / 4
     --c-text-end   running text stops here                   24 / 13
     --c-row-w      rows: the short part (name, row title, question) is this many columns
                    wide from --c-body; the long part (role, text) takes the rest, so a
                    row is always one line: short part, then long part     5 / 3
     --c-wide / --c-wide-end   pictures and full-width pieces 1 to 25 / 1 to 13
     --c-tri / --c-tri-end     three-up cards                 1 to 25 / 1 to 13

   Section titles sit from --c-title up to --c-body, on the same row as their content. Page
   headlines sit on their own row; the intro starts on --c-body under them. Three-up cards share
   --c-body to --c-wide-end in three equal parts. */
@media (min-width:768px) and (max-width:1023px) and (max-aspect-ratio:9999/10000),(min-width:768px) and (max-width:1023px) and (max-height:499px){
  :root{
    --cols:12;
    --c-title:1; --c-head-end:4; --c-body:4; --c-text-end:13; --c-row-w:3; --c-wide:1; --c-wide-end:13;
    --c-ex-steps:4; --c-ex-cap:7;
    --c-tri:1; --c-tri-end:13;
  }
}
/* WEB-37 v5 prototype: How it works merged into the layers section (.hm-sec on /os, and os-story.html's drive mode).
   The base has neither WEB-30 nor WEB-35 yet, so their values are copied here under --hm- names and read only by that
   section and its story frame. Gutters: WEB-35's --page-pad steps and 1280 px column (web-margins-2026-11-13). Type:
   WEB-30's body (--os-fs-b, 15/20) (web-typescale-2026-11-13); the heading reads /os's one heading size (--os-fs-head).
   --hm-copy-w is the step column beside the 3D on wide frames, --hm-tap a step row's height on narrow ones. */
:root{
  --hm-max:1280px; --hm-pad:78px;
  --hm-gutter:max(var(--hm-pad),calc((100vw - var(--hm-max)) / 2));
  --hm-b-k:40; --hm-b-min:15px;
  --hm-fs-head:var(--os-fs-head);
  --hm-fs-b:max(var(--hm-b-min),calc(var(--hm-b-k) * var(--u)));
  --hm-tl-head:var(--os-tl-head); --hm-tl-b:calc(var(--hm-fs-b) * var(--b-lr)); --hm-tl-ui:calc(var(--hm-fs-b) * var(--b-ui-lr));
  --hm-copy-w:min(calc((100vw - 2 * var(--hm-gutter)) * .34),calc(var(--hm-fs-b) * 27));
  --hm-tap:44px; --hm-fade:.58;  /* how far a step out of focus fades toward the page: its text and its layer */
  --hm-accent:var(--story-blue);
  /* WEB-40 v5a, phones: the compact picture above the steps. Its height fits the fan of three layers across the column
     (the fan's height over its width, .692, from os-story.html's fit mode), plus 28 px above for the header's glass and
     16 below (--hm-pic-pad, the same margins the frame's fit uses), and never more than 46% of the screen */
  --hm-pic-k:.692; --hm-pic-pad:44px; --hm-pic-max:46svh;
  --hm-pic-h:min(calc((100vw - 2 * var(--hm-gutter)) * var(--hm-pic-k) + var(--hm-pic-pad)),var(--hm-pic-max));
  /* WEB-45, phones: the heading's band at the top of that strip, one line of the section heading under the page's
     usual room above a heading */
  --hm-band:calc(var(--pin-gap) + var(--hm-tl-head));
  /* WEB-45, side by side: the scroll room the section adds below its frame, in frame heights; the frame (heading, steps
     and picture) stays under the page header across it, and the scroll walks the three steps. --hm-sec-gap is /os's gap
     below a section on wide screens (index.html's [data-page=os]>.wrap.sec::after): the frame lets go with it below */
  --hm-hold:1.25; --hm-sec-gap:calc(533.33 * var(--u));
  /* WEB-121, phones: how far How it works' closed cube lifts and how long it takes to settle, once, as it first
     scrolls into view */
  --hm-breathe-lift:6px; --hm-breathe-dur:calc(2 * var(--dur-4));
  /* WEB-153: the layer benefits and step titles, 1.3 of the section's body (19.5 px at 1440), 1.2 on phones (18 px at 390).
     Phones: the fan's middle, Governance's front corner, sits at least --hm-fan-mid in from the gutter, so Compute's
     row has room before Governance's drop. Below 364 px half the screen caps it, so the fan slides at most a gutter
     right and the Company Brain stays on screen (WEB-200) */
  --hm-fs-name:calc(var(--hm-fs-b) * 1.3); --hm-tl-name:calc(var(--hm-fs-name) * var(--b-ui-lr));
  --hm-fs-name-ph:calc(var(--hm-fs-b) * 1.2); --hm-tl-name-ph:calc(var(--hm-fs-name-ph) * var(--b-ui-lr));
  --hm-fan-mid:min(182px,50vw);
}
@supports (width:round(1px,1px)){
  :root{--hm-tl-b:round(calc(var(--hm-fs-b) * var(--b-lr)),1px); --hm-tl-ui:round(calc(var(--hm-fs-b) * var(--b-ui-lr)),1px);
        --hm-tl-name:round(calc(var(--hm-fs-name) * var(--b-ui-lr)),1px); --hm-tl-name-ph:round(calc(var(--hm-fs-name-ph) * var(--b-ui-lr)),1px)}
}
@media (max-width:1280px){:root{--hm-pad:42px}}
@media (max-width:1024px){:root{--hm-pad:36px}}
@media (max-width:640px){:root{--hm-pad:24px}}
@media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px){
  :root{--hm-gutter:calc(var(--hm-pad) + max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)));
        --hm-b-k:10.5; --hm-b-min:15px}
}
@media (min-width:600px) and (max-width:767px),(min-width:768px) and (max-width:1023px) and (max-aspect-ratio:9999/10000),(min-width:768px) and (max-width:1023px) and (max-height:499px){
  :root{--hm-b-k:9.4}
}
@media (min-width:1024px),(min-width:768px) and (min-aspect-ratio:1/1) and (min-height:500px){
  :root{
    --cols:24;
    --c-title:1; --c-head-end:9; --c-body:10; --c-text-end:24; --c-row-w:5; --c-wide:1; --c-wide-end:25;
    --c-ex-steps:9; --c-ex-cap:14;
    --c-tri:1; --c-tri-end:25;
    /* one start line: the first line of every page sits at the optical centre of the space under the nav, 38.2% of
       what the OS intro leaves free above it and 61.8% below, as the start-line script in index.html measures it.
       Nav: its top padding (nav-top, index.html) and the logo (--logo-h, components.css). Intro: the logo (1.6 leads
       high), a line, the headline, a section gap and the "Works with" line */
    --start-nav:calc(max(16px,var(--edge)) + max(31.1px,calc(62.2 * var(--u))));
    --start-intro:calc(var(--fs-l) * 1.6 + var(--line) + var(--tl-l) + var(--section-gap) + var(--fs-b) * var(--b-ui-lr));
    --start-at:max(calc(var(--start-nav) + 40px),calc(var(--start-nav) + (100vh - var(--start-nav) - var(--start-intro)) * .382));
    --start:var(--start-at)!important;
  }
  @supports (width:round(1px,1px)){
    :root{--start:round(var(--start-at),1px)!important}
  }
}
/* WEB-42 v4 prototype, phone /os hero only. WEB-30's phone body type for the hero (15/20 at 390; its compact-600
   step above) and WEB-35's phone gutter (24px to 640px, 36px above, plus the landscape notch).
   Only the v4 block near the end of components.css reads these, and they exist only on compact screens. */
@media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px){
  :root{
    --v4-b-k:10.5; --v4-pad:24px;
    --v4-fs-b:max(15px,calc(var(--v4-b-k) * var(--u)));
    --v4-tl-b:calc(var(--v4-fs-b) * var(--b-lr));
    --v4-gutter:calc(var(--v4-pad) + max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)));
  }
  @supports (width:round(1px,1px)){
    :root{--v4-tl-b:round(calc(var(--v4-fs-b) * var(--b-lr)),1px)}
  }
}
@media (min-width:600px) and (max-width:767px),(min-width:768px) and (max-width:1023px) and (max-aspect-ratio:9999/10000),(min-width:768px) and (max-width:1023px) and (max-height:499px){
  :root{--v4-b-k:9.4}
}
@media (min-width:641px) and (max-width:767px),(min-width:768px) and (max-width:1023px) and (max-aspect-ratio:9999/10000),(min-width:768px) and (max-width:1023px) and (max-height:499px){
  :root{--v4-pad:36px}
}
/* WEB-44 r3 v2: /os "Worried about being locked into the wrong AI?" (.nolock-sec, os-not-locked.css and .js). Its heading and
   body read the OS scale above (--os-fs-head, --os-fs-b). Its side margins are the page gutter (--gutter). The stage is
   a little wider than tall beside the copy on desktop and a little wider than tall under it on phones too (the orbits
   are wider than tall), never taller than most of the screen. The script draws the orbit paths in --nolock-orbit. On
   phones the stage bleeds to the screen's edges (--nolock-bleed), so the cube and its wordmark get the whole width. */
.nolock-sec{
  --nolock-gutter:var(--gutter);
  --nolock-aspect:6 / 5; --nolock-max-h:82svh; --nolock-col-gap:calc(var(--gut) * 8);
  --nolock-bleed:0px; --nolock-orbit:var(--story-ring);
  /* WEB-66 v1 + WEB-64: the heading reads /os's one shared heading size (--os-fs-head: 48px at 1440, 28px at 390 (k 128)),
     the midpoint WEB-66 computed by hand until WEB-64 named the token. */
  --nolock-fs-head:var(--os-fs-head);
  --nolock-tl-head:var(--os-tl-head); --nolock-tl-title:calc(var(--os-fs-b) * var(--b-ui-lr));
}
@supports (width:round(1px,1px)){
  .nolock-sec{--nolock-tl-head:var(--os-tl-head); --nolock-tl-title:round(calc(var(--os-fs-b) * var(--b-ui-lr)),1px)}
}
@media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px){
  .nolock-sec{
    --nolock-aspect:6 / 5; --nolock-max-h:78svh; --nolock-bleed:var(--nolock-gutter);
  }
}

/* text colour roles (WEB-62, WEB-97, WEB-104): the one place that says which text is which colour, on every page and in the story.
   Body text reads --text; headings, subheadings and item titles read --ink; links read --ink. The three footer lines
   (place, email, legal) read --grey on the page and --sheet-ink on the dark menu sheet. Rest-state nav links (About, OS,
   Careers) read --grey; hover and the current page stay --ink. Inline links in body text
   have no underline; nav, text CTA and footer links underline on hover and keyboard focus, and the current nav page
   keeps it. Other sheets may set text to these tokens, never their own greys or blacks. This file is linked first, so a
   later rule of the same specificity that sets a colour on these elements would win: keep colour off them elsewhere. */
.b,.team .r,.d{color:var(--text)}
.h,.l,.team .n,.qlist .qq{color:var(--ink)}
a.b-link[href],nav.c-nav a.gs,a.c-btn{color:var(--ink)}
nav.c-nav a:not(.gs){color:var(--grey)}
footer :is(.fgrid a,a.f-mail),footer .fgrid :is(.f-place,.f-legal){color:var(--grey)}
a.b-link[href]{text-decoration-line:none}
:is(nav.c-nav a:not(.gs),a.c-btn:not(.op-copy>*),footer :is(.fgrid a,a.f-mail)):is(:hover,:focus-visible),
nav.c-nav a[aria-current="page"]{text-decoration-line:underline;text-decoration-thickness:var(--stroke);text-underline-offset:.2em}
.sheet .fgrid :is(.f-place,.f-legal,a.f-mail){color:var(--sheet-ink)}

/* story: top of the numbers row on wide landscape screens */
@media (min-width:1024px) and (min-aspect-ratio:1/1){
  :root{--nl:26svh}
}

/* page gutters: linear.app's side margins (WEB-35, measured 13 Nov 2026). --gutter is the side padding of the header,
   the menu sheet, the footer and every section on every page: 78px above 1280 wide, 42px to 1280, 36px to 1024 and 24px
   to 640, plus the landscape notch on compact screens. Wider than 1280 + 2 x 78 it holds content to a 1280px column.
   --edge keeps its own value, because type and vertical spacing read it. */
:root{
  --page-max:1280px; --page-pad:78px;
  --gutter:max(var(--page-pad),calc((100vw - var(--page-max)) / 2));
}
@media (max-width:1280px){:root{--page-pad:42px}}
@media (max-width:1024px){:root{--page-pad:36px}}
@media (max-width:640px){:root{--page-pad:24px}}
@media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px){
  :root{--gutter:calc(var(--page-pad) + max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)))}
}
