:root {
  --paper: #f7f6f2;
  --paper-strong: #ffffff;
  --paper-soft: #efede7;
  --ink: #171512;
  --ink-soft: #4c4640;
  --muted: #746d65;
  --line: #ded8ce;
  --line-strong: #c7bba9;
  --wine: #7d2433;
  --wine-dark: #541b25;
  --copper: #a96f3a;
  --moss: #0d5a50;
  --blue-gray: #31465b;
  --shadow: 0 18px 52px rgba(40, 32, 22, 0.1);
  --radius: 8px;
  --serif: "Noto Serif SC", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #faf9f6 0%, var(--paper) 42%, #f1eee7 100%);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.intro-locked {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(125, 36, 51, 0.06), transparent 260px),
    linear-gradient(90deg, rgba(13, 90, 80, 0.05), transparent 34%, rgba(169, 111, 58, 0.05));
  mix-blend-mode: multiply;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(247, 246, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

main {
  position: relative;
  z-index: 1;
}

.story-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  transition: opacity 420ms ease 860ms, visibility 420ms ease 860ms;
}

.story-gate.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.story-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(125, 36, 51, 0.08), transparent 34%),
    linear-gradient(120deg, rgba(13, 90, 80, 0.08), transparent 40%, rgba(169, 111, 58, 0.08));
}

.gate-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(50% + 1px);
  background:
    linear-gradient(90deg, rgba(247, 246, 242, 0.88), rgba(255, 255, 255, 0.78), rgba(239, 237, 231, 0.88)),
    var(--paper);
  transition: transform 1100ms cubic-bezier(0.76, 0, 0.18, 1);
  will-change: transform;
}

.gate-panel-top {
  top: 0;
  border-bottom: 1px solid var(--line-strong);
}

.gate-panel-bottom {
  bottom: 0;
  border-top: 1px solid var(--line-strong);
}

.story-gate.is-opening .gate-panel-top {
  transform: translateY(-101%);
}

.story-gate.is-opening .gate-panel-bottom {
  transform: translateY(101%);
}

.gate-seam {
  position: absolute;
  left: max(24px, calc((100vw - 760px) / 2));
  right: max(24px, calc((100vw - 760px) / 2));
  top: 50%;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wine), var(--copper), var(--moss), transparent);
  box-shadow: 0 0 22px rgba(125, 36, 51, 0.18);
  transform: translateY(-50%);
  transition: transform 860ms ease, opacity 420ms ease 560ms;
}

.story-gate.is-opening .gate-seam {
  opacity: 0;
  transform: translateY(-50%) scaleX(1.08);
}

.gate-content {
  position: relative;
  z-index: 3;
  width: min(620px, calc(100vw - 40px));
  padding: 34px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(40, 32, 22, 0.12);
  backdrop-filter: blur(16px);
  transition: transform 520ms ease, opacity 320ms ease;
}

.story-gate.is-opening .gate-content {
  opacity: 0;
  transform: translateY(14px);
}

.gate-title {
  max-width: 520px;
  margin: 0 auto 24px;
  font-family: var(--serif);
  font-size: clamp(1.72rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.28;
}

.gate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.gate-button:hover,
.gate-button:focus-visible {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  transform: translateY(-2px);
  outline: none;
}

.gate-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(145deg, var(--wine-dark), var(--moss));
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 0.86rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.86rem;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.section-block {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px;
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: 56px;
  align-items: center;
  min-height: 680px;
  padding-top: 76px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
}

h1 {
  margin-bottom: 24px;
  font-size: 3.45rem;
  max-width: 780px;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.35rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  line-height: 1.35;
}

.hero-lede,
.section-heading > p,
.about-copy > p,
.contact-section p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 32px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-primary:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.hero-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-rule {
  width: 100%;
  height: 3px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--wine), var(--copper), var(--moss));
}

.panel-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.snapshot-list {
  margin: 0;
}

.snapshot-list div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.snapshot-list dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.snapshot-list dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.about-grid,
.experience-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.about-copy {
  padding-top: 8px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metric-row div,
.evidence-card,
.timeline article,
.work-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-row div {
  padding: 18px;
}

.metric-row strong {
  display: block;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.1;
}

.metric-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.83rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}

.work-card {
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(40, 32, 22, 0.07);
}

.work-card-featured {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  min-height: 520px;
  margin-bottom: 20px;
}

.work-copy {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.work-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--wine);
  font-family: var(--serif);
  font-weight: 600;
}

