/* kodybrown.me — "from drawing to steel"
   Tokens per DESIGN.md, rendered as ONE dark material: shop-dark ground,
   slightly lighter "drawing sheet" panels with pale CAD linework. */

:root {
  --ink: #16181c;                          /* legacy ink family — deep fills, scrims */
  --ground: #121417;                       /* page ground */
  --panel: #1a1d22;                        /* drawing-sheet panel */
  --panel-deep: #15181c;                   /* title-block / caption-bar fill */
  --line: rgba(159, 180, 200, .28);        /* primary linework */
  --line-soft: rgba(159, 180, 200, .14);   /* secondary linework */
  --grid-line: rgba(198, 212, 226, .04);   /* graph-paper grid */
  --text: #e6e8ec;                         /* body text */
  --steel: #8a97a3;                        /* cold-rolled gray-blue */
  --redline: #c8371e;                      /* markup red — THE accent */
  --redline-press: #a92d17;
  --dim: #8b93a0;                          /* muted / mono text */
  --white: #f4f6f8;

  --font-display: "Big Shoulders Display", Impact, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --sheet-max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--ground);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.mono { font-family: var(--font-mono); }
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--redline); color: var(--white); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  mix-blend-mode: difference; /* stays legible over canvas + photos */
}
.nav a { color: #fff; text-decoration: none; font-size: 12px; letter-spacing: .08em; }
.nav-name { font-weight: 500; }
.nav-rev { opacity: .45; margin-left: 8px; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: #fff; transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.6,0,.2,1);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

/* ============ HERO ============ */
.hero { position: relative; background: var(--ground); }
.hero-pin { position: relative; height: 100vh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-copy {
  position: absolute; z-index: 5;
  left: var(--gutter); bottom: clamp(72px, 14vh, 140px);
  max-width: 640px; pointer-events: none;
}
.eyebrow {
  font-size: 12px; letter-spacing: .14em; color: var(--steel);
  margin-bottom: 18px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 11vw, 168px);
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--white);
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line > span { display: inline-block; transform: translateY(110%); }
.hero-sub {
  margin-top: 22px; max-width: 46ch; color: var(--steel); font-size: 16px;
  opacity: 0;
}

/* CTA pair — squared, spec-sheet buttons */
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
  pointer-events: auto; /* .hero-copy is pointer-events:none */
}
.hero-cta {
  display: inline-block;
  padding: 13px 22px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--redline);
  border: 1px solid var(--redline);
  border-radius: 2px;
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}
.hero-cta:hover, .hero-cta:focus-visible {
  background: var(--redline-press); border-color: var(--redline-press);
}
.hero-cta.ghost {
  background: rgba(18, 20, 23, .45); /* solid-ish ink, NOT blur — keeps text legible over canvas */
  color: #c3cad4;
  border: 1px solid var(--line);
}
.hero-cta.ghost:hover, .hero-cta.ghost:focus-visible {
  background: rgba(18, 20, 23, .7);
  color: var(--white); border-color: var(--steel);
}

/* phase labels — bottom right, one visible at a time */
.hero-phase {
  position: absolute; z-index: 5; right: var(--gutter); bottom: clamp(28px, 5vh, 48px);
  text-align: right; font-size: 12px; letter-spacing: .12em; color: var(--steel);
}
.phase-label { display: block; height: 0; overflow: hidden; opacity: 0; }
.phase-label.active { height: auto; opacity: 1; color: var(--white); }
.phase-label.active::before { content: "▸ "; color: var(--redline); }

/* annotations */
.anno-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.anno {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .1em; color: var(--white);
  opacity: 0; transform: translateY(6px);
  white-space: nowrap;
}
.anno-tick { width: 34px; height: 1px; background: var(--redline); flex: none; position: relative; }
.anno-tick::before {
  content: ""; position: absolute; left: -3px; top: -3px;
  width: 5px; height: 5px; border: 1px solid var(--redline); border-radius: 50%;
}

