/*
 | Incubase before sign-in: the landing and the sign-in scene (V3, approved by Umayr on 26 Oct 2026).
 |
 | Ported from the design study on feat/creative-test at 3cd2f82 (design/living-map/tokens.css, and the
 | styles of landing.html and sign-in.html), with the study's review switches taken out. Linked only by the
 | pages a visitor sees before signing in (landing, layouts/door); no page inside the app loads it, and it
 | shares no class names with incubase.css. The sun and these colours belong here only: inside the app
 | the Ramp colours and the role colours apply (incubase.css).
 |
 | Sections: A. The study's tokens (tokens.css, whole)  B. The landing  C. The sign-in scene
 */

/* ========== A. The study's tokens (design/living-map/tokens.css) ========== */

/*
 | Incubase, the living map: the foundation every later screen shares (V1, 21 Oct 2026).
 |
 | Section 1 is partials/ib-tokens.blade.php as it prints: config/incubase.php's palette under the same
 | names, in the same order, with the same values (the redesign's names, --ib-ink, --ib-teal and the
 | rest, as the hex of the base-camp colour they point at), so porting it into the app is a copy; but
 | for the three faces, which are T1's (Inter Tight and IBM Plex Mono, where the partial has Geist). Type,
 | corners, buttons and the map-legend marks are incubase-square.css's (sections 1, 3 and 5) on top of
 | incubase-app.css's, renamed .lm-*. Nothing here is a new colour but section 1b's, the sunrise's
 | (H1), the day ground's (P1), the footer's pale blues (F1), the night's (N1), the sign-in form's (N2)
 | and the day's colours (S3), proposed for config/incubase.php and not there yet: the two grounds
 | only choose among the --ib-* colours, so a component is the same markup on night or on paper.
 |
 | Sections: 1. Palette and shared values  1b. Proposed: the sunrise (H1)  2. Geometry  3. Type
 |           4. Width-fill  5. The two grounds  6. Buttons  7. Map-legend marks  8. What the primitives
 |           draw on  9. Reduced motion
 */

/* ---------- 1. Palette and shared values (partials/ib-tokens) ---------- */

:root {
    --ib-spruce: #0f5a45;
    --ib-spruce-deep: #0a3f31;
    --ib-spruce-hover: #146b53;
    --ib-spruce-bright: #7fdcb4;
    --ib-spruce-soft: #e1eee8;
    --ib-orange: #ff6a2a;
    --ib-orange-text: #c2410c;
    --ib-orange-deep: #923008;
    --ib-orange-soft: #fff0e6;
    --ib-granite: #16222b;
    --ib-granite-soft: #4c5a61;
    --ib-granite-mid: #3a474e;
    --ib-scree: #8c9aa0;
    --ib-rock: #c9d4d7;
    --ib-sun: #ffc53d;
    --ib-night: #0b1419;
    --ib-ground: #eef3ef;
    --ib-paper: #ffffff;
    --ib-mist: #e6ece8;
    --ib-mist-deep: #dbe3de;
    --ib-danger: #b42318;
    --ib-danger-soft: #fdf0ee;
    --ib-danger-deep: #931c14;
    --ib-ink: #16222b;
    --ib-ink-deep: #0b1419;
    --ib-ink-soft: #4c5a61;
    --ib-ink-faint: #8c9aa0;
    --ib-sand: #e6ece8;
    --ib-sand-deep: #dbe3de;
    --ib-line: #c9d4d7;
    --ib-teal: #0f5a45;
    --ib-teal-text: #0f5a45;
    --ib-teal-deep: #0a3f31;
    --ib-teal-soft: #e1eee8;
    --ib-teal-bright: #7fdcb4;
    --ib-ember: #ff6a2a;
    --ib-ember-text: #c2410c;
    --ib-ember-soft: #fff0e6;
    --ib-plum-soft: #e6ece8;
    --ib-founder-a: #06241c;
    --ib-founder-b: #0f5a45;
    --ib-founder-ink: #effaf5;
    /* T1 (23 Oct 2026): the product's type, from Umayr's design system (branch design/stripe-language,
       ramp.css: "type: Inter Tight only"; its landing loads IBM Plex Mono for the mono). The study was in
       Geist and Geist Mono until then; ib-tokens.blade.php still prints Geist. */
    --ib-display: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ib-text: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ib-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    --ib-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --ib-radius-xs: 2px;
    --ib-radius-sm: 2px;
    --ib-radius: 2px;
    --ib-radius-lg: 2px;
    --ib-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ib-head-tracking: -0.03em;
    --ib-btn-radius: 2px;
    --ib-btn-h: 44px;
    --ib-btn-h-sm: 40px;
    --ib-btn-line: var(--ib-rock);
    --ib-label: 500 0.72rem/1.3 var(--ib-mono);
    --ib-label-tracking: 0.07em;
    /* Left out on purpose: --ib-card-shadow, --ib-raised-shadow and the button shadows (the living
       map has no shadows), and --wl-accent (the white-label accent, the app's business). */
}

/* ---------- 1b. Proposed (H1, 22 Oct 2026): the sunrise ----------
   Not in config/incubase.php yet: README.md has them as a block to add there. The hero's sky and the
   sun's ramp, for the landing only; the greens stay for the rest of the product. --ib-sunrise is
   Change Mechanics' sun (#f89f20, measured from its mark), and not --ib-sun, which config already has
   (#ffc53d, small markers, used by incubase-app.css). Ratios: white, rock (quiet ink) and the sun's
   own orange (the outline door's words) on each. Under the words the range holds the land at umber
   or darker; the sky's three blues carry every ink but the orange. */

:root {
    --ib-sky-deep: #162848;   /* the sky's darkening, the land's shade, the name's keyline: white 14.7:1, rock 9.7, sun 7.0 */
    --ib-sky: #22406e;        /* the hero's sky: white 10.4:1, rock 6.9, sun 4.9 */
    --ib-sky-day: #325a8c;    /* the sky at full day, the rays in the sky: white 7.1:1, rock 4.7 */
    --ib-dusk: #423a4e;       /* where the shade turns warm: white 10.8:1, rock 7.1, sun 5.1 */
    --ib-umber: #603220;      /* the warm ramp's foot: white 10.6:1, rock 7.0, sun 5.1 */
    --ib-sienna: #aa5822;     /* white 5.1:1; rock 3.4, so no quiet ink on it */
    --ib-sunrise: #f89f20;    /* Change Mechanics' sun, the doors: night on it 8.8:1; white 2.1, so no white words */
    --ib-gold: #fac468;       /* the lit faces: night on it 11.7:1 */
    --ib-gold-pale: #fce2aa;  /* the brightest lit crest: night on it 14.7:1 */
    /* P1, proposed 22 Oct: the landing's day ground, the paper the sunrise ends on: a warm paper, the
       morning's light on the ground the hero's hills run into. Ink on it 14.4:1, quiet ink 6.3, the day
       sky's blue 6.3, wipe's dimmest ink (0.64) 4.7; the sun's orange 1.9, so never words in it. */
    --ib-day: #f7f1e5;
    /* F1, proposed 23 Oct: the footer's range, the Northwall footer's own blue set ("glacier"). Its three
       pale tones; its three dark ones are the sky's (#34679a, #1a3e66 and #0b2140 are --ib-sky-day,
       --ib-sky and --ib-sky-deep: CIEDE2000 4.9, 2.1 and 2.3 apart), and its paper is the ground. Ink
       on them 12.7, 9.5 and 5.7:1; quiet ink 5.6 on the palest only (4.2 and 2.5 on the others). */
    --ib-sky-pale: #d6e6f4;
    --ib-sky-light: #a8cae7;
    --ib-sky-mid: #6b9ecc;
    /* N1, proposed 23 Oct: the night, one set for the landing's hero, its hand-off and its footer under
       the moon. The sky's darkest step and the mist's base; the moon's disc, the rays' light and the
       stars at full; the corona and the crest band's light. The steps between are the blues above: the
       sky's ramp and the land's shade (sky-deep, sky, sky-day), the land's lit faces and crests and the
       footer's nearer ridges (sky-mid, sky-light, sky-pale). Words on the night: body in sky-pale (15.0:1
       on the night ground), quiet in sky-light (11.2:1; 6.1 on sky, 4.1 on sky-day, so the hero's pools
       hold the land at sky or darker under quiet words). The night ground itself is .lm-moon's, below. */
    --ib-night-2: #0b1630;
    --ib-moon: #e8f0ff;
    --ib-moon-glow: #b9ccf5;
}

