/* ==========================================================================
   MITBULLS — MITB Mechanical & IT Bulls Inc
   Design system. Dark-first, derived from the brand mark:
   near-black ground, cyan circuit glow, bronze machined metal.
   Style: Swiss / minimal grid  ·  Pattern: Trust & Authority + Conversion
   Tokens are the single source of truth. Never hardcode a hex in a component.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Ground — sampled from the brand mark so the logo tile blends into any surface. */
  --color-background:       #141312;
  --color-surface:          #1E1D1B;  /* sampled from the logo artwork backdrop */
  --color-surface-2:        #24231F;
  --color-foreground:       #F4F2EF;
  --color-muted-foreground: #A9A49B;
  --color-border:           #2C2B27;
  --color-border-strong:    #3E3C36;

  /* Brand — cyan circuit glow */
  --color-accent:           #22D3EE;
  --color-accent-hover:     #67E8F9;
  --color-accent-quiet:     #7DD8E8;
  --color-on-accent:        #041B22;

  /* Brand — machined bronze, used sparingly for numerals and rules */
  --color-brass:            #D2A85C;

  /* Inverted "paper" panels for long-form legibility */
  --color-paper:            #F7F5F2;
  --color-on-paper:         #131211;
  --color-on-paper-muted:   #55514A;
  --color-paper-border:     #DCD9D3;

  /* Status */
  --color-destructive:      #FF6B6B;
  --color-success:          #34D399;
  --color-ring:             #22D3EE;

  /* Type — Archivo (grotesque display, echoes the wordmark) over Inter (text).
     Mono is reserved for one deliberate use: the technology tags. */
  --font-display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
                  Roboto, Helvetica, Arial, sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Nothing in the interface is smaller than --text-sm (15px). */
  --text-sm:   0.9375rem;   /* 15px */
  --text-base: 1.0625rem;   /* 17px */
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.75rem;
  --text-5xl:  5.5rem;
  --text-xs:   var(--text-sm);   /* legacy alias — no true micro-type remains */

  /* Space — widened; negative space is the main design material here. */
  --space-1: 4px;   --space-2: 8px;   --space-3: 14px;  --space-4: 20px;
  --space-5: 28px;  --space-6: 40px;  --space-7: 64px;  --space-8: 96px;
  --space-9: 140px; --space-10: 190px;

  /* Geometry */
  --radius-sm: 3px;
  --radius:    5px;
  --radius-lg: 10px;
  --container: 1280px;
  --container-narrow: 760px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow:    0 1px 3px rgba(0, 0, 0, .5), 0 12px 32px -16px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 32px 64px -28px rgba(0, 0, 0, .9);
  --glow:      0 0 0 1px rgba(34, 211, 238, .18), 0 8px 40px -12px rgba(34, 211, 238, .28);

  --transition: 200ms cubic-bezier(.2, .6, .3, 1);
  --header-h: 76px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-5));
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { padding-left: 1.15em; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: rgba(34, 211, 238, .28); color: #FFFFFF; }

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

/* --- 3. Typography ------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--color-foreground);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.2rem + 6.4vw, var(--text-5xl)); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, var(--text-4xl)); letter-spacing: -0.04em; }
h3 { font-size: clamp(1.375rem, 1.15rem + .95vw, var(--text-xl)); letter-spacing: -0.025em; }
h4 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; }
p  { text-wrap: pretty; }

/* Section label. Plain sans in a muted tone — no mono, no tracking-out,
   no leading dash. It should sit quietly above a heading, not shout. */
.eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-4);
}
/* The brass label carries more weight than a plain one, so it is set a step
   larger and slightly heavier. */
