﻿/* ==========================================================================
   BIRDEI INFOTECH — DESIGN SYSTEM
   --------------------------------------------------------------------------
   Art direction: "The flight path."

   The brand frame is not a widget in the page — it is the scene. A full-bleed
   background field carries the chapter, and the mark is composed inside it as
   a large media plate that pushes in and lifts away as the page moves. Each
   chapter announces itself with a giant typographic word and a mono index;
   a hairline flight path (the mark's own pulse motif) runs the length of the
   document with a node per chapter; oversized ghost numerals act as
   wayfinding; one ink chapter breaks the white rhythm.

   Palette: white-first. Ink text, Birdei red as the accent, Birdei green as
   the secondary, pale neutral surfaces for depth.

   1. Primitive tokens   2. Semantic tokens   3. Component tokens
   ========================================================================== */

:root {
  /* --- 1. PRIMITIVES --------------------------------------------------- */
  --primitive-white: #ffffff;
  --primitive-stage: #f4f5f0;
  --primitive-paper: #fafaf8;
  --primitive-paper-warm: #f1f2ec;
  --primitive-paper-green: #f3f9e0;
  --primitive-ink: #171816;
  --primitive-ink-soft: #5b615b;
  --primitive-ink-muted: #8a9089;
  --primitive-line: #e3e6df;
  --primitive-line-strong: #ccd2c7;
  --primitive-red: #d9252a;
  --primitive-red-deep: #a81720;
  --primitive-red-tint: #fdecec;
  --primitive-green: #a8d900;
  --primitive-green-deep: #4f6d00;
  --primitive-teal: #0b5d64;
  --primitive-amber: #e6b400;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(23, 24, 22, .05);
  --shadow-sm: 0 6px 16px rgba(23, 24, 22, .06);
  --shadow-md: 0 18px 40px rgba(23, 24, 22, .08);
  --shadow-lg: 0 34px 70px rgba(23, 24, 22, .12);
  --shadow-brand: 0 12px 26px rgba(217, 37, 42, .2);

  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 340ms;
  --duration-reveal: 680ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --ease-standard: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-hero: clamp(2.4rem, 6.2vw, 5.4rem);  --text-display: clamp(1.95rem, 3.3vw, 3.2rem);
  --text-h3: clamp(1.05rem, 1.35vw, 1.3rem);
  --text-lead: 1.08rem;
  --text-body: .96rem;
  --text-small: .87rem;
  --text-micro: .71rem;

  --container: 1280px;
  --gutter: 64px;
  --header-height: 76px;

  /* --- 2. SEMANTIC ---------------------------------------------------- */
  --color-page: var(--primitive-white);
  --color-surface: var(--primitive-paper);
  --color-surface-warm: var(--primitive-paper-warm);
  --color-surface-stage: var(--primitive-stage);
  --color-surface-tint: var(--primitive-paper-green);
  --color-surface-invert: var(--primitive-ink);

  --color-text: var(--primitive-ink);
  --color-text-secondary: var(--primitive-ink-soft);
  --color-text-muted: var(--primitive-ink-muted);
  --color-text-inverse: var(--primitive-white);
  --color-text-inverse-soft: rgba(255, 255, 255, .6);
  --color-text-inverse-muted: rgba(255, 255, 255, .4);

  --color-border: var(--primitive-line);
  --color-border-strong: var(--primitive-line-strong);
  --color-border-invert: rgba(255, 255, 255, .16);
  --color-ghost: rgba(23, 24, 22, .045);

  --color-brand: var(--primitive-red);
  --color-brand-hover: var(--primitive-red-deep);
  --color-brand-soft: var(--primitive-red-tint);
  --color-brand-contrast: var(--primitive-white);

  --color-accent: var(--primitive-green);
  --color-accent-hover: var(--primitive-green-deep);
  --color-accent-soft: var(--primitive-green-tint);

  --color-focus: var(--primitive-red);
  --color-error: #b42318;
  --color-error-soft: #fef3f2;
  --color-success: var(--primitive-green-deep);

  --space-section: 132px;
  --space-section-sm: 84px;
  --space-block: 56px;

  --radius-card: var(--radius-md);
  --radius-control: var(--radius-sm);
  --radius-surface: var(--radius-lg);

  /* --- 3. COMPONENTS -------------------------------------------------- */
  --header-bg: rgba(255, 255, 255, .82);
  --header-bg-scrolled: rgba(255, 255, 255, .96);
  --header-border: transparent;
  --header-border-scrolled: var(--color-border);

  --button-height: 48px;
  --button-height-sm: 42px;
  --button-padding-inline: 22px;
  --button-radius: var(--radius-pill);
  --button-font-size: var(--text-body);
  --button-transition: transform var(--duration-slow) var(--ease-out),
    background-color var(--duration-base) var(--ease-in-out),
    border-color var(--duration-base) var(--ease-in-out),
    color var(--duration-base) var(--ease-in-out),
    box-shadow var(--duration-slow) var(--ease-out);

  --input-padding: 13px 15px;
  --input-border: var(--primitive-line);
  --input-border-hover: var(--primitive-line-strong);
  --input-border-focus: var(--primitive-red);
  --input-radius: var(--radius-sm);
  --input-bg: var(--primitive-white);
  --input-ring: 0 0 0 3px rgba(217, 37, 42, .13);

  --card-bg: var(--primitive-white);
  --card-border: var(--color-border);
  --card-radius: var(--radius-md);
  --card-padding: 32px;

  /* The hero lockup is the company's signature. It is set from the
     transparent master so it rests on the paper with no plate or mask. */
  --hero-lockup-max-width: 100%;
  --hero-lockup-max-width-sm: 420px;
  --hero-row-gap: 44px;

  --video-opacity: .95;

  --ui-surface: #fdfefc;
  --ui-surface-soft: #f4f7f2;
  --ui-border: #e3e8e0;
  --ui-border-strong: #cdd4c8;
  --ui-text: #2b2f28;
  --ui-text-soft: #8a9386;
  --ui-positive: #5c7a00;
}