/* N1: Umayr's night ground (his --night in 23-landing-and-sign-in.html, branch design/stripe-language),
   so the night page and his sign-in art match: on a page that asks for the night (.lm-moon on its root)
   and nowhere else. Section 1's --ib-night is the partial's #0b1419 (config's 'night', which the app uses
   across its screens), and the sunrise's land starts on it, so it stays as it is. The two are CIEDE2000
   4.7 apart. On it: white 19.2:1, the moon 16.7, sky-pale 15.0, sky-light 11.2. */
.lm-moon {
    --ib-night: #0a0f1a;
}

/* N2, proposed 23 Oct: the sign-in's form panel, light, from Umayr's ramp.css (branch design/stripe-language:
   --page, --ink, --muted, --line, --sunk, the late set, --r-control, the input's 44 px and its border, his .btn).
   Ratios on the page (#f6f6f3): ink 18.2:1, muted 6.9 (13 px words read); white on ink 19.7; the late set's words
   on its ground 6.3. N2b, a departure from ramp.css: the input's border (and the outline button's line) is #8a8a82,
   ramp.css's own --faint, 3.21:1 on the page and 3.48 on the field's white, where ramp.css has #cfcfc7 (1.45:1),
   so a field's edge meets WCAG 1.4.11's 3:1; under the pointer it darkens to the muted #55554f (ramp.css lightens
   to #bdbdb5, which would now be fainter than at rest). Used by sign-in.html's panel, through .lm-form (section 5). */
:root {
    --ib-form-page: #f6f6f3;          /* the panel's ground */
    --ib-form-ink: #0b0b0a;           /* words, the solid button, the focus ring, an input's border on focus */
    --ib-form-muted: #55554f;         /* the quiet lines */
    --ib-form-line: #e6e6e1;          /* hairlines */
    --ib-form-input-line: #8a8a82;    /* an input's border, the outline button's line (N2b; ramp.css #cfcfc7) */
    --ib-form-input-hover: #55554f;   /* an input's border under the pointer (N2b; ramp.css #bdbdb5) */
    --ib-form-field: #ffffff;         /* an input's ground (ramp.css --panel) */
    --ib-form-well: #efefea;          /* a notice's ground, a pressed outline button (ramp.css --sunk) */
    --ib-form-ink-2: #2a2a27;         /* the solid button under the pointer (ramp.css --ink-2) */
    --ib-form-late-bg: #fbe9e7;       /* the error notice's ground (ramp.css --late-bg) */
    --ib-form-late: #a3261b;          /* the error notice's words (ramp.css --late) */
    --ib-form-radius: 8px;            /* a control's corners (ramp.css --r-control) */
    --ib-form-input-h: 44px;
    --ib-form-btn-h: 42px;
}

/* S3, proposed 24 Oct: the day's colours, after Umayr's reference (a painting made from the sunrise; he preferred its
   colours to S2's). The sunrise's palette for the landing's hero and the sign-in's art (range's `tones: 'day'`):
   a lighter, flatter steel sky; a bloom round the sun; a disc paler at its core; a warm land ramp, from navy and plum
   in shade through maroon, bark and rust to copper, amber and straw on the crests; the far ridges' haze, slate in
   shade and mauve where lit. H1's tokens above stay as they were: S2's sunrise (?tones=s2), the archived pages, the
   night and the footer's range use them. The land's darkest step, the foot and the sink, is N1's --ib-night-2 (white
   17.9:1); the disc's centre is P1's --ib-day. Ratios: white, rock (the quiet ink) and the sun's orange (the outline
   door's words) on each, or night (the solid door's words) on the light ones. The steel is too light for rock and the
   orange (3.3, 2.4), so the words' pools hold the sky at its shade, steel-deep, under them, and the land at bark or
   darker. */
:root {
    --ib-steel-deep: #32567f;   /* the sky's shade: its slight darkening, the name's and the week's keyline, the sky under a pool: white 7.6:1, rock 5.0, sun 3.6 */
    --ib-steel: #4672a0;        /* the day's sky (the reference's, about #436e99 to #4672a1): white 5.0:1; rock 3.3, sun 2.4, so no quiet or orange words on it */
    --ib-steel-day: #5a87b5;    /* the sky at full day: white 3.8:1, so words over it carry the keyline */
    --ib-bloom: #b5986e;        /* the gold-grey round the sun (the reference's #b5986e): night 7.0:1 */
    --ib-sun-core: #fed46e;     /* the disc's core, pale gold (its centre --ib-day): night 13.6:1 */
    --ib-navy: #161a36;         /* the shade of faces turned away, the valleys: white 17.0:1, rock 11.2, sun 8.1 */
    --ib-plum: #2a2238;         /* where the shade turns warm: white 15.2:1, rock 10.0, sun 7.2 */
    --ib-maroon: #3e2526;       /* white 14.0:1, rock 9.3, sun 6.7 */
    --ib-bark: #583424;         /* the warm ramp's middle, the pools' cap: white 10.9:1, rock 7.2, sun 5.2 */
    --ib-rust: #7a4730;         /* the near ridges' warm bodies: white 7.6:1, rock 5.0, sun 3.6 */
    --ib-copper: #c46d32;       /* the crest band's foot: night 5.1:1; white 3.8, so no words on it */
    --ib-amber: #e3904f;        /* the crest band: night 7.6:1 */
    --ib-straw: #efc27a;        /* the brightest lit crest: night 11.6:1 */
    --ib-haze: #3d5a85;         /* the far ridges' haze in shade, slate: white 7.0:1, rock 4.6 */
    --ib-haze-warm: #6a4a45;    /* the far ridges' haze where lit, dusky mauve: white 7.8:1, rock 5.2 */
    --ib-haze-deep: #283a5f;    /* the mist in the valleys: white 11.3:1 */
}

/* ---------- 2. Geometry: one sharp corner ----------
   incubase-square.css §1, without its !important: there is no Filament here to beat. */

*,
*::before,
*::after {
    box-sizing: border-box;
    border-radius: var(--ib-radius);
}

/* ---------- 3. Type: expedition scale in Inter Tight; field notes in IBM Plex Mono ----------
   incubase-square.css §5 (the display is the landing's headline, the H2 its section titles) and
   incubase-app.css's running text, with sizes, weights and tracking as they were; only the faces are
   T1's (§1). */