.eyebrow--brass {
  color: var(--color-brass);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.lede {
  font-size: clamp(var(--text-lg), 1rem + .6vw, var(--text-xl));
  line-height: 1.55;
  font-weight: 300;
  color: var(--color-muted-foreground);
  max-width: 68ch;
}
.muted { color: var(--color-muted-foreground); }
.small { font-size: var(--text-sm); }
.mono  { font-family: var(--font-mono); }

/* --- 4. Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }

.section { padding-block: clamp(var(--space-8), 6vw, var(--space-10)); }
.section--tight { padding-block: clamp(var(--space-7), 4vw, var(--space-8)); }
.section--panel { background: var(--color-surface); border-block: 1px solid var(--color-border); }

/* Light "paper" band — used for dense reading (legal, long-form). */
.section--paper {
  background: var(--color-paper);
  color: var(--color-on-paper);
  --color-foreground: var(--color-on-paper);
  --color-muted-foreground: var(--color-on-paper-muted);
  --color-border: var(--color-paper-border);
  --color-border-strong: #BEB9B1;
  --color-surface: #FFFFFF;
  --color-surface-2: #EDEAE5;
  --color-accent: #0E7490;
  --color-accent-hover: #155E75;
  --color-on-accent: #FFFFFF;
  --color-destructive: #B91C1C;
  --color-success: #047857;
  --color-ring: #0E7490;
  color-scheme: light;
}

.section-head { max-width: 78ch; margin-bottom: var(--space-7); }
.section-head--split {
  max-width: none;
  display: grid;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Columns share a top edge. Centring made the shorter column float up past
   the start of the longer one, which reads as a misalignment. */
.split { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--space-8); }
  .split--even { grid-template-columns: 1fr 1fr; }
}

.stack   { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.rule    { height: 1px; background: var(--color-border); border: 0; }

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn--primary:hover { background: var(--color-accent-hover); box-shadow: var(--glow); }

.btn--outline {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border-strong);
}
.btn--outline:hover { border-color: var(--color-foreground); background: var(--color-surface-2); }

.btn--lg { min-height: 54px; padding-inline: var(--space-6); font-size: var(--text-base); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  min-height: 44px;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- 6. Cards ------------------------------------------------------------ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card--link { text-decoration: none; color: inherit; }
.card--link:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
/* Unboxed: no chip, no tinted square. The mark sits in the text column. */
.card__icon {
  display: block;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-4);
}
.card__icon svg { width: 26px; height: 26px; stroke-width: 1.25; }
.card--link:hover .card__icon { color: var(--color-accent); }
.card h3 { font-size: var(--text-xl); }
.card p { color: var(--color-muted-foreground); font-size: var(--text-sm); }
.card__num {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted-foreground);
}

/* --- 7. Header / Nav ----------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4); top: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 19, 18, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-foreground);
  padding-block: var(--space-2);
}
/* Horizontal brand lockup, composed from the supplied artwork (bull + wordmark)
   on a transparent ground — see tools/make_assets.py. Sized by height so the
   aspect ratio is never distorted. */
.brand__lockup {
  height: 44px;
  width: auto;
  flex: none;
}
@media (max-width: 420px) { .brand__lockup { height: 38px; } }
.brand--footer .brand__lockup { height: 52px; }

/* Brand sits hard left; everything else is one right-aligned group. The group
   stretches to the full header height so the active indicator can sit on the
   header's bottom edge rather than through the text. */
.header__group {
  display: none;
  align-self: stretch;
  align-items: stretch;
  gap: var(--space-6);
  margin-left: auto;
}
@media (min-width: 1060px) { .header__group { display: flex; } }
.header__group .btn { align-self: center; }

.nav { display: flex; align-self: stretch; gap: var(--space-5); }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color var(--transition);
}
/* Indicator rides the header's lower boundary, clear of every descender. */
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav a:hover { color: var(--color-foreground); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--color-foreground); }
.nav a[aria-current='page']::after { transform: scaleX(1); background: var(--color-accent); }
/* The nav-toggle takes the right edge below the desktop breakpoint. */
.nav-toggle { margin-left: auto; }
@media (min-width: 1060px) { .nav-toggle { margin-left: 0; } }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-foreground);
}
@media (min-width: 1060px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }
.nav-toggle[aria-expanded='true'] .icon-open  { display: none; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-4) 0 var(--space-6);
}
.mobile-nav[data-open='true'] { display: block; }
@media (min-width: 1060px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-foreground);
  text-decoration: none;
}
.mobile-nav .btn { margin-top: var(--space-5); }