.work-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.tag-list li {
  padding: 5px 9px;
  color: var(--moss);
  background: rgba(13, 90, 80, 0.08);
  border: 1px solid rgba(13, 90, 80, 0.16);
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
}

.contribution {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.contribution strong {
  display: block;
  color: var(--wine);
  margin-bottom: 4px;
}

.text-action {
  align-self: flex-start;
  margin-top: 20px;
  padding: 0 0 5px;
  color: var(--wine);
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(125, 36, 51, 0.28);
  font-weight: 700;
  cursor: pointer;
}

.text-action:hover {
  color: var(--wine-dark);
  border-bottom-color: var(--wine-dark);
}

.work-media,
.video-frame {
  background: var(--paper-soft);
}

.image-frame {
  margin: 0;
  padding: 18px;
  border-left: 1px solid var(--line);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: contain;
  object-position: center;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(23, 21, 18, 0.12);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.work-grid .work-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.video-frame {
  aspect-ratio: 16 / 10;
  border-top: 1px solid var(--line);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.evidence-card {
  padding: 22px;
}

.evidence-card span {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
}

.evidence-card h3 {
  margin-top: 12px;
  font-size: 1.04rem;
}

.evidence-card p,
.timeline p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  position: relative;
  padding: 22px 24px 22px 30px;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: var(--wine);
}

.timeline time {
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline h3 {
  margin-top: 6px;
  font-size: 1.04rem;
}

.contact-section {
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 110px;
}

.contact-section > div:first-child {
  max-width: 620px;
}

.contact-actions {
  justify-content: flex-end;
}

.case-dialog {
  width: min(820px, calc(100vw - 32px));
  padding: 34px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(23, 21, 18, 0.24);
}

.case-dialog::backdrop {
  background: rgba(23, 21, 18, 0.34);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.case-dialog h2 {
  font-size: 2rem;
}

.case-dialog > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.dialog-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.dialog-columns h3 {
  color: var(--wine);
  font-size: 1rem;
}

.dialog-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .about-grid,
  .experience-section,
  .contact-section,
  .section-heading,
  .work-card-featured {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
  }

  .section-block {
    scroll-margin-top: 130px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .image-frame {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .image-frame img {
    min-height: 360px;
  }

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

@media (max-width: 680px) {
  .section-block {
    padding: 58px 18px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2.32rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-panel,
  .work-copy,
  .evidence-card,
  .timeline article,
  .case-dialog {
    padding: 22px;
  }

  .metric-row,
  .work-grid,
  .evidence-grid,
  .dialog-columns {
    grid-template-columns: 1fr;
  }

  .image-frame {
    padding: 10px;
  }

  .image-frame img {
    min-height: 280px;
  }

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

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Cinematic research-lab template */
body.template-cinematic {
  --lab-bg: #05070b;
  --lab-panel: rgba(12, 16, 24, 0.72);
  --lab-panel-strong: rgba(18, 24, 34, 0.9);
  --lab-ink: #f3efe6;
  --lab-ink-soft: #c6c0b4;
  --lab-muted: #837e74;
  --lab-line: rgba(228, 205, 155, 0.18);
  --lab-line-cool: rgba(80, 199, 188, 0.22);
  --lab-gold: #c8a85a;
  --lab-copper: #b97948;
  --lab-cyan: #50c7bc;
  --lab-green: #7dbb75;
  --pointer-x: 50vw;
  --pointer-y: 36vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #07090f 0%, #090d13 46%, #040508 100%);
  background-color: var(--lab-bg);
  color: var(--lab-ink);
  overflow-x: hidden;
}

html:has(body.template-cinematic) {
  background: #05070b;
}

body.template-cinematic::before {
  background:
    linear-gradient(115deg, rgba(80, 199, 188, 0.1), transparent 28%),
    linear-gradient(245deg, rgba(200, 168, 90, 0.11), transparent 34%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
  mix-blend-mode: screen;
  opacity: 0.76;
}

body.template-cinematic .ambient-canvas {
  opacity: 0.95;
  mix-blend-mode: screen;
}

.cinematic-light,
.cinematic-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cinematic-light {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(200, 168, 90, 0.16), transparent 22rem),
    linear-gradient(120deg, transparent 10%, rgba(80, 199, 188, 0.08) 38%, transparent 62%),
    linear-gradient(300deg, transparent 25%, rgba(185, 121, 72, 0.08) 56%, transparent 78%);
  opacity: 0.9;
}

.cinematic-grain {
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 3px 5px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 88%, transparent);
}

body.template-cinematic .story-gate {
  color: var(--lab-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 86px 86px,
    linear-gradient(180deg, #030507 0%, #090d14 48%, #030406 100%);
}

body.template-cinematic .story-gate::before {
  background:
    linear-gradient(115deg, transparent 0%, rgba(80, 199, 188, 0.08) 36%, transparent 62%),
    linear-gradient(245deg, transparent 10%, rgba(200, 168, 90, 0.1) 45%, transparent 78%);
}

body.template-cinematic .gate-panel {
  background:
    linear-gradient(90deg, rgba(4, 6, 10, 0.98), rgba(15, 19, 27, 0.94), rgba(4, 6, 10, 0.98)),
    #05070b;
  border-color: rgba(200, 168, 90, 0.22);
}

body.template-cinematic .gate-seam {
  background: linear-gradient(90deg, transparent, var(--lab-cyan), var(--lab-gold), var(--lab-copper), transparent);
  box-shadow: 0 0 32px rgba(200, 168, 90, 0.24), 0 0 52px rgba(80, 199, 188, 0.12);
}

body.template-cinematic .gate-content {
  overflow: hidden;
  background: rgba(9, 13, 20, 0.72);
  border-color: rgba(228, 205, 155, 0.18);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gate-constellation {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(80, 199, 188, 0.09);
  background:
    linear-gradient(90deg, rgba(80, 199, 188, 0.08) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(180deg, rgba(200, 168, 90, 0.06) 1px, transparent 1px) 0 0 / 52px 52px;
}

.gate-constellation span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lab-gold);
  box-shadow: 0 0 18px rgba(200, 168, 90, 0.46);
}

.gate-constellation span:nth-child(1) {
  left: 18%;
  top: 28%;
}

.gate-constellation span:nth-child(2) {
  right: 22%;
  top: 20%;
  background: var(--lab-cyan);
}

.gate-constellation span:nth-child(3) {
  right: 32%;
  bottom: 24%;
}

body.template-cinematic .gate-title {
  color: var(--lab-ink);
  font-weight: 500;
}

body.template-cinematic .gate-button {
  position: relative;
  overflow: hidden;
  color: #090b0c;
  background: linear-gradient(135deg, #e7d298, #b98b45);
  border-color: rgba(255, 229, 169, 0.7);
  box-shadow: 0 18px 42px rgba(200, 168, 90, 0.22);
}

body.template-cinematic .gate-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.55) 48%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 600ms ease;
}

body.template-cinematic .gate-button:hover::after,
body.template-cinematic .gate-button:focus-visible::after {
  transform: translateX(120%);
}

body.template-cinematic .site-header {
  background: rgba(5, 7, 11, 0.76);
  border-bottom-color: rgba(228, 205, 155, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  padding-left: max(24px, calc((100vw - 1480px) / 2));
  padding-right: max(24px, calc((100vw - 1480px) / 2));
}

body.template-cinematic .brand-mark {
  color: #05070b;
  background: linear-gradient(135deg, var(--lab-gold), var(--lab-cyan));
  box-shadow: 0 0 28px rgba(80, 199, 188, 0.2);
}

body.template-cinematic .brand strong,
body.template-cinematic h1,
body.template-cinematic h2,
body.template-cinematic h3 {
  color: var(--lab-ink);
}

body.template-cinematic .brand small,
body.template-cinematic .hero-lede,
body.template-cinematic .section-heading > p,
body.template-cinematic .about-copy > p,
body.template-cinematic .contact-section p,
body.template-cinematic .work-copy p,
body.template-cinematic .evidence-card p,
body.template-cinematic .timeline p {
  color: var(--lab-ink-soft);
}

body.template-cinematic .nav-links a {
  color: var(--lab-ink-soft);
}

body.template-cinematic .nav-links {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.template-cinematic .nav-links::-webkit-scrollbar {
  display: none;
}

body.template-cinematic .nav-links a::after {
  background: linear-gradient(90deg, var(--lab-cyan), var(--lab-gold));
}

body.template-cinematic .nav-links a:hover,
body.template-cinematic .nav-links a.is-active {
  color: var(--lab-ink);
}

.chapter-rail {
  position: fixed;
  left: clamp(18px, 2.4vw, 44px);
  top: 50%;
  z-index: 42;
  display: grid;
  gap: 12px;
  width: 72px;
  transform: translateY(-50%);
  opacity: 0.58;
  transition: opacity 220ms ease;
}

.chapter-rail:hover,
.chapter-rail:focus-within {
  opacity: 1;
}

.chapter-rail a {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  width: 72px;
  min-height: 28px;
  overflow: visible;
  color: rgba(198, 192, 180, 0.32);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, width 220ms ease;
}

.chapter-rail a::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: rgba(228, 205, 155, 0.12);
  transform: translateX(-100%);
  transition: width 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.chapter-rail a::after {
  content: "";
  position: absolute;
  left: 39px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(80, 199, 188, 0.24);
  transform: translateY(-50%);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.chapter-rail span {
  color: rgba(80, 199, 188, 0.7);
  font-size: 0.68rem;
}

.chapter-rail a.is-active {
  color: transparent;
}

.chapter-rail a.is-active::before {
  background: var(--lab-gold);
  box-shadow: 0 0 14px rgba(200, 168, 90, 0.46);
  width: 18px;
}

.chapter-rail a.is-active::after {
  background: var(--lab-gold);
  box-shadow: 0 0 16px rgba(200, 168, 90, 0.5);
  transform: translateY(-50%) scale(1.25);
}

.chapter-rail a:not(:hover):not(:focus-visible):not(.is-active) {
  color: transparent;
}

.chapter-rail:hover a,
.chapter-rail:focus-within a {
  width: 126px;
  color: rgba(198, 192, 180, 0.66);
}

.chapter-rail:hover a.is-active,
.chapter-rail:focus-within a.is-active {
  color: var(--lab-ink);
}

.mobile-chapter-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 70;
  height: 2px;
  background: rgba(228, 205, 155, 0.1);
}

.mobile-chapter-progress span {
  display: block;
  width: var(--chapter-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--lab-cyan), var(--lab-gold));
  transition: width 220ms ease;
}

body.template-cinematic .section-block {
  max-width: min(1480px, calc(100vw - 96px));
}

body.template-cinematic .hero {
  min-height: 780px;
  gap: 64px;
}

body.template-cinematic .hero h1 {
  font-size: 3.3rem;
  font-weight: 500;
}

body.template-cinematic .eyebrow {
  color: var(--lab-gold);
}

body.template-cinematic .button {
  border-color: rgba(228, 205, 155, 0.24);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

body.template-cinematic .button-primary {
  color: #06070a;
  background: linear-gradient(135deg, #f0dda5, #b98043);
  box-shadow: 0 14px 34px rgba(185, 121, 72, 0.22);
}

body.template-cinematic .button-secondary {
  color: var(--lab-ink);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(80, 199, 188, 0.22);
  backdrop-filter: blur(12px);
}

.hero-console {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.78);
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(80, 199, 188, 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(200, 168, 90, 0.06) 1px, transparent 1px) 0 0 / 42px 42px;
  opacity: 0.5;
}

.console-header,
.console-metrics,
.console-feed,
.console-orbit {
  position: relative;
  z-index: 1;
}

.console-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--lab-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.console-header strong {
  color: var(--lab-ink);
  font-size: 0.98rem;
}

.console-orbit {
  display: grid;
  place-items: center;
  height: 230px;
  margin: 22px 0;
  border: 1px solid rgba(80, 199, 188, 0.14);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, rgba(80, 199, 188, 0.08), transparent 54%, rgba(200, 168, 90, 0.08));
}

.console-orbit::before,
.console-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(228, 205, 155, 0.14);
  border-radius: 50%;
}

.console-orbit::before {
  width: 148px;
  height: 148px;
}

.console-orbit::after {
  width: 210px;
  height: 86px;
  transform: rotate(-18deg);
}

.orbit-core {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #05070b;
  background: linear-gradient(135deg, var(--lab-cyan), var(--lab-gold));
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
}

.orbit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lab-cyan);
  box-shadow: 0 0 18px rgba(80, 199, 188, 0.45);
}

.orbit-node-a {
  left: 21%;
  top: 35%;
}

.orbit-node-b {
  right: 23%;
  top: 27%;
  background: var(--lab-gold);
}

.orbit-node-c {
  right: 31%;
  bottom: 24%;
  background: var(--lab-green);
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.console-metric {
  padding: 13px;
  border: 1px solid rgba(228, 205, 155, 0.12);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 6px;
}

.console-metric span {
  display: block;
  color: var(--lab-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.console-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--lab-ink);
  font-size: 0.9rem;
  line-height: 1.25;
}

.console-feed {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.console-feed p {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  margin: 0;
  color: var(--lab-ink-soft);
  font-size: 0.86rem;
}

.console-feed span {
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--lab-cyan);
}

body.template-cinematic .metric-row div,
body.template-cinematic .evidence-card,
body.template-cinematic .timeline article,
body.template-cinematic .work-card {
  background: var(--lab-panel);
  border-color: rgba(228, 205, 155, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

body.template-cinematic .metric-row strong,
body.template-cinematic .work-index,
body.template-cinematic .contribution strong,
body.template-cinematic .text-action,
body.template-cinematic .evidence-card span,
body.template-cinematic .timeline time {
  color: var(--lab-gold);
}

body.template-cinematic .tag-list li {
  color: var(--lab-cyan);
  background: rgba(80, 199, 188, 0.08);
  border-color: rgba(80, 199, 188, 0.18);
}

body.template-cinematic .work-card {
  position: relative;
  border-radius: 8px;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  will-change: transform;
}

body.template-cinematic .work-card:hover,
body.template-cinematic .work-card:focus-within {
  --lift: -4px;
  border-color: rgba(80, 199, 188, 0.34);
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(80, 199, 188, 0.08) inset;
}

body.template-cinematic .work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(80, 199, 188, 0.08) 46%, transparent 72%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

body.template-cinematic .work-card:hover::before,
body.template-cinematic .work-card:focus-within::before {
  opacity: 1;
}

body.template-cinematic .work-copy,
body.template-cinematic .work-media,
body.template-cinematic .video-frame,
.case-trace {
  position: relative;
  z-index: 1;
}

body.template-cinematic .work-media,
body.template-cinematic .video-frame {
  background: rgba(4, 7, 11, 0.76);
}

body.template-cinematic .image-frame {
  border-color: rgba(228, 205, 155, 0.12);
}

body.template-cinematic .image-frame img {
  background: #0b0e13;
  border-color: rgba(80, 199, 188, 0.14);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.case-trace {
  display: grid;
  gap: 7px;
  padding: 14px 18px;
  margin: 0 18px 18px;
  border: 1px solid rgba(80, 199, 188, 0.14);
  border-radius: 6px;
  background: rgba(5, 8, 12, 0.66);
  color: var(--lab-ink-soft);
  font-size: 0.78rem;
  transform: translateY(8px);
  opacity: 0.72;
  transition: transform 260ms ease, opacity 260ms ease, border-color 260ms ease;
}

body.template-cinematic .work-card:hover .case-trace,
body.template-cinematic .work-card:focus-within .case-trace {
  transform: translateY(0);
  opacity: 1;
  border-color: rgba(80, 199, 188, 0.32);
}

.case-trace span {
  display: block;
}

body.template-cinematic .evidence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.template-cinematic .evidence-card {
  position: relative;
  overflow: hidden;
}

body.template-cinematic .evidence-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lab-cyan), var(--lab-gold));
  opacity: 0.72;
}

body.template-cinematic .timeline article::before {
  background: linear-gradient(180deg, var(--lab-cyan), var(--lab-gold));
}

body.template-cinematic .contact-section {
  padding-top: 110px;
}

body.template-cinematic .case-dialog {
  color: var(--lab-ink);
  background: rgba(8, 12, 18, 0.96);
  border-color: rgba(228, 205, 155, 0.22);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
}

body.template-cinematic .case-dialog::backdrop {
  background: rgba(1, 3, 6, 0.72);
  backdrop-filter: blur(10px);
}

body.template-cinematic .dialog-close {
  color: var(--lab-ink);
  border-color: rgba(228, 205, 155, 0.2);
}

body.template-cinematic .case-dialog > p:not(.eyebrow),
body.template-cinematic .case-dialog li {
  color: var(--lab-ink-soft);
}

@media (max-width: 1500px) {
  .chapter-rail {
    display: none;
  }
}

@media (max-width: 1180px) {
  body.template-cinematic .section-block {
    max-width: min(100%, calc(100vw - 48px));
  }
}

@media (max-width: 980px) {
  body.template-cinematic .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-console {
    max-width: 680px;
  }

  body.template-cinematic .work-card-featured {
    grid-template-columns: 1fr;
  }

  body.template-cinematic .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.template-cinematic .site-header {
    min-height: 68px;
  }

  body.template-cinematic .section-block {
    padding-left: 18px;
    padding-right: 18px;
  }

  body.template-cinematic .hero h1 {
    font-size: 2.22rem;
  }

  .hero-console {
    padding: 18px;
  }

  .console-metrics {
    grid-template-columns: 1fr;
  }

  .console-orbit {
    height: 190px;
  }

  body.template-cinematic .evidence-grid {
    grid-template-columns: 1fr;
  }

  .case-trace {
    margin: 0 14px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.template-cinematic .work-card,
  body.template-cinematic .button,
  .case-trace,
  .mobile-chapter-progress span {
    transform: none !important;
    transition: none !important;
  }
}
