/* ============================================================
   RECKKTECH — design system
   Palette: void navy / deep navy / metallic silver / platinum paper
   Type: Michroma (brand) · Clash Display (display) · Satoshi (body)
         · JetBrains Mono (data)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink-0: #162041;
  --ink-1: #1d2a56;
  --ink-2: #263670;
  --fg: #eef0f6;
  --muted: #a8b0cb;
  --silver: #ced1d8;
  --line: rgba(238, 240, 246, 0.14);
  --line-strong: rgba(238, 240, 246, 0.34);
  --paper: #e8eaef;
  --focus: #a9bcff;

  --metal: linear-gradient(105deg, #9a9da2 0%, #e0e2e6 20%, #ffffff 38%,
           #c4c7cd 55%, #8f9298 74%, #d8dbe1 100%);
  --stripes: repeating-linear-gradient(135deg, rgba(238, 240, 246, 0.11) 0 1px,
             transparent 1px 12px);
  --gold: #c7ae6a;
  --stripes-gold: repeating-linear-gradient(135deg, rgba(199, 174, 106, 0.17) 0 1px,
                  transparent 1px 12px);

  --font-brand: 'Michroma', 'Arial Black', sans-serif;
  --font-display: 'Clash Display', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
em { font-style: normal; }
strong { color: var(--fg); }

::selection { background: var(--silver); color: var(--ink-0); }

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

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 3000;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink-1);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Film grain over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type utilities ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "// ";
  color: var(--silver);
  letter-spacing: 0;
}

.display-l {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.metal {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metal--sheen {
  background-size: 220% 100%;
  animation: sheen 4s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Reveal on scroll (gated behind .js) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(56px);
  filter: blur(10px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease),
              filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.3s ease, background-color 0.3s ease, filter 0.3s ease;
  will-change: transform;
}

.btn--metal {
  background: var(--metal);
  background-size: 160% 100%;
  color: var(--ink-1);
  box-shadow: 0 12px 44px rgba(233, 235, 241, 0.12);
}
.btn--metal:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 56px rgba(233, 235, 241, 0.2);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn--ghost:hover {
  border-color: var(--silver);
  background: rgba(233, 235, 241, 0.05);
}

.btn--small { padding: 11px 24px; font-size: 0.85rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: border-color 0.3s ease, gap 0.3s var(--ease);
}
.arrow-link:hover { border-color: var(--silver); gap: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  transition: background-color 0.4s ease, border-color 0.4s ease,
              backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(17, 25, 52, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
body.menu-open .nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav__inner {
  width: min(100% - 2 * var(--gutter), 1440px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand__mark { width: 40px; height: 40px; }
.brand__word {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  color: #c7ae6a;
}

.nav__links {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  background: linear-gradient(var(--silver), var(--silver)) left bottom / 0 1px no-repeat;
  transition: color 0.3s ease, background-size 0.4s var(--ease);
}
.nav__links a:hover { color: var(--fg); background-size: 100% 1px; }
.nav__links a[aria-current="page"] {
  color: var(--fg);
  background-size: 100% 1px;
}

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav__burger span { position: relative; }
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(110% 80% at 80% 0%, rgba(48, 66, 133, 0.9) 0%, transparent 60%),
    var(--ink-0);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 130px var(--gutter) 44px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.menu.is-open { opacity: 1; visibility: visible; }

.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--fg);
  padding: 6px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.06s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.12s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.18s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.24s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.30s; }
.menu__links a[aria-current="page"] .menu__num { color: var(--fg); }

.menu__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.menu__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.menu__meta a:hover { color: var(--fg); }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 11vw, 168px) 0; }

.section--paper {
  background: var(--paper);
  color: #0b1120;
  --fg: #0b1120;
  --muted: #4b5468;
  --silver: #6a707d;
  --line: rgba(11, 17, 32, 0.14);
  --line-strong: rgba(11, 17, 32, 0.3);
}

.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ============================================================
   HOME
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 72% 8%, #34478f 0%, #202d61 46%, #162041 100%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__video.is-live { opacity: 0.55; }
.hero__video.is-hidden { display: none; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 32, 65, 0.5) 0%, rgba(22, 32, 65, 0.08) 40%,
                    rgba(22, 32, 65, 0.75) 88%, var(--ink-0) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
}

.hero__eyebrow { margin-bottom: 30px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11.5vw, 10rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 34px;
}

.hero__sub {
  max-width: 560px;
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__foot {
  position: absolute;
  left: 0; right: 0;
  bottom: 30px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--silver), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Hero load-in */