.lm-display {
    margin: 0;
    font-family: var(--ib-display);
    font-size: clamp(2.8rem, 6.2vw, 5.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.lm-h2 {
    margin: 0;
    font-family: var(--ib-display);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.lm-body {
    margin: 0;
    font-family: var(--ib-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Field notes: eyebrows, captions, column headings, the primitives' names. */
.lm-label {
    margin: 0;
    font: var(--ib-label);
    letter-spacing: var(--ib-label-tracking);
    text-transform: uppercase;
}

/* A name in code keeps its case. */
.lm-label code {
    font: inherit;
    text-transform: none;
}

/* ---------- 4. Width-fill: a line as wide as its box ----------
   The size comes from the line's length, not the screen: --len is its length in characters and
   --lm-fill-k the face's advance per character in ems, so font-size is the box's width divided by
   len x k. Inter Tight 800 tracked -0.045em measures 0.42 to 0.50 em a character in mixed case
   (narrow letters to wide ones: the sheet's lines) and about 0.56 in capitals (the sheet's ALTITUDE,
   set a letter at a time, so unkerned); k is set at the wide end (0.52, capitals 0.61), so a line of
   the usual letters never overshoots (one heavy in m and w can: give it its measured length), and a
   line of narrow letters falls short by up to about 20%. (T1 re-measured them the
   way Geist's were: Geist's lines measured 0.46 to 0.53 and 0.57, and k was 0.54 and 0.62.) For an edge
   that meets the box exactly, give --len the line's measured length instead (README.md says how):
   the sheet's lines do. cqi is a hundredth of the nearest container's inline size, and
   .lm-fill-stack is one (without one, cqi falls back to the viewport). Whatever holds the stack
   should clip sideways (overflow-x: clip on the band or plate): a line can overshoot its box by a
   letter's width, and fillSlide and separate move lines past it. */

.lm-fill-stack {
    container-type: inline-size;
    margin: 0;
}

.lm-fill {
    display: block;
    font-family: var(--ib-display);
    font-size: calc(100cqi / (var(--len) * var(--lm-fill-k, 0.52)));
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.lm-fill.is-caps {
    --lm-fill-k: 0.61;
}

/* ---------- 5. The two grounds ----------
   Each sets the same roles, so a component reads them and never names a colour: the ground, the
   ink, the quiet ink, the rule, and the accent (focus, the route). Against white, ink 16.2:1 and
   quiet ink 7.1:1; against night, ink 18.6:1 and quiet ink 12.3:1. Rules are lines only (1.5:1 and
   1.9:1), never the only sign of anything. --lm-dim is the dimmest a wiped row gets while its ink
   still reads at 4.5:1 (4.9:1 on paper, 5.3:1 on night): rows that dim keep their words in ink. */

.lm-paper {
    --lm-ground: var(--ib-paper);
    --lm-ink: var(--ib-ink);
    --lm-ink-quiet: var(--ib-ink-soft);
    --lm-rule: var(--ib-line);
    --lm-accent: var(--ib-spruce);
    --lm-btn-line: var(--ib-granite);
    --lm-done: var(--ib-spruce);
    --lm-in-hand: var(--ib-granite-mid);
    --lm-dim: 0.64;
    background-color: var(--lm-ground);
    color: var(--lm-ink);
}

.lm-night {
    --lm-ground: var(--ib-night);
    --lm-ink: var(--ib-paper);
    --lm-ink-quiet: var(--ib-rock);
    --lm-rule: var(--ib-granite-mid);
    --lm-accent: var(--ib-spruce-bright);
    --lm-btn-line: var(--ib-rock);
    --lm-done: var(--ib-spruce-bright);
    --lm-in-hand: var(--ib-scree);
    --lm-dim: 0.5;
    background-color: var(--lm-ground);
    color: var(--lm-ink);
}

/* N2: a third ground, the sign-in's form panel (section 1b's form set, Umayr's ramp.css): the same roles, light, the
   keyboard's outline in ink. */
.lm-form {
    --lm-ground: var(--ib-form-page);
    --lm-ink: var(--ib-form-ink);
    --lm-ink-quiet: var(--ib-form-muted);
    --lm-rule: var(--ib-form-line);
    --lm-accent: var(--ib-form-ink);
    --lm-btn-line: var(--ib-form-input-line);
    background-color: var(--lm-ground);
    color: var(--lm-ink);
}

/* The keyboard's outline: spruce on paper, mint on night. */
:focus-visible {
    outline: 2px solid var(--lm-accent, var(--ib-spruce));
    outline-offset: 2px;
}

/* ---------- 6. Buttons: square-cut; a fill sweeps across under the pointer ----------
   incubase-app.css's .ui-btn as incubase-square.css §3 leaves it: 44px tall, a label in mono
   capitals (IBM Plex Mono since T1). The solid one is spruce with the summit notch (its fill is a
   ::before cut by clip-path, so the focus outline is never cut); under the pointer mint sweeps
   across it from the left and the words turn night. The outline one takes its edge and fill from the
   ground: granite on paper, white on night. Both sweeps are production's: a one-colour layer whose
   width grows, and the edge is a 1px inset line, not a shadow. */

.lm-btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--ib-btn-h);
    margin: 0;
    padding: 0 1.15rem;
    border: 0;
    border-radius: var(--ib-btn-radius);
    background: transparent;
    color: var(--ib-paper);
    font-family: var(--ib-mono);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s var(--ib-ease) 0.06s;
}

.lm-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(var(--ib-spruce-bright), var(--ib-spruce-bright)) 0 0 / 0% 100% no-repeat,
        var(--ib-spruce);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: background-size 0.45s var(--ib-ease);
}

.lm-btn:hover {
    color: var(--ib-night);
}

.lm-btn:hover::before {
    background-size: 100% 100%, auto;
}

.lm-btn:active {
    transform: translateY(1px);
}

.lm-btn.is-outline {
    background: linear-gradient(var(--lm-ink), var(--lm-ink)) 0 0 / 0% 100% no-repeat, transparent;
    box-shadow: inset 0 0 0 1px var(--lm-btn-line);
    color: var(--lm-ink);
    transition: background-size 0.45s var(--ib-ease), color 0.3s var(--ib-ease) 0.06s;
}

.lm-btn.is-outline::before {
    content: none;
}

.lm-btn.is-outline:hover {
    background-size: 100% 100%, auto;
    color: var(--lm-ground);
}

/* ---------- 7. Map-legend marks: a status reads like the key on a survey map ----------
   A small mark in the status's colour, then the word in ink. Each status has its own shape, so it
   never rests on colour alone: a square for done, a triangle for needs attention, a cross for
   refused, a diamond for in hand, an open square for neutral (a draft, nothing yet). The words are
   what carry the status; the marks are graphics beside them. incubase-square.css §5; on night the
   square is mint and the diamond scree, which read there. */

.lm-mark {
    --mark: var(--ib-scree);
    --mark-size: 0.62em;
    --mark-shape: none;
    --mark-fill: var(--mark);
    --mark-edge: 0 0 #0000;
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    margin: 0;
    color: var(--lm-ink);
    font-family: var(--ib-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lm-mark::before {
    content: "";
    flex: none;
    width: var(--mark-size);
    height: var(--mark-size);
    border-radius: 0;
    background: var(--mark-fill);
    box-shadow: var(--mark-edge);
    clip-path: var(--mark-shape);
    transform: translateY(-0.05em);
}

.lm-mark.is-done {
    --mark: var(--lm-done);
}

.lm-mark.is-attention {
    --mark: var(--ib-ember);
    --mark-size: 0.78em;
    --mark-shape: polygon(50% 0, 100% 100%, 0 100%);
}

.lm-mark.is-refused {
    --mark: var(--ib-danger);
    --mark-size: 0.7em;
    --mark-shape: polygon(0 20%, 20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%);
}

.lm-mark.is-in-hand {
    --mark: var(--lm-in-hand);
    --mark-size: 0.78em;
    --mark-shape: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.lm-mark:not(.is-done, .is-attention, .is-refused, .is-in-hand) {
    --mark-fill: transparent;
    --mark-edge: inset 0 0 0 1.5px var(--mark);
    color: var(--lm-ink-quiet);
}

/* ---------- 8. What the primitives draw on (motion.js) ----------
   Every rule here is the finished state. motion.js only adds where things come from, so with no
   script, or under reduced motion, this is the page. */

/* rise: things stand on a ground line and lift out of it; the box clips at the line. */
.lm-ground {
    overflow: clip;
}

/* wipe: a ruled row. Its veil, in the ground's colour, is what wipe() pulls off it from the left;
   at rest the veil has no width. */
.lm-row {
    position: relative;
    border-top: 1px solid var(--lm-rule);
}

.lm-row::after {
    content: "";
    position: absolute;
    inset: -1px 0 0;
    background: var(--lm-ground);
    transform: scaleX(var(--lm-veil, 0));
    transform-origin: 100% 50%;
    pointer-events: none;
}

.lm-moving .lm-row::after {
    will-change: transform;
}

/* separate: each letter moves on its own. */
.lm-glyph {
    display: inline-block;
}

/* drawOn: a line drawing itself keeps square ends, or a round cap shows as a dot before it starts. */
.lm-draw path {
    stroke-linecap: butt;
    stroke-linejoin: round;
}

/* ridges: the flat layers lie behind the canvas (which carries the name), clipped to the element. */
.lm-ridges {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: clip;
    pointer-events: none;
}

/* Each ridge its own layer, so the parallax slides it on the GPU instead of painting it again
   (painting five screen-wide ridges took 11 to 19 ms a move at 1440). */
.lm-ridges svg {
    position: absolute;
    top: 0;
    display: block;
    will-change: transform;
}

/* stir, range and ridges: their canvas lies behind everything in its element and takes no pointer. */
.lm-stir {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* stir's intro. html.lm-intro is set before the first paint where motion is welcome (no reduced
   motion, no Save-Data, 4 GB or more); until stir lifts it, what the page marks [data-up] waits, and
   [data-count] waits for its count. stir sets .is-counting, then .is-up on its element, and each
   [data-up] rises in turn (style="--up: n" staggers it by n x 60 ms). If the script never gets there,
   everything shows after 4 s anyway. */
.lm-intro [data-up],
.lm-intro [data-count-box] {
    opacity: 0;
    animation: lm-show 0s linear 4s forwards;
}

.lm-intro .is-counting [data-count-box] {
    opacity: 1;
    animation: none;
}

.lm-intro .is-up [data-up] {
    animation: lm-up 0.4s var(--ib-ease) calc(var(--up, 0) * 60ms) both;
}

@keyframes lm-show {
    to {
        opacity: 1;
    }
}

@keyframes lm-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 9. Reduced motion: still, whatever the pointer does ----------
   html.lm-still means what the media query means (the sheet's switch sets it), so both say it. */

@media (prefers-reduced-motion: reduce) {
    .lm-btn,
    .lm-btn::before {
        transition-duration: 0s;
        transition-delay: 0s;
    }
}

.lm-still .lm-btn,
.lm-still .lm-btn::before {
    transition-duration: 0s;
    transition-delay: 0s;
}

/* ========== B. The landing (design/living-map/landing.html) ========== */

/* The landing's layout. The look is tokens.css's; the hero's is hero.html's, with a foot. */

:root {
    --gut: clamp(16px, 3.4vw, 48px);
    /* The range's foot (F1: twice R1's): under the first screen the nearest ridge runs on this far.
       Over its first --sink of it (the range's footSink) it sinks into the day sky's blue; then the
       scatter, its last dots thinning out to nothing --scatter of the way down (footScatter; 1 is
       the foot's end), over the one ramp, that blue to the day ground, which runs the scatter's
       length. The footer's top runs up over the foot from --lead of the way down it (S1: 0.8; C1's
       lead-in started at 0.75), while the last dots still fall. At 1440 x 900: 360 px, the sink 162,
       the ramp 198, the footer from 288 px under the fold. */
    --foot: clamp(300px, 40svh, 420px);
    --sink: 0.45;
    --scatter: 1;
    --lead: 0.8;
    --ramp-top: calc(var(--foot) * var(--sink));
    --ramp-end: calc(var(--foot) * var(--scatter));
    --ramp: calc(var(--ramp-end) - var(--ramp-top));
    /* How far the footer runs up over the foot (S1): the foot's last 1 - --lead, 72 px at 1440 x 900. */
    --overlap: calc(var(--foot) * (1 - var(--lead)));
    /* The sink as the fold sees it (the range's footFold): R1's whole sink, 0.4 of R1's foot, so
       the scene above the fold is drawn as R1 drew it (72 px at 1440 x 900, 67.2 at 390 x 844). */
    --sink-fold: calc(clamp(150px, 20svh, 200px) * 0.4);
    /* The ground the ramp turns into and the footer stands on: the day ground (P1). The colour the land sinks into, where the ramp starts: S3, the
       land's dark base (S2: the day sky's blue). */
    --lp-ground: var(--ib-day);
    /* S3: the day's colours (tokens.css 1b): the sky's shade (the keyline's), the foot's sink (the hero's sky is
       its ground, below). */
    --lp-key: var(--ib-steel-deep);
    --lp-foot-to: var(--ib-night-2);
    /* S3: the label's keyline (and the long name's second line's), as the readout's, scaled to its
       size: 2 px of the sky's shade round every letter, crisp (rings of copies at 2 and 1 px, 24 in all), under it a
       tight soft shadow of the same shade. Under the day's colours the hero's words have no pools (the range's
       quietPools), so the land draws straight through under them; the tagline's keyline is its own, below. */
    --lp-keyline-word:
        2px 0px 0 var(--lp-key), 1.85px 0.77px 0 var(--lp-key), 1.41px 1.41px 0 var(--lp-key), 0.77px 1.85px 0 var(--lp-key),
        0px 2px 0 var(--lp-key), -0.77px 1.85px 0 var(--lp-key), -1.41px 1.41px 0 var(--lp-key), -1.85px 0.77px 0 var(--lp-key),
        -2px 0px 0 var(--lp-key), -1.85px -0.77px 0 var(--lp-key), -1.41px -1.41px 0 var(--lp-key), -0.77px -1.85px 0 var(--lp-key),
        0px -2px 0 var(--lp-key), 0.77px -1.85px 0 var(--lp-key), 1.41px -1.41px 0 var(--lp-key), 1.85px -0.77px 0 var(--lp-key),
        1px 0px 0 var(--lp-key), 0.71px 0.71px 0 var(--lp-key), 0px 1px 0 var(--lp-key), -0.71px 0.71px 0 var(--lp-key),
        -1px 0px 0 var(--lp-key), -0.71px -0.71px 0 var(--lp-key), 0px -1px 0 var(--lp-key), 0.71px -0.71px 0 var(--lp-key),
        0 0 2px var(--lp-key), 0 0 4px var(--lp-key);
}

/* S3: the ground under the scatter, from the land's dark base through the steel and the footer
   range's pale blues to the day ground, in even quarters of the ramp, as the scatter's dots step through the same
   tones by depth (the range's scatterRamp), a little behind it, so the last, palest dots land on almost the day
   ground and vanish. */
:root {
    --lp-fall: linear-gradient(var(--lp-foot-to), var(--ib-steel) 25%, var(--ib-sky-light) 50%, var(--ib-sky-pale) 75%, var(--lp-ground));
}

/* All in whole dots: a ramp of a fraction of a pixel has its last row blended with the sky
   behind it, a line at the hero's end. The footer's top on a whole pixel. */
@supports (width: round(1px, 1px)) {
    :root {
        --foot: round(clamp(300px, 40svh, 420px), 2px);
        --ramp-top: round(calc(var(--foot) * var(--sink)), 2px);
        --ramp-end: round(calc(var(--foot) * var(--scatter)), 2px);
        --overlap: round(calc(var(--foot) * (1 - var(--lead))), 1px);
        --sink-fold: calc(round(clamp(150px, 20svh, 200px), 2px) * 0.4);
    }
}

/* Registered, so the range reads it back in px (the fold's sink). */
@property --sink-fold {
    syntax: '<length>';
    inherits: true;
    initial-value: 0px;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--ib-text);
    -webkit-font-smoothing: antialiased;
}

p,
h2,
h3 {
    margin: 0;
}

/* incubase-app.css's hidden text, under the same name. */
.ui-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* The day ground (P1): the footer and the page under it. The paper's roles on --ib-day, the accent the day sky's blue (the keyboard's outline 6.3:1). Rules are lines only. */
.lp-day {
    --lm-ground: var(--lp-ground);
    --lm-ink: var(--ib-ink);
    --lm-ink-quiet: var(--ib-ink-soft);
    --lm-rule: var(--ib-line);
    --lm-accent: var(--ib-sky-day);
    --lm-btn-line: var(--ib-granite);
    background-color: var(--lm-ground);
    color: var(--lm-ink);
}

/* ---------- The hero: hero.html's, with a foot ---------- */

/* Its ground is the sky the canvas starts from, so nothing flashes before it draws; in the foot,
   under the scatter, where the canvas is clear between its dots, the one ramp (--lp-fall): from the
   colour the land has sunk into (S3: its dark base, through the steel and the pale blues; S2: the day
   sky's blue) to the day ground (and the day ground under it, if the scatter ends before the foot
   does). The keyboard's outline is paper. */
.hero {
    --lm-ground: var(--ib-steel);
    --lm-accent: var(--ib-paper);
    position: relative;
    isolation: isolate;
    overflow: clip;
    background-image: var(--lp-fall), linear-gradient(var(--lp-ground), var(--lp-ground));
    background-position: left 0 bottom calc(var(--foot) - var(--ramp-end)), left 0 bottom 0;
    background-size: 100% var(--ramp), 100% calc(var(--foot) - var(--ramp-end));
    background-repeat: no-repeat;
}

/* One column as tall as the screen. The wordmark's box takes the room the rest leaves (flex: 1);
   the range measures that, sizes the name to it, and fixes the box to the name's height. The foot
   keeps the room the hint had. --alt-h is the week's height over the sky: the name starts under it. S3d took the
   week away but keeps its room, so the name stands where it did. */
.hero-in {
    --alt-top: clamp(16px, 3vh, 32px);
    --alt-fig: clamp(1.75rem, 2.4vw, 2.25rem);
    --alt-h: calc(0.72rem * 1.3 + 4px + var(--alt-fig));
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: calc(var(--alt-top) + var(--alt-h) + clamp(12px, 2.4vh, 24px)) var(--gut) calc(clamp(20px, 4vh, 36px) + 2.5rem);
}

/* Under the first screen: the ground runs on and thins out (the range draws it). */
.hero-foot {
    height: var(--foot);
}

.hero-mark {
    flex: 1 1 0;
    min-height: 0;
}

/* Without the script there is no canvas, so the name is set in type instead. */
.hero-fallback {
    color: var(--lm-ink);
}

.lm-js .hero-fallback {
    visibility: hidden;
    animation: hero-fallback 0s linear 3s forwards;
}

.lm-stir-drawn .hero-fallback {
    display: none;
}

@keyframes hero-fallback {
    to {
        visibility: visible;
    }
}

/* A long name: its first word is cut from the field, the rest set under it. */
.hero-rest {
    margin-top: 14px;
    color: var(--lm-ink);
    font: 500 clamp(0.95rem, 1.7vw, 1.5rem)/1.2 var(--ib-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px 48px;
    margin-top: clamp(28px, 5vh, 56px);
}

.hero-tagline {
    margin-top: 14px;
    color: var(--lm-ink);
    font: 400 clamp(1.375rem, 2.2vw, 2rem)/1.25 var(--ib-text);
    letter-spacing: -0.015em;
}

/* S3: with no pools under them, the words keep their own keyline. The
   long name's second line: 2 px (--lp-keyline-word; the label had it too, until S3d). The tagline's is scaled to its size, 0.08em and
   never under 2 px (2 px at 390, 2.5 at 1440: at 2 px its 32 px letters' wide edges reached past the keyline, and
   at 0.08em alone a phone's 22 px letters had 1.8 px, too thin), the same 24 copies with each offset a share of it. */
.hero-rest {
    text-shadow: var(--lp-keyline-word);
}

.hero-tagline {
    --lp-tag-k: max(2px, 0.08em);
    text-shadow:
        var(--lp-tag-k) 0 0 var(--lp-key), calc(var(--lp-tag-k) * 0.9239) calc(var(--lp-tag-k) * 0.3827) 0 var(--lp-key), calc(var(--lp-tag-k) * 0.7071) calc(var(--lp-tag-k) * 0.7071) 0 var(--lp-key),
        calc(var(--lp-tag-k) * 0.3827) calc(var(--lp-tag-k) * 0.9239) 0 var(--lp-key), 0 var(--lp-tag-k) 0 var(--lp-key), calc(var(--lp-tag-k) * -0.3827) calc(var(--lp-tag-k) * 0.9239) 0 var(--lp-key),
        calc(var(--lp-tag-k) * -0.7071) calc(var(--lp-tag-k) * 0.7071) 0 var(--lp-key), calc(var(--lp-tag-k) * -0.9239) calc(var(--lp-tag-k) * 0.3827) 0 var(--lp-key), calc(var(--lp-tag-k) * -1) 0 0 var(--lp-key),
        calc(var(--lp-tag-k) * -0.9239) calc(var(--lp-tag-k) * -0.3827) 0 var(--lp-key), calc(var(--lp-tag-k) * -0.7071) calc(var(--lp-tag-k) * -0.7071) 0 var(--lp-key), calc(var(--lp-tag-k) * -0.3827) calc(var(--lp-tag-k) * -0.9239) 0 var(--lp-key),
        0 calc(var(--lp-tag-k) * -1) 0 var(--lp-key), calc(var(--lp-tag-k) * 0.3827) calc(var(--lp-tag-k) * -0.9239) 0 var(--lp-key), calc(var(--lp-tag-k) * 0.7071) calc(var(--lp-tag-k) * -0.7071) 0 var(--lp-key),
        calc(var(--lp-tag-k) * 0.9239) calc(var(--lp-tag-k) * -0.3827) 0 var(--lp-key), calc(var(--lp-tag-k) * 0.5) 0 0 var(--lp-key), calc(var(--lp-tag-k) * 0.3536) calc(var(--lp-tag-k) * 0.3536) 0 var(--lp-key),
        0 calc(var(--lp-tag-k) * 0.5) 0 var(--lp-key), calc(var(--lp-tag-k) * -0.3536) calc(var(--lp-tag-k) * 0.3536) 0 var(--lp-key), calc(var(--lp-tag-k) * -0.5) 0 0 var(--lp-key),
        calc(var(--lp-tag-k) * -0.3536) calc(var(--lp-tag-k) * -0.3536) 0 var(--lp-key), 0 calc(var(--lp-tag-k) * -0.5) 0 var(--lp-key), calc(var(--lp-tag-k) * 0.3536) calc(var(--lp-tag-k) * -0.3536) 0 var(--lp-key),
        0 0 2px var(--lp-key), 0 0 4px var(--lp-key);
}

.hero-doors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* S3c: in the day the doors are pills, the sign-in's buttons (.si-btn): 42 px, fully round, Inter Tight 600
   15 px in sentence case, no notch and no sweep. The solid one the steel with white words (5.0:1), its shade
   under the pointer and pressed (7.6:1); the outline one a white pill in the input's 1 px line with the steel's
   words (5.0:1), the shade's words and a darker line under the pointer (7.6:1), the well pressed (6.6:1). Each a
   pixel down when pressed (.lm-btn's). The keyboard's ring the sky's light, 2 px, 2 px out, so it shows on the
   dark land. */
.lp-day .hero-doors .lm-btn {
    height: var(--ib-form-btn-h);
    min-height: 0;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--ib-steel);
    box-shadow: none;
    color: var(--ib-form-field);
    font: 600 15px/1 var(--ib-text);
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    transition: background-color 0.15s var(--ib-ease), border-color 0.15s var(--ib-ease);
}

.lp-day .hero-doors .lm-btn::before {
    content: none;
}

.lp-day .hero-doors .lm-btn:hover,
.lp-day .hero-doors .lm-btn:active {
    background: var(--ib-steel-deep);
}

.lp-day .hero-doors .lm-btn.is-outline {
    border-color: var(--ib-form-input-line);
    background: var(--ib-form-field);
    color: var(--ib-steel);
}

.lp-day .hero-doors .lm-btn.is-outline:hover {
    border-color: var(--ib-form-input-hover);
    background: var(--ib-form-field);
    color: var(--ib-steel-deep);
}

.lp-day .hero-doors .lm-btn.is-outline:active {
    background: var(--ib-form-well);
    color: var(--ib-steel-deep);
}

.lp-day .hero-doors .lm-btn:focus-visible {
    outline: 2px solid var(--ib-sky-light);
    outline-offset: 2px;
}

/* Under reduced motion the pills change at once, as tokens.css 9 has every .lm-btn. */
@media (prefers-reduced-motion: reduce) {
    .lp-day .hero-doors .lm-btn {
        transition-duration: 0s;
    }
}

/* The entrance (V2d): the name drops in on the canvas; the words follow from .is-up, each
   dropping 24 px into place, 90 ms apart. Only under html.lm-intro. */
@keyframes hero-drop {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.lm-intro .is-up [data-up] {
    animation: hero-drop 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) calc(var(--up, 0) * 90ms) both;
}

/* The altimeter rides the crest under the pointer (the footer's range has one too, F1). */
.hero-crest,
.lp-crest {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ib-ease);
}

.hero-crest.is-on,
.lp-crest.is-on {
    opacity: 1;
}

.hero-crest i,
.lp-crest i {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: var(--lm-ink);
}

.hero-crest b,
.lp-crest b {
    position: absolute;
    bottom: 4px;
    left: -0.5px;
    width: 1px;
    height: 22px;
    background: var(--lm-ink);
}

.hero-crest span,
.lp-crest span {
    position: absolute;
    bottom: 26px;
    left: 0;
    padding: 5px 7px 4px;
    border: 1px solid var(--lm-rule);
    background: var(--lm-ground);
    color: var(--lm-ink);
    font: var(--ib-label);
    letter-spacing: var(--ib-label-tracking);
    white-space: nowrap;
    transform: translateX(-50%);
}

@media (max-width: 720px) {
    .hero-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Grounds that run the width of the page keep square corners: the 2px one would show what lies
   behind them at each corner. */
.hero,
.lp-foot,
.lp-frame,
.lp-scene,
.lp-scene canvas {
    border-radius: 0;
}

/* ---------- The footer: the Northwall footer (F1), the screen's width (S1) ----------
   It follows the hero at once, its top run up over the foot's last part (--overlap: from --lead of
   the way down the foot). It has no ground of its own: over the foot the scatter and the ramp show
   through it, and below the hero the page's paper. Its details stand on the page's column, where C1
   had them (the frame's hairlines are gone): the brand (the incubator's name, as the hero's header
   has it while no logo is set; the tagline; the contact line) and three columns of links under mono
   labels; a rule, then the copyright row; the legal line. Under them the range, the Northwall's own
   dithered range in its blue set, the screen's whole width and off the bottom of the page, --scene-h
   tall and 64 px more (40 on a phone) running up under the last lines, their faded top under them.
   The paper is the range's first tone, so there is no seam. As the footer comes into view (a fifth of it), the brand
   and the columns rise out of a soft blur one after the other, the range prints back to front and its
   haze lifts last: the range's print, which puts .is-waiting on the footer and then .is-in. */
.lp-foot {
    --lp-foot-ground: var(--lp-ground);
    /* The range's fifth tone, the demo's #34679a: --ib-sky-day is the token nearest it (CIEDE2000
       4.9 apart). */
    --lp-foot-blue: var(--ib-sky-day);
    --lm-ground: var(--lp-foot-ground);
    /* N1: the details stand on the hero's own column (48 px in at 1440, 16 on a phone), in line with the
       hero's words; S1 and T1 had them 112 px in, the altitude rail's room (gone since S1), then 30 more. */
    --pad: var(--gut);
    /* The range's height (S1: 26vw; C1's 30vw), never under 260 px, so a phone's still reads as a
       range, nor over 420. */
    --scene-h: clamp(260px, 26vw, 420px);
    position: relative;
    margin-top: calc(-1 * var(--overlap));
    overflow: clip;
    background: none;
}

/* In whole dots, so the range's canvas is never stretched by a fraction of a pixel. */
@supports (width: round(1px, 1px)) {
    .lp-foot {
        --scene-h: round(clamp(260px, 26vw, 420px), 2px);
    }
}

.lp-frame {
    position: relative;
    z-index: 2;
    margin: 0;
}

/* The first words stand 8 px under the foot's end at the least (S1), so the last dots, which fall
   into this padding, stop just above them (at 1440 that is C1's 80 px; on a phone, more). */
.lp-foot-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: max(clamp(44px, 6.4vw, 80px), calc(var(--overlap) + 8px)) var(--pad) clamp(30px, 4vw, 52px);
}

.lp-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.lp-logo {
    color: var(--lm-ink);
    font: 500 1.4375rem/1 var(--ib-display);
    letter-spacing: -0.035em;
}

.lp-tag,
.lp-contact {
    max-width: 34ch;
    color: var(--lm-ink-quiet);
    font-size: 0.84375rem;
    line-height: 1.55;
    text-wrap: pretty;
}

/* The name and the tagline rise inside their own lines (S1): their boxes keep still through the
   footer's entrance. */
.lp-logo > .lp-r,
.lp-tag > .lp-r {
    display: block;
}

.lp-foot p a {
    color: var(--lm-ink);
    text-underline-offset: 3px;
}

.lp-col h2 {
    margin: 4px 0 18px;
    color: var(--lm-ink-quiet);
}

.lp-col ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-col a,
.lp-col li > span {
    color: var(--lm-ink);
    font-size: 0.875rem;
    line-height: 1.35;
    letter-spacing: -0.005em;
    text-decoration: none;
}

.lp-col a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* Both logos as supplied, in their own colours (Spark Lab's a partner's, 23 Oct). */
.lp-col img {
    display: block;
    width: auto;
}

.lp-bar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin: 0 var(--pad);
    padding-top: 14px;
    border-top: 1px solid var(--lm-rule);
    color: var(--lm-ink-quiet);
    font-size: 0.75rem;
}

.lp-legal {
    position: relative;
    z-index: 2;
    max-width: 110ch;
    margin: 8px var(--pad) 0;
    color: var(--lm-ink-quiet);
    font-size: 0.75rem;
    line-height: 1.55;
}

/* The range: the screen's whole width, under the words' last lines, over its own faded top. */
.lp-scene {
    position: relative;
    z-index: 1;
    height: calc(var(--scene-h) + 64px);
    margin-top: -64px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .lp-foot-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        row-gap: 36px;
    }

    /* On a phone the brand takes its own row; Help and Incubase share the next. */
    .lp-brand {
        grid-column: 1 / -1;
    }

    .lp-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-scene {
        height: calc(var(--scene-h) + 40px);
        margin-top: -40px;
    }
}

/* The entrance: only once the range has put .is-waiting on the footer (where motion is welcome);
   .is-in brings each part in after its own delay (--d, ms), as the original's. */
.lp-foot.is-waiting .lp-r {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(12px);
}

.lp-foot.is-in .lp-r {
    transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), transform 1s cubic-bezier(0.2, 0.7, 0.1, 1), filter 0.9s ease;
    transition-delay: calc(var(--d, 0) * 1ms);
}


/* ========== C. The sign-in scene (design/living-map/sign-in.html; layouts/door) ========== */

/* The sign-in's layout. Two columns as tall as the screen: the art, the rest of the width; the form, 30% of
   it, never under 380 px nor over 520. The page does not scroll on a desktop; on a short screen the form's
   column does. Below 760 px the two stack: the art a band 200 px tall, the form under it on its ground. */

/* The scene's page: the form's ground under everything (the study set it on html; here on the page's own
   body, which the canvas takes it from), and no margins on its headings and lines, at the weight of the
   study's bare h1 and p rules (:where adds none), so every .si-* margin below still wins. */
.si-page {
    background: var(--ib-form-page);
}

:where(.si) h1,
:where(.si) p {
    margin: 0;
}

.si {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(380px, 30vw, 520px);
    height: 100vh;
    height: 100svh;
}

/* The art: the range draws on its canvas inside (motion.js); its ground is the sunrise's sky (S3: the day's steel,
   as the landing's hero has it), so nothing flashes before it draws. Nothing is written on it. */
.si-art {
    position: relative;
    isolation: isolate;
    overflow: clip;
    border-radius: 0;
    background: var(--ib-steel);
}

.si-art canvas {
    border-radius: 0;
}

/* The form's column (.lm-form, tokens.css 5): the wordmark at its head, the form in the room between, the
   logos at its foot. */
.si-panel {
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-height: 0;
    overflow-y: auto;
    padding: 40px clamp(24px, 3.4vw, 48px);
    border-radius: 0;
}

.si-grow {
    flex: 1 0 0;
}

/* The INCUBASE wordmark (Umayr's: Inter Tight 900, capitals, -0.055em) as the way home, in the steel, its shade
   under the pointer and pressed (S3b). Before sign-in no incubator's name stands beside it. */
.si-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.si-wordmark {
    display: inline-block;
    border-radius: 6px;
}

.si-wordmark img {
    display: block;
    width: 78px;
    height: auto;
}

.si-line {
    margin-top: 14px;
    color: var(--ib-steel-deep);
    font: 500 15px/1.3 var(--ib-text);
}

.si-wordmark:hover img {
    opacity: 0.8;
}

.si-main h1 {
    color: var(--ib-steel);
    font: 600 28px/1.15 var(--ib-display);
    letter-spacing: -0.03em;
}

.si-lead {
    margin-top: 6px;
    color: var(--lm-ink-quiet);
    font-size: 15px;
    line-height: 1.5;
}

.si-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

/* Umayr's notice; the error in his late set. */
.si-notice {
    padding: 12px 14px;
    border-radius: var(--ib-form-radius);
    background: var(--ib-form-late-bg);
    color: var(--ib-form-late);
    font-size: 14px;
    line-height: 1.45;
}

.si-field {
    display: grid;
    gap: 6px;
}

.si-field label {
    color: var(--ib-steel);
    font: 600 14px/1.3 var(--ib-text);
}

.si-control {
    position: relative;
}

/* His input: 44 px, 8 px corners, a white field in a 1 px line; the line darker under the pointer, ink on
   focus, with the keyboard's ring (2 px of ink, 2 px out); in the late colour when the field is wrong. */
.si-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: var(--ib-form-input-h);
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--ib-form-input-line);
    border-radius: var(--ib-form-radius);
    background: var(--ib-form-field);
    color: var(--lm-ink);
    font: 400 15px/1.2 var(--ib-text);
    transition: border-color 0.15s var(--ib-ease);
}

.si-input.has-end {
    padding-right: 136px;
}

.si-input:hover {
    border-color: var(--ib-form-input-hover);
}

.si-input[aria-invalid="true"] {
    border-color: var(--ib-form-late);
}

.si-input:focus {
    border-color: var(--lm-ink);
}

/* "Show password": a small text button inside the field, at its end, one name whatever its state (N2b), in the
   Sign in button's blue. Its words in the steel (5.0:1 on the field), the steel's shade on the well under the
   pointer (6.6:1; the steel there is 4.4). While the password shows it is pressed, filled with the steel and its
   words white (5.0:1), the shade under the pointer (7.6:1), as Sign in is. */
.si-reveal {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ib-steel);
    font: 600 14px/1 var(--ib-text);
    cursor: pointer;
    transition: background-color 0.15s var(--ib-ease);
}

.si-reveal:hover {
    background: var(--ib-form-well);
    color: var(--ib-steel-deep);
}

.si-reveal:active {
    background: var(--ib-form-line);
    color: var(--ib-steel-deep);
}

.si-reveal[aria-pressed="true"] {
    background: var(--ib-steel);
    color: var(--ib-form-field);
}

.si-reveal[aria-pressed="true"]:hover,
.si-reveal[aria-pressed="true"]:active {
    background: var(--ib-steel-deep);
}

/* "Keep me signed in": a box of its own make, so each state is drawn: a muted line round it (6.9:1), ink
   under the pointer, filled with ink and a white tick when it is on, a well while pressed. Its words in the
   steel, its shade under the pointer (S3b). */
.si-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ib-steel);
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.si-check input {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-content: center;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1.5px solid var(--lm-ink-quiet);
    border-radius: 4px;
    background: var(--ib-form-field);
    cursor: pointer;
    transition: background-color 0.15s var(--ib-ease), border-color 0.15s var(--ib-ease);
}

