/* ==========================================================================
   Innova IT Ltd — Kintsugi Design System
   Open canvas. Gold seams. Serif voice. No boxed cards. No blue.
   Self-hosted OFL fonts. Zero third-party requests.
   ========================================================================== */

/* --------------------------------------------------------------- 1. FONTS */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fraunces-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
}

/* -------------------------------------------------------------- 2. TOKENS */

:root {
  /* Kintsugi palette */
  --graphite:      #16181B;
  --graphite-mid:  #1F2226;
  --graphite-soft: #2A2E34;
  --slate:         #59616E;
  --slate-mid:     #7C8593;
  --slate-light:   #A8B0BB;
  --gold:          #C9A227;
  --gold-bright:   #F0D273;
  --gold-lift:     #E6C356;
  --gold-deep:     #A2801A;
  --canvas:        #F5F2EB;
  --canvas-warm:   #EDE8DD;
  --canvas-edge:   #DED7C7;

  /* Semantic — light sections */
  --bg:            var(--canvas);
  --fg:            var(--graphite);
  --fg-muted:      #4E5561;
  --seam:          var(--gold);
  --hairline:      rgba(22, 24, 27, 0.14);

  /* Bright gold reads at 2.16:1 on the cream canvas — nowhere near WCAG AA.
     Text and numerals on light surfaces use the deeper `--gold-text`, which
     measures 5.16:1 on canvas and 4.72:1 on the warm tone. Bright `--gold` is
     kept for seams, rules and fills, where it carries no information. */
  --gold-text:     #7E620C;

  /* Type scale — fluid */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.52rem + 1.4vw, 2.7rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.5vw, 3.9rem);
  --step-5:  clamp(2.7rem, 1.8rem + 4.4vw, 5.6rem);

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 68ch;
  --shell: 1240px;
  --shell-narrow: 940px;
  --section-y: clamp(4.5rem, 9vw, 9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-seam: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark surface context */
.on-graphite {
  --gold-text: var(--gold);
  --bg: var(--graphite);
  --fg: var(--canvas);
  --fg-muted: #A8B0BB;
  --hairline: rgba(245, 242, 235, 0.16);
  background: var(--bg);
  color: var(--fg);
}
.on-canvas {
  --bg: var(--canvas);
  --fg: var(--graphite);
  --fg-muted: #4E5561;
  --hairline: rgba(22, 24, 27, 0.14);
  background: var(--bg);
  color: var(--fg);
}
.on-warm {
  --bg: var(--canvas-warm);
  --fg: var(--graphite);
  --fg-muted: #4E5561;
  --hairline: rgba(22, 24, 27, 0.14);
  background: var(--bg);
  color: var(--fg);
}

/* --------------------------------------------------------------- 3. RESET */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--graphite);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.1em; }
li { margin-bottom: 0.45em; max-width: var(--measure); }

a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: currentColor; }

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

::selection { background: var(--gold); color: var(--graphite); }

/* ------------------------------------------------------------- 4. LAYOUT */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell-narrow { width: min(100% - (var(--gutter) * 2), var(--shell-narrow)); margin-inline: auto; }

section { padding-block: var(--section-y); position: relative; }
.pad-sm { padding-block: clamp(3rem, 6vw, 5rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--graphite);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Grids — open canvas, separated by seams not boxes */
.grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .split-lead { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

/* --------------------------------------------------- 5. THE SEAM LANGUAGE */

/* A seam is a hairline that carries a gold break. Never a border box. */
.seam {
  position: relative;
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
  overflow: visible;
}
.seam::after {
  content: '';
  position: absolute;
  inset-block: -1px;
  left: 0;
  width: var(--seam-run, 100%);
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold) 12%,
    var(--gold-lift) 38%,
    var(--gold) 62%,
    transparent 100%);
  height: 2px;
  transform: scaleX(var(--seam-scale, 0));
  transform-origin: left center;
  transition: transform 1.4s var(--ease-seam);
}
.is-seen .seam::after,
.seam.is-seen::after { --seam-scale: 1; }

.seam-top { border-top: 1px solid var(--hairline); }

/* Section eyebrow: ring-circle number + label, seam beneath */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--gold-text);
  color: var(--gold-text);
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  position: relative;
}
.ring::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold-text);
  opacity: 0.22;
}
.ring-lg { width: 3.4rem; height: 3.4rem; font-size: 1.1rem; }