/* ==========================================================================
   BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-page);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { color: var(--color-text); background: var(--color-accent); }

img, video, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.container { width: min(var(--container), calc(100% - var(--gutter))); margin-inline: auto; }

.icon { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 18px;
  color: var(--color-text-inverse);
  background: var(--color-text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--duration-base) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Shared instruments
   -------------------------------------------------------------------------- */

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.mono-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--color-brand);
  vertical-align: 1px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-block);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.section-label > span { color: var(--color-brand); }
.section-label > i { flex: 1; height: 1px; background: var(--color-border); }
.section-label--invert { color: var(--color-text-inverse-muted); }
.section-label--invert > span { color: var(--color-accent); }
.section-label--invert > i { background: var(--color-border-invert); }

.ghost-num {
  position: absolute;
  bottom: -.14em;
  left: -.06em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(11rem, 19vw, 18rem);
  font-weight: 800;
  line-height: .72;
  letter-spacing: -.06em;
  color: var(--color-ghost);
  pointer-events: none;
  user-select: none;
}

/* Masked line reveal — words rise out of their own line box. */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.word-inner { display: inline-block; will-change: transform; }

h1 { margin-bottom: 0; font-size: var(--text-hero); line-height: .98; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; }
h2 { margin-bottom: 0; font-size: var(--text-display); line-height: 1.06; letter-spacing: -.032em; font-weight: 800; }
h3 { font-size: var(--text-h3); letter-spacing: -.015em; font-weight: 700; }
h1 em, h2 em { color: var(--color-brand); font-style: normal; }

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