html.js .hero__eyebrow,
html.js .hero__title,
html.js .hero__sub,
html.js .hero__actions,
html.js .hero__foot {
  opacity: 0;
  animation: rise 1.1s var(--ease) forwards;
}
html.js .hero__title { animation-delay: 0.15s; }
html.js .hero__sub { animation-delay: 0.3s; }
html.js .hero__actions { animation-delay: 0.45s; }
html.js .hero__foot { animation-delay: 0.7s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(64px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- Statement ---------- */
.statement__lede {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 1080px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.statement__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1080px;
  color: var(--muted);
}

/* ---------- Capabilities ---------- */
.caps__list { border-bottom: 1px solid var(--line); }

.cap-row a {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1.1fr 1fr 56px;
  align-items: center;
  gap: 32px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.cap-row a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stripes-gold);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.cap-row a:hover::after { opacity: 1; }
.cap-row a:hover { padding-left: 22px; padding-right: 4px; }

.cap-row__code { color: var(--silver); }

.cap-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.cap-row__desc { color: var(--muted); font-size: 0.98rem; }

.cap-row__arrow {
  font-size: 1.5rem;
  color: var(--muted);
  justify-self: end;
  transition: transform 0.4s var(--ease), color 0.3s ease;
}
.cap-row a:hover .cap-row__arrow {
  transform: translateX(14px);
  color: var(--gold);
}

/* ---------- Featured work ---------- */
.work__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(48, 66, 133, 0.6), rgba(29, 42, 86, 0.3));
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}
.work-card:hover {
  transform: translateY(-12px) scale(1.015);
  border-color: rgba(199, 174, 106, 0.6);
  box-shadow: 0 34px 80px rgba(9, 13, 27, 0.55),
              0 0 0 1px rgba(199, 174, 106, 0.25),
              0 12px 50px rgba(199, 174, 106, 0.08);
}

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

.work-card__route {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
}

.route__from { color: var(--muted); }
.route__arrow {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 2px;
}
.route__to { color: var(--fg); }

.work-card__desc {
  color: var(--muted);
  font-size: 0.96rem;
  flex-grow: 1;
}

.work-card__stat {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-weight: 700;
  font-size: 1.02rem;
}
.work-card__stat .metal { font-family: var(--font-display); font-size: 1.35rem; }

/* ---------- Stats (paper) ---------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat {
  border-top: 2px solid var(--fg);
  padding-top: 24px;
}
.stat__label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  min-height: 2.4em;
  display: block;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  font-weight: 600;
  line-height: 1;
  margin-top: 14px;
  letter-spacing: -0.02em;
}

/* ---------- Process ---------- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  counter-reset: step;
}

.process__step {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.process__num { color: var(--silver); display: block; margin-bottom: 18px; }
.process__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.process__desc { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA ---------- */
.cta {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 100% at 50% 120%, rgba(52, 71, 143, 0.75) 0%, transparent 70%),
    var(--ink-0);
}

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  animation: marquee 44s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cta__inner {
  text-align: center;
  padding: clamp(110px, 14vw, 200px) var(--gutter);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.5vw, 6.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 52px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta--quiet { background: var(--ink-0); }
.cta--quiet .cta__inner { padding: clamp(80px, 9vw, 130px) var(--gutter); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 96px) 0 36px;
  background: var(--ink-0);
}

