/* THALYRON design tokens (final design). One light editorial field for the whole site; dark only where media is on
   screen (.t-media). Components only read the --c-* tokens. Older token names stay as aliases. */
@font-face{font-family:"Archivo";src:url(../fonts/archivo-var.woff2) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}

:root{
  /* Fixed colours (never follow the field) */
  --paper:#F7F7F5; --paper-2:#EFEFEC; --white:#FFFFFF; --ink-0:#111111;
  --night:#111111; --graphite:#111111; --charcoal:#111111; --charcoal-2:#222222;
  --c-dev-dot:#C9873F;
  --ok:#2F7D4A; --warn:#9A6A12; --err:#B5482F; --err-deep:#8E3420;

  /* Type */
  --sans:"Archivo","Helvetica Neue",Helvetica,Arial,sans-serif;
  --fs-display:clamp(56px,9.2vw,172px);
  --fs-h1:clamp(46px,6.6vw,124px);
  --fs-h2:clamp(34px,4.3vw,76px);
  --fs-h3:clamp(22px,1.9vw,32px);
  --fs-lead:clamp(19px,1.45vw,24px);
  --fs-body:17px;
  --fs-small:14px;
  --fs-meta:13px;

  /* Space: 30 px page margin at 1440 px, content up to 1760 px, media and stages edge to edge */
  --gut:max(clamp(16px,2.1vw,40px),env(safe-area-inset-left),env(safe-area-inset-right));
  --wide:1760px;
  --read:66ch;
  --sec:clamp(88px,10vw,184px);
  --gap:clamp(16px,1.6vw,28px);
  /* Navigation: a floating glass bar, 12 px from the top (on desktop centred at 70 % width, see system.css); the controls sit 12 px
     inside it (72 - 48 = 2 x 12), so the call to action and the two squares share one height. */
  --hdr-h:72px;
  --hdr-top:12px;
  --nav-pad:12px;
  --nav-ctl:48px;
  --r-ctl:3px;

  /* Corners: square media and buttons, a hint of radius on the glass bar */
  --r-panel:2px;
  --r-media:0px;
  --r-btn:0px;
  --r-bar:6px;

  /* Motion */
  --ease:cubic-bezier(.2,.7,.1,1);
  --ease-io:cubic-bezier(.6,0,.2,1);
  --ease-mask:cubic-bezier(.16,1,.3,1);
  --t-fast:220ms;
  --t-mid:450ms;
  --t-slow:900ms;
  /* Motion system (Phase 17.1, motion.css + motion.js): one set of durations, curves, distances and steps for every
     page. Headlines rise line by line out of a mask; labels fade first, body text and buttons follow. */
  --m-ease:cubic-bezier(.16,1,.3,1);       /* movement: quick start, long quiet settle */
  --m-ease-soft:cubic-bezier(.3,.7,.2,1);  /* opacity and colour */
  --m-line:760ms;                          /* one headline line */
  --m-text:680ms;                          /* paragraphs, buttons, list items */
  --m-fade:520ms;                          /* labels and small marks */
  --m-media:1300ms;                        /* image and video reveal */
  --m-stagger:85ms;                        /* step between lines and between the parts of a head */
  --m-stagger-item:70ms;                   /* step between list items and cards */
  --m-rise:72%;                            /* line travel inside its mask, relative to the line */
  --m-rise-text:18px;                      /* travel of paragraphs, buttons and cards */
  --m-load:40ms;                           /* page load: first frame to first movement */
  --m-grey:#8A8A86;                        /* statements start in this grey (3.2:1 on the page, large type) and darken while scrolling */

  --t-10:12px; --t-12:13px; --t-14:14px; --t-16:16px; --t-18:17px; --t-20:clamp(18px,1.35vw,21px); --t-26:clamp(20px,1.6vw,26px); --t-34:clamp(24px,2.2vw,34px);
  --t-46:clamp(30px,3vw,46px); --t-50:var(--fs-h2); --t-68:clamp(36px,4.4vw,72px); --t-80:clamp(44px,5.2vw,84px); --t-100:var(--fs-h1);
  --m:var(--gut); --bar:0px; --head:calc(var(--hdr-h) + var(--hdr-top) * 2); --cut:16px;
}
@media (max-width:760px){:root{--hdr-h:60px;--hdr-top:8px;--nav-pad:8px;--nav-ctl:44px;--fs-body:16px}}

/* ---------- Fields (final design) ---------- */
/* One light editorial field carries the whole site: page #F7F7F5, text #111111, secondary text #626262, rules
   #D9D9D6, surfaces #FFFFFF. There are no grey, graphite or night sections any more; the build refuses the old
   classes (t-grey, t-white, t-night, t-graphite) so the dark theme cannot return unnoticed (_src/build.mjs).
   The only dark field is .t-media (#111111): a surface that actually shows media with type on it, for example the
   home hero once a video is set (assets/js/media.js adds .is-dark), the film strip text and the lightbox. */