/* Stanza — the replacement for a card. Content hung off a seam, no box. */
.stanza {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.stanza::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.25rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-seam) var(--d, 0ms);
}
.is-seen .stanza::before { transform: scaleX(1); }
.stanza h3, .stanza h4 { margin-bottom: 0.45rem; }
.stanza p { font-size: var(--step-0); color: var(--fg-muted); }
.stanza:hover::before { width: 5.5rem; transition: width 0.4s var(--ease), transform 0.7s var(--ease-seam); }

.stanza-icon { width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem; }

/* -------------------------------------------------------------- 6. HEADER */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 24, 27, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(245, 242, 235, 0.1);
  color: var(--canvas);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.brand svg { width: 2.1rem; height: 2.1rem; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name span { color: var(--gold); }
.brand-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 0.28rem;
}

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--slate-light);
  padding-block: 0.4rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--canvas); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

/* The nav link colour rule outranks .btn on specificity — restate it, or the
   call to action renders gold-on-gold and disappears. */
.nav a.btn { color: var(--gold); }
.nav a.btn-solid, .nav a.btn-solid:hover { color: var(--graphite); }
.nav a.btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(245, 242, 235, 0.28);
  color: var(--canvas);
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle svg { width: 1.1rem; height: 1.1rem; }

@media (max-width: 66rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--graphite);
    border-bottom: 1px solid rgba(245, 242, 235, 0.14);
    padding: 0.5rem var(--gutter) 1.75rem;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s var(--ease);
  }
  .nav[data-open='true'] { clip-path: inset(0 0 0 0); }
  .nav a {
    font-size: 1.05rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid rgba(245, 242, 235, 0.08);
  }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1.1rem; text-align: center; border-bottom: 0; }
}

/* ------------------------------------------------------------- 7. BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--gold-text);
  background: transparent;
  color: var(--gold-text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease-seam);
  z-index: -1;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--graphite); }
.btn:hover::before { transform: scaleX(1); }
.btn-solid { background: var(--gold); color: var(--graphite); border-color: var(--gold); }
.btn-solid::before { background: var(--gold-lift); }
.btn-solid:hover { color: var(--graphite); }
.btn-ghost { border-color: var(--hairline); color: var(--fg); }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn-arrow { font-size: 1.05em; line-height: 1; transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Text link with seam underline */
.link-seam {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--gold-text);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  transition: border-color 0.3s var(--ease);
}
.link-seam:hover { border-bottom-color: var(--gold); }
.link-seam .btn-arrow { transition: transform 0.3s var(--ease); }
.link-seam:hover .btn-arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------- 8. HERO */

.hero {
  --gold-text: var(--gold);
  position: relative;
  background: var(--graphite);
  color: var(--canvas);
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9.5rem) clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(201, 162, 39, 0.16), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(89, 97, 110, 0.32), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
#seam-canvas, #telemetry-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.62;
  /* Fade the topology out from under the headline. Motion behind display type
     is the fastest way to make a page look cheap and read badly. */
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.18) 30%, #000 62%);
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.18) 30%, #000 62%);
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-text);
  position: relative;
  white-space: nowrap;
}
.hero-lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--slate-light);
  max-width: 46ch;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.hero-tag::before {
  content: '';
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
}

.page-head {
  --gold-text: var(--gold);
  background: var(--graphite);
  color: var(--canvas);
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 90% at 85% 10%, rgba(201, 162, 39, 0.13), transparent 60%);
  z-index: -1;
}
.page-head h1 { font-size: var(--step-4); }
.page-head p { color: var(--slate-light); font-size: var(--step-1); max-width: 56ch; }

/* Breadcrumb */
.crumb {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 1.5rem;
}
.crumb a { text-decoration: none; color: var(--slate-light); }
.crumb a:hover { color: var(--gold); }

/* ------------------------------------------------------------ 9. METRICS */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.metric { position: relative; padding-top: 1.35rem; border-top: 1px solid var(--hairline); }
.metric::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 2.5rem; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-seam) var(--d, 0ms);
}
.is-seen .metric::before { transform: scaleX(1); }
.metric-num {
  font-family: 'Fraunces', serif;
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold-text);
  display: block;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--fg-muted);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
  max-width: 18ch;
}

/* ---------------------------------------------- 10. FIGURES / ANIMATIONS */

.figure-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 17rem;
}
.figure-frame svg, .figure-frame canvas { width: 100%; height: 100%; }
.figure-cap {
  font-size: var(--step--1);
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
}

