:root {
  --bg: #050506;
  --panel: #0d0d0e;
  --panel-soft: #151312;
  --text: #f3efe8;
  --muted: #a7a09a;
  --dim: #6d6761;
  --line: rgba(243, 239, 232, 0.14);
  --gold: #c79a53;
  --ice: #9ac9ff;
  --max: 1680px;
  --gutter: clamp(18px, 4vw, 64px);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 0%, rgba(199, 154, 83, 0.12), transparent 28rem),
    linear-gradient(180deg, #050506 0%, #0a0908 52%, #050506 100%);
  color: var(--text);
  font-family: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  color: var(--text);
  mix-blend-mode: difference;
}

.brand-mark {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark span:last-child {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav a {
  color: rgba(243, 239, 232, 0.72);
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
  padding: 116px var(--gutter) 42px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.78), rgba(5, 5, 6, 0.25) 55%, rgba(5, 5, 6, 0.76)),
    linear-gradient(180deg, rgba(5, 5, 6, 0.22), rgba(5, 5, 6, 0.94));
}

.ambient-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.92) contrast(1.05);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 74%, var(--bg) 100%),
    radial-gradient(circle at 52% 45%, transparent 0 18rem, rgba(5, 5, 6, 0.45) 36rem);
}

.hero-content {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1180px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(56px, 10vw, 156px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: 0;
}

.hero-footer {
  display: grid;
  grid-template-columns: minmax(260px, 520px) auto;
  align-items: end;
  gap: clamp(24px, 7vw, 120px);
  max-width: 980px;
  margin-top: clamp(28px, 6vh, 74px);
}

.hero-footer p {
  margin: 0;
  color: rgba(243, 239, 232, 0.78);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.55;
}

.cta,
.contact-link,
.floating-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(243, 239, 232, 0.38);
  border-radius: 999px;
  padding: 0 22px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.cta:hover,
.contact-link:hover,
.floating-email:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

.floating-email {
  position: fixed;
  z-index: 30;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-height: 40px;
  border-color: rgba(243, 239, 232, 0.3);
  background: rgba(5, 5, 6, 0.42);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.intro-panel {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-panel > div {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px) clamp(12px, 2vw, 26px);
  border-left: 1px solid var(--line);
}

.intro-panel > div:first-child {
  border-left: 0;
}

.metric {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.9;
}

.metric-label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.work-section,
.approach-section,
.contact-section {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.work-section {
  padding: clamp(76px, 10vw, 168px) 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(24px, 5vw, 84px);
  align-items: start;
  margin-bottom: clamp(28px, 5vw, 74px);
}

.section-heading h2 {
  margin: 0;
  max-width: 900px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 6vw, 98px);
  font-weight: 400;
  line-height: 0.98;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 68px) clamp(18px, 2vw, 32px);
}

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

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

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

.video-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  aspect-ratio: 16 / 9;
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.38);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  transition:
    filter 240ms ease,
    opacity 240ms ease,
    transform 520ms ease;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.36)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.22));
  opacity: 0.8;
  transition: opacity 220ms ease;
}

.video-frame:hover video {
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.026);
}

.video-frame:hover::after {
  opacity: 0.42;
}

.play-pill {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(243, 239, 232, 0.35);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(5, 5, 6, 0.34);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.work-meta {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(240px, 1fr);
  gap: clamp(16px, 2vw, 34px);
  padding-top: 18px;
}

.work-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.work-meta h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 600;
  line-height: 1.02;
}

.work-meta p {
  margin: 0;
  color: rgba(243, 239, 232, 0.68);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.55;
}

.approach-section {
  padding: clamp(86px, 12vw, 190px) 0 clamp(76px, 10vw, 156px);
}

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

.approach-grid > div {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px) clamp(18px, 3vw, 42px);
  border-left: 1px solid var(--line);
}

.approach-grid > div:first-child {
  border-left: 0;
}

.step-number {
  color: var(--gold);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.approach-grid h3 {
  margin: 28px 0 14px;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.08;
}

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

.contact-section {
  display: grid;
  min-height: 72svh;
  align-content: center;
  padding: clamp(70px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 960px;
  margin: 0 0 30px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(46px, 8vw, 118px);
  font-weight: 400;
  line-height: 0.96;
}

.contact-link {
  width: fit-content;
  text-transform: none;
  font-size: clamp(14px, 1.2vw, 18px);
}

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    padding-top: 18px;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    min-height: 92svh;
    padding-top: 96px;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 620px;
  }

  .cta {
    width: fit-content;
  }

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

  .intro-panel > div:nth-child(odd) {
    border-left: 0;
  }

  .intro-panel > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .work-card,
  .work-card-large,
  .work-card-wide {
    grid-column: auto;
  }

  .work-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .approach-grid > div,
  .approach-grid > div:first-child {
    border-left: 0;
  }

  .approach-grid > div + div {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --radius: 6px;
  }

  .site-header {
    position: absolute;
    mix-blend-mode: normal;
  }

  .brand-mark {
    flex-direction: column;
    gap: 3px;
  }

  .site-nav {
    font-size: 11px;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding-bottom: 28px;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 6, 0.2), rgba(5, 5, 6, 0.92)),
      linear-gradient(90deg, rgba(5, 5, 6, 0.72), rgba(5, 5, 6, 0.18));
  }

  .hero h1 {
    font-size: clamp(46px, 17vw, 76px);
  }

  .hero-footer p {
    font-size: 15px;
  }

  .intro-panel {
    grid-template-columns: 1fr;
  }

  .intro-panel > div,
  .intro-panel > div:nth-child(odd) {
    border-left: 0;
  }

  .intro-panel > div + div {
    border-top: 1px solid var(--line);
  }

  .section-heading h2 {
    font-size: clamp(36px, 12vw, 58px);
  }

  .video-frame {
    border-radius: 6px;
  }

  .play-pill {
    right: 12px;
    bottom: 12px;
  }

  .work-meta h3 {
    font-size: 24px;
  }

  .approach-section {
    padding-bottom: 84px;
  }

  .contact-section {
    min-height: 60svh;
  }

  .contact-link {
    width: 100%;
    max-width: 360px;
  }

  .floating-email {
    right: 12px;
    bottom: 12px;
    min-height: 38px;
    padding-inline: 16px;
    font-size: 11px;
  }
}