.si-check input::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: var(--ib-form-field);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
    transform: scale(0);
    transition: transform 0.12s var(--ib-ease);
}

.si-check:hover {
    color: var(--ib-steel-deep);
}

.si-check:hover input {
    border-color: var(--lm-ink);
}

.si-check input:active {
    background: var(--ib-form-well);
}

.si-check input:checked {
    border-color: var(--lm-ink);
    background: var(--lm-ink);
}

.si-check input:checked:active {
    background: var(--ib-form-ink-2);
}

.si-check input:checked::before {
    transform: scale(1);
}

/* His .btn: 42 px, a pill, Inter Tight 600 15 px, the width of the form. S3b: the solid one the steel with
   white words (5.0:1), its shade under the pointer (7.6:1); the outline one a 1 px line in the input's colour
   with the steel's words, the field's white and the shade's words under the pointer (7.6:1). Pressed, each a
   pixel down (the solid one the shade, the outline one the well, its words the shade: 6.6:1). */
.si-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: var(--ib-form-btn-h);
    margin: 0;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 15px/1 var(--ib-text);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s var(--ib-ease), border-color 0.15s var(--ib-ease);
}

.si-btn.is-solid {
    background: var(--ib-steel);
    color: var(--ib-form-field);
}

.si-btn.is-solid:hover {
    background: var(--ib-steel-deep);
}