/* tiny fine-print labels, hero bottom corners */
.hero-disclaim {
  position: absolute; z-index: 5; left: var(--gutter); bottom: 18px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: #566070;
}
.scroll-hint {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: 18px; font-size: 11px; letter-spacing: .3em; color: var(--dim);
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translate(-50%, 6px); opacity: .5; } }

/* ============ PROOF STRIP ============ */
.proof {
  background: var(--ground);
  border-top: 1px solid var(--line-soft);
  padding: clamp(56px, 9vh, 110px) var(--gutter);
}
.proof-grid {
  max-width: var(--sheet-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.proof-item { border-left: 1px solid var(--line-soft); padding-left: 22px; min-width: 0; }
.proof-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 5.4vw, 84px); line-height: 1; display: block;
  color: var(--white);
  white-space: nowrap; max-width: 100%;
}
.proof-num em { font-style: normal; color: var(--redline); font-size: .55em; }
/* text-valued dims ("FEA→TEST") shrink to fit on one line */
.proof-item:nth-child(4) .proof-num {
  font-size: clamp(25px, 3.4vw, 52px);
  letter-spacing: -.005em;
  padding-top: .35em; /* keep caption row roughly aligned with the big digits */
}
.proof-cap { display: block; margin-top: 12px; font-size: 11px; letter-spacing: .1em; color: var(--steel); }

/* ============ CAREER SHEETS (dark drawing sheets) ============ */
main { background: var(--ground); color: var(--text); }
.sheet { padding: clamp(28px, 5vh, 64px) var(--gutter); }
.sheet-frame {
  max-width: var(--sheet-max); margin: 0 auto;
  border: 1px solid var(--line);
  background-color: var(--panel);
  /* faint dark-mode graph paper */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.sheet-head {
  display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: var(--panel-deep);
  padding: 10px 22px;
  font-size: 11.5px; letter-spacing: .1em; color: var(--dim);
}
.sheet-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(30px, 4.5vw, 60px) 22px clamp(30px, 4.5vw, 60px) 22px;
}
.sheet-body.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sheet-body.flip .sheet-text { order: 2; }
.sheet-body.flip .sheet-media { order: 1; }

.sheet-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 7vw, 110px); line-height: .9; letter-spacing: .005em;
  color: var(--white);
}
.sheet-role { margin-top: 10px; font-size: 12px; letter-spacing: .14em; color: var(--redline); }
.sheet-lede { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 56ch; color: var(--text); }
.sheet-lede strong, .sheet-points strong {
  font-weight: 600; color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(200, 55, 30, .55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sheet-points { margin-top: 24px; list-style: none; max-width: 58ch; }
.sheet-points li {
  padding: 14px 0 14px 26px; position: relative;
  border-top: 1px solid var(--line-soft);
  font-size: 15.5px; line-height: 1.55; color: #b7bec8;
}
.sheet-points li::before {
  content: ""; position: absolute; left: 2px; top: 22px;
  width: 12px; height: 1.5px; background: var(--redline);
}
.sheet-points em { font-style: italic; }

/* ---- media stack: editorial photo pile, squared, no rotation ---- */
.sheet-media { position: relative; align-self: start; }
/* main.js parallaxes .sheet-media itself — overlap offsets live on children only */

.media-main { position: relative; z-index: 1; margin: 0; }
.media-main img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(.92);
}
#mytra .media-main img { object-position: center 72%; }
.media-main figcaption,
.media-float figcaption {
  border: 1px solid var(--line); border-top: 0;
  background: var(--panel-deep);
  padding: 7px 10px;
  font-size: 10px; letter-spacing: .12em; color: var(--dim);
}

.media-float {
  position: relative; z-index: 2;
  width: 42%; margin: 0;
  background: var(--panel-deep);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .55);
}
.media-float img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(.92);
}
.media-float figcaption { padding: 5px 8px; font-size: 9.5px; }

/* f-a rides up over the main photo's lower-left corner (in flow: keeps height honest) */
.sheet-media .media-float.f-a { margin: -30% 0 0 -14px; }
/* f-b pins to the main photo's upper-right corner (top-anchored: flow-independent) */
.sheet-media .media-float.f-b {
  position: absolute; top: -18px; right: -14px; width: 40%;
}

