:root {
  --ink: #262626;
  --muted: #686868;
  --soft: #8c8c8c;
  --line: #e5e5e5;
  --paper: #f8f9fb;
  --accent: #36584b;
  --narrow: 672px;
  --wide: 896px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.line-field {
  position: fixed;
  inset: 0;
  width: 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 72%, transparent);
}

.case-shell {
  position: relative;
  padding: 72px 28px 96px;
}

.content-narrow {
  width: min(100%, var(--narrow));
  margin-inline: auto;
}

.content-wide {
  width: min(100%, var(--wide));
  margin-inline: auto;
}

.case-header { padding-bottom: 52px; }

.back-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.back-link:hover svg { transform: translateX(-3px); }

.case-kicker,
.case-meta,
.section-index,
.figure-caption,
.gate-kicker {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.case-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.case-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.case-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-media,
.case-media {
  overflow: hidden;
  border-radius: 18px;
  outline: 1px solid rgb(0 0 0 / 0.08);
  background: var(--paper);
}

.case-media:has(video) {
  border-radius: 0;
  outline: 0;
}

.case-media video {
  width: calc(100% + 2px);
  max-width: none;
  margin-right: -1px;
  margin-bottom: -4px;
  margin-left: -1px;
  clip-path: inset(0 0 4px);
}

.nda-note {
  max-width: 76ch;
  margin: 14px auto 0;
  color: var(--soft);
  font-size: 13px;
  font-style: italic;
  line-height: 1.55;
}

.case-section {
  padding-top: 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 22px;
}

.section-index {
  color: var(--soft);
  font-size: 12px;
}

.case-section h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.prose {
  color: #4f4f4f;
}

.prose p { margin: 0; }
.prose p + p { margin-top: 24px; }

.insight-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.insight-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: #555;
}

.insight-number {
  color: var(--soft);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
}

.insight-list strong {
  color: var(--ink);
  font-weight: 500;
}

.media-block { margin-top: 40px; }
.media-block + .media-block { margin-top: 56px; }

.figure-caption {
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 12px;
}

.case-note {
  margin-top: 48px;
  padding: 20px 24px;
  border-left: 1px solid var(--accent);
  color: #5e655f;
  background: rgb(54 88 75 / 0.035);
  font-size: 15px;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 112px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.password-gate {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px;
}

.gate-card {
  width: min(100%, 408px);
  padding: 36px;
  border-radius: 18px;
  outline: 1px solid rgb(0 0 0 / 0.08);
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(18px);
}

.gate-logo {
  width: 42px;
  height: 42px;
  margin-bottom: 40px;
}

.gate-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
}

.gate-card h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.gate-copy {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 15px;
}

.password-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.password-form input,
.password-form button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  font: inherit;
}

.password-form input {
  min-width: 0;
  padding: 0 14px;
  outline: 1px solid var(--line);
  background: #f7f8f7;
}

.password-form button {
  padding: 0 20px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}

.password-form button:hover { background: var(--accent); }
.password-form button:active { transform: scale(0.96); }
.password-error { min-height: 24px; margin: 10px 0 0; color: #a33d32; font-size: 13px; }
.is-hidden { display: none; }

@media (max-width: 760px) {
  .line-field {
    opacity: 0.45;
    mask-image: linear-gradient(to right, black, transparent 14%, transparent 86%, black);
  }
  .case-shell { padding: 40px 24px 72px; }
  .case-header { padding-bottom: 36px; }
  .case-section { padding-top: 72px; }
  .section-heading { grid-template-columns: 36px 1fr; gap: 10px; }
  .case-footer { margin-top: 80px; }
}

@media (max-width: 460px) {
  .gate-card { padding: 28px 24px; }
  .password-form { grid-template-columns: 1fr; }
  .password-form button { width: 100%; }
  .case-title { font-size: 38px; }
  .case-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-link svg,
  .password-form button { transition: none; }
}
