.section {
  padding: clamp(96px, 12vw, 176px) var(--gutter);
}

#system,
#cases,
#team {
  scroll-margin-top: 116px;
}

.section-paper {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.75fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto clamp(72px, 9vw, 128px);
}

.section-heading.compact {
  margin-bottom: clamp(56px, 7vw, 96px);
}

.section-index {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 16px;
  padding-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.foil-line {
  width: min(100%, 160px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-72), transparent);
}

.section-heading .foil-line {
  background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.62), transparent);
}

.section-heading h2,
.brain-copy h2,
.podcast-heading h2,
.contact-band h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5rem, 82px);
  font-weight: 460;
  line-height: 1.04;
}

.section-intro {
  align-self: end;
  max-width: 42ch;
  color: var(--muted);
}

.system-layers {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.system-row {
  position: relative;
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.75fr 32px;
  align-items: center;
  gap: 48px;
  min-height: 176px;
  border-bottom: 1px solid var(--line);
  transition: background 250ms var(--ease), transform 250ms var(--ease);
}

.system-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: 0;
  background: var(--paper-3);
  opacity: 0;
  transition: opacity 250ms var(--ease);
}

.system-row:hover::before {
  opacity: 1;
}

.system-row > * {
  position: relative;
  z-index: 1;
}

.system-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 420;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.system-row h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 460;
  line-height: 1.1;
}

.system-row > p {
  max-width: 46ch;
  color: var(--muted);
}

.row-arrow {
  font-size: 24px;
  transition: transform 250ms var(--ease);
}

.system-row:hover .row-arrow {
  transform: translate(3px, -3px);
}

.brain-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(52px, 8vw, 132px);
  padding: clamp(100px, 12vw, 176px) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  overflow: hidden;
  background: linear-gradient(165deg, #08090b, #101116 62%, #08090b);
  color: var(--paper);
}

.brain-copy {
  max-width: 560px;
}

.brain-copy h2 {
  margin-bottom: 26px;
}

.brain-copy > p:not(.eyebrow) {
  max-width: 48ch;
  color: rgba(243, 241, 237, 0.62);
}

.brain-copy .text-link {
  margin-top: 30px;
}

.brain-panel {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-color: var(--white-16);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.46), inset 0 1px 0 var(--white-08);
}

.brain-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14%;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-72), transparent);
  box-shadow: 0 0 32px var(--white-08);
}

.panel-top,
.panel-kpi,
.panel-feed,
.panel-command {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.18);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--r-md) var(--r-md) 4px 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(243, 241, 237, 0.5);
}

.panel-kpi {
  display: grid;
  padding: clamp(30px, 5vw, 64px) 28px 30px;
  margin-top: 6px;
}

.panel-kpi span,
.panel-kpi small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(243, 241, 237, 0.48);
}

.panel-kpi strong {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(48px, 5rem, 78px);
  font-weight: 520;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.panel-feed {
  margin-top: 6px;
}

.panel-feed > div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-feed > div:last-child {
  border-bottom: 0;
}

.panel-feed p {
  display: grid;
  gap: 3px;
}

.panel-feed strong {
  font-size: 13px;
  font-weight: 500;
}

.panel-feed small {
  color: rgba(243, 241, 237, 0.42);
  font-size: 11px;
}

.panel-feed b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: rgba(243, 241, 237, 0.6);
}

.status-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.status-dot.active {
  background: var(--paper);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
}

.panel-command {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 4px 4px var(--r-md) var(--r-md);
}

.panel-command span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(243, 241, 237, 0.44);
}

.panel-command p {
  font-size: 13px;
  color: rgba(243, 241, 237, 0.76);
}

.case-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}

.case-card {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-3);
  box-shadow: 0 18px 60px rgba(52, 48, 40, 0.07);
}

.case-card.case-wide {
  grid-row: span 2;
}

.case-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: #e4e1db;
}

.case-wide .case-media {
  aspect-ratio: 4 / 3;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 400ms var(--ease), opacity 400ms var(--ease);
}

.case-wide .case-media img {
  object-fit: contain;
  padding: clamp(20px, 5vw, 72px);
}

