:root {
  color-scheme: light;
  --ink: #121212;
  --muted: #686b70;
  --line: rgba(18, 18, 18, 0.14);
  --paper: #f7f7f2;
  --white: #ffffff;
  --accent: #ff4b37;
  --blue: #245cff;
  --green: #1a8f69;
  --shadow: 0 24px 70px rgba(25, 29, 36, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(18, 18, 18, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  min-height: 42px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  min-height: 42px;
  padding: 5px;
  border-radius: 999px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #2c2c2c;
  font-size: 14px;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: var(--ink);
  color: var(--white);
}

.hero {
  min-height: 100svh;
  padding: 0 18px;
}

.hero-stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(500px, 0.9fr) minmax(540px, 1fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(18, 18, 18, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 8.333vw 8.333vw;
  padding: clamp(100px, 12vh, 140px) clamp(56px, 7vw, 106px) clamp(64px, 8vh, 88px);
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 12;
  grid-column: 1;
  grid-row: 1;
  left: auto;
  top: auto;
  width: min(600px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(48px, 6.2vw, 86px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lede {
  width: min(520px, 100%);
  margin: 22px 0 0;
  color: #2e3034;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.52;
}

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

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

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

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

.button-secondary {
  background: rgba(255, 255, 255, 0.5);
}

.hero-board {
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  width: min(100%, 760px);
  aspect-ratio: 1.14 / 1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
  align-items: stretch;
  justify-self: end;
}

.hero-board::before {
  position: absolute;
  inset: -16px;
  z-index: -1;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  content: "";
}

.media-tile {
  position: relative;
  z-index: 4;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: none;
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 260ms ease;
  cursor: pointer;
}

.media-tile:hover {
  box-shadow: 0 30px 90px rgba(25, 29, 36, 0.24);
  transform: translateY(-4px);
}

.media-tile img,
.media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 5px 9px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.tile-large {
  grid-column: 1 / 3;
  grid-row: 3 / 7;
}

.tile-wide {
  grid-column: 3 / 7;
  grid-row: 1 / 3;
}

.tile-tall {
  grid-column: 5 / 7;
  grid-row: 3 / 7;
}

.tile-medium {
  grid-column: 3 / 5;
  grid-row: 5 / 7;
}

.tile-small {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.tile-mini {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
}

.scroll-cue {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 34px;
  z-index: 9;
  display: grid;
  gap: 3px;
  color: #393b3d;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 54px;
  margin: 8px 0 0 auto;
  background: var(--ink);
  animation: cue 1.4s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.45);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
}

@media (max-width: 1180px) {
  .hero-stage {
    grid-template-columns: minmax(420px, 0.9fr) minmax(460px, 1fr);
    gap: 36px;
    padding-inline: 36px;
  }

  .hero h1 {
    font-size: clamp(48px, 6vw, 74px);
  }
}

.service-strip,
.contact-band {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.service-strip {
  padding: clamp(72px, 12vw, 132px) 0;
}

.service-strip h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.service-grid article {
  min-height: 178px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.54);
}

.service-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.service-grid h3 {
  margin: 42px 0 10px;
  font-size: 24px;
  letter-spacing: 0;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: end;
  padding: clamp(72px, 12vw, 132px) 0;
  border-top: 1px solid var(--line);
}

.contact-links {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.contact-links a {
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 24px 0 32px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.preview-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(247, 247, 242, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.preview-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.preview-frame {
  width: min(1040px, 100%);
  max-height: 78svh;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.preview-frame img,
.preview-frame video {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
}

.preview-close {
  position: fixed;
  top: 20px;
  right: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.preview-label {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .brand-name {
    display: none;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .hero {
    padding: 0;
  }

  .hero-stage {
    display: flex;
    min-height: auto;
    padding: 96px 18px 34px;
    flex-direction: column;
    background-size: 60px 60px;
  }

  .hero-board {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: 100%;
    height: auto;
    margin-top: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 12px;
  }

  .hero-board::before {
    display: none;
  }

  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    order: 1;
    width: 100%;
    padding-top: 32px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 82px);
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    min-height: 43px;
    padding: 0 16px;
  }

  .media-tile {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: none;
    transform: none;
  }

  .media-tile:hover {
    transform: none;
  }

  .hero-stage::before {
    display: none;
  }

  .hero-stage {
    overflow-x: hidden;
  }

  .tile-large,
  .tile-wide {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .tile-tall,
  .tile-medium,
  .tile-small,
  .tile-mini {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-stage {
    gap: 14px;
  }

  .scroll-cue {
    display: none;
  }

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

  .service-grid article {
    min-height: 148px;
  }

  .service-grid h3 {
    margin-top: 28px;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .contact-links {
    justify-items: start;
  }

  .site-footer {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .nav-links {
    gap: 0;
  }

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

  .hero-stage {
    padding-top: 86px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .media-tile {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
