:root {
  --paper: #0e1010;
  --ink: #f1eee8;
  --muted: #9c9e99;
  --line: #343632;
  --accent: #f4a353;
}
.forma-nav {
  position: relative;
  width: 100%;
  min-height: 100px;
  gap: 24px;
  padding: 20px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.forma-nav .wordmark {
  letter-spacing: 0.14em;
  font-size: 22px;
}
.wordmark .forma-mark {
  font-size: 32px;
  vertical-align: middle;
  color: var(--accent);
  margin-right: 8px;
}
.forma-nav nav {
  color: #d5d5cd;
}
.ghost {
  border: 1px solid #ffffff35;
  backdrop-filter: blur(12px);
}
.forma-hero {
  position: relative;
  min-height: max(620px, calc(94svh - 100px));
  padding: max(85px, calc(26svh - 100px)) 5% 105px;
  overflow: hidden;
  background: #070909;
}
.forma-keyvisual {
  position: absolute;
  right: -2%;
  top: 0;
  width: 96%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
  transition: transform 0.8s ease;
}
.forma-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0c0e0ed9 0%, #0c0e0e99 28%, transparent 65%),
    linear-gradient(0deg, #0c0e0e 0%, transparent 19%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 100px 100px;
  z-index: 1;
  pointer-events: none;
}
.forma-lead {
  position: relative;
  z-index: 1;
  max-width: 54%;
}
.forma-lead .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8c9b1;
  font-size: 9px;
}
.status-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.forma-lead h1 {
  font-size: clamp(58px, 7.7vw, 130px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  margin: 26px 0 28px;
}
.forma-lead .intro {
  color: #b8b9b3;
  max-width: 345px;
  font-size: 14px;
  line-height: 1.75;
}
.amber {
  background: var(--accent);
  color: #17201a;
  margin-top: 32px;
}
.forma-hero-meta {
  position: absolute;
  bottom: 35px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.15em;
  z-index: 1;
  color: #b8b8ac;
}
.orbit-label {
  max-width: 25%;
  position: absolute;
  right: 5%;
  top: 23%;
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.8;
  color: var(--accent);
  text-align: right;
  z-index: 1;
}
.orbit-label span {
  font-size: 7px;
  color: #c5b9a3;
}
.scene-section {
  padding: 85px 5%;
}
.scene-section h2 {
  letter-spacing: -0.045em;
}
.scene-section h2 em {
  color: var(--accent);
}
.scene-section .section-intro > p {
  color: var(--muted);
  font-size: 12px;
}
.scene-wrap {
  position: relative;
  border: 1px solid var(--line);
  height: 510px;
  background: radial-gradient(ellipse at 50% 50%, #25231a, #101211 70%);
  overflow: hidden;
  border-radius: 3px;
}
.scene-wrap canvas {
  touch-action: pan-y;
  height: 100%;
  width: 100%;
  display: block;
}
.scene-readout {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  font: 9px monospace;
  color: var(--muted);
  pointer-events: none;
}
.scene-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 12px;
}
.scene-controls label {
  display: flex;
  align-items: center;
  gap: 20px;
}
.scene-controls input {
  accent-color: var(--accent);
  width: 180px;
}
.forma .chapter-content h2 {
  font-family: DM;
  font-size: clamp(32px, 4vw, 60px);
  letter-spacing: -0.05em;
}
.forma .chapter-label {
  color: var(--accent);
}
.forma .chapter:nth-of-type(5) {
  background: #daceb6;
  --paper: #daceb6;
  --ink: #1d261e;
  --line: #b5ad99;
  --muted: #4d594a;
  --accent: #655941;
}
@media (max-width: 760px) {
  .forma-nav {
    min-height: 80px;
    padding: 18px 22px;
  }
  .forma-nav .wordmark {
    font-size: 18px;
  }
  .forma-nav nav {
    display: none;
  }
  .forma-nav .pill {
    padding: 9px 12px;
    font-size: 10px;
    min-height: 38px;
  }
  .forma-hero {
    min-height: max(640px, calc(94svh - 80px));
    padding: 260px 24px 100px;
  }
  .forma-keyvisual {
    width: 160%;
    max-width: none;
    right: -38%;
    height: 68%;
    top: 6%;
    object-position: 65% center;
  }
  .forma-hero::after {
    background: linear-gradient(
      0deg,
      #0c0e0e 3%,
      #0c0e0ee0 27%,
      transparent 77%
    );
  }
  .forma-lead {
    max-width: none;
  }
  .forma-lead h1 {
    font-size: 62px;
    line-height: 0.98;
    margin: 23px 0;
  }
  .forma-lead .intro {
    max-width: 300px;
    font-size: 13px;
  }
  .forma-lead .eyebrow {
    font-size: 8px;
  }
  .orbit-label {
    top: 32px;
    max-width: 55%;
    right: 22px;
  }
  .forma-hero-meta {
    bottom: 24px;
    left: 24px;
    right: 24px;
    gap: 20px;
    font-size: 7px;
  }
  .forma-hero-meta > span:nth-child(2) {
    display: none;
  }
  .amber {
    margin-top: 22px;
  }
  .scene-section {
    padding: 50px 24px;
  }
  .scene-wrap {
    height: 350px;
  }
  .scene-controls {
    align-items: flex-start;
    gap: 20px;
  }
  .scene-controls label {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .scene-controls input {
    width: 130px;
  }
  .scene-section .section-intro h2 {
    font-size: 45px;
  }
}