/* callout card — accent left edge, spec-block stack */
.media-badge {
  position: relative; z-index: 3;
  width: 54%; margin: -12% 0 0 auto;
  background: var(--panel-deep);
  border: 1px solid var(--line);
  border-left: 2px solid var(--redline);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .5);
}
.media-badge small { font-size: 9.5px; letter-spacing: .16em; color: var(--redline); }
.media-badge strong { font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--white); line-height: 1.4; }
.media-badge span { font-size: 11px; letter-spacing: .03em; color: var(--dim); line-height: 1.5; }

.sheet-specs {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: var(--panel-deep);
  padding: 10px 22px;
  font-size: 11px; letter-spacing: .1em; color: var(--dim);
}

/* ============ R&D (same shop, same material) ============ */
.rnd {
  background: var(--ground); color: var(--text);
  padding: clamp(80px, 14vh, 160px) var(--gutter);
}
.rnd-head { max-width: var(--sheet-max); margin: 0 auto; }
.rnd-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 84px); line-height: .95; margin-top: 16px;
  color: var(--white);
}
.rnd-grid {
  max-width: var(--sheet-max); margin: clamp(40px, 6vh, 72px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.rnd-card {
  border: 1px solid var(--line-soft); padding: 28px 26px 26px; position: relative;
  background: var(--panel);
  transition: border-color .3s ease, transform .3s ease;
}
.rnd-card:hover { border-color: var(--line); transform: translateY(-4px); }
.rnd-stamp {
  display: inline-block; font-size: 10px; letter-spacing: .16em;
  color: var(--redline); border: 1px solid var(--redline);
  padding: 4px 8px;
  margin-bottom: 18px;
}
.rnd-name { font-family: var(--font-display); font-weight: 700; font-size: 34px; text-transform: uppercase; letter-spacing: .01em; color: var(--white); }
.rnd-desc { margin-top: 12px; font-size: 15px; color: #b9c2cb; }
.rnd-tech { margin-top: 18px; font-size: 10.5px; letter-spacing: .12em; color: var(--steel); }
.rnd-link {
  display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .1em;
  color: var(--white); text-decoration: none; border-bottom: 1px solid var(--steel);
  padding-bottom: 2px;
}
a.rnd-link:hover { border-color: var(--redline); color: var(--redline); }
span.rnd-link { color: var(--dim); border-color: transparent; }
.rnd-note {
  max-width: var(--sheet-max); margin: 34px auto 0;
  font-size: 11px; letter-spacing: .12em; color: var(--dim);
}

/* ============ ORIGINS ============ */
.origins {
  background: var(--ground); color: var(--text);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  border-top: 1px solid var(--line-soft);
}
.origins-media { position: relative; }
.origins-fig { margin: 0; }
.origins-fig img { width: 100%; height: min(70vh, 640px); object-fit: cover; }
.origins-media .media-float {
  position: absolute; left: clamp(16px, 4vw, 44px); bottom: 28px;
  width: 38%; margin: 0;
}
.origins-text { padding: clamp(40px, 6vw, 90px); }
.origins-lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: #cdd4da; max-width: 44ch; }

/* ============ FOOTER TITLE BLOCK ============ */
.tblock {
  background: var(--ground); color: var(--text);
  padding: clamp(56px, 9vh, 110px) var(--gutter) 28px;
}
.tblock-grid {
  max-width: var(--sheet-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
}
.tb-cell {
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 14px 16px 12px; min-height: 74px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
}
.tb-cell:nth-child(4n) { border-right: none; }
.tb-cell:nth-last-child(-n+4) { border-bottom: none; }
.tb-wide { grid-column: span 2; }
.tb-label { font-size: 9.5px; letter-spacing: .16em; color: var(--dim); }
.tb-value { font-size: 13px; letter-spacing: .06em; color: var(--text); }
.tb-value.big { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: .01em; color: var(--white); }
.tb-value.link { text-decoration: none; border-bottom: 1px solid var(--line); width: fit-content; }
.tb-value.link:hover { color: var(--redline); border-color: var(--redline); }
.tblock-note {
  max-width: var(--sheet-max); margin: 16px auto 0;
  font-size: 10px; letter-spacing: .14em; color: var(--dim);
}

/* ============ REVEALS (JS adds .in) ============ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }

/* ============ FOCUS ============ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--redline); outline-offset: 3px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .sheet-body, .sheet-body.flip { grid-template-columns: 1fr; }
  .sheet-body.flip .sheet-text { order: 1; }
  .sheet-body.flip .sheet-media { order: 2; }
  .rnd-grid { grid-template-columns: 1fr; }
  .origins { grid-template-columns: 1fr; }
  .origins-fig img { height: 46vh; }
  .tblock-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-cell:nth-child(4n) { border-right: 1px solid var(--line-soft); }
  .tb-cell:nth-child(2n) { border-right: none; }
  .tb-cell:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-soft); }
  .tb-cell:nth-last-child(-n+2) { border-bottom: none; }
}

/* media stacks collapse: floats become a flat 2-up grid, nothing overlaps */
@media (max-width: 760px) {
  .sheet-media {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    align-items: start;
  }
  .sheet-media .media-main { grid-column: 1 / -1; }
  .sheet-media .media-float.f-a,
  .sheet-media .media-float.f-b {
    position: static; width: auto; margin: 0; box-shadow: none;
  }
  .media-badge {
    grid-column: 1 / -1; width: auto; margin: 0; box-shadow: none;
  }
  .origins-media .media-float {
    position: static; width: auto; margin: 12px var(--gutter) 0;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-resume) { display: none; }
  .anno { display: none; }
  .hero-phase { display: none; }
  .hero-disclaim { display: none; }
  .hero-copy {
    left: 0; right: 0; padding: 120px var(--gutter) 52px;
    background: linear-gradient(180deg, rgba(18,20,23,0) 0%, rgba(18,20,23,.85) 34%);
    bottom: 0; max-width: none;
  }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-cta { width: 100%; text-align: center; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .hero-h1 .line > span { transform: none; }
  .hero-sub { opacity: 1; }
  .anno { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .scroll-hint { animation: none; }
  * { transition: none !important; }
}

/* ===== R&D demos ===== */
.demo {
  background: var(--panel-deep);
  border: 1px solid var(--line);
  border-radius: 2px;
  margin: 18px 0 14px;
  overflow: hidden;
}
.demo-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim);
}
.demo-dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--redline);
  animation: demo-pulse 2s ease-in-out infinite;
}
@keyframes demo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

#beam-svg, #loop-svg { display: block; width: 100%; height: auto; }
#pen-canvas {
  display: block; width: 100%; height: 240px;
  touch-action: none; cursor: crosshair;
}

.demo-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px;
  padding: 6px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim);
}
.demo-controls label { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.demo-controls output { min-width: 4.5ch; color: var(--text); }

.demo-controls input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: clamp(96px, 14vw, 150px); height: 40px;
  background: transparent; accent-color: var(--redline); cursor: pointer;
}
.demo-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--line);
}
.demo-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--redline); border: 0; margin-top: -6px;
}
.demo-controls input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
.demo-controls input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--redline); border: 0;
}