:root,.t-paper,.ft,.hx,.film,.live,.phero,.px,.mg,.srch,.reel,.shw,.close{
  --c-bg:#F7F7F5; --c-s1:#FFFFFF; --c-s2:#FFFFFF; --c-s3:#EFEFEC; --c-ph:#EEEEEB;
  --c-line:#E6E6E3; --c-line-2:#D9D9D6; --c-line-3:#A9A9A5; --c-hi:rgba(17,17,17,.04);
  --c-tx:#111111; --c-tx-2:#626262; --c-tx-3:#626262;
  --c-cta:#111111; --c-cta-tx:#FFFFFF; --c-cta-h:#000000;
  --c-acc:#111111; --c-acc-2:#000000;
  --c-dev:#8A4A17;
  --monolith:#111111; --ascend:#111111; --pulse:#111111;
  --glass:rgba(247,247,245,.72); --glass-2:rgba(247,247,245,.86); --glass-line:rgba(17,17,17,.1);
  color-scheme:light;
}
/* Media field: dark only where media is actually on screen. */
.t-media,.lightbox,.hx.is-dark,.film__f.is-dark{
  --c-bg:#111111; --c-s1:#1A1A1A; --c-s2:#222222; --c-s3:#2B2B2B; --c-ph:#1A1A1A;
  --c-line:rgba(255,255,255,.12); --c-line-2:rgba(255,255,255,.18); --c-line-3:rgba(255,255,255,.4); --c-hi:rgba(255,255,255,.06);
  --c-tx:#FFFFFF; --c-tx-2:rgba(255,255,255,.8); --c-tx-3:rgba(255,255,255,.72);
  --c-cta:#FFFFFF; --c-cta-tx:#111111; --c-cta-h:#F7F7F5;
  --c-acc:#FFFFFF; --c-acc-2:#FFFFFF;
  --c-dev:#E0A060;
  --monolith:#FFFFFF; --ascend:#FFFFFF; --pulse:#FFFFFF;
  color-scheme:dark;
}
/* A bright video can keep dark type: 'scrim: light' in assets/media.js (the hero then gets .is-bright). */
.hx.is-bright{--c-tx:#111111;--c-tx-2:#3A3A3A;--c-tx-3:#3A3A3A;--c-line-2:rgba(17,17,17,.24)}
/* Derived names, recomputed inside every field (a custom property that refers to another resolves where it is declared). */
:root,.t-paper,.ft,.hx,.film,.live,.phero,.px,.mg,.srch,.reel,.shw,.close,.t-media,.lightbox,.hx.is-dark,.hx.is-bright,.film__f.is-dark{
  --bg:var(--c-bg); --bg-2:var(--c-s1); --fg:var(--c-tx); --fg-2:var(--c-tx-2); --fg-3:var(--c-tx-3); --line:var(--c-line-2); --sig:var(--c-acc);
  --grey:var(--c-s1); --grey-2:var(--c-s2);
  --ink:var(--c-tx); --mute:var(--c-tx-2); --mute-2:var(--c-tx-3); --label:var(--c-tx-3);
  --rule:var(--c-line-2); --rule-d:var(--c-line-2); --pill:var(--c-line-3);
  --iris:var(--c-acc); --iris-deep:var(--c-acc);
  --amber:var(--c-dev-dot); --amber-deep:#8A4A17; --amber-panel:#F3E3CF;
  --monolith-deep:#262626; --monolith-panel:#EFEFEC; --ascend-deep:#262626; --ascend-panel:#EFEFEC; --pulse-deep:#262626; --pulse-panel:#EFEFEC;
}
.t-paper,.t-media{background:var(--c-bg);color:var(--c-tx)}

/* Older field classes (concept interfaces). .f-paper is the light panel the step demonstrations are drawn for. */
.f-white,.f-grey{--bg:#FFFFFF;--bg-2:#F7F7F5;--fg:#111111;--fg-2:#626262;--fg-3:#626262;--line:#D9D9D6;--sig:#111111;color-scheme:light;background:var(--bg);color:var(--fg)}
.f-grey{--bg:#F7F7F5}
.f-dark,.f-black{--bg:#0B0C0E;--bg-2:#131417;--fg:#F2F1ED;--fg-2:#A9A9A4;--fg-3:#908F8A;--line:rgba(255,255,255,.14);--sig:#F2F1ED;color-scheme:dark;background:var(--bg);color:var(--fg)}
.f-paper{--bg:#FFFFFF;--bg-2:#F7F7F5;--fg:#111111;--fg-2:#4E4E4E;--fg-3:#626262;--line:#D9D9D6;--sig:#8A4A17;color-scheme:light;background:var(--bg);color:var(--fg)}
/* Dark component fields also set their own text colour. */
.hx,.film,.live,.phero,.lightbox,.px,.mg,.srch,.reel,.shw,.close,.ft{background-color:var(--c-bg);color:var(--c-tx)}
