/* ==========================================================================
   Lockout — base.css
   Design tokens, reset, typography, utilities.

   BRAND COLOURS: the four values marked "brand" below are placeholders.
   Run tools/asset-studio.html (Tab 1) on images/logo-ingenuity.png to extract
   the real palette, then paste the hex codes here. Everything else derives
   from these variables, so the whole site retheme from this one block.
   ========================================================================== */

:root {
  /* --- brand (REPLACE) --- */
  --brand:        #0E7C86;
  --brand-2:      #12A0AC;
  --brand-ink:    #0A5C63;
  --gold:         #C9A227;

  /* --- dark surfaces --- */
  --ink:          #0A1628;
  --ink-2:        #101F38;
  --ink-3:        #1B2E4D;
  --on-ink:       #F2F6FA;
  --on-ink-muted: #A9B8CB;

  /* --- light surfaces --- */
  --paper:        #FFFFFF;
  --paper-2:      #F5F7FA;
  --paper-3:      #EDF1F6;
  --line:         #E3E8EF;
  --line-strong:  #CFd7E2;
  --text:         #0A1628;
  --muted:        #5B6B80;

  /* --- radii --- */
  --r-sm:   8px;
  --r:      14px;
  --r-lg:   22px;
  --r-pill: 999px;

  /* --- elevation --- */
  --sh-1: 0 1px 2px rgba(10, 22, 40, .06), 0 8px 24px rgba(10, 22, 40, .06);
  --sh-2: 0 24px 60px -20px rgba(10, 22, 40, .28);
  --sh-3: 0 32px 80px -24px rgba(10, 22, 40, .40);
  --sh-brand: 0 14px 32px -12px rgba(14, 124, 134, .45);

  /* --- layout --- */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --header-h: 84px;

  /* --- type --- */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(2.5rem, 6.2vw, 4.75rem);
  --fs-h1:    clamp(2.1rem, 4.6vw, 3.5rem);
  --fs-h2:    clamp(1.8rem, 3.6vw, 3rem);
  --fs-h3:    clamp(1.3rem, 2.2vw, 1.75rem);
  --fs-h4:    clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body:  1rem;
  --fs-sm:    .9375rem;
  --fs-xs:    .8125rem;
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.2rem);

  /* Film-grain overlay used on dark sections. Inline SVG keeps it dependency-free. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");

  /* --- motion --- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .32s;

  color-scheme: light;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

ul[class],
ol[class] { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

:target { scroll-margin-top: calc(var(--header-h) + 2rem); }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-h4); line-height: 1.35; letter-spacing: -.01em; }

p { text-wrap: pretty; }

strong, b { font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}

.eyebrow--center { justify-content: center; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.text-gradient {
  background: linear-gradient(100deg, var(--brand-2) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Focus
   ========================================================================== */

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

.on-dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brand-2);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 880px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.on-dark {
  color: var(--on-ink);
  background: var(--ink);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 { color: var(--on-ink); }

.on-dark .lead,
.on-dark .muted { color: var(--on-ink-muted); }

.muted { color: var(--muted); }

.text-center { text-align: center; }
.mx-auto  { margin-inline: auto; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.max-60 { max-width: 60ch; }

.no-scroll { overflow: hidden; }

/* ==========================================================================
   Scroll reveal — progressive enhancement.
   main.js adds .reveal-ready to <html>; without JS nothing is hidden.
   ========================================================================== */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .fab-stack,
  .hero__media { display: none !important; }

  body { color: #000; background: #fff; }
}