/* ============================================================
   KRITTVA DNA — Defence · Nuclear · Aerospace
   Design system: machined titanium on graphite.
   Type: Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ============================================================ */

/* Every '&' renders in a neutral system grotesque instead of the display
   face's stylised glyph. unicode-range scopes the override to U+0026 only. */
@font-face {
  font-family: 'AmpNeutral';
  src: local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local('Arial');
  unicode-range: U+0026;
  font-weight: 100 500;
}
@font-face {
  font-family: 'AmpNeutral';
  src: local('Segoe UI Bold'), local('Roboto Bold'), local('Arial Bold'), local('Helvetica Neue Bold');
  unicode-range: U+0026;
  font-weight: 600 900;
}

:root {
  /* Graphite grounds (from logo backplate) */
  --bg:       #0A0C0E;
  --bg-2:     #0E1114;
  --surface:  #13171C;
  --surface-2:#1A1F25;

  /* Machined lines */
  --line:     rgba(203, 215, 227, 0.09);
  --line-2:   rgba(203, 215, 227, 0.18);

  /* Ink */
  --text:     #E9EDF2;
  --muted:    #9AA5B1;
  --faint:    #667079;

  /* Titanium */
  --ti:       #C3CDD8;
  --ti-soft:  rgba(195, 205, 216, 0.08);

  /* Laser ember — used sparingly */
  --ember:    #F0742F;
  --ember-hot:#FFB35C;
  --ember-soft: rgba(240, 116, 47, 0.13);

  /* Brushed-gold text gradient — the precious-metal highlight for emphasis words */
  --metal: linear-gradient(168deg, #FCEFC7 8%, #E7C879 32%, #B4862F 57%, #F3DC9C 86%);
  --steel-btn: linear-gradient(180deg, #EDF1F6 0%, #C2CCD7 100%);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 52px);
  --r: 8px;
  --r-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'AmpNeutral', 'Archivo', 'Segoe UI', -apple-system, sans-serif;
  --body: 'AmpNeutral', 'IBM Plex Sans', 'Segoe UI', -apple-system, sans-serif;
  --mono: 'AmpNeutral', 'IBM Plex Mono', 'Consolas', monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
p, li, dd, figcaption { text-wrap: pretty; }
::selection { background: #33404d; color: #fff; }

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

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--ember);
}
.kicker em { color: var(--ti); font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}
.metal {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 62ch; }
.lede strong { color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1em 1.7em;
  border-radius: 4px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              border-color 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
  white-space: nowrap;
}
.btn--steel {
  background: var(--steel-btn);
  color: #10151b;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 28px rgba(0,0,0,0.45);
}
.btn--steel:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 16px 34px rgba(0,0,0,0.55); }
.btn--line {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255,255,255,0.015);
}
.btn--line:hover { border-color: var(--ti); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn .arr { transition: transform 0.22s var(--ease); font-family: var(--body); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Datum-mark frame (engineering-drawing corners) ---------- */
.datum { position: relative; }
.datum > .dm { position: absolute; inset: 0; pointer-events: none; }
.datum::before, .datum::after,
.datum > .dm::before, .datum > .dm::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--ti);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
}
.datum::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.datum::after  { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.datum > .dm::before { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.datum > .dm::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 12, 14, 0.82);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1.4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.9rem; min-width: 0; }
.brand__mark {
  width: 48px; height: 52px; flex: none;
  display: grid; place-items: center;
}
.brand__mark img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.05;
  white-space: nowrap;
}
.brand__tag {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-top: 3px;
  white-space: nowrap;
}
/* Nav links compete for room here, so scale the wordmark down to fit. */
@media (max-width: 1120px) {
  .brand__mark { width: 42px; height: 46px; }
  .brand__name { font-size: 1.33rem; }
  .brand__tag { font-size: 0.54rem; letter-spacing: 0.018em; }
}

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35em 0;
  position: relative;
  transition: color 0.22s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.active { color: #fff; }
.nav__links a.active::after { transform: scaleX(1); }

.nav__cta { flex: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(78px + clamp(3rem, 9vh, 6.5rem)) 0 clamp(3rem, 7vh, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(110% 70% at 85% 0%, rgba(60, 76, 92, 0.16), transparent 55%),
    radial-gradient(70% 55% at 0% 100%, rgba(240, 116, 47, 0.05), transparent 60%),
    var(--bg);
}
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(100% 80% at 65% 10%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(100% 80% at 65% 10%, #000 25%, transparent 78%);
  opacity: 0.55;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.06;
  margin-bottom: 1.5rem;
}
.hero .lede { margin-bottom: 2.4rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.92) contrast(1.03);
}
.hero__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1.1rem 0.85rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 237, 242, 0.82);
  background: linear-gradient(transparent, rgba(8, 10, 12, 0.85));
}

