/* ==========================================================================
   EMILITEK SOFTWARE — software.emilitek.com
   css/site.css  ·  v2.0  ·  2026-09-09
   One family (Onest) + mono labels. Red is a light source, never a fill.
   The device is the red full stop. Motion is native scroll-driven, no hijacking.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg-0: #090C12;  --bg-1: #0F131B;  --bg-2: #161B25;  --bg-3: #1F2531;
  --on-dark: #F4F6FA; --on-dark-2: #AAB2C0; --on-dark-3: #6F7886;
  --lt-0: #F3F5F8;  --lt-1: #E9ECF2;  --lt-2: #DDE2EA;
  --ink: #0C1016;   --ink-2: #2C3340;  --ink-3: #626B7A;
  --line-lt: #D6DBE4; --line-dk: rgba(255,255,255,0.08);
  --red: #FF0000;   --red-glow: rgba(255,0,0,0.55); --red-ink: #C40000;
  --blue-glow: rgba(64,112,255,0.35);

  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-xs:   clamp(0.70rem, 0.68rem + 0.10vw, 0.76rem);
  --t-sm:   clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --t-base: clamp(1.05rem, 1.00rem + 0.25vw, 1.15rem);
  --t-md:   clamp(1.20rem, 1.10rem + 0.50vw, 1.45rem);
  --t-lg:   clamp(1.45rem, 1.20rem + 1.20vw, 2.10rem);
  --t-xl:   clamp(2.00rem, 1.50rem + 2.50vw, 3.60rem);
  --t-2xl:  clamp(2.75rem, 1.70rem + 4.60vw, 5.25rem);

  --measure: 64ch; --gutter: clamp(1.25rem, 5vw, 4.5rem); --wrap: 1200px;
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4.5rem; --s-7: 6rem; --s-8: 8rem;
  --section: clamp(5rem, 11vw, 9.5rem);
  --r: 10px; --r-lg: 16px;
  --ease: cubic-bezier(.22,.61,.36,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: 700ms;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip;
  background: var(--lt-0); color: var(--ink);
  font-family: var(--font); font-size: var(--t-base); line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
p { margin: 0 0 var(--s-3); max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--red); color: #fff; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* THE DEVICE: the red full stop */
.dot { color: var(--red); }

/* eyebrow */
.eyebrow {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-ink); display: inline-block; margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 1.6em; height: 1.5px; margin-right: .7em; background: currentColor; }
.dark .eyebrow { color: var(--red); }

/* ---------- 3. SURFACES: dark with light in it, light with depth ---------- */
.dark { position: relative; background: var(--bg-0); color: var(--on-dark); isolation: isolate; }
.dark p { color: var(--on-dark-2); }
.dark::before {                       /* red glow top-right, blue counter-glow bottom-left */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 55% at var(--rx, 88%) var(--ry, 8%), var(--red-glow), transparent 62%),
    radial-gradient(55% 45% at var(--bx, 6%) var(--by, 96%), var(--blue-glow), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
  opacity: .9;
}
[data-glow-follow]::before { will-change: background; }
.dark::after {                        /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.light { position: relative; background: var(--lt-0); }
.light::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(255,0,0,.06), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(64,112,255,.08), transparent 60%);
}
.light > * { position: relative; }
.light-2 { background: var(--lt-1); }