/* --- 8. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(var(--space-8), 7vw, var(--space-10));
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  isolation: isolate;
  /* Own the first viewport, so nothing below it is half-visible at the fold.
     min-height only sets a floor — a taller hero still grows naturally. svh
     accounts for mobile browser chrome; the vh line is the fallback. */
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}
/* Short landscape screens: don't force a tall hero the user must scroll past. */
@media (max-height: 620px) {
  .hero { min-height: 0; }
}
.hero > .container { width: 100%; }
/* Photographic backdrop. Set --hero-image on .hero to switch it on; with no
   image the hero simply sits on the page ground, so nothing breaks if the file
   is missing. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the frame right so the subject sits clear of the copy column. */
  object-position: 72% 32%;
}
/* Scrim: near-solid behind the text column, opening up across the right so the
   photograph reads. Keeps headline contrast well past AA over any image. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg,
      var(--color-background) 0%,
      color-mix(in srgb, var(--color-background) 97%, transparent) 38%,
      color-mix(in srgb, var(--color-background) 74%, transparent) 58%,
      color-mix(in srgb, var(--color-background) 34%, transparent) 80%,
      color-mix(in srgb, var(--color-background) 22%, transparent) 100%),
    linear-gradient(to bottom,
      color-mix(in srgb, var(--color-background) 55%, transparent) 0%,
      transparent 22%,
      transparent 60%,
      var(--color-background) 100%);
}
@media (max-width: 860px) {
  /* Portrait screens have no room for the copy to sit clear of the subject. */
  .hero__media::after {
    background: linear-gradient(to bottom,
      color-mix(in srgb, var(--color-background) 82%, transparent) 0%,
      color-mix(in srgb, var(--color-background) 88%, transparent) 55%,
      var(--color-background) 100%);
  }
}
.hero > .container { position: relative; }
.hero h1 { margin-bottom: var(--space-5); }
.hero__actions { margin-top: var(--space-6); }

/* Single-column hero: the statement carries the section on its own, so the
   measure is held short enough to stay readable on a wide screen. */
/* Copy occupies the left half so the photograph stays visible beside it. */
.hero__single { max-width: 62ch; }
@media (min-width: 1000px) { .hero__single { max-width: min(70ch, 60%); } }
.hero__single h1 { max-width: 15ch; }
.hero__single .lede { max-width: none; }

.hero__logo {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* --- 9. Stats ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.stat { padding: var(--space-5); border-bottom: 1px solid var(--color-border); }
.stat:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .stat { border-bottom: 0; border-right: 1px solid var(--color-border); }
  .stat:last-child { border-right: 0; }
}
.stat__value {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat__label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted-foreground);
}

/* --- 10. Spec list (key/value facts) ------------------------------------- */
/* Keyed off the list's own width, not the viewport: the same component sits in
   a full-width page section and in a narrow sidebar card. */
.spec { border-top: 1px solid var(--color-border); container-type: inline-size; }
.spec--flush { border-top: 0; }
.spec__row {
  display: grid;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.spec__row:last-child { border-bottom: 0; }
@container (min-width: 520px) {
  .spec__row { grid-template-columns: minmax(140px, 210px) 1fr; align-items: baseline; }
}
/* Fallback for browsers without container queries. */
@supports not (container-type: inline-size) {
  @media (min-width: 640px) {
    .spec__row { grid-template-columns: minmax(150px, 230px) 1fr; align-items: baseline; }
  }
}
.spec__val a { white-space: nowrap; }
.spec__key {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted-foreground);
}
.spec__val { font-size: var(--text-sm); font-weight: 500; }
.spec__val a { font-weight: 600; }