.case-card:hover .case-media img {
  filter: contrast(1.04);
  opacity: 0.9;
}

.case-meta {
  padding: 24px 26px 28px;
}

.case-meta p {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.case-meta h3 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2rem, 38px);
  font-weight: 460;
  line-height: 1.12;
}

.case-meta small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.case-dark {
  background: var(--graphite);
  color: var(--paper);
}

.case-dark .case-meta p,
.case-dark .case-meta small {
  color: rgba(243, 241, 237, 0.52);
}

.team-section {
  background: var(--paper-2);
}

.team-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 0.75fr);
  align-items: end;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
}

.person {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  background: var(--graphite);
}

.person-lead {
  aspect-ratio: 4 / 4.5;
}

.person::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.76));
}

.person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(0.96);
  transition: filter 400ms var(--ease), transform 400ms var(--ease);
}

.person:hover img {
  filter: grayscale(0.4) contrast(1);
  transform: scale(1.015);
}

.person div {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--paper);
}

.person span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(243, 241, 237, 0.56);
}

.person h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 460;
}

.podcast-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: end;
  gap: 72px;
  padding: clamp(100px, 12vw, 176px) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  background: var(--ink);
  color: var(--paper);
}

.podcast-heading .button {
  margin-top: 38px;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.episode {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  background: var(--ink-soft);
}

.episode::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.84));
}

.episode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 300ms var(--ease), transform 400ms var(--ease);
}

.episode:hover img {
  filter: contrast(1.05);
  transform: scale(1.015);
}

.episode span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.episode b,
.episode em {
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.episode em {
  color: rgba(243, 241, 237, 0.55);
}

.contact-band {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: end;
  padding: clamp(92px, 10vw, 152px) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  background: var(--paper);
}

.contact-band h2 {
  max-width: 18ch;
}

.contact-action {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}

.site-footer > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 8px;
  color: rgba(243, 241, 237, 0.52);
}

.footer-wordmark strong {
  font-weight: 520;
}

.error-page {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--paper);
}

.error-page main {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding: 36px var(--gutter);
}

.error-code {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--white-04);
  font-family: var(--font-display);
  font-size: clamp(180px, 28rem, 460px);
  font-weight: 560;
  line-height: 0.8;
  transform: translate(-50%, -50%);
}

.error-copy {
  position: absolute;
  right: var(--gutter);
  bottom: 12vh;
  left: var(--gutter);
}

.error-copy h1 {
  margin: 14px 0 30px;
  font-family: var(--font-display);
  font-size: clamp(54px, 6rem, 96px);
  font-weight: 460;
}

.system-page {
  background: var(--ink);
  color: var(--paper);
}

.system-page > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--white-08);
}

.system-hero,
.gallery-section {
  padding: clamp(80px, 10vw, 140px) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}

.system-hero h1 {
  max-width: 15ch;
  margin: 20px 0 54px;
  font-family: var(--font-display);
  font-size: clamp(52px, 6rem, 96px);
  font-weight: 460;
  line-height: 1.05;
}

.system-hero h1 i {
  color: rgba(243, 241, 237, 0.5);
  font-size: 0.65em;
  font-weight: 420;
}

.gallery-section.light {
  background: var(--paper);
  color: var(--graphite);
}

.gallery-section.dark {
  background: var(--ink);
  color: var(--paper);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.swatches button {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-sm);
  background: var(--swatch);
  color: color-contrast(var(--swatch) vs #08090b, #f3f1ed);
  cursor: pointer;
  text-align: left;
}

.swatches span,
.swatches b {
  mix-blend-mode: difference;
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
}

.type-spec {
  display: grid;
  gap: 24px;
  margin-top: 38px;
}

.type-spec h2 {
  font-family: var(--font-display);
  font-size: clamp(52px, 6rem, 96px);
  font-weight: 460;
  line-height: 1.04;
}

.type-spec p {
  max-width: 54ch;
  color: rgba(243, 241, 237, 0.62);
}

.type-spec code {
  font-family: var(--font-mono);
  color: var(--foil);
}

.gallery-section .control-row {
  margin-top: 38px;
}

.gallery-panel {
  max-width: 760px;
  margin-top: 38px;
}