/* ---------- 4. SCROLL PROGRESS (the red signal line) ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--red);
  transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--red-glow);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 5. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,12,18,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dk);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.is-light { background: rgba(243,245,248,.78); border-bottom-color: var(--line-lt); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: var(--s-4); }
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 2.1rem; width: auto; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links a {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-2); padding: .75rem 0; position: relative; transition: color 200ms var(--ease);
}
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: .4rem; height: 1.5px; width: 0; background: var(--red); transition: width 280ms var(--ease-out); }
.nav__links a:hover { color: var(--on-dark); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav.is-light .nav__links a { color: var(--ink-3); }
.nav.is-light .nav__links a:hover, .nav.is-light .nav__links a.is-active { color: var(--ink); }
.nav .nav__cta { display: none; }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-dk); color: var(--on-dark); border-radius: var(--r);
  padding: .5rem .8rem; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; min-height: 44px;
}
.nav.is-light .nav__toggle { color: var(--ink); border-color: var(--line-lt); }
@media (max-width: 767px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: var(--s-2) var(--gutter) var(--s-4); background: var(--bg-0); border-bottom: 1px solid var(--line-dk); display: none; }
  .nav.is-light .nav__links { background: var(--lt-0); border-bottom-color: var(--line-lt); }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: .95rem 0; font-size: var(--t-sm); border-bottom: 1px solid var(--line-dk); }
  .nav.is-light .nav__links a { border-bottom-color: var(--line-lt); }
  .nav__links a::after { display: none; }
}
@media (min-width: 1024px) { .nav .nav__cta { display: inline-flex; } }

/* ---------- 6. SECTION INDEX (desktop) ---------- */
.index {
  position: fixed; left: clamp(.75rem, 1.5vw, 1.5rem); top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: .9rem;
}
@media (min-width: 1360px) { .index { display: flex; } }
.index a {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; color: var(--ink-3); transition: color 200ms var(--ease);
}
.index a::before { content: ""; width: 1.2rem; height: 1.5px; background: currentColor; transition: width 260ms var(--ease-out), background 200ms; }
.index a span { opacity: 0; transform: translateX(-4px); transition: opacity 200ms, transform 200ms var(--ease-out); text-transform: uppercase; }
.index a:hover span, .index a.is-active span { opacity: 1; transform: none; }
.index a.is-active { color: var(--red); }
.index a.is-active::before { width: 2.2rem; }
.index.on-dark a { color: var(--on-dark-3); }
.index.on-dark a.is-active { color: var(--red); }

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 50px; padding: .9rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--mono); font-size: var(--t-sm); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: var(--red); border-color: var(--red); box-shadow: 0 10px 30px -10px var(--red-glow); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-lt); }
.btn--ghost:hover { border-color: var(--ink); }
.dark .btn--primary { background: var(--on-dark); color: var(--bg-0); border-color: var(--on-dark); }
.dark .btn--primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.dark .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.22); }
.dark .btn--ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,.05); }
.btn .arrow { transition: transform 220ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 8. SECTIONS & HEADINGS ---------- */
.section { padding-block: var(--section); }
.section__head { margin-bottom: var(--s-6); }
.section__head h2 { font-size: var(--t-xl); max-width: 20ch; }
.section__head p { font-size: var(--t-md); color: var(--ink-3); margin-top: var(--s-3); max-width: 50ch; }
.dark .section__head p { color: var(--on-dark-2); }

/* heading wipe: masked container, text rises out of it */
.wipe { display: block; overflow: hidden; }
.wipe > span { display: block; }

/* ---------- 9. HERO ---------- */
.hero { position: relative; overflow: hidden; min-height: clamp(600px, 96vh, 900px); display: grid; align-items: end; padding-block: var(--s-8) var(--s-7); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.8) contrast(1.05); transition: opacity 1.6s var(--ease); }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2.2s var(--ease); pointer-events: none; }
.hero--field .hero__video { opacity: 0; }
.hero--field .hero__field { opacity: 1; }
.hero__veil { transition: opacity 2s var(--ease); }
.hero--field .hero__veil {          /* the field is dark-native: ease the veil off everywhere except the headline's third */
  background:
    linear-gradient(90deg, rgba(9,12,18,.92) 0%, rgba(9,12,18,.62) 30%, rgba(9,12,18,.10) 58%, rgba(9,12,18,.18) 100%),
    linear-gradient(180deg, rgba(9,12,18,.25) 0%, transparent 30%, rgba(9,12,18,.72) 100%);
}
.hero__replay {
  position: absolute; left: var(--gutter); bottom: var(--s-4); z-index: 2;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); color: var(--on-dark-3); border-radius: 999px;
  padding: .55rem 1rem; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; min-height: 40px;
  opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity 600ms var(--ease), transform 600ms var(--ease-out), color 200ms, border-color 200ms;
}
.hero--field .hero__replay { opacity: 1; pointer-events: auto; transform: none; }
.hero__replay:hover { color: var(--on-dark); border-color: rgba(255,255,255,.3); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,12,18,.96) 0%, rgba(9,12,18,.82) 34%, rgba(9,12,18,.35) 70%, rgba(9,12,18,.55) 100%),
    linear-gradient(180deg, rgba(9,12,18,.35) 0%, transparent 30%, rgba(9,12,18,.9) 100%);
}
.hero__grid {
  position: absolute; inset: -10% 0 0 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 65% 45%, #000 15%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 65% 45%, #000 15%, transparent 75%);
}
.hero__inner { position: relative; }
.hero h1 { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.045em; line-height: .94; max-width: 24ch; }
.hero h1 .wipe > span { animation: riseIn 900ms var(--ease-out) both; }
.hero h1 .wipe:nth-child(2) > span { animation-delay: 110ms; }
.hero h1 .wipe:nth-child(3) > span { animation-delay: 220ms; }
.hero__sub { font-size: var(--t-md); color: var(--on-dark-2); max-width: 44ch; margin-top: var(--s-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.hero__meta { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.hero__meta span::before { content: "— "; color: var(--red); }
.hero__sub, .hero__cta, .hero__meta { animation: fadeUp 900ms var(--ease-out) both; }
.hero__sub { animation-delay: 380ms; } .hero__cta { animation-delay: 480ms; } .hero__meta { animation-delay: 580ms; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: var(--s-4); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); display: none; align-items: center; gap: .6rem; }
@media (min-width: 900px) { .hero__scroll { display: inline-flex; } }
.hero__scroll::after { content: ""; width: 1.5px; height: 2.4rem; background: linear-gradient(var(--red), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
/* parallax on scroll, native */
@supports (animation-timeline: scroll()) {
  .hero__media { animation: heroDrift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .hero__inner { animation: heroFade linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
}
@keyframes heroDrift { to { transform: translateY(18%) scale(1.06); } }
@keyframes heroFade { to { opacity: 0; transform: translateY(-6%); } }

/* ---------- 10. MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dk); padding-block: .9rem; background: var(--bg-1); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-3); white-space: nowrap; }
.marquee span::before { content: "✦"; color: var(--red); margin-right: 3rem; font-size: .7em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 11. SERVICES ---------- */
.services { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .services { grid-template-columns: 1fr 1fr; } }
.service {
  position: relative; padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: var(--r-lg);
  background: linear-gradient(160deg, #fff, var(--lt-1)); border: 1px solid var(--line-lt);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease), border-color 320ms;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(12,16,22,.35); border-color: var(--lt-2); }
.service__num { font-family: var(--mono); font-size: var(--t-xs); color: var(--red-ink); letter-spacing: .14em; }
.service h3 { font-size: var(--t-lg); margin: var(--s-2) 0; max-width: 18ch; }
.service p { color: var(--ink-2); margin-bottom: 0; }
.service ul { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: .45rem; }
.service li { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; padding: .32rem .7rem; border: 1px solid var(--line-lt); border-radius: 999px; color: var(--ink-3); background: #fff; }
.service--emphasis {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-0)); border-color: var(--bg-3); color: var(--on-dark); overflow: hidden; isolation: isolate;
}
.service--emphasis::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 100% 0%, var(--red-glow), transparent 65%); opacity: .8; }
.service--emphasis .service__num { color: var(--red); }
.service--emphasis p { color: var(--on-dark-2); }
.service--emphasis li { border-color: rgba(255,255,255,.14); color: var(--on-dark-2); background: rgba(255,255,255,.04); }
.service--emphasis:hover { box-shadow: 0 40px 80px -30px var(--red-glow); border-color: rgba(255,0,0,.35); }

/* ---------- 12. PRODUCTS (spotlight follows cursor) ---------- */
.products { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .products { grid-template-columns: repeat(2, 1fr); } }
.product {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: var(--s-3); isolation: isolate;
  padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line-dk);
  transition: transform 320ms var(--ease-out), border-color 320ms, box-shadow 320ms;
}
.product::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 320ms;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.10), transparent 60%);
}
.product:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.18); box-shadow: 0 40px 70px -35px rgba(0,0,0,.8); }
.product:hover::before { opacity: 1; }
/* product card art (2026-09-10): each product's own motif, scattered from the top-left and faded at an angle
   towards the title, so the cards carry a little colour without competing with the words. See tools/build-card-art.py */
