:root {
  --bg: #080a0c;
  --surface: #111417;
  --surface-2: #181c20;
  --text: #f7f8f5;
  --muted: #a4abb2;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #39ef8b;
  --accent-ink: #07120c;
  --page: #f5f6f3;
  --black: #080a0c;
  color-scheme: dark;
  font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body,
button,
a {
  font-family: inherit;
  letter-spacing: 0;
}

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

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

button {
  color: inherit;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 64px, 1280px);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 26px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 18px;
  height: 2px;
  background: var(--accent);
  transition: right 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111417;
  cursor: pointer;
}

.menu-button svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #1f0705;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background: rgba(0, 0, 0, 0.48);
}

.hero-scrim::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  background: rgba(4, 5, 6, 0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, 1280px);
  margin: 0 auto;
  padding: 142px 0 100px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: var(--accent);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 84px;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button svg,
.service-item strong svg {
  width: 17px;
  height: 17px;
}

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

.button-primary:hover {
  background: #78ffb2;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.button-secondary:hover {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.58);
}

.button.large {
  min-height: 58px;
  padding: 16px 22px;
  font-size: 16px;
}

.hero-case-link {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100vw - 1280px) / 2));
  bottom: 32px;
  width: 230px;
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 2px 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(8, 10, 12, 0.84);
}

.hero-case-link span,
.hero-case-link strong {
  grid-column: 1;
}

.hero-case-link span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.hero-case-link strong {
  font-size: 14px;
}

.hero-case-link svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 24px;
  height: 24px;
}

.showreel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 440px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.showreel-panel {
  position: relative;
  min-width: 0;
  min-height: 440px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.showreel-panel:last-child {
  border-right: 0;
}

.showreel-panel > img,
.panel-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.showreel-panel > img {
  object-fit: cover;
  transition: transform 420ms ease;
}

.showreel-panel:hover > img {
  transform: scale(1.025);
}

.panel-shade {
  background: rgba(0, 0, 0, 0.34);
}

.panel-shade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: rgba(0, 0, 0, 0.62);
}

.panel-copy {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 70px;
  bottom: 26px;
  display: grid;
  gap: 4px;
}

.panel-copy small {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.panel-copy strong {
  font-size: 28px;
  line-height: 1.2;
}

.panel-copy em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-style: normal;
}

.panel-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
}

.panel-play svg {
  width: 22px;
  height: 22px;
}

.panel-arrow {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 29px;
  width: 20px;
  height: 20px;
}

.section {
  padding: 96px max(32px, calc((100vw - 1280px) / 2));
}

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

.section-heading.compact {
  align-items: start;
}

.section-heading h2,
.about-layout h2,
.contact-section h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading > p,
.about-layout > p {
  margin: 0;
  color: var(--muted);
}

.services-section {
  background: var(--bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.service-item.featured {
  box-shadow: inset 0 3px 0 var(--accent);
}

.service-item > span {
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.service-item h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.service-item p {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.service-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
}

.cases-section {
  background: var(--page);
  color: var(--black);
}

.cases-section .section-heading > p {
  color: #626a70;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 390px;
  gap: 12px;
}

.case-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #dfe3e5;
  color: #fff;
}

.case-item.case-wide {
  grid-column: span 2;
}

.case-item img,
.case-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.case-item img {
  object-fit: cover;
  transition: transform 360ms ease;
}

.case-item:hover img {
  transform: scale(1.02);
}

.case-overlay {
  background: rgba(0, 0, 0, 0.18);
}

.case-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: rgba(0, 0, 0, 0.64);
}

.case-meta {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 84px;
  bottom: 22px;
  display: grid;
  gap: 4px;
}

.case-meta small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.case-meta strong {
  font-size: 20px;
  line-height: 1.28;
}

.case-play {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
}

.case-play svg {
  width: 19px;
  height: 19px;
}

.about-section {
  background: #fff;
  color: var(--black);
  border-top: 1px solid #dfe2e2;
}

.about-section .eyebrow {
  margin-bottom: 32px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 60px;
  align-items: end;
}

.about-layout > p {
  color: #5e666d;
  font-size: 17px;
}

.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 86px max(32px, calc((100vw - 1280px) / 2));
  background: #101316;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 26px max(32px, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer strong {
  color: #fff;
  font-size: 16px;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 60px;
  }

  .hero-case-link {
    right: 32px;
  }

  .showreel {
    grid-template-columns: 1fr 1fr;
  }

  .showreel-panel:last-child {
    grid-column: 1 / -1;
  }

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

  .case-item.case-wide {
    grid-column: span 1;
  }

  .section-heading,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    position: fixed;
    width: 100%;
    min-height: 64px;
    padding: 0 16px;
    border-bottom-color: rgba(255, 255, 255, 0.14);
    background: rgba(8, 10, 12, 0.96);
  }

  .brand {
    font-size: 19px;
  }

  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #0c0f11;
  }

  .main-nav.is-open {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: 690px;
    align-items: end;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-scrim {
    background: rgba(0, 0, 0, 0.48);
  }

  .hero-scrim::before {
    width: 100%;
    height: 68%;
    inset: auto 0 0;
    background: rgba(4, 5, 6, 0.62);
  }

  .hero-content {
    width: 100%;
    padding: 118px 18px 132px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.06;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-case-link {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
    min-height: 82px;
  }

  .showreel {
    grid-template-columns: 1fr;
  }

  .showreel-panel,
  .showreel-panel:last-child {
    grid-column: auto;
    min-height: 480px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .contact-section {
    padding: 68px 18px;
  }

  .section-heading h2,
  .about-layout h2,
  .contact-section h2 {
    font-size: 34px;
  }

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

  .service-item {
    min-height: 250px;
    padding: 24px;
  }

  .service-item > span {
    margin-bottom: 34px;
  }

  .case-grid {
    grid-auto-rows: auto;
  }

  .case-item,
  .case-item.case-wide,
  .case-item.case-tall {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .case-item.case-wide {
    aspect-ratio: 16 / 10;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