/* --- 10b. Index list ------------------------------------------------------
   Services as a typographic index rather than a grid of boxes: full-bleed
   rows, hairline rules, the name set large. Nothing is enclosed. */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.index-row {
  display: grid;
  gap: var(--space-3) var(--space-6);
  align-items: baseline;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: padding-left var(--transition), border-color var(--transition);
}
@media (min-width: 900px) {
  .index-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; }
}
.index-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.7vw, var(--text-2xl));
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-foreground);
  transition: color var(--transition);
}
.index-row__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-muted-foreground);
  max-width: 52ch;
}
.index-row__go {
  display: none;
  color: var(--color-muted-foreground);
  transition: transform var(--transition), color var(--transition);
}
@media (min-width: 900px) { .index-row__go { display: block; } }
.index-row__go svg { width: 22px; height: 22px; stroke-width: 1.25; }

.index-row:hover { padding-left: var(--space-4); border-color: var(--color-border-strong); }
.index-row:hover .index-row__title { color: var(--color-accent); }
.index-row:hover .index-row__go { color: var(--color-accent); transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) {
  .index-row:hover { padding-left: 0; }
  .index-row:hover .index-row__go { transform: none; }
}

/* --- 10c. Sticky split ----------------------------------------------------
   The section heading holds its position while its content scrolls past. */
.sticky-split { display: grid; gap: var(--space-7); }
@media (min-width: 1000px) {
  .sticky-split {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: var(--space-8);
    align-items: start;
  }
  .sticky-split__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

/* --- 11. Process steps --------------------------------------------------- */
.steps { counter-reset: step; display: grid; }
.step {
  counter-increment: step;
  display: grid;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 700px) {
  .step { grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
  .step__num { grid-row: 1 / span 2; }
}
.step:last-child { border-bottom: 1px solid var(--color-border); }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, var(--text-3xl));
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--color-border-strong);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: var(--text-xl); }
.step p { color: var(--color-muted-foreground); font-size: var(--text-sm); }

/* --- 12. Lists, tags ----------------------------------------------------- */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}
.checklist svg { width: 18px; height: 18px; color: var(--color-accent); margin-top: 3px; }

.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 5px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-muted-foreground);
  white-space: nowrap;
}

/* --- 12a. Detail grid -----------------------------------------------------
   Key/value detail that would run tall and thin in a sidebar. Laid across the
   full width instead, so it reads as a short wide band. */
.detail-block { margin-top: var(--space-8); }
.detail-grid {
  display: grid;
  gap: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}
@media (min-width: 680px)  { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.detail__k {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-2);
}
.detail__v { font-size: var(--text-sm); font-weight: 500; line-height: 1.55; }

/* --- 12b. Contact actions -------------------------------------------------
   The site is static, so the primary actions are a mail and a phone link
   rather than a form. Each is a full target, not a text link. */
.contact-actions { display: grid; gap: var(--space-4); }
.contact-action {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), background-color var(--transition),
              transform var(--transition);
}
.contact-action:hover {
  border-color: var(--color-border-strong);
  border-left-color: var(--color-accent);
  background: var(--color-surface-2);
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) { .contact-action:hover { transform: none; } }
.contact-action__label { font-size: var(--text-sm); color: var(--color-muted-foreground); }
.contact-action__value {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, var(--text-xl));
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-accent);
  word-break: break-word;
}
.contact-action__note { font-size: var(--text-sm); color: var(--color-muted-foreground); }

/* --- 14. FAQ / disclosure ------------------------------------------------ */
.faq { border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-4) 0;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 11px; height: 11px;
  flex: none;
  border-right: 2px solid var(--color-muted-foreground);
  border-bottom: 2px solid var(--color-muted-foreground);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq p { padding-bottom: var(--space-5); color: var(--color-muted-foreground); font-size: var(--text-sm); max-width: 76ch; }