/* Spec bar under hero */
.specbar {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.specbar__inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1.05rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.specbar__inner b { color: var(--text); font-weight: 600; }
.specbar__inner .sep { color: var(--ember); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: clamp(4.5rem, 9.5vw, 7.5rem); position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 780px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1.15rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }

/* Page hero (interior pages) */
.pagehero {
  padding: calc(78px + clamp(3rem, 8vh, 5.5rem)) 0 clamp(2.6rem, 6vh, 4.2rem);
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(60, 76, 92, 0.15), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.pagehero .container { position: relative; z-index: 2; }

/* Interactive point-lattice canvas (laser follows the cursor) */
.fx-lattice {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Brand wordmarks read white to match the nav lockup; gold is reserved for
   in-copy emphasis words, not the KRITTVA / DNA name itself. */
.name-def .nd-name .metal,
.lockup__name.metal {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

/* Name-definition lockup (About hero): each line is wrap-proof by design */
.name-def { display: flex; flex-direction: column; }
.name-def .nd-name { line-height: 1.05; }
.name-def .nd-name--2 { margin-top: 1.15rem; }
.name-def .nd-gloss {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Floating brand lockup (About) */
.lockup { display: grid; justify-items: center; gap: 1.7rem; text-align: center; }
.lockup img {
  width: min(280px, 58vw);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}
.lockup__name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: 0.075em;
}
.lockup__tag {
  display: block;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.175em;
  color: var(--faint); margin-top: 0.6rem;
}
.pagehero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); font-weight: 700; letter-spacing: -0.022em; margin-bottom: 1.2rem; max-width: 900px; }
.pagehero .lede { max-width: 68ch; }
.pagehero .hero__actions { margin-top: 2.2rem; }

/* ---------- Method (three ways) ---------- */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.method {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.9rem 1.7rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.method--adv {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--line-2);
}
.method h3 { font-size: 1.16rem; margin-bottom: 0.35rem; }
.method .method__sub {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 1.15rem;
}
.method--adv .method__sub { color: var(--ember); }
.method p { font-size: 0.93rem; color: var(--muted); margin-bottom: 1rem; }
.method ul { display: grid; gap: 0.45rem; }
.method li {
  font-size: 0.9rem; color: var(--muted);
  padding-left: 1.4em; position: relative;
}
.method li::before { content: '–'; position: absolute; left: 0; color: var(--faint); }
.method li.pro { color: var(--text); }
.method li.pro::before { content: '+'; color: var(--ti); }
.method--adv li.pro::before { color: var(--ember); }

/* ---------- Process chain ---------- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.chain__step {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.5rem 1.3rem 1.4rem;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chain__step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.chain__no {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--ember);
  display: block; margin-bottom: 0.95rem;
}
.chain__step h4 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.chain__step p { font-size: 0.85rem; color: var(--muted); }
.chain__step .sub { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); display: block; margin-top: 0.7rem; letter-spacing: 0.06em; }

/* ---------- Sector cards ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sector {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.sector:hover { transform: translateY(-5px); border-color: var(--line-2); }
.sector__img { aspect-ratio: 16 / 9.5; overflow: hidden; }
.sector__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.6s var(--ease);
}
.sector:hover .sector__img img { transform: scale(1.045); }
.sector__body { padding: 1.5rem 1.5rem 1.6rem; flex: 1; }
.sector__body h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.sector__body p { font-size: 0.92rem; color: var(--muted); }
.sector__tag {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ti);
  display: block; margin-bottom: 0.75rem;
}

/* ---------- Certification roadmap ---------- */
.certs { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.certs::before {
  content: '';
  position: absolute; top: 5px; left: 2%; right: 2%;
  height: 1px; background: var(--line-2);
}
.cert { position: relative; padding: 2rem 1rem 0 0; }
.cert::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ti);
}
.cert--hot::before { border-color: var(--ember); background: var(--ember-soft); }
.cert__when {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase;
  display: block; margin-bottom: 0.5rem;
}
.cert h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.cert p { font-size: 0.82rem; color: var(--muted); }

/* ---------- Feature list (why) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.feature {
  display: flex; flex-direction: column; gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.7rem 1.6rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: border-color 0.3s var(--ease);
}
.feature:hover { border-color: var(--line-2); }
.feature__key {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; color: var(--ember);
  display: flex; align-items: center; gap: 0.9em;
}
.feature__key::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(240, 116, 47, 0.35), transparent);
}
.feature h3 { font-size: 1.14rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Stats (mono ledger style) ---------- */
.ledger {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.ledger__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1.4fr 0.7fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.ledger__row:last-child { border-bottom: none; }
.ledger__row dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.ledger__row dd { color: var(--text); }
.ledger__row .val { font-family: var(--mono); font-weight: 600; color: var(--ti); text-align: right; font-size: 0.88rem; }

/* ---------- Parts gallery ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.4rem; }
.chip {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.6em 1.15em;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--muted);
  transition: all 0.22s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--ti); }
.chip.on { background: var(--steel-btn); color: #10151b; border-color: transparent; font-weight: 600; }

.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.part {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.part:hover { transform: translateY(-4px); border-color: var(--line-2); }
.part__img { aspect-ratio: 1 / 0.86; overflow: hidden; }
.part__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88); transition: transform 0.55s var(--ease); }
.part:hover .part__img img { transform: scale(1.05); }
.part__body { padding: 1.15rem 1.25rem 1.3rem; }
.part__body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.55rem; line-height: 1.3; }
.part__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.part__meta span {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35em 0.8em;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}
.part__meta .mat { color: var(--ti); border-color: var(--line-2); }
.part.hidden { display: none; }

.gallery-note {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--faint); margin-top: 2rem;
}

/* ---------- Machines / equipment ---------- */
.machines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.machine {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.8rem 1.7rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.machine__qty {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember);
  display: block; margin-bottom: 0.8rem;
}
.machine h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.machine p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.9rem; }
.machine .spec {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ti);
  letter-spacing: 0.05em; line-height: 1.9;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  display: block;
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split--tight { align-items: start; }
.split__media img { width: 100%; border-radius: 2px; filter: saturate(0.9); }
.split__media figcaption {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  margin-top: 0.8rem;
  display: flex; justify-content: space-between; gap: 0.8rem;
}
.split h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1.1rem; }
.split p { color: var(--muted); margin-bottom: 1.1rem; }
.split p strong { color: var(--text); }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: 1fr; gap: 1.4rem; max-width: 880px; }
.person {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 2.1rem 2rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}
.person__photo { position: relative; }
.person__photo img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.88) contrast(1.04);
}
.person__photo figcaption {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  margin-top: 0.8rem;
  display: flex; justify-content: space-between; gap: 0.8rem;
}
.person__role {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember);
  display: block; margin-bottom: 0.8rem;
}
.person h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.person p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }
.person .creds { display: grid; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.2rem; }
.person .creds li {
  font-size: 0.9rem; color: var(--muted);
  padding-left: 1.5em; position: relative;
}
.person .creds li::before { content: '›'; position: absolute; left: 0.2em; color: var(--ti); }
.person .creds li b { color: var(--text); font-weight: 600; }