.footer__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand--footer .brand__word { font-size: 1.35rem; }
.footer__tag { color: var(--muted); font-size: 0.95rem; }
.footer__abn {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: clamp(40px, 5vw, 72px);
  max-width: 900px;
}
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__col a, .footer__col span {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 5px 0;
  transition: color 0.3s ease;
  width: fit-content;
}
.footer__col a:hover { color: var(--fg); }
.footer__head {
  color: var(--silver);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  margin: 0 0 14px;
  font-weight: 500;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   INNER PAGES
   ============================================================ */

/* ---------- Page hero ---------- */
.page-hero {
  padding: clamp(170px, 24vh, 260px) 0 clamp(60px, 8vw, 110px);
  background:
    radial-gradient(100% 70% at 80% 0%, rgba(52, 71, 143, 0.65) 0%, transparent 65%),
    var(--ink-0);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 8vw, 7.2rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}

.page-hero__intro {
  max-width: 760px;
  font-size: 1.18rem;
  color: var(--muted);
}

.page-hero__meta {
  margin-top: 34px;
  color: var(--silver);
  letter-spacing: 0.22em;
}

.page-hero__jump {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.page-hero__jump a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 22px;
  letter-spacing: 0.24em;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.page-hero__jump a:hover { color: var(--fg); border-color: var(--silver); }

/* ---------- About: founder ---------- */
.founder__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.founder__portrait svg {
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.founder__portrait figcaption {
  margin-top: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  text-align: center;
}

.founder__body p { color: var(--muted); margin-bottom: 22px; max-width: 620px; }
.founder__body .display-l { margin-bottom: 30px; }

.founder__creds {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.founder__creds li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ---------- About: pillars ---------- */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}

.pillar {
  border-top: 2px solid var(--fg);
  padding-top: 26px;
}
.pillar__name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.pillar__name::before {
  content: "// ";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--silver);
  vertical-align: 0.15em;
}
.pillar p { color: var(--muted); font-size: 0.98rem; }

/* ---------- About: timeline ---------- */
.timeline__list { border-bottom: 1px solid var(--line); }

.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.tl-year { color: var(--silver); padding-top: 5px; }
.tl-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.tl-body p { color: var(--muted); max-width: 680px; font-size: 0.98rem; }

.tl-item--mark .tl-year,
.tl-item--now .tl-year {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}
.tl-item--mark { background: linear-gradient(90deg, rgba(48, 66, 133, 0.5), transparent 70%); }

/* ---------- About: industries ---------- */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.industries__grid li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.industries__grid li:hover { border-color: var(--silver); color: var(--fg); }

/* ---------- Services ---------- */
.service { scroll-margin-top: 90px; }
.service--alt { background: var(--ink-1); }

.service__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 6vw, 110px);
  align-items: start;
}
.service--alt .service__grid { grid-template-columns: 1.15fr 0.85fr; }
.service--alt .service__head { order: 2; }
.service--alt .service__body { order: 1; }

.service__head { position: sticky; top: 120px; }
.service__code {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 20px;
  letter-spacing: 0.3em;
  color: var(--silver);
  margin-bottom: 26px;
}

.service__lede { font-size: 1.22rem; color: var(--fg); line-height: 1.6; }

.service__list { margin-top: 34px; border-top: 1px solid var(--line); }
.service__list li {
  position: relative;
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.99rem;
}
.service__list li::before {
  content: "//";
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--silver);
}

.service__proof {
  margin-top: 30px;
  padding-left: 16px;
  border-left: 2px solid var(--silver);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

/* ---------- Services: FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(48px, 6vw, 110px);
  align-items: start;
}
.faq__grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }

.faq__list { border-bottom: 1px solid var(--line); }

.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.12rem;
  list-style: none;
  transition: color 0.3s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--silver);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--silver); }
.faq__item summary:hover::after { color: var(--gold); }
.faq__item p {
  padding: 0 40px 28px 0;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Portfolio: ledger ---------- */
.ledger { padding-top: clamp(30px, 4vw, 60px); }

.ledger__head {
  display: grid;
  grid-template-columns: 120px 1fr 150px 40px;
  gap: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
}

.ledger-item { border-bottom: 1px solid var(--line); }

.ledger-item summary {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 150px 40px;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  cursor: pointer;
  list-style: none;
  transition: padding 0.4s var(--ease);
}
.ledger-item summary::-webkit-details-marker { display: none; }
.ledger-item summary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stripes-gold);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.ledger-item summary:hover::after { opacity: 1; }
.ledger-item summary:hover { padding-left: 22px; padding-right: 4px; }
.ledger-item summary:hover .ledger-item__toggle { color: var(--gold); }

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

.ledger-item__client {
  display: block;
  color: var(--silver);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
}

