:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f4f4ef;
  --soft: rgba(244, 244, 239, 0.72);
  --muted: rgba(244, 244, 239, 0.48);
  --line: rgba(244, 244, 239, 0.14);
  --panel: rgba(12, 12, 12, 0.82);
  --panel-strong: rgba(18, 18, 18, 0.92);
  --accent: #b8c2b5;
  --header-h: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

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

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

.hero-video-stage {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #020202;
}

.hero-video-stage video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(112vw, 199.2vh);
  height: max(63vw, 112vh);
  transform: translate3d(-50%, -50%, 0);
  background: #020202;
  opacity: 0.78;
  filter: grayscale(1) contrast(1.15) brightness(0.76);
  will-change: transform;
}

.hero-video-stage::before,
.hero-video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-video-stage::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.2) 42%, rgba(5, 5, 5, 0.72)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.44) 55%, #050505 96%);
}

.hero-video-stage::after {
  z-index: 2;
  opacity: 0.2;
  background:
    linear-gradient(90deg, rgba(244, 244, 239, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 244, 239, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.video-passive .hero-video-stage video {
  opacity: 0.58;
}

.video-error .hero-video-stage {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.62)),
    #020202;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-h);
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(244, 244, 239, 0.1);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.74), rgba(5, 5, 5, 0.1));
  backdrop-filter: blur(12px);
}

.brand,
.nav-links {
  letter-spacing: 0;
}

.brand {
  font-size: 0.95rem;
  font-weight: 850;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  color: rgba(244, 244, 239, 0.78);
  font-size: 0.82rem;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

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

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:focus-visible,
.contact-line:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

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

.hero {
  display: grid;
  align-content: end;
  min-height: 96svh;
  padding: 136px clamp(20px, 7vw, 108px) 10vh;
}

.hero h1 {
  max-width: 1100px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13.5rem;
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.section {
  padding: 96px clamp(20px, 7vw, 108px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.98)),
    var(--bg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}

.section-kicker,
.work-index {
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2 {
  max-width: 980px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.info-grid,
.metrics,
.asset-wall,
.ratio-gallery {
  border: 1px solid var(--line);
  background: var(--line);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 58px 0 0;
  padding: 0;
}

.info-grid div,
.metric,
.work-group,
.asset-card {
  background: var(--panel);
}

.info-grid div {
  min-height: 150px;
  padding: 24px;
}

.info-grid dt {
  margin: 0 0 30px;
  color: var(--muted);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.info-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 760;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
}

.metric {
  min-height: 188px;
  padding: 26px;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.metric span {
  display: block;
  max-width: 210px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.work-stack {
  display: grid;
  gap: 1px;
  margin-top: 1px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--line);
}

.work-group {
  display: grid;
  grid-template-columns: minmax(250px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(28px, 4.4vw, 58px);
}

.work-copy {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}

.work-copy h3 {
  margin: 18px 0 18px;
  overflow-wrap: anywhere;
  font-size: 3.7rem;
  line-height: 1.02;
  font-weight: 920;
  letter-spacing: 0;
}

.work-copy p {
  max-width: 440px;
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.85;
}

.asset-wall,
.ratio-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  align-items: start;
}

.asset-card {
  min-width: 0;
  margin: 0;
  color: var(--soft);
  transition: background-color 180ms ease, transform 180ms ease;
  will-change: transform;
}

.asset-card img {
  width: 100%;
  height: auto;
  background: #050505;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
  transition: filter 180ms ease;
}

.asset-card:hover,
.asset-card:focus-within {
  background: var(--panel-strong);
}

.asset-card:hover img {
  filter: grayscale(0.08) contrast(1.03);
}

.asset-card figcaption {
  min-height: 42px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.asset-card.portrait {
  grid-column: span 4;
}

.asset-card.landscape {
  grid-column: span 6;
}

.asset-card.wide {
  grid-column: span 4;
}

.ratio-gallery {
  margin-top: 58px;
}

.design-gallery .asset-card.portrait {
  grid-column: span 4;
}

.design-gallery .asset-card.wide,
.photo-gallery .asset-card.landscape {
  grid-column: span 6;
}

.photo-gallery .asset-card.portrait {
  grid-column: span 3;
}

.contact {
  min-height: 70vh;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-line {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .hero h1 {
    font-size: 10rem;
  }

  .section h2 {
    font-size: 4rem;
  }

  .work-copy h3 {
    font-size: 3rem;
  }

  .work-group {
    grid-template-columns: 1fr;
  }

  .work-copy {
    position: static;
  }
}

@media (max-width: 980px) {
  .info-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-card.portrait,
  .asset-card.landscape,
  .asset-card.wide,
  .design-gallery .asset-card.portrait,
  .design-gallery .asset-card.wide,
  .photo-gallery .asset-card.landscape,
  .photo-gallery .asset-card.portrait {
    grid-column: span 6;
  }

  .contact-line {
    font-size: 1.9rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    padding: 14px 20px;
  }

  .brand {
    font-size: 0.86rem;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.76rem;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(4) {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding: 112px 20px 72px;
  }

  .hero h1 {
    font-size: 4.45rem;
  }

  .section {
    padding: 66px 20px;
  }

  .section-heading,
  .info-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 3.05rem;
  }

  .info-grid div,
  .metric {
    min-height: 138px;
  }

  .metric strong {
    font-size: 3.75rem;
  }

  .work-group {
    padding: 24px;
  }

  .work-copy h3 {
    font-size: 2.5rem;
  }

  .asset-wall,
  .ratio-gallery {
    grid-template-columns: 1fr;
  }

  .asset-card.portrait,
  .asset-card.landscape,
  .asset-card.wide,
  .design-gallery .asset-card.portrait,
  .design-gallery .asset-card.wide,
  .photo-gallery .asset-card.landscape,
  .photo-gallery .asset-card.portrait {
    grid-column: auto;
  }

  .contact-line {
    font-size: 1.25rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 3.85rem;
  }

  .section h2 {
    font-size: 2.6rem;
  }

  .work-copy h3 {
    font-size: 2.2rem;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 3.35rem;
  }

  .contact-line {
    font-size: 1.08rem;
  }
}

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

  .nav-links a::after,
  .asset-card,
  .asset-card img {
    transition: none;
  }
}