/* Terminal replay */
.terminal {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: clamp(0.7rem, 0.62rem + 0.35vw, 0.85rem);
  line-height: 1.75;
  background: #101215;
  border-top: 2px solid var(--gold);
  padding: 1.4rem clamp(1rem, 2.5vw, 1.75rem) 1.75rem;
  color: #C6CCD6;
  min-height: 20rem;
  overflow: hidden;
  position: relative;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-mid);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(245, 242, 235, 0.1);
}
.terminal-bar b { color: var(--gold); font-weight: 600; letter-spacing: 0.18em; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-dim { color: #6D7684; }
.term-gold { color: var(--gold-lift); }
.term-pass { color: #7FB98B; }
.term-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--gold);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Gauge */
.gauge-value {
  font-family: 'Fraunces', serif;
  font-size: var(--step-4);
  font-weight: 600;
  fill: var(--gold-text);
  letter-spacing: -0.03em;
}
.gauge-unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--slate-mid);
}

/* --------------------------------------------------------- 11. TIMELINES */

.seam-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.seam-timeline::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--hairline);
}
.seam-timeline::after {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 0.4rem;
  width: 2px;
  height: calc(100% - 0.8rem);
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease-seam);
}
.is-seen .seam-timeline::after { transform: scaleY(1); }
.seam-timeline li {
  position: relative;
  padding-left: 3.6rem;
  padding-bottom: 2.2rem;
  max-width: var(--measure);
  margin: 0;
}
.seam-timeline li:last-child { padding-bottom: 0; }
.seam-timeline li::before {
  content: attr(data-step);
  position: absolute;
  /* The parent's gold progress line is also an absolutely-positioned pseudo
     element, so without this it paints over the step numbers. */
  z-index: 1;
  left: 0;
  top: -0.1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-text);
  background: var(--bg);
  color: var(--gold-text);
  font-family: 'Fraunces', serif;
  font-size: 0.82rem;
  font-weight: 600;
}
.seam-timeline h3, .seam-timeline h4 { margin-bottom: 0.35rem; }
.seam-timeline p { color: var(--fg-muted); margin-bottom: 0; font-size: var(--step-0); }

/* ------------------------------------------------------- 12. CASE STUDIES */

.case { padding-block: clamp(2.75rem, 5vw, 4rem); border-top: 1px solid var(--hairline); position: relative; }
.case:first-of-type { border-top: 0; }
.case::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 4rem; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.75s var(--ease-seam);
}
.is-seen .case::before { transform: scaleX(1); }
.case-sector {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.85rem;
}
.case h3 { font-size: var(--step-2); max-width: 22ch; }
.case-client {
  font-size: var(--step-0);
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 1.35rem;
}
.case-results {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}
.case-results li { margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--hairline); }
.case-results b {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--gold-text);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.case-results span { display: block; font-size: var(--step--1); color: var(--fg-muted); margin-top: 0.45rem; }
.stack-line {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--step--1);
  color: var(--fg-muted);
  letter-spacing: 0.01em;
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--hairline);
}

/* --------------------------------------------------------- 13. STACK TAGS */