.demo-btn {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  min-height: 40px; padding: 0 16px;
  background: var(--redline); color: var(--white);
  border: 1px solid var(--redline); border-radius: 2px;
  cursor: pointer;
}
.demo-btn:hover, .demo-btn:focus-visible { background: var(--redline-press); border-color: var(--redline-press); }
.demo-btn:disabled { opacity: .35; cursor: not-allowed; }
.demo-btn.ghost { background: transparent; color: var(--dim); border-color: var(--line); }
.demo-btn.ghost:hover, .demo-btn.ghost:focus-visible {
  background: transparent; color: var(--text); border-color: var(--dim);
}

.demo-readout, .demo-note {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .06em;
  color: var(--dim);
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
}
.demo-readout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  min-height: 34px;
}
.demo-readout em { font-style: normal; color: var(--text); }
.demo-note { min-height: 3.4em; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .demo-dot { animation: none; }
}

/* ===== The Loop (lifecycle) + R&D layout rev 2 ===== */
.lifecycle {
  background: var(--ground); color: var(--text);
  border-top: 1px solid var(--line-soft);
  padding: clamp(72px, 12vh, 140px) var(--gutter);
}
.lc-head { max-width: var(--sheet-max); margin: 0 auto; }
.lc-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 84px); line-height: .95; margin-top: 16px;
  color: var(--white);
}
.lc-lede { margin-top: 18px; max-width: 62ch; font-size: clamp(16px, 1.4vw, 19px); color: #b9c2cb; }
.lc-grid {
  max-width: var(--sheet-max); margin: clamp(36px, 5vh, 64px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  list-style: none; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft);
}
.lc-grid li {
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 26px 24px 30px; background: var(--panel);
}
.lc-num { display: block; font-size: 11px; letter-spacing: .16em; color: var(--redline); }
.lc-grid strong {
  display: block; margin-top: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: .02em; text-transform: uppercase; color: var(--white);
}
.lc-grid p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--dim); }

