:root {
  --ink: #11120f;
  --ink-soft: #3d413a;
  --paper: #f8faf7;
  --paper-strong: #ffffff;
  --line: #d8ded2;
  --muted: #6f7569;
  --signal: #f05a28;
  --signal-dark: #b63b18;
  --teal: #087b79;
  --teal-dark: #075d5b;
  --gold: #d5a021;
  --steel: #56646a;
  --shadow: 0 20px 70px rgba(17, 18, 15, 0.13);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
  height: 1.05rem;
  width: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skip-link {
  background: var(--paper-strong);
  border: 1px solid var(--ink);
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 30;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  color: var(--paper-strong);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(190px, 1fr) auto minmax(130px, auto);
  left: 0;
  padding: 1.1rem clamp(1rem, 3vw, 2.4rem);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  z-index: 20;
}

.site-header[data-scrolled="true"] {
  background: rgba(248, 250, 247, 0.94);
  border-bottom: 1px solid rgba(17, 18, 15, 0.1);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.brand-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 3vw, 2.1rem);
}

.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 700;
}

.header-action {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.5rem;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.6rem 0.85rem;
}

.hero {
  background: #11120f;
  color: var(--paper-strong);
  display: grid;
  min-height: 84svh;
  overflow: hidden;
  padding: clamp(6.8rem, 15vh, 10rem) clamp(1rem, 4vw, 4rem) clamp(2rem, 6vh, 3.8rem);
  place-items: end start;
  position: relative;
}

#heroCanvas,
.hero-overlay {
  inset: 0;
  position: absolute;
}

#heroCanvas {
  height: 100%;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 18, 15, 0.92), rgba(17, 18, 15, 0.58) 48%, rgba(17, 18, 15, 0.82)),
    linear-gradient(180deg, rgba(17, 18, 15, 0.4), rgba(17, 18, 15, 0.9));
}

.hero-content {
  max-width: 880px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--signal);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0.35rem 0 1.1rem;
  max-width: 8ch;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  margin: 0;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
}

.button.primary {
  background: var(--signal);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--signal-dark);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.button.dark {
  background: var(--ink);
  margin-top: 1.1rem;
}

.button.dark:hover,
.button.dark:focus-visible {
  background: var(--teal-dark);
}

.hero-readout {
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.24);
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: min(760px, calc(100% - 2rem));
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  z-index: 3;
}

.hero-readout div {
  background: rgba(17, 18, 15, 0.58);
  min-width: 0;
  padding: 0.9rem 1rem;
}

.hero-readout div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-readout span {
  color: var(--gold);
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.hero-readout strong {
  color: rgba(255, 255, 255, 0.88);
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}

.signal-strip {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--paper-strong);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.signal-strip p {
  background: rgba(255, 255, 255, 0.055);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0.9rem 0.65rem;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1rem, 3vw, 1.5rem);
}

.intro-grid,
.section-header,
.contact-section {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0.45rem 0 0;
}