.tag-set { display: flex; flex-wrap: wrap; gap: 0.5rem 0.65rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.tag-set li {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  padding: 0.3rem 0 0.3rem 0.75rem;
  border-left: 1px solid var(--gold);
  line-height: 1.3;
}

/* Definition rows — used for capability lists */
.rows { border-top: 1px solid var(--hairline); margin-top: 2rem; }
.row-item {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
@media (min-width: 48rem) {
  .row-item { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); }
}
.row-item dt {
  font-family: 'Fraunces', serif;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.row-item dd { margin: 0; color: var(--fg-muted); }
.row-item:hover dt { color: var(--gold-text); transition: color 0.3s var(--ease); }

/* ------------------------------------------------------------- 14. FORMS */

.field { margin-bottom: 1.6rem; max-width: 34rem; }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.55rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 0.7rem 0;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field select { appearance: none; cursor: pointer; }
.field .hint { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.5rem; text-transform: none; letter-spacing: 0; }
.form-status { margin-top: 1.5rem; font-size: var(--step-0); font-weight: 500; }
.form-status[data-state='ok'] { color: #2F7D46; }
.form-status[data-state='err'] { color: #A33B2C; }

/* -------------------------------------------------------------- 15. QUOTE */

.pull {
  font-family: 'Fraunces', serif;
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 30ch;
  margin: 0;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 2px solid var(--gold);
}
.pull cite {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: var(--step--1);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------- 16. CTA */

.cta-band {
  --gold-text: var(--gold);
  background: var(--graphite);
  color: var(--canvas);
  --fg: var(--canvas);
  --fg-muted: var(--slate-light);
  --hairline: rgba(245, 242, 235, 0.16);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 130% at 50% 0%, rgba(201, 162, 39, 0.16), transparent 62%);
  z-index: -1;
}
.cta-band h2 { max-width: 20ch; }

/* ------------------------------------------------------------- 17. FOOTER */

.footer {
  --gold-text: var(--gold);
  background: #101215;
  color: var(--slate-light);
  --hairline: rgba(245, 242, 235, 0.13);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  font-size: 0.88rem;
}
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}
.footer-grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 60rem) { .footer-grid > div:first-child { grid-column: auto; grid-row: span 1; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.6rem; }
.footer a { text-decoration: none; color: var(--slate-light); transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; color: var(--canvas); }
.footer-brand svg { width: 2rem; height: 2rem; }
.footer-note { color: #6D7684; font-size: 0.8rem; line-height: 1.6; max-width: 34ch; }
.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #6D7684;
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.cred-list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.55rem; margin-top: 1rem; padding: 0; list-style: none; }
.cred-list li {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-mid);
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(245, 242, 235, 0.14);
}

/* ------------------------------------------------------- 18. SCROLL MOTION */

.reveal { opacity: 0; transform: translateY(26px); }
.is-seen .reveal, .reveal.is-seen {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease) var(--d, 0ms), transform 0.85s var(--ease) var(--d, 0ms);
}

/* No-JS: everything visible, nothing hidden behind an observer */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .seam::after,
.no-js .stanza::before,
.no-js .metric::before,
.no-js .case::before { transform: scaleX(1); }
.no-js .seam-timeline::after { transform: scaleY(1); }
.no-js .term-cursor { display: none; }

/* ------------------------------------------------- 18b. SVG SET PIECES */

/* The Kintsugi seam: a gold break that draws itself across a fractured plane */
.seam-art { width: 100%; height: 100%; overflow: visible; }
.seam-art .plate { fill: none; stroke: rgba(245, 242, 235, 0.13); stroke-width: 1; }
.seam-art .fracture {
  fill: none;
  stroke: rgba(245, 242, 235, 0.2);
  stroke-width: 1;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s var(--ease-seam) 0.15s forwards;
}
.seam-art .gold-seam {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.9s var(--ease-seam) 0.5s forwards;
  filter: drop-shadow(0 0 7px rgba(201, 162, 39, 0.5));
}
.seam-art .gold-seam-2 { animation-delay: 0.95s; stroke-width: 1.6; opacity: 0.75; }
.seam-art .node-dot { fill: var(--gold); opacity: 0; animation: dotIn 0.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dotIn { to { opacity: 1; } }

/* Throughput gauge */
.gauge { width: 100%; height: auto; overflow: visible; }
.gauge .track { fill: none; stroke: var(--hairline); stroke-width: 10; stroke-linecap: round; }
.gauge .arc {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.35));
}
.gauge .tick { stroke: var(--hairline); stroke-width: 1.5; }
.gauge .tick-hot { stroke: var(--gold); stroke-width: 2; }

/* CI/CD pipeline */
.pipeline { width: 100%; height: auto; overflow: visible; }
.pipeline .rail { stroke: var(--hairline); stroke-width: 2; fill: none; }
.pipeline .stage-ring { fill: var(--bg); stroke: var(--hairline); stroke-width: 1.5; transition: stroke 0.5s var(--ease); }
.pipeline .stage-fill { fill: var(--gold); opacity: 0; transform-origin: center; transform: scale(0.3); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease-seam); }
.pipeline .stage-label { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--fg-muted); transition: fill 0.5s var(--ease); }
.pipeline .stage-link { stroke: var(--gold); stroke-width: 2.5; fill: none; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 0.6s var(--ease-seam); }
.pipeline [data-stage].stage-on .stage-ring { stroke: var(--gold); }
.pipeline [data-stage].stage-on .stage-fill { opacity: 1; transform: scale(1); }
.pipeline [data-stage].stage-on .stage-label { fill: var(--gold-text); }
.pipeline [data-stage].stage-on .stage-link { stroke-dashoffset: 0; }