.rnd-lede { margin-top: 18px; max-width: 62ch; font-size: clamp(16px, 1.4vw, 19px); color: #b9c2cb; }
.rnd-grid { grid-template-columns: repeat(2, 1fr); }
.rnd-wide { grid-column: 1 / -1; }
.demo { margin-top: 20px; }
#loop-svg, #beam-svg { width: 100%; height: auto; display: block; }

@media (max-width: 960px) {
  .lc-grid { grid-template-columns: repeat(2, 1fr); }
  .rnd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lc-grid { grid-template-columns: 1fr; }
}

/* ===== media stack fix: floats/badges must never cover the caption bar ===== */
@media (min-width: 761px) {
  .sheet-media > .media-float.f-a {
    position: absolute; left: -14px; bottom: 84px; margin: 0;
  }
  .sheet-media > .media-badge {
    position: absolute; top: -14px; right: -14px; margin: 0;
    width: min(54%, 300px);
  }
  /* when a sheet has both f-b (top-right) and a badge, stack the badge lower */
  .sheet-media > .media-float.f-b ~ .media-badge { top: auto; bottom: -14px; }
}

/* ===== isothermal forge concept art (Del West sheet) ===== */
.sheet-media .forge-art {
  position: relative; z-index: 2;
  width: 100%; margin: 14px 0 0;
  background: var(--panel-deep);
  border: 1px solid var(--line);
}
/* Del West: forge art occupies the float slot, so f-a joins the flow instead */
@media (min-width: 761px) {
  #delwest .sheet-media > .media-float.f-a {
    position: static; width: 100%; margin: 14px 0 0;
  }
}

/* ===== contact transmittal ===== */
.contact {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  background: var(--ground);
}
.ct-head { max-width: 860px; }
.ct-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 64px); line-height: .95;
  text-transform: uppercase; margin-top: 14px; color: var(--white);
}
.ct-lede { margin-top: 12px; color: var(--dim, #9aa3ab); max-width: 52ch; }
.ct-form {
  margin-top: 34px; max-width: 860px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.ct-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 10.5px; letter-spacing: .14em; color: var(--dim, #9aa3ab);
}
.ct-form .ct-msg { grid-column: 1 / -1; }
.ct-form input, .ct-form textarea {
  background: var(--panel, #1a1d22); color: var(--text, #e8edf2);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px; font: inherit; font-size: 14px;
  letter-spacing: .02em; resize: vertical;
}
.ct-form input:focus-visible, .ct-form textarea:focus-visible {
  outline: none; border-color: var(--redline, #c8371e);
}
.ct-form ::placeholder { color: rgba(159, 180, 200, .35); letter-spacing: .1em; }
.cf-hp { position: absolute; left: -6000px; width: 1px; height: 1px; opacity: 0; }
.ct-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cf-status { font-size: 10.5px; letter-spacing: .12em; color: var(--dim, #9aa3ab); margin: 0; }
@media (max-width: 640px) {
  .ct-form { grid-template-columns: 1fr; }
}