.product { overflow: hidden; }
.product__art {
  position: absolute; z-index: -1; top: -6px; left: -10px; width: 118%; max-width: none; height: auto; pointer-events: none;
  opacity: .55; transition: opacity 420ms var(--ease-out), transform 900ms var(--ease-out);
  -webkit-mask-image: linear-gradient(152deg, #000 0%, rgba(0,0,0,.72) 28%, rgba(0,0,0,.22) 46%, transparent 60%);
          mask-image: linear-gradient(152deg, #000 0%, rgba(0,0,0,.72) 28%, rgba(0,0,0,.22) 46%, transparent 60%);
}
.product__art[src*="ccs"] { opacity: .7; }
.product:hover .product__art { opacity: .72; transform: translate(4px, 3px); }
.product__status { position: relative; background: rgba(15,19,27,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }   /* keeps the pill crisp over the card art */
@media (prefers-reduced-motion: reduce) { .product__art { transition: none; } .product:hover .product__art { transform: none; } }
.product__status { align-self: flex-start; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; padding: .36rem .75rem; border-radius: 999px; border: 1px solid; display: inline-flex; align-items: center; gap: .5em; }
.product__status::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.product__status--live { color: #7CE3A6; border-color: rgba(124,227,166,.35); }
.product__status--new { color: #5BC8FF; border-color: rgba(91,200,255,.4); }
.product__status--build { color: #F2C66D; border-color: rgba(242,198,109,.35); }
.product__status--pipeline { color: var(--on-dark-2); border-color: var(--line-dk); }
.product__mark { width: 3.4rem; height: 3.4rem; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.product__mark--id52 { background: #0B0F14; color: #5BC8FF; font-family: var(--mono); font-size: .95rem; font-weight: 500; letter-spacing: .02em; border: 1px solid #2A3442; box-shadow: 0 10px 30px -12px rgba(91,200,255,.6); }   /* ID-52 Plus Workstation — palette from the app's live panel */
.product__mark--dop { background: #0B5D45; color: #fff; box-shadow: 0 10px 30px -12px rgba(11,93,69,.9); }
.product__mark--ccs { background: #FFFFFF; box-shadow: 0 10px 30px -12px rgba(127,178,232,.55); }   /* Crystal Care System — brand kit in Crystal-Care-System/references/brand */
.product__mark--ccs img { width: 76%; height: auto; display: block; transform: translateX(3%); }
.product__mark--tax { background: #FFFFFF; box-shadow: 0 10px 30px -12px rgba(127,208,176,.5); }   /* Gecko Tax v2 (nine-box) — brand kit in Crystal-Tax/references/brand */
.product__mark--tax img { width: 82%; height: auto; display: block; }
.product h3 { font-size: var(--t-lg); }
.product p { flex: 1; margin-bottom: 0; }
.product__link { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); display: inline-flex; gap: .5em; align-items: center; }
.product__link .arrow { transition: transform 220ms var(--ease-out); }
.product__link:hover .arrow { transform: translateX(4px); }
.product__link--muted { color: var(--on-dark-3); }

/* ---------- 13. PROCESS (red line draws through the steps) ---------- */
.process-wrap { position: relative; }
.process { position: relative; display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); } }
.process__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-lt); }
.process__line::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--red-glow); will-change: transform; }
/* --p is set from scroll position in js/site.js: 0 as the section enters, 1 as it leaves. Deterministic in every browser. */
@media (max-width: 899px) { .process__line { display: none; } }
.step { position: relative; padding-top: var(--s-4); counter-increment: step; }
@media (max-width: 899px) { .step { padding-left: 3.25rem; padding-top: 0; } }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; color: var(--red-ink);
}
@media (min-width: 900px) { .step::before { top: -1.15rem; background: var(--lt-1); padding-right: .6rem; } }
.step h3 { font-size: var(--t-md); margin-bottom: var(--s-2); }
.step p { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 0; }

/* ---------- 14. ABOUT ---------- */
.creds-group { margin-top: var(--s-4); }
.creds-group h4 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: .9rem; }
.creds { display: grid; gap: .7rem; }
@media (min-width: 640px) { .creds { grid-template-columns: 1fr 1fr; } }
.creds li { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; color: var(--ink-3); padding-left: 1.3em; position: relative; }
.creds li::before { content: ""; position: absolute; left: 0; top: .6em; width: .65em; height: 1.5px; background: var(--red); }

/* ---------- ABOUT · v2.1 (2026-09-10): heading → lanyard ID card → story ---------- */
.about__head h2 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); max-width: 22ch; }
.about__intro { font-size: var(--t-md); color: var(--ink-2); max-width: 46ch; margin-top: var(--s-4); line-height: 1.5; }
.about__story { display: grid; gap: var(--s-2); margin-top: var(--s-7); }
.about__story p { color: var(--ink-2); }
@media (min-width: 900px) { .about__story { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }

/* the stage: the card runs wider than .wrap so it reads as full-screen */
.badge-stage { --strap-h: clamp(150px, 24vh, 230px); --strap-len: var(--strap-h); display: grid; justify-items: center; padding-inline: var(--gutter); margin-top: 3.5rem; }   /* keeps the strap tops clear of the intro line */
.badge { position: relative; width: min(100%, 1320px); padding-top: var(--strap-h); transform-origin: 50% 0; }
@media (min-width: 1360px) { .badge { width: min(100%, 1320px, calc(100vw - 280px)); } }   /* clear the fixed section index */

/* lanyard: two sides of the strap converge on the clip (it reads as "round the neck");
   the clip's loop drops into the slot punched in the card */
.badge__strap {
  position: absolute; z-index: 1; left: 50%; width: 36px; margin-left: -18px;
  top: calc(var(--strap-h) - 58px - var(--strap-len)); height: var(--strap-len); transform-origin: 50% 100%;
  background:
    linear-gradient(90deg, transparent 4px, rgba(255,0,0,.75) 4px 5.5px, transparent 5.5px calc(100% - 5.5px), rgba(255,0,0,.75) calc(100% - 5.5px) calc(100% - 4px), transparent calc(100% - 4px)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #0A0E15, #1B2231 50%, #0A0E15);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%); mask-image: linear-gradient(to bottom, transparent, #000 55%);
  display: grid; place-items: end center; overflow: hidden;
}
.badge__strap span {
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .32em; color: rgba(244,246,250,.72);
  padding-block: 10px;
}
.badge__strap i { font-style: normal; color: var(--red); }
.badge__strap--l { transform: rotate(-7deg); }
.badge__strap--r { transform: rotate(7deg); }
.badge__clip { position: absolute; z-index: 3; left: 50%; width: 48px; height: 92px; margin-left: -24px; top: calc(var(--strap-h) - 66px); filter: drop-shadow(0 3px 3px rgba(12,16,22,.35)); clip-path: inset(-10px -10px 8px -10px); }   /* loop disappears into the slot */

/* the card — a container, so everything inside sizes to the card, not the viewport */
.badge__card {
  container-type: inline-size; position: relative; z-index: 2; overflow: hidden;
  background: #FCFDFE; color: var(--ink); border: 1px solid #DCE2EA; border-radius: clamp(18px, 2.2vw, 30px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 60px 120px -50px rgba(12,16,22,.5), 0 22px 44px -24px rgba(12,16,22,.28);
  transform: perspective(1800px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
}
.badge__card::after {                /* laminate glare — slides with the cursor (JS sets --gx) */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; border-radius: inherit;
  background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,.26) 47%, rgba(255,255,255,.08) 52%, transparent 60%);
  background-size: 260% 100%; background-position: var(--gx, 85%) 0; mix-blend-mode: screen;
}

.badge__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(26px, 3.4cqi, 40px) clamp(20px, 3cqi, 40px) clamp(14px, 1.8cqi, 22px); border-bottom: 1px solid var(--line-lt); }
.badge__logo { width: clamp(112px, 14cqi, 190px); height: auto; }
.badge__slot { position: absolute; left: 50%; top: 14px; width: 64px; height: 12px; margin-left: -32px; border-radius: 999px; background: linear-gradient(180deg, #B9C1CD, #DDE2EA 70%); box-shadow: inset 0 2px 3px rgba(12,16,22,.55), inset 0 0 0 1px rgba(12,16,22,.12), 0 1px 0 rgba(255,255,255,.95); }
.badge__kind { margin: 0; display: flex; align-items: baseline; gap: .8em; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.badge__kind b { font-weight: 500; color: var(--ink); letter-spacing: .1em; }
.badge__kind-short { display: none; }
@container (max-width: 560px) { .badge__kind-long { display: none; } .badge__kind-short { display: inline; } }

/* photo side: the whole photograph, never cropped. If the ID column runs taller than the photo,
   the cell fills with the backdrop's own grey (sampled from the top row of the original) and the photo sits on the bottom edge. */
.badge__main { display: grid; }
@container (min-width: 760px) { .badge__main { grid-template-columns: 1.18fr 1fr; } }
.badge__photo {
  margin: 0; position: relative; display: flex; align-items: flex-end;
  background: linear-gradient(90deg, #6D6D6B, #7E807D 10%, #939391 25%, #A3A3A1 50%, #A1A3A2 75%, #919392 90%, #898989);
}
.badge__photo img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%); mask-image: linear-gradient(to bottom, transparent, #000 9%); }
.badge__seal {
  position: absolute; top: 5%; right: 3.5%; width: clamp(62px, 9cqi, 118px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.85), transparent 45%),
    conic-gradient(from var(--sheen, 0deg), #FFD9EC, #D7EEFF, #DDFBE0, #FFF2C6, #E6DAFF, #FFD9EC);
  box-shadow: 0 2px 6px rgba(12,16,22,.25), inset 0 0 0 1px rgba(255,255,255,.6); opacity: .92;
}
.badge__seal svg { width: 100%; height: 100%; }
.badge__seal-text { font-family: var(--mono); font-size: 9.5px; font-weight: 500; fill: rgba(12,16,22,.62); }

/* ID side: fine guilloche linework behind the details, as on a printed card */
.badge__id {
  display: flex; flex-direction: column; justify-content: center; gap: .2rem;
  padding: clamp(22px, 3.4cqi, 48px) clamp(20px, 3.4cqi, 48px);
  background-color: #FCFDFE;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='36'><path d='M0 18 Q30 2 60 18 T120 18 T180 18 T240 18' fill='none' stroke='%234070FF' stroke-opacity='.09' stroke-width='1'/><path d='M0 18 Q30 34 60 18 T120 18 T180 18 T240 18' fill='none' stroke='%23FF0000' stroke-opacity='.05' stroke-width='1'/></svg>");
  background-size: 240px 36px;
}
.badge__label { margin: 0 0 .35rem; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); max-width: none; }
.badge__name { font-size: clamp(1.9rem, 5.6cqi, 3.6rem); line-height: .98; letter-spacing: -0.04em; font-weight: 700; color: var(--ink); }
@container (min-width: 760px) { .badge__name { font-size: clamp(1.9rem, 4.4cqi, 3.6rem); } }
.badge__role { margin: .7rem 0 0; font-size: var(--t-md); font-weight: 500; color: var(--ink-2); max-width: none; }
.badge__tagline { margin: .3rem 0 0; font-size: var(--t-sm); font-weight: 600; font-style: italic; letter-spacing: -0.01em; color: var(--ink); max-width: none; }
.badge__org { margin: .3rem 0 0; font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); max-width: none; }
.badge__meta { margin: clamp(1.1rem, 2.4cqi, 2rem) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; padding-top: clamp(1rem, 2cqi, 1.5rem); border-top: 1px solid var(--line-lt); }
.badge__meta dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.badge__meta dd { margin: 0; font-weight: 600; font-size: clamp(.9rem, 1.4cqi, 1.1rem); color: var(--ink); line-height: 1.3; }

/* credentials: the expanded part of the card */
.badge__creds { padding: clamp(20px, 2.2cqi, 30px) clamp(20px, 3.4cqi, 48px) clamp(10px, 1.2cqi, 18px); border-top: 1px solid var(--line-lt); background: #F6F8FB; }
.badge__creds-grid { display: grid; gap: 1.6rem 2rem; margin-top: 1.1rem; }
@container (min-width: 620px) { .badge__creds-grid { grid-template-columns: 1fr 1fr; } .badge .creds-group { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; } }
@container (min-width: 1040px) { .badge__creds-grid { grid-template-columns: 1.2fr 1.1fr .6fr 1.3fr; } }
.badge .creds-group h4.creds-subhead { margin-top: 1.5rem; }
.badge .creds-group { margin: 0; }
.badge .creds-group h4 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 500; margin-bottom: .8rem; line-height: 1.4; }
.badge .creds { grid-template-columns: 1fr; gap: .55rem; align-content: start; }
.badge .creds li::before { height: 2px; top: .6em; }   /* 1.5px anti-aliases to grey on some rows */

/* foot strip: bars, address, return line */
.badge__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; padding: 14px clamp(20px, 3.4cqi, 48px); background: var(--bg-1); color: var(--on-dark-3); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; }
.badge__barcode { width: 150px; height: 28px; color: #E9EDF3; flex: none; }
.badge__url { color: var(--on-dark-2); }
.badge__return { margin-left: auto; color: #8A93A2; }
@container (max-width: 760px) { .badge__return { margin-left: 0; flex-basis: 100%; } }

/* motion: the card drops in on its lanyard and swings to rest, pivoting at the top of the strap.
   Native: driven by scroll (scrolling back up swings it again). Fallback: one timed swing when it enters. */
@keyframes badgeSwing {
  0%   { opacity: 0; transform: translateY(-48px) rotate(-4.5deg); }
  28%  { opacity: 1; }
  52%  { transform: translateY(0) rotate(2deg); }
  70%  { transform: rotate(-.9deg); }
  85%  { transform: rotate(.35deg); }
  100% { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  .badge { animation: badgeSwing linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
}
@supports not (animation-timeline: view()) {
  .badge { opacity: 0; }
  .badge.in-view { animation: badgeSwing 2s cubic-bezier(.25,.7,.3,1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .badge { opacity: 1 !important; transform: none !important; }
  .badge__card { transform: none !important; }
  .badge__card::after { display: none; }
}

/* ---------- 15. CONTACT ---------- */
.contact { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: var(--s-7); } }
.contact__aside h2 { font-size: var(--t-xl); }
.contact__aside p { margin-top: var(--s-3); }
.contact__direct { margin-top: var(--s-5); display: grid; gap: var(--s-2); font-family: var(--mono); font-size: var(--t-sm); }
.contact__direct a { color: var(--on-dark); border-bottom: 1px solid var(--on-dark-3); transition: border-color 200ms; }
.contact__direct a:hover { border-color: var(--red); }
.contact__direct span { color: var(--on-dark-3); display: block; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem; }
.form { display: grid; gap: var(--s-3); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: rgba(255,255,255,.03); border: 1px solid var(--line-dk); backdrop-filter: blur(6px); }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: .8rem 1rem; background: var(--bg-1); color: var(--on-dark);
  border: 1px solid var(--line-dk); border-radius: var(--r); font: inherit; font-size: var(--t-base);
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23AAB2C0' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field select option { background: var(--bg-1); color: var(--on-dark); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(255,0,0,.55); background: var(--bg-2); box-shadow: 0 0 0 3px rgba(255,0,0,.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-3); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.form__note { font-size: var(--t-xs); color: var(--on-dark-3); font-family: var(--mono); letter-spacing: .04em; }
.form__status { font-family: var(--mono); font-size: var(--t-sm); min-height: 1.5em; margin: 0; }
.form__status.is-ok { color: #7CE3A6; } .form__status.is-err { color: #FF7A7A; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- 16. FOOTER ---------- */
.footer { color: var(--on-dark-2); border-top: 1px solid var(--line-dk); padding-block: var(--s-7) var(--s-5); }
.footer__grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand img { width: 190px; height: auto; }
.footer__brand p { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--on-dark-3); max-width: 34ch; }
.footer h4 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: var(--s-3); font-weight: 500; }
.footer ul { display: grid; gap: .65rem; }
.footer li a { color: var(--on-dark-2); font-size: var(--t-sm); transition: color 200ms; }
.footer li a:hover { color: var(--on-dark); }
.footer__parent {
  margin-top: var(--s-4); padding: .85rem 1.1rem 1rem; border: 1px solid var(--line-dk); border-radius: var(--r);
  display: inline-block; background: rgba(255,255,255,.02); transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.footer__parent:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.footer__parent span { display: block; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: .55rem; }
/* size by WIDTH — the wordmark is ~3.6:1, so height-based sizing makes it tiny. Matches the Document Organiser Pro footer treatment. */
.footer__parent img { width: 156px; height: auto; display: block; }
.footer__bar { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line-dk); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .04em; color: var(--on-dark-3); }
.footer__bar a { color: var(--on-dark-2); } .footer__bar a:hover { color: var(--on-dark); }

/* ---------- 17. SCROLL-DRIVEN REVEALS ---------- */
@keyframes riseIn { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes scaleUp { from { opacity: 0; transform: translateY(36px) scale(.965); } to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  .reveal { animation: fadeUp linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
  .reveal-card { animation: scaleUp linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .wipe > span { animation: riseIn linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  .hero h1 .wipe > span { animation: riseIn 900ms var(--ease-out) both; animation-timeline: auto; }
}
@supports not (animation-timeline: view()) {
  .reveal, .reveal-card { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
  .reveal-card { transform: translateY(36px) scale(.965); }
  .reveal.in-view, .reveal-card.in-view { opacity: 1; transform: none; }
  .wipe > span { transform: translateY(110%); transition: transform 900ms var(--ease-out); }
  .wipe.in-view > span, .hero .wipe > span { transform: none; }
}
[data-delay="1"] { animation-delay: 80ms; transition-delay: 80ms; }
[data-delay="2"] { animation-delay: 160ms; transition-delay: 160ms; }
[data-delay="3"] { animation-delay: 240ms; transition-delay: 240ms; }
[data-delay="4"] { animation-delay: 320ms; transition-delay: 320ms; }

/* ---------- 18. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-card, .wipe > span { opacity: 1 !important; transform: none !important; }
  .progress { display: none; }
  .hero__video { display: none; }
  .process__line::after { transform: scaleX(1) !important; }
  .hero__field { opacity: 1 !important; }
  .hero__replay { display: none; }
  .marquee__track { animation: none !important; }
}

/* ---------- 19. LEGAL PAGES ---------- */
.legal { padding-block: var(--s-7); }
.legal__head { margin-bottom: var(--s-6); }
.legal__head h1 { font-size: var(--t-xl); }
.legal__meta { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: var(--s-3); }
.policy-body { max-width: var(--measure); }
.policy-body h2 { font-size: var(--t-md); margin: var(--s-5) 0 var(--s-2); }
.policy-body p, .policy-body li { color: var(--ink-2); }
.policy-body ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--s-3); }
.policy-body li { margin-bottom: .5rem; }
.policy-body a { color: var(--red-ink); border-bottom: 1px solid currentColor; }
