@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Work+Sans:wght@400;500;600;700&display=swap');

/* =========================================================
   T-Control · base styles (DESIGN-SYSTEM.md)
   Type: Bebas Neue for headings, Work Sans for everything else.
   Colour: greys and black, on the whole page.
========================================================= */

:root {
  /* Greys and black (2026-09-25, on request: instead of Minimal Night) */
  --tc-white: #FAFAFA;        /* page background */
  --tc-grey-light: #D4D4D4;   /* lines, borders, quiet fills, big quiet numbers */
  --tc-grey: #6B6B6B;         /* secondary text (5.1:1 on the white) */
  --tc-graphite: #3A3A3A;     /* accents: labels, numbers, hover */
  --tc-black: #0A0A0A;        /* headings, body text, dark blocks, main buttons */

  /* derived, never new hues */
  --tc-surface: #FFFFFF;                                                    /* cards on the page background */
  --tc-soft: color-mix(in srgb, var(--tc-grey-light) 26%, var(--tc-white));  /* alternate section background */
  --tc-line: color-mix(in srgb, var(--tc-grey-light) 70%, var(--tc-white));  /* hairlines */
  --tc-black-hover: color-mix(in srgb, var(--tc-black) 80%, var(--tc-graphite));

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --tc-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--tc-white); color: var(--tc-black); font-family: var(--font-body); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; } /* buttons don't inherit the page font by default */

.eyebrow { margin: 0 0 14px; color: var(--tc-graphite); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* Bebas Neue is capitals only and narrow: it wants tight leading and a
   touch of tracking, never negative. */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: .95; letter-spacing: .01em; color: var(--tc-black); }
h1 { max-width: 760px; font-size: clamp(3.4rem, 7vw, 7.4rem); }
h2 { max-width: 760px; font-size: clamp(2.6rem, 4.6vw, 4.8rem); }
h3 { font-size: 1.7rem; letter-spacing: .02em; }
p { color: var(--tc-grey); }

/* Section headers: a label with a short rule, then the title (its second
   part in grey). */
.tc-head { max-width: 1100px; margin-bottom: clamp(40px, 5vw, 72px); }
.tc-head .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tc-head .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--tc-black); }
.tc-head h2 { max-width: none; font-size: clamp(3.2rem, 6vw, 6.6rem); line-height: .9; }
.tc-head h2 span { display: block; color: var(--tc-grey); }

/* Reveal (scripts/reveal.js), as in MIRA: things rise into place from
   below the first time they are seen, so scrolling feels like the page is
   loading as you go down. [data-tc-reveal] rises as one block;
   [data-tc-stagger] makes its children rise one after another (110ms
   apart). Keyframe animations, not transitions, so they never override a
   component's own transitions (the opening cards). Only with JS (.tc-js is
   set in <head>). */
@keyframes tc-rise {
  from { opacity: 0; translate: 0 48px; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
.tc-js [data-tc-reveal]:not(.is-in),
.tc-js [data-tc-stagger]:not(.is-in) > * { opacity: 0; }
.tc-js [data-tc-reveal].is-in { animation: tc-rise 1s var(--tc-ease) both; }
.tc-js [data-tc-stagger].is-in > * { animation: tc-rise 1s var(--tc-ease) both; animation-delay: calc(var(--tc-i, 0) * 110ms); }

/* phones: the same rise without the blur (much cheaper to paint on a
   phone) and a little shorter, so a fast thumb never waits on it */
@keyframes tc-rise-m {
  from { opacity: 0; translate: 0 32px; }
  to { opacity: 1; translate: 0 0; }
}
@media (max-width: 760px) {
  .tc-js [data-tc-reveal].is-in,
  .tc-js [data-tc-stagger].is-in > * { animation-name: tc-rise-m; animation-duration: .8s; }
  .tc-js [data-tc-stagger].is-in > * { animation-delay: calc(min(var(--tc-i, 0), 3) * 90ms); }
}

/* ---------------------------------------------------------
   Skeleton (scripts/skeleton.js): a grey sketch of the menu and the hero
   while the page loads, with a light sweeping across it; it fades out on
   load and then the page makes its entrance. Only with JS.
--------------------------------------------------------- */
.tc-skeleton { display: none; }
.tc-js .tc-skeleton {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: 46% 1fr;
  background: var(--tc-white);
  transition: opacity .6s ease, visibility 0s .6s;
}
.tc-skeleton.is-done { opacity: 0; visibility: hidden; }
.tc-sk {
  border-radius: 10px;
  background: linear-gradient(100deg, var(--tc-soft) 40%, color-mix(in srgb, var(--tc-white) 70%, var(--tc-soft)) 50%, var(--tc-soft) 60%) 0 0 / 250% 100%;
  animation: tc-shimmer 1.4s linear infinite;
}
@keyframes tc-shimmer { to { background-position: -150% 0; } }
.tc-sk--nav { position: absolute; top: 18px; right: 24px; left: 24px; height: 64px; border-radius: 18px; }
.tc-sk-copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 120px clamp(28px, 3.6vw, 60px) 150px; }
.tc-sk--eyebrow { width: 180px; height: 12px; margin-bottom: 8px; }
.tc-sk--title { width: 88%; height: clamp(48px, 5vw, 86px); }
.tc-sk--title.is-short { width: 62%; }
.tc-sk--line { width: 74%; height: 14px; }
.tc-sk--line:first-of-type { margin-top: 18px; }
.tc-sk--line.is-short { width: 52%; }
.tc-sk--buttons { display: flex; gap: 16px; margin-top: 22px; }
.tc-sk--button { width: 190px; height: 52px; border-radius: 14px; }
.tc-sk--button + .tc-sk--button { width: 130px; }
.tc-sk--visual { border-radius: 0; }
.tc-sk--strip { position: absolute; bottom: 0; left: calc(46% - 96px); width: calc(54% * .74 + 96px); height: 112px; border-radius: 0; }
@media (max-width: 760px) {
  .tc-js .tc-skeleton { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .tc-sk--nav { top: 12px; right: 12px; left: 12px; }
  .tc-sk-copy { padding: 124px 22px 40px; }
  .tc-sk--title { width: 100%; }
  .tc-sk--strip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tc-sk { animation: none; } }

/* the menu waits for the skeleton, then fades in */
.tc-js .tc-nav { transition-property: top, background-color, box-shadow, opacity, translate; }
.tc-js:not(.tc-ready) .tc-nav { opacity: 0; translate: 0 -12px; }
.tc-js.tc-ready .tc-nav { opacity: 1; translate: 0 0; transition-duration: .4s, .3s, .3s, .8s, .8s; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--tc-black); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