.button {
  display: inline-flex;
  min-height: var(--button-height);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 var(--button-padding-inline);
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-size: var(--button-font-size);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: var(--button-transition);
}
.button .icon { font-size: 1.05em; transition: transform var(--duration-slow) var(--ease-out); }
.button:hover .icon { transform: translate(2px, -2px); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.99); }
.button--small { min-height: var(--button-height-sm); padding-inline: 18px; font-size: var(--text-small); }
.button--ink { color: var(--color-text-inverse); background: var(--color-text); }
.button--ink:hover { box-shadow: 0 10px 22px rgba(23, 24, 22, .2); }
.button--brand { color: var(--color-brand-contrast); background: var(--color-brand); }
.button--brand:hover { background: var(--color-brand-hover); box-shadow: var(--shadow-brand); }
.button[aria-busy="true"], .button:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.text-link, .capability-link, .contact-mail, .footer-talk {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-body);
  font-weight: 700;
}
.text-link::after, .capability-link::after, .contact-mail::after, .footer-talk::after {
  position: absolute;
  inset: -12px -10px;
  content: "";
}
.text-link .icon, .capability-link .icon, .contact-mail .icon, .footer-talk .icon { color: var(--color-brand); transition: transform var(--duration-slow) var(--ease-out); }
.text-link .icon { font-size: 1.1em; }
.text-link:hover .icon { transform: translateY(3px); }
.capability-link:hover .icon, .contact-mail:hover .icon, .footer-talk:hover .icon { transform: translate(2px, -2px); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding: 14px 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(10px);
  transition: background-color var(--duration-slow) var(--ease-in-out),
    border-color var(--duration-slow) var(--ease-in-out),
    box-shadow var(--duration-slow) var(--ease-in-out);
}
.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-color: var(--header-border-scrolled);
  box-shadow: 0 6px 24px rgba(23, 24, 22, .04);
}
.header-bar { display: flex; align-items: center; gap: 24px; }
.brand { display: block; width: 150px; height: 50px; flex: 0 0 auto; }
.brand img { width: 100%; height: 100%; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a, .footer-links a {
  position: relative;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-body);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-in-out);
}
.site-nav a::after, .footer-links a::after { position: absolute; inset: -12px -9px; content: ""; }
.site-nav a:hover, .footer-links a:hover { color: var(--color-brand); }
.header-cta { margin-left: 6px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--color-text); transition: transform var(--duration-slow) var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ==========================================================================
   THE SCENE — the brand frame as a fixed, full-bleed background field
   ========================================================================== */

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(62% 48% at 18% 14%, rgba(168, 217, 0, .12), transparent 70%),
    radial-gradient(58% 46% at 86% 84%, rgba(217, 37, 42, .08), transparent 72%),
    linear-gradient(180deg, var(--primitive-white) 0%, var(--primitive-paper) 100%);
}

main { position: relative; z-index: 1; }

/* The flight path — a hairline spine with a node per chapter. */
.flight-path {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  z-index: 2;
  width: 1px;
  background: var(--color-line);
  pointer-events: none;
}
.flight-path-fill {
  position: absolute;
  inset: 0;
  background: var(--color-brand);
  transform: scaleY(0);
  transform-origin: top;
}
.flight-node {
  position: absolute;
  left: -4px;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  background: var(--color-page);
  transition: background-color var(--duration-base) var(--ease-in-out), border-color var(--duration-base) var(--ease-in-out);
}
.flight-node.is-active { border-color: var(--color-brand); background: var(--color-brand); }

/* ==========================================================================
   ACT I — BRAND INTRODUCTION
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-height) + 58px);
  padding-bottom: 34px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: var(--hero-row-gap);
  align-content: center;
}

/* The statement: the hero heading owns the top left of the opening scene. */
.hero-head { grid-column: 1 / 7; grid-row: 1; align-self: start; }

/* The signature: the complete Birdei lockup, set clean on the paper.
   The master is transparent, so it needs no frame and no dissolve mask —
   it reads as the company's own mark rather than a media panel. */
.hero-brand {
  grid-column: 7 / 13;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: 100%;
  max-width: var(--hero-lockup-max-width);
  margin: 0;
}
.hero-lockup {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2797 / 988;
  object-fit: contain;
}
.hero-brand figcaption { margin-top: 16px; color: var(--color-text-muted); text-align: left; }

/* The promise and the way in, along the lower left. */
.hero-meta { grid-column: 1 / 7; grid-row: 2; align-self: end; }
.hero-lede { margin-bottom: 26px; color: var(--color-text-secondary); font-size: var(--text-lead); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* The disciplines, closing the scene at the lower right. */
.hero-descriptor {
  grid-column: 7 / 13;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  max-width: 24ch;
  text-align: right;
  line-height: 1.85;
  color: var(--color-text-muted);
}

/* Highlights strip — source-stated figures, kept honest and quiet. */
.highlight-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr);
  align-items: end;
  gap: 30px;
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
}
.highlight-strip > div { display: flex; flex-direction: column; gap: 6px; }
.highlight-strip strong { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.highlight-strip strong i { color: var(--color-brand); font-style: normal; }
.highlight-note { margin: 0; color: var(--color-text-muted); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; }

.hero-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding-top: 20px;
}
.rail-label, .rail-counter {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.rail-counter { font-size: 1rem; font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; }
.rail-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1;
}
.rail-plus { position: relative; top: -1px; }