/* Throughput ramp */
.ramp { width: 100%; height: auto; overflow: visible; }
.ramp .ramp-line {
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  transition: stroke-dashoffset 2.2s var(--ease-seam);
}
.is-seen .ramp .ramp-line { stroke-dashoffset: 0; }
.ramp .ramp-fill { fill: url(#rampGrad); opacity: 0; transition: opacity 1.2s var(--ease) 0.8s; }
.is-seen .ramp .ramp-fill { opacity: 1; }
.ramp .ramp-axis { stroke: var(--hairline); stroke-width: 1; }
.ramp .ramp-nfr { stroke: var(--slate-mid); stroke-width: 1; stroke-dasharray: 4 4; }
.ramp .ramp-tag { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--fg-muted); }

@media (prefers-reduced-motion: reduce) {
  .seam-art .fracture, .seam-art .gold-seam { stroke-dashoffset: 0; animation: none; }
  .seam-art .node-dot { opacity: 1; animation: none; }
  .ramp .ramp-line { stroke-dashoffset: 0; }
  .ramp .ramp-fill { opacity: 1; }
}
.no-js .seam-art .fracture, .no-js .seam-art .gold-seam { stroke-dashoffset: 0; }
.no-js .ramp .ramp-line { stroke-dashoffset: 0; }
.no-js .ramp .ramp-fill { opacity: 1; }
.no-js .pipeline [data-stage] .stage-ring { stroke: var(--gold); }
.no-js .pipeline [data-stage] .stage-fill { opacity: 1; transform: scale(1); }
.no-js .pipeline [data-stage] .stage-label { fill: var(--gold-text); }
.no-js .pipeline [data-stage] .stage-link { stroke-dashoffset: 0; }

/* -------------------------------------------------------------- 19. UTILS */

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--fg-muted); max-width: 54ch; }
.muted { color: var(--fg-muted); }
.gold { color: var(--gold-text); }
.tabnum { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; margin-inline: auto; }
.center p, .center .lede { margin-inline: auto; }

/* Utility classes generated in place of inline style attributes, so that the
   Content-Security-Policy can be style-src 'self' with no unsafe-inline. */
.u-mt-a { margin-top: 1.1rem; }
.u-mt-b { margin-top: 1.25rem; }
.u-mt-c { margin-top: 1.9rem; }
.u-mt-d { margin-top: 2.25rem; }
.u-mt-e { margin-top: 2.5rem; }
.u-m0 { margin: 0; }
.u-mt-0 { margin-top: 0; }
.u-fs-brand { font-size: 1.1rem; }
.u-fs-0 { font-size: var(--step-0); }
.u-fs-3 { font-size: var(--step-3); }
.u-fs-4 { font-size: var(--step-4); }
.u-h-legal { font-size: var(--step-2); margin-top: 2.5rem; }
.u-note { font-size: var(--step--1); max-width: 70ch; }
.u-measure-wide { max-width: 62ch; }
.u-hero-min { min-height: 64vh; display: flex; align-items: center; }
.u-pull-center { margin-inline: auto; text-align: left; }
.u-gap-a { gap: 0.75rem 1rem; }
.u-gap-b { gap: 0.6rem 0.8rem; }
.u-gold { color: var(--gold-text); }
.u-btn-ondark { border-color: rgba(245, 242, 235, 0.3); color: var(--canvas); }
.u-btn-ondark::before { background: var(--canvas); }
.u-btn-ondark:hover { color: var(--graphite); border-color: var(--canvas); }
.u-ar-5-4 { aspect-ratio: 5 / 4; }
.u-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.u-delay-1 { animation-delay: 1.25s; }
.u-delay-2 { animation-delay: 2.4s; }
.u-delay-3 { animation-delay: 2.7s; }
.u-delay-4 { animation-delay: 2.9s; }

/* ------------------------------------------------ 20. REDUCED MOTION / PRINT */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .seam::after, .stanza::before, .metric::before, .case::before { transform: scaleX(1) !important; }
  .seam-timeline::after { transform: scaleY(1) !important; }
  #seam-canvas, #telemetry-canvas { display: none; }
  .term-cursor { animation: none; }
}

@media print {
  .masthead, .nav, .cta-band, #seam-canvas, #telemetry-canvas, .figure-frame { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .on-graphite, .hero, .page-head, .footer { background: #fff !important; color: #000 !important; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.85em; color: #555; }
}