.intro-copy {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.intro-copy p {
  margin: 0 0 1rem;
}

.work-section {
  max-width: 1280px;
}

.role-section,
.lab-section,
.concepts-section,
.notes-section {
  max-width: 1280px;
}

.section-header {
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-header.compact {
  display: block;
  max-width: 820px;
}

.section-note {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
  max-width: 420px;
}

.segmented-control {
  align-items: center;
  background: #e9eee6;
  display: inline-flex;
  justify-self: end;
  padding: 0.25rem;
}

.filter-button {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 2.45rem;
  min-width: 4.5rem;
  padding: 0.55rem 0.8rem;
}

.filter-button.active {
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(17, 18, 15, 0.1);
}

.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(17, 18, 15, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.project-card.featured {
  grid-column: span 2;
}

.project-card.is-hidden {
  display: none;
}

.project-visual {
  aspect-ratio: 16 / 8.4;
  background: #11120f;
  border-bottom: 1px solid rgba(17, 18, 15, 0.08);
  overflow: hidden;
  position: relative;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
}

.project-visual::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  inset: 0;
  opacity: 0.55;
}

.project-visual::after {
  border: 2px solid rgba(255, 255, 255, 0.55);
  inset: 26% 11%;
}

.project-visual span {
  background: rgba(17, 18, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.84);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  left: 0.75rem;
  padding: 0.35rem 0.5rem;
  position: absolute;
  text-transform: uppercase;
  z-index: 2;
}

.project-visual[data-visual="feed"] {
  background:
    radial-gradient(circle at 76% 50%, rgba(240, 90, 40, 0.38), transparent 24%),
    linear-gradient(135deg, #141511, #2a302b 52%, #12130f);
}

.project-visual[data-visual="engine"] {
  background:
    radial-gradient(circle at 70% 58%, rgba(240, 90, 40, 0.28), transparent 22%),
    linear-gradient(135deg, #171914, #2e3735);
}

.project-visual[data-visual="engine"]::after {
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0 100%) 22% 28% / 42% 2px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0 100%) 22% 50% / 62% 2px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0 100%) 22% 72% / 48% 2px no-repeat,
    radial-gradient(circle, rgba(8, 123, 121, 0.82) 0 32%, transparent 33%) 25% 34% / 58px 58px no-repeat,
    radial-gradient(circle, rgba(213, 160, 33, 0.76) 0 32%, transparent 33%) 50% 52% / 58px 58px no-repeat,
    radial-gradient(circle, rgba(240, 90, 40, 0.82) 0 32%, transparent 33%) 73% 62% / 58px 58px no-repeat;
  inset: 0;
}

.project-visual[data-visual="feed"]::after {
  border-left: 0;
  border-right: 0;
  height: 38%;
  left: 10%;
  right: 15%;
  top: 31%;
  transform: skewX(-15deg);
}

.project-visual[data-visual="ramjet"] {
  background:
    radial-gradient(circle at 18% 50%, rgba(8, 123, 121, 0.42), transparent 22%),
    linear-gradient(135deg, #11120f, #304047);
}

.project-visual[data-visual="ramjet"]::after {
  border-radius: 50%;
  border-width: 2px;
  left: 19%;
  right: 19%;
  transform: scaleY(0.34);
}

.project-visual[data-visual="buoy"] {
  background:
    linear-gradient(180deg, #f8faf7 0 42%, #087b79 42% 48%, #263a35 48% 100%);
}

.project-visual[data-visual="buoy"]::after {
  background: var(--signal);
  border: 0;
  height: 58px;
  left: 43%;
  right: auto;
  top: 22%;
  transform: rotate(45deg);
  width: 58px;
}

.project-visual[data-visual="print"] {
  background:
    linear-gradient(180deg, #10120f 0 64%, #2e3330 64% 100%);
}

.project-visual[data-visual="print"]::after {
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.64) 0 100%) 20% 24% / 60% 2px no-repeat,
    linear-gradient(90deg, var(--signal) 0 100%) 28% 42% / 44% 6px no-repeat,
    linear-gradient(90deg, var(--signal) 0 100%) 32% 51% / 36% 6px no-repeat,
    linear-gradient(90deg, var(--signal) 0 100%) 36% 60% / 28% 6px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 100%) 22% 78% / 56% 2px no-repeat;
  inset: 0;
}

.project-visual[data-visual="target"] {
  background:
    radial-gradient(circle at 52% 48%, rgba(213, 160, 33, 0.55), transparent 12%),
    repeating-linear-gradient(45deg, #263026 0 18px, #526046 18px 34px, #908c62 34px 48px);
}

.project-visual[data-visual="target"]::after {
  border-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  inset: 24%;
}

.project-visual[data-visual="medical"] {
  background:
    linear-gradient(135deg, rgba(240, 90, 40, 0.2), transparent),
    #eef2ed;
}

.project-visual[data-visual="medical"]::after {
  border: 0;
  background:
    linear-gradient(90deg, var(--teal) 0 18%, transparent 18% 25%, var(--gold) 25% 45%, transparent 45% 52%, var(--signal) 52% 80%, transparent 80%),
    linear-gradient(90deg, transparent 0 10%, var(--ink) 10% 12%, transparent 12% 32%, var(--ink) 32% 34%, transparent 34% 55%, var(--ink) 55% 57%, transparent 57%);
  bottom: 28%;
  height: 42%;
  left: 12%;
  right: 12%;
  top: auto;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.project-meta {
  color: var(--teal);
  display: flex;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.5rem;
  text-transform: uppercase;
}

.project-meta span + span::before {
  color: var(--line);
  content: "/";
  margin-right: 0.5rem;
}

.project-card h3,
.capability-card h3,
.timeline h3 {
  font-size: 1.22rem;
  line-height: 1.1;
  margin: 0.65rem 0 0.6rem;
}

.project-card p,
.capability-card p,
.timeline p {
  color: var(--ink-soft);
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: auto 0 0;
  padding: 1rem 0 0;
}

.tag-list li,
.skill-cloud span,
.asset-placeholder > div > span,
.card-number,
.process-steps span,
.concept-card span,
.note-card span {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.38rem 0.5rem;
}

.role-board {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  padding: 1rem;
}

.role-card.primary-role {
  display: grid;
  gap: 1rem;
  grid-column: span 2;
  grid-template-rows: auto 1fr;
}

.role-card h3,
.lab-card h3,
.concept-card h3,
.note-card h3 {
  font-size: 1.28rem;
  line-height: 1.1;
  margin: 0.8rem 0 0.55rem;
}

.role-card p,
.lab-card p,
.concept-card p,
.note-card p {
  color: var(--ink-soft);
  margin: 0;
}

.role-visual {
  aspect-ratio: 16 / 8;
  background:
    linear-gradient(90deg, rgba(17, 18, 15, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(17, 18, 15, 0.07) 1px, transparent 1px),
    #edf1ea;
  background-size: 24px 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.engine-block {
  border: 2px solid var(--ink);
  height: 40%;
  left: 32%;
  position: absolute;
  top: 30%;
  transform: skewX(-8deg);
  width: 35%;
}

.component-path {
  background: var(--signal);
  height: 3px;
  position: absolute;
  transform-origin: left center;
}

.path-one {
  left: 16%;
  top: 34%;
  transform: rotate(10deg);
  width: 32%;
}

.path-two {
  background: var(--teal);
  left: 48%;
  top: 55%;
  transform: rotate(-16deg);
  width: 34%;
}

.path-three {
  background: var(--gold);
  left: 22%;
  top: 70%;
  transform: rotate(-8deg);
  width: 24%;
}

.process-band {
  background: var(--ink);
  color: var(--paper-strong);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.64fr) minmax(320px, 1fr);
  padding: clamp(4.5rem, 8vw, 7rem) max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
}

.process-steps {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-steps article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  min-height: 100%;
  padding: 1rem;
}

.process-steps span {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--gold);
  display: inline-flex;
}

.process-steps h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
}

.process-steps p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.lab-grid,
.concept-grid,
.notes-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-card,
.concept-card,
.note-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  padding: 1rem;
}

.lab-icon {
  aspect-ratio: 16 / 9;
  background: #eef2ed;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.lab-icon::before,
.lab-icon::after {
  content: "";
  position: absolute;
}

.lab-icon[data-icon="surface"] {
  background:
    radial-gradient(circle at 30% 38%, rgba(8, 123, 121, 0.26), transparent 20%),
    #eef2ed;
}

.lab-icon[data-icon="surface"]::before {
  border: 2px solid var(--signal);
  height: 46%;
  left: 18%;
  top: 26%;
  transform: skewX(-18deg);
  width: 62%;
}

.lab-icon[data-icon="surface"]::after {
  background: var(--teal);
  height: 2px;
  left: 25%;
  top: 56%;
  transform: rotate(-12deg);
  width: 52%;
}

.lab-icon[data-icon="printer"] {
  background: #11120f;
}

.lab-icon[data-icon="printer"]::before {
  border: 2px solid rgba(255, 255, 255, 0.64);
  inset: 18% 18% 28%;
}

.lab-icon[data-icon="printer"]::after {
  background:
    linear-gradient(90deg, var(--signal) 0 100%) 36% 50% / 28% 5px no-repeat,
    linear-gradient(90deg, var(--signal) 0 100%) 39% 59% / 22% 5px no-repeat,
    linear-gradient(90deg, var(--gold) 0 100%) 28% 76% / 44% 2px no-repeat;
  inset: 0;
}

.lab-icon[data-icon="sketch"] {
  background:
    linear-gradient(90deg, rgba(17, 18, 15, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(17, 18, 15, 0.08) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px;
}

.lab-icon[data-icon="sketch"]::before {
  border: 2px solid var(--teal);
  border-radius: 50%;
  height: 46%;
  left: 18%;
  top: 26%;
  width: 28%;
}

.lab-icon[data-icon="sketch"]::after {
  border: 2px solid var(--signal);
  height: 42%;
  right: 20%;
  top: 28%;
  transform: rotate(18deg);
  width: 24%;
}

.economics-band {
  background: #eef2ed;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  padding: clamp(4.5rem, 8vw, 7rem) max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
}

.economics-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 560px;
}

.cost-dashboard {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.cost-dashboard article {
  border: 1px solid var(--line);
  padding: 1rem;
}

.cost-dashboard span {
  color: var(--teal);
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cost-dashboard strong {
  display: block;
  font-size: 1.05rem;
  margin: 0.25rem 0 0.8rem;
}

.bar {
  background: #e3e8df;
  height: 0.55rem;
  overflow: hidden;
  position: relative;
}

.bar::before {
  background: linear-gradient(90deg, var(--teal), var(--signal));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--bar);
}

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

.note-card {
  background:
    linear-gradient(90deg, rgba(213, 160, 33, 0.12) 0 0.45rem, transparent 0.45rem),
    var(--paper-strong);
}

.media-section {
  border-top: 1px solid var(--line);
  max-width: 1280px;
}

.media-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-placeholder {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  padding: 1rem;
}

.asset-placeholder.wide {
  grid-column: span 2;
}

.asset-placeholder h3 {
  font-size: 1.25rem;
  line-height: 1.1;
  margin: 0.75rem 0 0.5rem;
}

.asset-placeholder p {
  color: var(--ink-soft);
  margin: 0;
}

.placeholder-frame {
  aspect-ratio: 16 / 9;
  background: #eef2ed;
  border: 1px dashed #aeb8a8;
  overflow: hidden;
  position: relative;
}

.placeholder-frame::before,
.placeholder-frame::after {
  content: "";
  position: absolute;
}

.placeholder-frame::before {
  background:
    linear-gradient(90deg, rgba(17, 18, 15, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(17, 18, 15, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  inset: 0;
}

.placeholder-frame::after {
  color: rgba(17, 18, 15, 0.48);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  left: 1rem;
  text-transform: uppercase;
  top: 1rem;
}

.placeholder-frame[data-frame="cad"] {
  background:
    linear-gradient(135deg, rgba(8, 123, 121, 0.16), transparent),
    #eef2ed;
}

.placeholder-frame[data-frame="cad"]::after {
  content: "CAD render slot";
}

.placeholder-frame[data-frame="cad"]::before {
  background:
    linear-gradient(30deg, transparent 0 45%, rgba(240, 90, 40, 0.75) 45% 48%, transparent 48%),
    linear-gradient(150deg, transparent 0 42%, rgba(8, 123, 121, 0.75) 42% 45%, transparent 45%),
    linear-gradient(90deg, rgba(17, 18, 15, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(17, 18, 15, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px;
}

.placeholder-frame[data-frame="cfd"] {
  background:
    radial-gradient(circle at 30% 52%, rgba(240, 90, 40, 0.72), transparent 18%),
    radial-gradient(circle at 62% 45%, rgba(213, 160, 33, 0.65), transparent 22%),
    radial-gradient(circle at 74% 66%, rgba(8, 123, 121, 0.74), transparent 25%),
    #15201f;
}

.placeholder-frame[data-frame="cfd"]::after {
  color: rgba(255, 255, 255, 0.76);
  content: "Simulation slot";
}

.placeholder-frame[data-frame="build"] {
  background:
    linear-gradient(180deg, #eef2ed 0 62%, #d8ded2 62% 100%);
}

.placeholder-frame[data-frame="build"]::after {
  content: "Prototype slot";
}

.placeholder-frame[data-frame="build"]::before {
  background:
    linear-gradient(90deg, transparent 0 22%, var(--steel) 22% 34%, transparent 34%),
    linear-gradient(0deg, transparent 0 38%, var(--signal) 38% 58%, transparent 58%);
  inset: 12% 18%;
}

.placeholder-frame[data-frame="report"] {
  background: #fff;
}

.placeholder-frame[data-frame="report"]::after {
  content: "Example slot";
}

.placeholder-frame[data-frame="report"]::before {
  background:
    linear-gradient(var(--ink) 0 0) 16% 28% / 46% 3px no-repeat,
    linear-gradient(var(--line) 0 0) 16% 42% / 68% 2px no-repeat,
    linear-gradient(var(--line) 0 0) 16% 52% / 62% 2px no-repeat,
    linear-gradient(var(--line) 0 0) 16% 62% / 72% 2px no-repeat,
    linear-gradient(var(--teal) 0 0) 16% 78% / 24% 24px no-repeat,
    linear-gradient(var(--gold) 0 0) 46% 72% / 16% 38px no-repeat,
    linear-gradient(var(--signal) 0 0) 68% 64% / 16% 56px no-repeat;
  inset: 0;
}

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

.capability-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.capability-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.story-band {
  background: var(--ink);
  color: var(--paper-strong);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  padding: clamp(4.5rem, 8vw, 7rem) max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
}

.story-content p {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 560px;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1rem;
}

.timeline span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.timeline p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  align-items: center;
  background: var(--teal-dark);
  color: var(--paper-strong);
  max-width: none;
  padding: clamp(4rem, 8vw, 6rem) max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
}

.contact-section .section-kicker {
  color: #ffc857;
}

.contact-actions {
  display: grid;
  gap: 0.8rem;
}

.contact-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  gap: 0.65rem;
  justify-content: center;
  min-height: 3.15rem;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.75rem 1rem;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 3vw, 2.4rem);
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .desktop-nav {
    display: none;
  }

  .intro-grid,
  .section-header,
  .contact-section,
  .story-band,
  .process-band,
  .economics-band {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
  }

  .project-grid,
  .capability-grid,
  .media-grid,
  .role-board,
  .process-steps,
  .lab-grid,
  .concept-grid,
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured,
  .asset-placeholder.wide,
  .role-card.primary-role {
    grid-column: span 2;
  }

  .hero-readout {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand-name {
    display: none;
  }

  .header-action {
    min-height: 2.4rem;
  }

  .hero {
    min-height: 80svh;
    padding-bottom: 16rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 19vw, 5.4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 19rem;
  }

  .hero-readout {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .hero-readout div {
    padding: 0.7rem 0.8rem;
  }

  .hero-readout div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip p:nth-last-child(1) {
    grid-column: span 2;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .project-grid,
  .capability-grid,
  .media-grid,
  .role-board,
  .process-steps,
  .lab-grid,
  .concept-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured,
  .asset-placeholder.wide,
  .role-card.primary-role {
    grid-column: auto;
  }

  .filter-button {
    min-width: 4rem;
  }

  .contact-link {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