/* ==========================================================================
   CHAPTERS — shared editorial frame
   ========================================================================== */

.chapter { position: relative; padding: var(--space-section) 0; }
.chapter-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); gap: clamp(30px, 5vw, 80px); align-items: end; margin-bottom: 64px; }
.chapter-intro h2 { max-width: 16ch; }
.chapter-intro p { max-width: 44ch; color: var(--color-text-secondary); font-size: var(--text-lead); line-height: 1.72; }

/* Act II — capabilities */
.chapter--capabilities { background: var(--color-page); }

/* --- The chapter head: a giant typographic anchor, a count, and an arrow. --- */
.chapter-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: 34px;
}
.chapter-word {
  font-size: clamp(2.6rem, 10.2vw, 9.2rem);
  line-height: .86;
  letter-spacing: -.055em;
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: nowrap;
}
.chapter-count {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.chapter-count .icon { width: .8em; height: .8em; stroke-width: 1.2; }
.chapter-lead {
  max-width: 62ch;
  margin-bottom: 56px;
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.chapter-lead em { color: var(--color-brand); font-style: normal; }
.chapter--approach .chapter-lead { color: var(--color-text-inverse-soft); }
.chapter-descriptor {
  max-width: 34ch;
  margin: -8px 0 30px auto;
  text-align: right;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* --- The capability showcase: large media panels, Lusion-style, with real art --- */
.showcase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.showcase-item { display: flex; flex-direction: column; gap: 20px; grid-column: span 6; }
.showcase-item:nth-child(3) { grid-column: span 6; }
.showcase-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  border-radius: 15px;
  background: var(--primitive-white);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
.showcase-item:hover .showcase-media { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.showcase-media::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 120%, rgba(217, 37, 42, .06), transparent 60%);
  content: "";
  pointer-events: none;
}
.showcase-meta { display: grid; gap: 12px; }
.showcase-spec {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-text-muted) !important;
}
.showcase-meta h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); font-weight: 500; letter-spacing: -.025em; }
.showcase-meta p { max-width: 46ch; color: var(--color-text-secondary); line-height: 1.66; }
.showcase-meta .capability-link { margin-top: 4px; justify-self: start; font-size: var(--text-small); font-weight: 800; }