/* --- 15. CTA band -------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.cta-band > * { position: relative; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1.5fr) auto; } }
.cta-band p { color: var(--color-muted-foreground); margin-top: var(--space-3); max-width: 66ch; }

/* --- 16. Footer ---------------------------------------------------------- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted-foreground);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
}
.footer a { color: var(--color-muted-foreground); text-decoration: none; }
.footer a:hover { color: var(--color-foreground); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--space-7); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; } }
.footer h4 {
  color: var(--color-foreground);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.footer__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: var(--space-2);
}
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-1); }
.footer li a { display: inline-flex; align-items: center; min-height: 34px; }
.footer .brand { margin-right: 0; }
.footer__legal {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}
address { font-style: normal; }

/* --- 17. Page header (interior pages) ------------------------------------ */
.page-head {
  position: relative;
  padding-block: clamp(var(--space-7), 5vw, var(--space-9)) clamp(var(--space-6), 4vw, var(--space-8));
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
}
.page-head > .container { position: relative; }
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); text-decoration: underline; }
.breadcrumb span { margin-inline: var(--space-2); opacity: .5; }

/* --- 18. Prose (legal / long-form) --------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.prose p, .prose li { color: var(--color-muted-foreground); font-size: var(--text-base); }
.prose p { margin-bottom: var(--space-4); }
.prose ul, .prose ol { margin-bottom: var(--space-4); display: grid; gap: var(--space-2); }
.prose strong { color: var(--color-foreground); font-weight: 700; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.prose th, .prose td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.prose th { background: var(--color-surface-2); font-weight: 700; color: var(--color-foreground); }
.prose td { color: var(--color-muted-foreground); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-7);
}
.toc h2 { font-size: var(--text-sm) !important; margin: 0 0 var(--space-3) !important; border: 0 !important; padding: 0 !important; }
.toc ol { margin: 0; display: grid; gap: var(--space-1); }
.toc li { font-size: var(--text-sm); }

/* --- 19. Team ------------------------------------------------------------ */
.person { display: grid; gap: var(--space-3); }
.person__avatar {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-border-strong);
  letter-spacing: -.03em;
}
.person__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-foreground);
}

/* --- 20. Motion -----------------------------------------------------------
   One decelerating curve and three durations for everything. Offsets stay
   between 8 and 16px so a reveal reads as a fade, never as a slide, and no
   view animates more than a couple of elements. */
:root {
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --dur-fast: 220ms;
  --dur:      460ms;
  --dur-slow: 780ms;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }

/* Hero entrance on load: the one place with a deliberate sequence. */
.hero__single > * { animation: rise var(--dur-slow) var(--ease-out) both; }
.hero__single > *:nth-child(1) { animation-delay: 80ms; }
.hero__single > *:nth-child(2) { animation-delay: 180ms; }
.hero__single > *:nth-child(3) { animation-delay: 260ms; }
.hero__single > *:nth-child(4) { animation-delay: 330ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
/* The photograph settles rather than sits still. Transform only, so it stays
   on the compositor and never triggers layout. */
.hero__media img { animation: settle 1400ms var(--ease-out) both; }
@keyframes settle {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: none; }
}

/* Header condenses once the page has moved. */
.header {
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.header[data-scrolled='true'] {
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  border-bottom-color: var(--color-border-strong);
  box-shadow: 0 12px 32px -24px rgba(0, 0, 0, .9);
}

/* Disclosure. A closed <details> does not render its children in most engines,
   so an open/close height transition cannot run; the answer fades up on open
   instead, which works everywhere. The chevron rotation carries the rest. */
.faq details[open] > *:not(summary) {
  animation: rise var(--dur) var(--ease-out) both;
}

/* Nothing above is load-bearing: with JS off, or motion reduced, every
   element renders in its final state. */
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__single > *,
  .hero__media img { animation: none !important; opacity: 1 !important; transform: none !important; }
  .faq details[open] > *:not(summary) { animation: none !important; }
}

/* --- 21. Utilities ------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.max-narrow { max-width: var(--container-narrow); }

@media print {
  .header, .footer, .cta-band, .nav-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .prose p, .prose li { color: #000; }
}