.si-btn.is-solid:active {
    background: var(--ib-steel-deep);
    transform: translateY(1px);
}

.si-btn.is-line {
    border-color: var(--ib-form-input-line);
    background: transparent;
    color: var(--ib-steel);
}

.si-btn.is-line:hover {
    border-color: var(--ib-form-input-hover);
    background: var(--ib-form-field);
    color: var(--ib-steel-deep);
}

.si-btn.is-line:active {
    background: var(--ib-form-well);
    color: var(--ib-steel-deep);
    transform: translateY(1px);
}

/* The quiet way out under a form (screen 22's "Sign in with a password"): the steel's words, no line, the field's
   white under the pointer. */
.si-btn.is-quiet {
    background: transparent;
    color: var(--ib-steel);
}

.si-btn.is-quiet:hover {
    background: var(--ib-form-field);
    color: var(--ib-steel-deep);
}

.si-btn.is-quiet:active {
    color: var(--ib-steel-deep);
    transform: translateY(1px);
}

.si-more {
    margin-top: 10px;
}

/* "Forgot your password?" under the password field (screen 15), a text button that asks for the same emailed
   link: in the steel, its shade under the pointer and pressed (S3b). */
.si-forgot {
    color: var(--lm-ink-quiet);
    font-size: 14px;
    line-height: 1.45;
}