/* Product: a browser window and a phone, drawn in CSS. */
.mock-browser {
  position: relative;
  z-index: 1;
  width: 64%;
  border: 1px solid var(--color-line-strong);
  border-radius: 10px;
  background: var(--primitive-white);
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
}
.mock-bar { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
.mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-line-strong); }
.mock-bar i:first-child { background: var(--color-brand); }
.mock-body { padding: 14px; }
.mock-hero { display: block; height: 52px; border-radius: 6px; background: linear-gradient(100deg, var(--color-brand) 0%, #ef6a6e 48%, var(--color-brand-soft) 100%); }
.mock-row { display: block; height: 8px; margin-top: 10px; border-radius: 4px; background: var(--color-line); }
.mock-row--short { width: 58%; }
.mock-phone {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: 10%;
  width: 26%;
  padding: 10px 8px 14px;
  border: 1px solid var(--color-line-strong);
  border-radius: 14px;
  background: var(--primitive-white);
  box-shadow: var(--shadow-md);
  transform: rotate(4deg);
}
.mock-notch { display: block; width: 42%; height: 4px; margin: 0 auto 12px; border-radius: 3px; background: var(--color-line); }
.mock-block { display: block; height: 30px; margin-bottom: 8px; border-radius: 6px; background: var(--color-surface); }
.mock-block--short { height: 16px; background: var(--color-brand-soft); }

/* Systems: a node diagram and three meters. */
.showcase-media--systems { background: var(--color-surface); }
.mock-diagram { position: relative; z-index: 1; width: 76%; height: auto; }
.mock-diagram path { fill: none; stroke: #aab3a4; stroke-width: 2; }
.mock-diagram circle { fill: var(--primitive-white); stroke: var(--color-brand); stroke-width: 2.5; }
.mock-diagram rect { fill: var(--primitive-white); stroke: #aab3a4; stroke-width: 2; }
.mock-meters { position: relative; z-index: 1; display: grid; gap: 9px; width: 76%; margin-top: 22px; }
.mock-meters span { display: block; height: 7px; border-radius: 4px; background: #dfe4da; }
.mock-meters span::after { display: block; width: var(--w); height: 7px; border-radius: 4px; background: var(--color-brand); content: ""; }

/* Brand: the mark and its pulse line. */
.showcase-media--brand { background: var(--color-surface); }
.showcase-media--brand img { position: relative; z-index: 1; width: 60%; height: auto; }
.mock-pulse { position: absolute; z-index: 0; inset: auto 8% 14% 8%; width: 84%; height: 46px; }
.mock-pulse path { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }


/* Act III — systems */
.chapter--systems { background: var(--color-surface-warm); border-block: 1px solid var(--color-border); }
.systems-stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.systems-figure { position: relative; }
.systems-window {
  overflow: hidden;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--radius-lg);
  background: var(--ui-surface);
  box-shadow: 0 34px 70px rgba(60, 72, 48, .16);
}
.window-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--ui-border); background: var(--ui-surface-soft); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d2d6cf; }
.window-dots i:first-child { background: var(--color-brand); }
.window-dots i:nth-child(2) { background: var(--primitive-amber); }
.window-dots i:nth-child(3) { background: var(--color-accent); }
.window-path { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; color: var(--ui-text-soft); }
.window-chip { margin-left: auto; padding: 3px 10px; border: 1px solid var(--ui-border-strong); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ui-text-soft); }
.window-body { display: grid; grid-template-columns: 58px 1fr; min-height: 348px; }
.window-rail { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px 0; border-right: 1px solid var(--ui-border); background: var(--ui-surface-soft); }
.window-logo { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; color: var(--color-text-inverse); background: var(--color-text); font-family: var(--font-mono); font-size: .6rem; font-weight: 600; }
.window-tab { width: 17px; height: 17px; border: 1px solid #c3ccbb; border-radius: 5px; }
.window-tab.is-active { border-color: var(--color-brand); background: var(--color-brand); box-shadow: 0 4px 10px rgba(217, 37, 42, .22); }
.window-tab--spacer { flex: 1; border: 0; }
.window-main { padding: 24px 26px 22px; }
.window-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.window-head h3 { margin-top: 6px; font-size: 1.05rem; letter-spacing: -.02em; }
.window-avatar { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--color-text-inverse); background: var(--color-brand); font-family: var(--font-mono); font-size: .56rem; font-weight: 600; }
.window-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.window-metric { padding: 14px 15px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--primitive-white); }
.window-metric strong { display: block; margin: 5px 0 4px; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.035em; }
.trend { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .04em; color: var(--ui-positive); }
.window-panel { margin-top: 10px; padding: 15px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--primitive-white); }
.window-panel-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.window-chart { display: flex; align-items: end; gap: 6px; height: 88px; border-bottom: 1px solid var(--ui-border); }
.window-chart i { flex: 1; display: block; border-radius: 3px 3px 0 0; background: #ccd9b4; }
.window-chart i.is-current { background: var(--color-brand); }
.window-axis { display: flex; justify-content: space-between; padding-top: 6px; font-family: var(--font-mono); font-size: .54rem; color: var(--ui-text-soft); }
.figure-caption { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; color: var(--color-text-muted); font-size: var(--text-micro); }
.figure-caption .mono-label { flex: 0 0 auto; }
.principle-list { border-top: 1px solid var(--color-border-strong); }
.principle { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--color-border-strong); }
.principle-index { padding-top: 3px; font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 600; color: var(--color-brand); }
.principle h3 { margin-bottom: 3px; font-size: 1.02rem; }
.principle p { color: var(--color-text-secondary); font-size: var(--text-small); }