.ledger-item .route {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.ledger-item__stat {
  color: var(--fg);
  text-align: right;
  font-size: 0.78rem;
}

.ledger-item__toggle {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--silver);
  text-align: center;
  transition: transform 0.35s var(--ease);
}
.ledger-item[open] .ledger-item__toggle { transform: rotate(45deg); }

.ledger-item__body {
  padding: 0 0 40px;
  margin-left: 148px;
  max-width: 760px;
}
.ledger-item__body p { color: var(--muted); }

.ledger-item__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.ledger-item__facts li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact { padding-top: clamp(30px, 4vw, 60px); }

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 38px);
  background: linear-gradient(165deg, rgba(48, 66, 133, 0.5), rgba(29, 42, 86, 0.25));
}
.contact-card__head {
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.68rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.contact-card__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.contact-card__row:first-of-type { border-top: none; }
.contact-card__label {
  color: var(--silver);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
}
a.contact-card__row span:last-child {
  background: linear-gradient(var(--silver), var(--silver)) left bottom / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
  width: fit-content;
}
a.contact-card__row:hover span:last-child { background-size: 100% 1px; }

.next-steps { margin-top: 44px; border-bottom: 1px solid var(--line); }
.next-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.next-steps__num { color: var(--silver); padding-top: 3px; }
.next-steps p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Contact: form ---------- */
.form {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(165deg, rgba(48, 66, 133, 0.55), rgba(29, 42, 86, 0.3));
}

.field { margin-bottom: 28px; }
.field label {
  display: block;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.field__opt { opacity: 0.55; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(14, 21, 45, 0.55);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 18px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(233, 235, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(157, 178, 255, 0.14);
}
.field ::placeholder { color: rgba(152, 160, 181, 0.55); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9ccd2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}
.field select:invalid { color: rgba(152, 160, 181, 0.7); }
.field option { color: #0b1120; background: #e8eaef; }

.field textarea { resize: vertical; min-height: 150px; }

.form__submit { width: 100%; margin-top: 6px; }

.form__note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

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

@media (max-width: 1100px) {
  .work__list { grid-template-columns: 1fr; max-width: 680px; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 440px; }
  .service__grid,
  .service--alt .service__grid { grid-template-columns: 1fr; }
  .service--alt .service__head { order: 0; }
  .service--alt .service__body { order: 0; }
  .service__head { position: static; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid .section-head { position: static; margin-bottom: 40px; }
  .contact__grid { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: 1fr; gap: 40px; }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .statement__body { grid-template-columns: 1fr; gap: 24px; }
  .hero__foot > .mono:last-child { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .cap-row a {
    grid-template-columns: 1fr 40px;
    grid-template-areas:
      "code arrow"
      "title arrow"
      "desc desc";
    gap: 10px 16px;
    padding: 32px 0;
  }
  .cap-row__code { grid-area: code; }
  .cap-row__title { grid-area: title; }
  .cap-row__desc { grid-area: desc; }
  .cap-row__arrow { grid-area: arrow; align-self: center; }
  .cap-row a:hover { padding-left: 0; padding-right: 0; }

  .ledger__head { display: none; }
  .ledger-item summary {
    grid-template-columns: 1fr 32px;
    grid-template-areas:
      "year toggle"
      "route toggle"
      "stat toggle";
    gap: 10px 16px;
  }
  .ledger-item__year { grid-area: year; }
  .ledger-item__route { grid-area: route; }
  .ledger-item__stat { grid-area: stat; text-align: left; color: var(--silver); }
  .ledger-item__toggle { grid-area: toggle; }
  .ledger-item__body { margin-left: 0; }
  .ledger-item summary:hover { padding-left: 0; padding-right: 0; }

  .tl-item { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
}

@media (max-width: 420px) {
  .nav .brand__word { font-size: 1.02rem; }
  .nav .brand__mark { width: 34px; height: 34px; }
}

@media (max-width: 700px) {
  .process__steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat__value { font-size: 2.6rem; }
  .hero__actions .btn { width: 100%; }
  .cta__actions .btn { width: min(100%, 340px); }
  .industries__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .hero__eyebrow,
  html.js .hero__title,
  html.js .hero__sub,
  html.js .hero__actions,
  html.js .hero__foot { opacity: 1; animation: none; }
  .marquee__track { animation: none; }
  .scroll-cue__line { animation: none; transform: none; }
}