.si-textbtn {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ib-steel);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.si-textbtn:hover {
    color: var(--ib-steel-deep);
    text-decoration-thickness: 2px;
}

.si-textbtn:active {
    color: var(--ib-steel-deep);
}

/* The note a link's request leaves, in place, in his plain notice. Nothing shows while it is empty. */
.si-note:not(:empty) {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--ib-form-radius);
    background: var(--ib-form-well);
    color: var(--lm-ink);
    font-size: 14px;
    line-height: 1.45;
}

.si-quiet {
    margin-top: 18px;
    color: var(--lm-ink-quiet);
    font-size: 13px;
    line-height: 1.45;
}

/* The keyboard's ring on every control: 2 px of ink, 2 px out. */
.si :focus-visible {
    outline: 2px solid var(--lm-ink);
    outline-offset: 2px;
}

/* The logos on the paper, in their own colours, no plates. */
.si-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
}

.si-logos img {
    display: block;
    width: auto;
    border-radius: 0;
}

/* Still, the controls change at once. */
@media (prefers-reduced-motion: reduce) {
    .si-input,
    .si-reveal,
    .si-check input,
    .si-check input::before,
    .si-btn {
        transition-duration: 0s;
    }
}

@media (max-width: 759.98px) {
    .si {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .si-art {
        height: 200px;
    }

    .si-panel {
        overflow: visible;
        padding: 28px 16px 32px;
    }
}

/* ---------- The app's door pages on the scene (layouts/door) ----------
   The study drew the founders' sign-in; the app has three more pages on the same scene (choose a new
   password, the emailed link's Continue page, a link that no longer works). They use the study's parts:
   the heading, its lead, the notice, the fields, the two buttons and the quiet lines. What follows is
   only what those pages need beyond the study. */

/* A small label above a heading ("Programme team" on the new-password page). */
.si-eyebrow {
    margin-bottom: 8px;
    color: var(--lm-ink-quiet);
}

/* The page's reply (a link on its way, signed out, a password changed): the study's note, in place. */
.si-main > .si-note:not(:empty) {
    margin: 18px 0 0;
}

/* "Forgot your password?" sits under its field, as screen 15 has it. */
.si-field .si-forgot {
    margin-top: 2px;
}

/* A way out that is a link and looks like the outline button ("Sign in with a password"). */
a.si-btn {
    text-decoration: none;
}

.si-btn + .si-btn,
.si-form + .si-btn {
    margin-top: 10px;
}

/* A form on its way (partials/auth-script holds it busy, so a slow line cannot send it twice). */
.si-btn[aria-busy="true"] {
    cursor: progress;
}

/* The legal links, under the logos at the panel's foot (screen 15's footer line). */
.si-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    color: var(--lm-ink-quiet);
    font-size: 13px;
    line-height: 1.45;
    list-style: none;
}

.si-legal a {
    color: var(--lm-ink-quiet);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.si-legal a:hover {
    color: var(--lm-ink);
}

.si-foot {
    display: grid;
    gap: 16px;
}

/* Umayr, 28 Oct 2026 (his mock-up, 12:09): the name is drawn by the range, lowercase, in a plain grotesque,
   white with no keyline, top left, with the ridges over its foot; it stops well short of the sun. The line,
   Sign in and the logo stand together at the first screen's foot, left. */
.hero-mark {
    width: min(100%, 61%);
    max-height: 50vh;
    margin-top: -3.2vh;
}

.hero-fallback {
    font: 700 clamp(4rem, 13vw, 12rem)/1 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.04em;
}

.hero-tagline {
    text-shadow: 0 0 18px rgb(14 21 46 / 0.75), 0 0 4px rgb(14 21 46 / 0.6);
    font-weight: 500;
}

.hero-row {
    margin-top: auto;
}

.hero-logo {
    margin-top: 22px;
}

.hero-logo img {
    display: block;
    width: clamp(112px, 9vw, 152px);
    height: auto;
}

@media (max-width: 720px) {
    .hero-mark {
        width: 88%;
        margin-top: 40px;
    }
}