/* Act IV — perspective */
.chapter--perspective { overflow: hidden; background: var(--color-surface); border-block: 1px solid var(--color-border); }
.perspective-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.perspective-grid h2 { max-width: 17ch; font-size: clamp(2.1rem, 3.8vw, 3.6rem); }
.perspective-aside > p { max-width: 44ch; color: var(--color-text-secondary); font-size: var(--text-lead); line-height: 1.75; }
.spec-rows { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--color-border); }
.spec-rows li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--color-border); font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: .04em; }
.spec-rows li span:first-child { color: var(--color-text); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.spec-rows li span:last-child { color: var(--color-text-muted); text-align: right; }

/* Act IV — approach (the ink chapter) */
.chapter--approach { background: var(--color-surface-invert); color: var(--color-text-inverse); }
.chapter--approach .chapter-intro p { color: var(--color-text-inverse-soft); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border-invert); border: 1px solid var(--color-border-invert); }
.process-step { position: relative; padding: 34px 30px 36px; background: var(--color-surface-invert); transition: background-color var(--duration-slow) var(--ease-in-out); }
.process-step:hover { background: #1e201d; }
.process-ghost {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .11);
  transition: color var(--duration-slow) var(--ease-in-out);
}
.process-step:hover .process-ghost { color: var(--color-accent); }
.process-step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.process-step p { max-width: 30ch; color: var(--color-text-inverse-soft); font-size: var(--text-small); line-height: 1.66; }

/* Act V — contact */
.chapter--contact { background: var(--color-surface-tint); }
/* The closing word spans the full measure, as it does in every other chapter,
   so the giant type never runs underneath the form. The copy and the form are
   left to auto-placement, so the grid still stacks cleanly when it is one
   column wide. */
.contact-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); column-gap: clamp(40px, 6vw, 92px); row-gap: 0; align-items: start; }
.contact-grid > .section-label, .contact-grid > .chapter-head { grid-column: 1 / -1; }
.contact-copy > p:not(.section-label) { max-width: 40ch; color: rgba(23, 24, 22, .72); line-height: 1.74; }
.contact-mail { margin-top: 34px; font-size: 1.05rem; font-weight: 700; }

.contact-form {
  padding: var(--card-padding);
  border: 1px solid rgba(23, 24, 22, .1);
  border-radius: var(--radius-card);
  background: var(--card-bg);
  box-shadow: 0 26px 56px rgba(51, 72, 19, .12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { margin-bottom: 16px; }
.field { display: block; color: var(--color-text-secondary); font-size: var(--text-small); font-weight: 700; }
.field > span { display: block; }
.contact-form input, .contact-form textarea {
  width: 100%;
  display: block;
  margin-top: 7px;
  padding: var(--input-padding);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  color: var(--color-text);
  background: var(--input-bg);
  outline: none;
  resize: vertical;
  transition: border-color var(--duration-base) var(--ease-in-out),
    box-shadow var(--duration-base) var(--ease-in-out);
}
.contact-form input { min-height: 46px; }
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--input-border-hover); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--input-border-focus); box-shadow: var(--input-ring); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9ca29a; }
.contact-form [aria-invalid="true"] { border-color: var(--color-error); background: var(--color-error-soft); }
.contact-form [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .13); }
.field-error { display: block; margin-top: 6px; color: var(--color-error); font-size: var(--text-micro); font-weight: 700; }
.field-error:empty { display: none; }
.form-error-summary { display: none; margin-bottom: 18px; padding: 13px 15px; border: 1px solid var(--color-error); border-radius: var(--radius-control); color: var(--color-error); background: var(--color-error-soft); font-size: var(--text-small); }
.form-error-summary.is-visible { display: block; }
.form-error-summary strong { display: block; margin-bottom: 5px; }
.form-error-summary ul { margin: 0; padding-left: 18px; }
.form-error-summary a { color: inherit; }
.button--submit { width: 100%; margin-top: 4px; }
.form-helper { margin: 13px 0 0; color: var(--color-text-muted); font-size: var(--text-micro); line-height: 1.5; text-align: center; }
.form-status { min-height: 20px; margin: 10px 0 0; font-size: var(--text-small); font-weight: 700; text-align: center; }
.form-status[data-state="success"] { color: var(--color-success); }
.form-status[data-state="error"] { color: var(--color-error); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { position: relative; z-index: 1; padding: 56px 0 22px; background: var(--color-page); border-top: 1px solid var(--color-border); }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; padding-bottom: 44px; }
.brand--footer { width: 150px; height: 50px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.footer-links a { font-size: var(--text-small); }
.footer-talk { justify-self: end; font-size: var(--text-body); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--color-border); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .flight-path { display: none; }
}