/* ---------- Careers roles ---------- */
.roles { display: grid; gap: 0.9rem; }
.role {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.4rem 1.7rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.role:hover { border-color: var(--line-2); transform: translateX(4px); }
.role h3 { font-size: 1.08rem; }
.role .role__dept {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
  display: block; margin-top: 0.35rem;
}
.role p { font-size: 0.9rem; color: var(--muted); }
.role .btn { padding: 0.75em 1.3em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-meta { display: grid; gap: 1.35rem; margin-top: 2.2rem; }
.contact-meta li { display: grid; gap: 0.2rem; }
.contact-meta .k {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.contact-meta a, .contact-meta .v { color: var(--text); font-size: 1.05rem; }
.contact-meta a:hover { color: var(--ti); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(1.6rem, 3vw, 2.3rem);
}
.field { display: grid; gap: 0.5rem; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 0.85em 1em;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ti);
  box-shadow: 0 0 0 3px var(--ti-soft);
}
.field select {
  appearance: none; cursor: pointer;
  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' stroke='%239AA5B1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center;
  padding-right: 2.6em;
}
.form .btn { grid-column: 1 / -1; margin-top: 0.2rem; }
/* Spam honeypot. Hidden from people, left visible to naive bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { grid-column: 1 / -1; font-size: 0.9rem; text-align: center; min-height: 1.3em; }
.form__note.ok { color: #9ec49a; }
.form__note.err { color: #e08e7a; }

/* ---------- CTA band ---------- */
.cta {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 50% 120%, rgba(240, 116, 47, 0.07), transparent 60%),
    var(--bg-2);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  right: clamp(-140px, -8vw, -40px); top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  width: clamp(260px, 30vw, 440px);
  height: clamp(280px, 32vw, 470px);
  background: url('../assets/logo-k.png?v=3') center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.cta__inner { text-align: center; padding-block: clamp(4rem, 8vw, 6.5rem); position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.1rem; }
.cta p { color: var(--muted); max-width: 56ch; margin: 0 auto 2.2rem; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: clamp(3.2rem, 6vw, 4.8rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin-top: 1rem; }
.footer h4 {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 1.1rem;
}
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: 0.92rem; padding-block: 0.28em; transition: color 0.22s var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--faint);
}
.footer__jai { color: var(--ti); display: inline-flex; align-items: center; gap: 0.85rem; }
.footer__lion { height: 44px; width: auto; display: block; opacity: 0.92; }

/* ============================================================
   Reveal
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }
.reveal:nth-child(5) { transition-delay: 0.2s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .chain { grid-template-columns: repeat(3, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; }
  .certs::before { display: none; }
  .machines, .features, .people { grid-template-columns: 1fr; }
  .parts { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .methods { grid-template-columns: 1fr; max-width: 560px; }
  .role { grid-template-columns: 1fr; gap: 0.8rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .kicker { font-size: 0.72rem; letter-spacing: 0.15em; }
  .specbar__lead { display: none; }
  .person { grid-template-columns: 1fr; gap: 1.6rem; }
  .person__photo { max-width: 300px; }
  .chip { padding: 0.8em 1.25em; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; padding: 14px 10px; }
  .nav__links.open {
    display: flex; position: absolute; top: 78px; left: 0; width: 100%;
    flex-direction: column; gap: 0;
    background: rgba(10, 12, 14, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem var(--gutter) 1.4rem;
  }
  .nav__links.open a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .chain { grid-template-columns: 1fr; }
  .parts { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .ledger__row { grid-template-columns: 1fr; gap: 0.2rem; }
  .ledger__row .val { text-align: left; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
