:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: #10161a;
  --panel-2: #151c21;
  --ink: #f3fbfc;
  --muted: #98a8ad;
  --line: #273238;
  --cyan: #00e5e5;
  --cyan-2: #66fff2;
  --cyan-dark: #009caa;
  --lime: #c7ff48;
  --coral: #ff5d8f;
  --amber: #ffcb45;
  --shadow: rgba(0, 229, 229, 0.22);
  --radius: 6px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 229, 229, 0.14), transparent 24rem),
    linear-gradient(180deg, #090c0f 0%, #050607 100%);
  color: var(--ink);
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 3vw, 44px);
  border-bottom: 1px solid rgba(102, 255, 242, 0.16);
  background: rgba(8, 11, 13, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  background: var(--cyan);
  color: #031011;
  box-shadow: 0 0 22px var(--shadow);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
}

.top-nav a,
.header-cta,
.channel-bar a,
.sort-chip {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.top-nav a {
  padding: 8px 12px;
  color: var(--muted);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--ink);
  background: #141b20;
  border-color: var(--line);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--cyan);
  color: #031011;
  box-shadow: 0 0 22px var(--shadow);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(14px, 2.5vw, 32px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.7fr);
  gap: 18px;
  padding-top: 18px;
}

.hero-media,
.work-card button,
.modal-media {
  position: relative;
  overflow: hidden;
  background: #111;
  border-radius: var(--radius);
}

.hero-media {
  min-width: 0;
  min-height: 520px;
  border: 1px solid rgba(102, 255, 242, 0.18);
}

.hero-media img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-media::after,
.work-card button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.56) 100%);
  pointer-events: none;
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 5px
  );
  mix-blend-mode: overlay;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 520px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(102, 255, 242, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(0, 229, 229, 0.11), transparent 38%),
    var(--panel);
}

.kicker,
.eyebrow,
.modal-meta,
.duration,
.quality {
  color: var(--cyan-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(102, 255, 242, 0.22);
  border-radius: 4px;
  background: rgba(0, 229, 229, 0.08);
  line-height: 1.25;
  white-space: normal;
}

.live-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
}

.kicker span:not(.live-dot) {
  min-width: 0;
}

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

h1,
h2 {
  font-family: "Barlow Condensed", Inter, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(42px, 4vw, 66px);
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-panel p {
  max-width: 56ch;
  color: #c6d2d5;
  font-size: 16px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #031011;
  box-shadow: 0 0 24px var(--shadow);
}

.button.ghost {
  color: var(--ink);
  background: #11181c;
}

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

.stats span {
  display: grid;
  gap: 2px;
  padding: 14px 12px;
  background: #0c1114;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stats strong {
  color: var(--ink);
  font-size: 22px;
}

.channel-bar {
  display: flex;
  gap: 8px;
  margin: 18px 0 28px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c1114;
}

.channel-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 14px;
  color: #b6c4c8;
  background: #151c21;
}

.channel-bar a.is-active,
.channel-bar a:hover,
.channel-bar a:focus-visible {
  background: var(--cyan);
  color: #031011;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 46px;
}

.feature-strip article,
.process-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-strip span,
.process-grid span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--cyan-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.feature-strip p,
.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-head,
.contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--cyan-2);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 70px);
}

.sort-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  border-color: var(--line);
  background: #0d1316;
}

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

.work-card {
  min-width: 0;
}

.work-card.is-large {
  grid-column: span 2;
  grid-row: span 2;
}

.work-card.is-wide {
  grid-column: span 2;
}

.work-card button {
  width: 100%;
  padding: 0;
  border: 1px solid rgba(102, 255, 242, 0.12);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.work-card.is-large button {
  aspect-ratio: 16 / 9;
  height: calc(100% - 64px);
  min-height: 460px;
}

.work-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.work-card button:hover img,
.work-card button:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.1) contrast(1.04);
}

.duration,
.quality {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(3, 8, 9, 0.86);
}

.duration {
  right: 8px;
  color: #fff;
}

.quality {
  left: 8px;
  color: #031011;
  background: var(--cyan);
}

.card-copy {
  display: grid;
  gap: 3px;
  padding-top: 9px;
}

.card-copy h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.2;
}

.card-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.process {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1.3fr;
  gap: 24px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.process-grid h3 {
  margin-bottom: 8px;
}

.contact {
  margin-top: 64px;
  padding: 28px;
  border: 1px solid rgba(102, 255, 242, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 229, 229, 0.14), transparent 44%),
    var(--panel-2);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal.is-open {
  display: flex;
}

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

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(102, 255, 242, 0.28);
  border-radius: var(--radius);
  background: #0b1013;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
}

.modal-media {
  min-height: 360px;
  border-radius: 0;
}

.modal-media img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.modal-copy {
  padding: clamp(22px, 3vw, 34px);
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(102, 255, 242, 0.22);
  border-radius: 3px;
  background: rgba(0, 229, 229, 0.08);
}

.modal-copy h2 {
  margin-bottom: 16px;
}

.modal-copy p {
  color: #c9d4d7;
}

.modal-copy dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.modal-copy dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.modal-copy dt {
  margin-bottom: 3px;
  color: var(--cyan-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-copy dd {
  margin: 0;
  color: #dce7e9;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(102, 255, 242, 0.34);
  border-radius: 4px;
  background: #071012;
  color: var(--cyan-2);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img,
  .hero-panel {
    min-height: 420px;
  }

  h1 {
    max-width: 7em;
    font-size: clamp(40px, 8vw, 68px);
  }

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

  .process,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .header-cta {
    margin-left: auto;
  }

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

  .work-card.is-large,
  .work-card.is-wide {
    grid-column: span 2;
  }

  .work-card.is-large button {
    min-height: auto;
  }

  .section-head,
  .contact {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-media,
  .hero-media img,
  .hero-panel {
    min-height: 360px;
  }

  .hero-panel {
    padding: 18px;
  }

  .kicker {
    align-items: flex-start;
    width: 100%;
    font-size: 11px;
  }

  .kicker span:not(.live-dot) {
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(38px, 10.4vw, 50px);
    max-width: 6.5em;
    word-break: break-word;
  }

  .stats,
  .feature-strip,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card.is-large,
  .work-card.is-wide {
    grid-column: span 1;
  }

  .contact {
    padding: 20px;
  }

  .project-modal {
    padding: 10px;
  }

  .modal-media,
  .modal-media img {
    min-height: 220px;
  }
}