@media (max-width: 1080px) {
  :root { --space-section: 104px; --gutter: 40px; --hero-row-gap: 36px; --text-hero: clamp(2.6rem, 7.2vw, 4.6rem); }
  .hero-head { grid-column: 1 / 13; grid-row: 1; }
  .hero-brand { grid-column: 1 / 13; grid-row: 2; justify-self: start; max-width: 620px; }
  .hero-meta { grid-column: 1 / 13; grid-row: 3; align-self: start; }
  .hero-descriptor { grid-column: 1 / 13; grid-row: 4; justify-self: start; max-width: 30ch; text-align: left; }
  .chapter-intro, .perspective-grid { grid-template-columns: 1fr; gap: 30px; }
  .chapter-intro { margin-bottom: 46px; }
  .systems-stage { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 0; }
  .contact-grid > .contact-form { margin-top: 40px; }
}

/* The title sets as one line where it can, and wraps to two where it cannot.
   The grid column governs the measure, so no extra max-width is needed. */
@media (min-width: 1081px) {
  .hero-head h1 { text-wrap: balance; }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px; }
  .header-cta { display: none; }
  .menu-toggle { display: grid !important; place-items: center; flex: 0 0 44px; margin-left: auto; position: relative; z-index: 2; }
}

@media (max-width: 680px) {
  :root { --space-section: var(--space-section-sm); --gutter: 24px; --header-height: 64px; --hero-row-gap: 28px; --text-hero: clamp(2.4rem, 8.2vw, 3.1rem); }
  .brand { width: 128px; height: 44px; }
  .hero { min-height: 100svh; padding-top: calc(var(--header-height) + 44px); padding-bottom: 26px; }
  .hero-inner { column-gap: 20px; row-gap: var(--hero-row-gap); }
  .hero-brand { max-width: var(--hero-lockup-max-width-sm); }
  .hero-brand figcaption { margin-top: 12px; }
  .hero-lede { max-width: 36ch; font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-descriptor { margin-top: 2px; font-size: .62rem; }
  .chapter-descriptor { margin: 0 0 26px; text-align: left; }
  .hero-rail { grid-template-columns: 1fr auto; gap: 14px; padding-top: 16px; }
  .rail-track { grid-column: 1 / -1; grid-row: 2; }
  .rail-label { grid-column: 1; grid-row: 1; }
  .rail-counter { grid-column: 2; grid-row: 1; }
  .section-label { margin-bottom: 30px; }
  .chapter-head { margin-bottom: 24px; gap: 10px 20px; }
  .chapter-word { font-size: clamp(2.1rem, 9vw, 4.2rem); }
  .chapter-count { padding-top: 0; font-size: 1.4rem; gap: 10px; }
  .chapter-lead { margin-bottom: 40px; }
  .showcase-item { grid-column: span 12; }
  .showcase-media { min-height: 260px; }
  .ghost-num { font-size: 9rem; bottom: -1.6em; left: -6vw; }
  .showcase-meta .capability-link { justify-self: start; margin-top: 4px; font-size: var(--text-body); }
  .window-body { grid-template-columns: 42px 1fr; min-height: 280px; }
  .window-main { padding: 16px 14px 14px; }
  .window-head h3 { font-size: .88rem; }
  .window-metric { padding: 10px; }
  .window-metric strong { font-size: 1.05rem; }
  .window-chart { height: 62px; }
  .process { grid-template-columns: 1fr; }
  .process-step { padding: 26px 24px 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; justify-items: start; }
  .footer-links { justify-content: flex-start; }
  .footer-talk { justify-self: start; }
  .footer-base { flex-direction: column; gap: 8px; }
}

/* ==========================================================================
   MOTION PREFERENCES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-rail { display: none; }
  .flight-path { display: none; }
}

@media print {
  .site-header, .hero-field, .hero-rail, .flight-path { display: none !important; }
  body { color: #000; background: #fff; }
}





