/* IGNIUM GROUP — single landing page. Brand values and rules: see DESIGN.md */

@font-face {
  font-family: "Syncopate";
  src: url("../fonts/Syncopate-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f6f4;
  --ink: #0c2339;         /* primary text */
  --ink-2: #3d4f61;       /* secondary text */
  --ink-3: #5f6d7c;       /* muted text */
  --line: rgba(12, 35, 57, 0.12);
  --line-strong: rgba(12, 35, 57, 0.28);

  --navy: #0c2339;
  --on-navy: #f6f6f4;
  --steel: #a9b7d9;       /* buttons, accent; text on navy */
  --steel-hover: #bcc8e4;
  --steel-3: #8796b8;
  --line-dark: rgba(246, 246, 244, 0.14);

  --font-display: "Syncopate", "Arial", sans-serif;
  --font-text: "proxima-nova", "Proxima Nova", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1320px;
  --gutter: 40px;
  --header: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.dark :focus-visible { outline-color: var(--steel); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ---------- Buttons: steel pills ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px;
  padding: 0 24px 0 28px;
  border-radius: 999px;
  background: var(--steel);
  color: var(--ink);
  font: 500 16px/20px var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--steel-hover); }
.btn:active { transform: scale(0.98); }
.btn .arrow { font-size: 15px; line-height: 1; }
.btn--sm { height: 44px; padding: 0 20px 0 24px; font-size: 15px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 244, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header);
}
.logo img { height: 40px; width: auto; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 0; }

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  /* Spans the full content width: the set text is ~9.5x its font size wide */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 9.7), 128px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  margin-top: 40px;
}

.positioning {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.positioning .sep { width: 1px; height: 16px; background: var(--line-strong); }

.hero-sub {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Operations map ---------- */

.map { margin-top: 96px; padding-bottom: 32px; }
.map svg { width: 100%; }
.map text { font-family: var(--font-text); }
.map--narrow { display: none; }
.map-caption {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-3);
}
.map-caption svg { width: 12px; height: 11px; }

/* Draw-in, once on load */
.map .route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1800ms var(--ease) 900ms forwards; }
.map .station { opacity: 0; animation: appear 400ms var(--ease) forwards; }
.map .late { opacity: 0; animation: appear 600ms var(--ease) 2600ms forwards; }
.map .runner { opacity: 0; animation: appear 400ms var(--ease) 2900ms forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- Scroll & load motion (only when html has .motion) ---------- */

/* Scroll progress: a steel hairline along the bottom of the header */
.progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--steel);
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
}
.site-header { transition: box-shadow 300ms var(--ease); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }

/* Wordmark letters rise in */
.motion .wordmark { overflow: hidden; padding-bottom: 0.06em; }
.motion .wordmark .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  animation: rise 1100ms var(--ease) forwards;
  animation-delay: calc(80ms + var(--i) * 40ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Fade and rise into view */
.motion .reveal:not([data-words]) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.motion .reveal.in:not([data-words]) { opacity: 1; transform: none; }

/* Statements rise word by word */
.motion [data-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.motion [data-words].in .w { opacity: 1; transform: none; }

/* Button arrow nudges toward where it goes */
.btn .arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* Audience: a steel rule grows under each name on hover */
.audience li { position: relative; }
.audience li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 48px;
  background: var(--steel);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 400ms var(--ease);
}
.audience li + li::after { left: 32px; }
.audience li:hover::after { transform: scaleX(1); }

/* How it works: a track that fills as you read down the steps */
.steps-wrap { position: relative; }
.steps-track {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--line);
  display: none;
}
.steps-fill {
  position: absolute; inset: 0;
  background: var(--steel);
  transform-origin: top center;
  transform: scaleY(var(--fill, 0));
}
.motion .steps-track { display: block; }
.motion .steps li { padding-left: 32px; }
.motion .steps li .n, .motion .steps li h3 { transition: color 400ms var(--ease); }
.motion .steps li:not(.on) .n { color: var(--line-strong); }
.motion .steps li:not(.on) h3 { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map .route { animation: none; stroke-dashoffset: 0; }
  .map .station, .map .late { animation: none; opacity: 1; }
  .map .runner { display: none; }
  .btn, .btn .arrow, .audience li::after, .site-header { transition: none; }
  .progress { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: 160px 0; border-top: 1px solid var(--line); }

.eyebrow {
  display: flex; align-items: baseline; gap: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 48px;
}
.eyebrow .n { font-variant-numeric: tabular-nums; }

.statement {
  max-width: 22ch;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.two-col {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px;
  margin-top: 80px;
}
.two-col p { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.two-col .lead { color: var(--ink); }

/* Who we work with: three large names */
.audience {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.audience li {
  padding: 32px 32px 0 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.audience li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.audience .n { display: block; margin-bottom: 48px; font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* How it works: numbered rows */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li {
  display: grid; grid-template-columns: 96px 5fr 6fr; gap: 32px; align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.steps .n { font-size: 14px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; line-height: 1.25; letter-spacing: -0.01em; }
.steps p { color: var(--ink-2); max-width: 36rem; }

/* ---------- Closing band + footer ---------- */

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

.closing { padding: 160px 0 64px; }
.closing .statement { max-width: 18ch; }
.closing .eyebrow { color: var(--steel); }
.closing-row {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-top: 56px;
}
.mail {
  font-size: 18px;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
}
.mail:hover { color: var(--on-navy); border-bottom-color: var(--steel); }

.footer-base {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 160px; padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: var(--steel-3);
}
.footer-base img { width: 120px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .map--wide { display: none; }
  .map--narrow { display: block; max-width: 400px; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .audience li:nth-child(3) { padding-left: 0; border-left: 0; }
  .audience li:nth-child(n+3) { margin-top: 32px; border-top: 1px solid var(--line); }
  .audience li:nth-child(3)::after { left: 0; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .steps li { grid-template-columns: 64px 1fr; gap: 12px 16px; }
  .steps p { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; --header: 68px; }
  .logo img { height: 32px; }
  .site-header .btn--sm { height: 40px; padding: 0 16px 0 18px; font-size: 14px; gap: 8px; }
  .hero { padding-top: 64px; }
  .positioning { font-size: 12px; gap: 12px; letter-spacing: 0.14em; }
  .hero-sub { font-size: 18px; }
  .map { margin-top: 64px; }
  .section { padding: 96px 0; }
  .eyebrow { margin-bottom: 32px; }
  .audience { grid-template-columns: 1fr; }
  .audience li, .audience li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .audience li:nth-child(n+3) { margin-top: 0; border-top: 0; }
  .audience li + li::after { left: 0; }
  .motion .steps li { padding-left: 24px; }
  .audience .n { margin-bottom: 12px; }
  .steps li { padding: 28px 0; }
  .closing { padding-top: 96px; }
  .footer-base { margin-top: 96px; }
}

@media (max-width: 420px) {
  .site-header .btn--sm .label-long { display: none; }
}
