:root {
  color-scheme: dark;
  --bg: #10100e;
  --panel: #181815;
  --ink: #f4f0e6;
  --muted: #b8b1a1;
  --line: rgba(244, 240, 230, 0.16);
  --green: #bfe56b;
  --teal: #45c8b2;
  --paper: #f0eadc;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(69, 200, 178, 0.08), transparent 40%),
    linear-gradient(150deg, rgba(191, 229, 107, 0.08), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(244, 240, 230, 0.1);
  background: rgba(16, 16, 14, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #10100e;
  font-size: 13px;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1320px;
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 52px) 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow,
.section-kicker,
.work-type {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.1vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.intro,
.heading-note,
.detail-list,
.section p {
  color: var(--muted);
}

.intro {
  max-width: 590px;
  margin-bottom: 30px;
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid rgba(244, 240, 230, 0.28);
  border-radius: 8px;
  background: rgba(244, 240, 230, 0.04);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 170ms ease,
    background 170ms ease;
}

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

.button.primary {
  border-color: transparent;
  background: var(--green);
  color: #10100e;
}

.hero-media,
.detail-frame {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.hero-media {
  min-height: 320px;
  aspect-ratio: 16 / 9;
}

.hero-media img,
.detail-frame img,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 240, 230, 0.92);
  transform: translate(-50%, -50%);
}

.play-button.small {
  width: 58px;
  height: 58px;
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #10100e;
}

.timecode,
.duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(244, 240, 230, 0.22);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 52px);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.summary-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.04);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats-row div {
  padding: 22px;
  background: rgba(16, 16, 14, 0.92);
}

.stats-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
}

.stats-row span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading,
.contact-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.heading-note {
  max-width: 360px;
  margin-bottom: 0;
  font-size: 14px;
}

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

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 240, 230, 0.035);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.work-card:hover,
.work-card:focus-within {
  border-color: rgba(191, 229, 107, 0.72);
  transform: translateY(-4px);
}

.work-card button {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
}

.work-card .work-type,
.work-card strong,
.work-card .work-meta {
  margin-right: 16px;
  margin-left: 16px;
}

.work-card .work-type {
  margin-top: 16px;
  margin-bottom: 8px;
}

.work-card strong {
  min-height: 48px;
  font-size: 18px;
  line-height: 1.22;
}

.work-meta {
  margin-top: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.detail-section {
  padding-top: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 26px;
  padding-left: 19px;
}

.detail-frame {
  aspect-ratio: 16 / 10;
}

.skills-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: #151511;
}

.skills-section .section-kicker,
.skills-section .capability-grid span {
  color: #217565;
}

.skills-section p,
.skills-section .tool-strip {
  color: #555144;
}

.capability-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 15, 0.16);
  border-radius: 8px;
  background: rgba(17, 17, 15, 0.16);
}

.capability-grid article,
.timeline article {
  min-height: 230px;
  padding: 24px;
  background: #f6f1e6;
}

.capability-grid span,
.timeline span {
  display: block;
  margin-bottom: 42px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.timeline {
  border-color: var(--line);
  background: var(--line);
}

.timeline article {
  background: rgba(16, 16, 14, 0.94);
}

.timeline span {
  color: var(--green);
  font-size: 12px;
}

.timeline p {
  color: var(--muted);
  font-size: 14px;
}

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tool-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(17, 17, 15, 0.18);
  border-radius: 999px;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(191, 229, 107, 0.13), transparent 50%),
    rgba(244, 240, 230, 0.035);
}

.contact-actions {
  justify-content: flex-end;
  min-width: min(100%, 320px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 0 clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1060px, 100%);
  overflow: hidden;
  border: 1px solid rgba(244, 240, 230, 0.28);
  border-radius: 8px;
  background: #050505;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 240, 230, 0.92);
  color: #10100e;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-video {
  width: 100%;
  max-height: min(74vh, 760px);
  background: #050505;
}

.modal-note {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-media {
    min-height: 220px;
  }

  .section-heading,
  .contact-layout {
    display: grid;
    align-items: start;
  }

  .stats-row,
  .work-grid,
  .capability-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .capability-grid article,
  .timeline article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 18px;
  }
}

.modal-video { aspect-ratio: 16 / 9; border: 0; }
.work-card.is-missing { opacity: 0.72; }
.modal-note a { color: var(--green); font-weight: 800; }
