:root {
  color-scheme: dark;
  --bg: #11100e;
  --surface: #1a1916;
  --surface-2: #24221e;
  --text: #f1eee8;
  --muted: #b9b1a5;
  --subtle: #756f66;
  --line: #34312b;
  --accent: #d7a85b;
  --accent-2: #8eb4c8;
  --danger: #d77d63;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(215, 168, 91, .08), transparent 360px),
    radial-gradient(circle at 70% 20%, rgba(142, 180, 200, .08), transparent 380px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

img {
  height: auto;
}

iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #050505;
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  background:
    linear-gradient(180deg, rgba(42, 34, 23, .9), rgba(24, 22, 18, .86)),
    rgba(17, 16, 14, .86);
  backdrop-filter: blur(18px) saturate(1.08);
  border-bottom: 1px solid rgba(215, 168, 91, .2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header--deep {
  background: rgba(17, 16, 14, .9);
  border-bottom-color: rgba(52, 49, 43, .72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}

.brand {
  font-weight: 720;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 8px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease);
}

.social-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.social-links a:active {
  transform: scale(.96);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav a,
.text-link,
.back-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease);
}

.nav a {
  padding: 0 14px;
}

.nav a:hover,
.nav a[aria-current="page"],
.text-link:hover,
.back-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.nav a:active,
.text-link:active,
.back-link:active {
  transform: scale(.98);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 54px 0 clamp(190px, 30vh, 320px);
  overflow: hidden;
}

.hero__copy,
.hero__media {
  position: relative;
  z-index: 1;
}

.hero-waves {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: 140vw;
  height: clamp(250px, 38vh, 430px);
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
  opacity: .86;
  border-bottom: 1px solid rgba(215, 168, 91, .08);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 92%, transparent 100%);
}

.hero-waves__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero h1,
.about-hero h1,
.case-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: .94;
  letter-spacing: 0;
}

.hero__intro,
.about-hero p,
.case-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero__media,
.project-card,
.fact-panel,
.media-block {
  --edge-light: 0;
  --edge-fill: 0;
  --edge-x: 50%;
  --edge-y: 50%;
  position: relative;
  background: rgba(26, 25, 22, .84);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.hero__media::after,
.project-card::after,
.fact-panel::after,
.media-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    330px circle at var(--edge-x) var(--edge-y),
    rgba(215, 168, 91, .92),
    rgba(215, 168, 91, .48) 30%,
    rgba(215, 168, 91, .18) 58%,
    transparent 82%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: calc((var(--edge-light) * .82) + (var(--edge-fill) * .46));
  transition: opacity 120ms ease;
}

.hero__media {
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.work-band,
.other-work-band,
.timeline,
.case-study,
.case-media,
.two-column,
.profile-strip {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, .34fr) minmax(0, .66fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.section-heading h2,
.profile-strip h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading--compact {
  margin-bottom: 24px;
}

.section-heading--compact h2 {
  max-width: 620px;
  font-size: clamp(24px, 3vw, 34px);
}

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

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

.project-layer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(52, 49, 43, .72);
}

.project-layer-link .eyebrow {
  margin: 0;
  color: var(--subtle);
}

.other-work-grid .project-card__body {
  padding: 16px;
}

.other-work-grid .project-card h3 {
  font-size: 20px;
}

.other-work-grid .project-card p {
  font-size: 14px;
}

.other-work-grid .project-card__media iframe {
  aspect-ratio: 16 / 10;
}

.project-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
  border-bottom: 1px solid var(--line);
}

.other-work-grid .project-card__media img {
  aspect-ratio: 16 / 10;
}

.project-card {
  min-width: 0;
  transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 168, 91, .44);
  background: rgba(36, 34, 30, .9);
}

.project-card__media--empty {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(140deg, rgba(215, 168, 91, .12), transparent 44%),
    rgba(12, 12, 10, .62);
  border-bottom: 1px solid var(--line);
}

.project-card__media--empty span {
  max-width: 24ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.project-card__body {
  padding: 20px;
}

.project-card__meta,
.case-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card__meta span,
.case-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.project-card h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.08;
}

.project-card h3 a:hover,
.project-card__link:hover {
  color: var(--accent);
}

.project-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.project-card__link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--text);
  font-weight: 680;
  transition: color 180ms ease;
}

.profile-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.text-link,
.back-link {
  width: fit-content;
  padding: 0 14px;
  border: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 36px 0 48px;
  color: var(--subtle);
  border-top: 1px solid var(--line);
}

.about-hero,
.case-hero {
  padding: 92px 0 76px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(280px, .38fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.about-hero__copy {
  min-width: 0;
}

.about-portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 168, 91, .18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
}

.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 54%, rgba(17, 16, 14, .22)),
    radial-gradient(circle at 30% 0%, rgba(215, 168, 91, .12), transparent 42%);
  mix-blend-mode: screen;
  opacity: .46;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(300px, .3fr);
  gap: clamp(28px, 6vw, 86px);
}

.two-column h2,
.timeline h3,
.case-study h2 {
  margin: 0 0 12px;
  line-height: 1.1;
}

.two-column p,
.timeline p,
.case-study p,
.case-study li {
  color: var(--muted);
}

.fact-panel {
  padding: 24px;
}

.fact-panel ul,
.case-study ul {
  margin: 0;
  padding-left: 20px;
}

.fact-panel li + li,
.case-study li + li {
  margin-top: 10px;
}

.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--surface);
}

.timeline li > span {
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.project-page {
  max-width: 1040px;
}

.back-link {
  margin-bottom: 32px;
}

.case-meta {
  margin-top: 24px;
}

.case-external-link {
  margin-top: 18px;
}

.case-media {
  display: grid;
  gap: 20px;
}

.media-block {
  margin: 0;
}

.media-block img {
  width: 100%;
  height: auto;
  background: var(--surface-2);
}

.media-block figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.case-study {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 0;
  padding-top: 0;
}

.case-study article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  background: var(--bg);
}

.case-study p {
  margin: 0;
  max-width: 720px;
}

.case-note p {
  color: var(--accent);
}

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

.press-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 25, 22, .72);
}

.press-item span,
.press-item strong {
  display: block;
}

.press-item span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.press-item strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.placeholder-page {
  min-height: calc(100vh - 156px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px 0;
}

.placeholder-page h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(52px, 9vw, 112px);
  line-height: .9;
}

.placeholder-page p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

@media (max-width: 900px) {
  .hero,
  .about-hero,
  .two-column,
  .section-heading,
  .profile-strip,
  .case-study article {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

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

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

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

  .about-portrait {
    max-width: 460px;
  }

  .profile-strip {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    min-height: 64px;
  }

  .site-header {
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 4px;
  }

  .nav a {
    min-height: 32px;
    padding: 0 8px;
    font-size: 14px;
  }

  .hero h1,
  .about-hero h1,
  .case-hero h1 {
    font-size: clamp(38px, 14vw, 56px);
  }

  .work-band,
  .other-work-band,
  .timeline,
  .case-study,
  .case-media,
  .two-column,
  .profile-strip {
    padding: 56px 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .social-links a {
    width: 30px;
    height: 30px;
  }

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

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

  .project-layer-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

}

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

  .hero__media::after,
  .project-card::after,
  .fact-panel::after,
  .media-block::after {
    display: none;
  }
}
