:root {
  --paper: #efefeb;
  --ink: #11110f;
  --muted: #716c61;
  --line: rgba(17, 17, 15, 0.18);
  --acid: #c7ff2e;
  --blue: #315dff;
  --red: #ff4b38;
  --sand: #d8dbd1;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 7vw 100%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(239, 239, 235, 0.86);
  backdrop-filter: blur(18px);
}

.mark {
  display: grid;
  grid-template-columns: repeat(2, 32px);
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 32px;
  text-align: center;
}

.mark span:first-child {
  background: var(--ink);
  color: var(--paper);
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 78px);
  min-height: calc(100vh - 68px);
  padding: clamp(38px, 7vw, 104px) clamp(18px, 4vw, 56px) clamp(34px, 5vw, 72px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.home-hero-copy {
  max-width: 1040px;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  grid-template-rows: minmax(210px, 1fr) minmax(210px, 0.82fr);
  gap: 14px;
  min-height: clamp(460px, 58vw, 720px);
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.hero-mosaic img:first-child {
  grid-row: span 2;
  object-position: 58% center;
  box-shadow: 18px 18px 0 var(--ink);
}

.hero-mosaic img:nth-child(2) {
  object-position: center 42%;
}

.home-about {
  border-bottom: 1px solid var(--line);
}

.case-index {
  padding: clamp(54px, 9vw, 128px) clamp(18px, 4vw, 56px);
}

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

.case-card {
  position: relative;
  display: grid;
  min-height: clamp(440px, 52vw, 660px);
  padding: 18px;
  overflow: hidden;
  align-content: end;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.case-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82));
  content: "";
}

.case-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.case-card:hover img {
  transform: scale(1.035);
}

.case-card-number,
.case-card h3,
.case-card p {
  position: relative;
  z-index: 1;
}

.case-card-number {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.case-card h3 {
  margin-bottom: 14px;
  font-size: clamp(29px, 4vw, 58px);
}

.case-card p {
  max-width: 420px;
  margin-bottom: 0;
  color: rgba(239, 239, 235, 0.86);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
}

.warm-card img {
  object-position: center 42%;
}

.blue-card img {
  object-position: center center;
}

.porsche-card {
  background: #050505;
}

.porsche-card img {
  object-fit: contain;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: clamp(24px, 5vw, 78px);
  min-height: calc(100vh - 68px);
  padding: clamp(34px, 6vw, 92px) clamp(18px, 4vw, 56px) 28px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1.05fr);
  gap: clamp(24px, 5vw, 78px);
  min-height: calc(100vh - 68px);
  padding: clamp(28px, 5vw, 70px) clamp(18px, 4vw, 56px) clamp(34px, 5vw, 72px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.case-hero .back-link {
  align-self: start;
  grid-column: 1 / -1;
}

.case-hero h1 {
  font-size: clamp(58px, 10vw, 152px);
  overflow-wrap: anywhere;
}

.back-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--ink);
}

.case-work {
  padding-top: clamp(34px, 6vw, 84px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(82px, 15vw, 230px);
  font-weight: 920;
  letter-spacing: 0;
  line-height: 0.8;
  text-transform: uppercase;
}

.intro {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(21px, 3vw, 42px);
  font-weight: 720;
  line-height: 1.04;
}

.hero-reel {
  margin: 0;
}

.reel-frame {
  position: relative;
  display: grid;
  min-height: clamp(330px, 51vw, 640px);
  padding: 18px;
  overflow: hidden;
  align-items: end;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 68% 18%, var(--acid) 0 11%, transparent 12%),
    linear-gradient(135deg, #181817 0 48%, var(--blue) 48% 68%, var(--red) 68%);
  color: var(--paper);
  box-shadow: 18px 18px 0 var(--ink);
}

.reel-frame-image {
  background: #080807;
}

.reel-frame img,
.media-card img,
.thumb img,
.gallery-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-frame img {
  object-position: 58% center;
}

.case-page .case-hero .reel-frame {
  min-height: clamp(300px, 34vw, 520px);
}

.case-page .case-hero .reel-frame img {
  object-fit: cover;
  object-position: center center;
}

.porsche-case-hero {
  grid-template-columns: 1fr;
}

.porsche-case-hero .hero-reel {
  width: 100%;
}

.porsche-panorama {
  min-height: 0;
  aspect-ratio: 21 / 9;
  background: #050505;
}

.porsche-panorama img {
  object-fit: contain;
}

.porsche-render-media {
  background: #050505;
}

.porsche-render-media img {
  object-fit: contain;
  padding: clamp(12px, 2vw, 28px);
}

.reel-frame-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62));
  content: "";
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 8px
  );
  mix-blend-mode: overlay;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(244, 241, 232, 0.74);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.play-button::after {
  position: absolute;
  left: 31px;
  top: 23px;
  width: 0;
  height: 0;
  border-bottom: 16px solid transparent;
  border-left: 24px solid var(--paper);
  border-top: 16px solid transparent;
  content: "";
}

.reel-frame p {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 290px;
  font-size: 44px;
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ticker {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  scrollbar-width: none;
}

.ticker span {
  flex: 0 0 auto;
  padding: 14px 22px;
  border-right: 1px solid rgba(244, 241, 232, 0.2);
  font-size: clamp(18px, 2.8vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
}

.work {
  padding: clamp(54px, 9vw, 128px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  margin-bottom: clamp(42px, 7vw, 92px);
  align-items: start;
}

h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(42px, 7vw, 110px);
  font-weight: 910;
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 5vw, 72px);
  padding: clamp(34px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.project-reverse {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.project-reverse .project-copy {
  order: -1;
}

.media-stack {
  display: grid;
  gap: 14px;
}

.media-card,
.thumb,
.gallery-tile {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--sand);
}

.media-card::before,
.thumb::before,
.gallery-tile::before {
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 1px solid rgba(17, 17, 15, 0.36);
  content: "";
  pointer-events: none;
}

.media-card-video {
  min-height: clamp(430px, 56vw, 760px);
  background:
    linear-gradient(120deg, rgba(17, 17, 15, 0.06) 0 30%, transparent 30%),
    linear-gradient(45deg, #f0eee2, #bac5ad 46%, #10100e 46% 72%, var(--acid) 72%);
}

.media-card-warm {
  min-height: clamp(410px, 52vw, 690px);
  background:
    linear-gradient(90deg, rgba(255, 75, 56, 0.88), rgba(255, 75, 56, 0) 44%),
    linear-gradient(140deg, #25211c, #d7c9a8 50%, #ebe5d1);
}

.media-card-lamp {
  min-height: clamp(520px, 66vw, 860px);
  background: #13110f;
}

.video-frame {
  position: relative;
  overflow: hidden;
  min-height: clamp(430px, 56vw, 760px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #060606;
  box-shadow: 18px 18px 0 var(--ink);
}

.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: clamp(430px, 56vw, 760px);
  object-fit: cover;
}

.lamp-hero img {
  object-position: center 43%;
}

.fair-image {
  min-height: clamp(560px, 72vw, 900px);
}

.fair-image img {
  object-position: center 28%;
}

.contain-media {
  background: #f7f7f1;
}

.contain-media img {
  object-fit: contain;
  padding: clamp(10px, 2vw, 26px);
}

.media-label {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 7px 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.thumb-row-process {
  grid-template-columns: repeat(5, 1fr);
}

.thumb {
  min-height: 170px;
}

.project-copy {
  position: sticky;
  top: 100px;
  max-width: 560px;
}

.project-number {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

h3 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 910;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.project-copy p:not(.project-number) {
  color: #2c2b27;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.35;
}

.case-break {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: clamp(42px, 8vw, 110px);
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  align-items: center;
}

.case-break span,
.case-break p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.case-break span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
}

.case-break p {
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 0.92;
}

dl {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 760;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  grid-auto-rows: minmax(170px, 20vw);
  gap: 14px;
}

.gallery-tile {
  min-height: 0;
  background: #e2e4db;
}

.gallery-tile.tall {
  grid-row: span 2;
  background: #171713;
}

.gallery-tile.blue {
  background: var(--blue);
}

.gallery-tile.red {
  background: var(--red);
}

.gallery-tile.wide {
  background: var(--acid);
}

.physical-gallery .gallery-tile {
  background: #f7f7f1;
}

.physical-gallery {
  grid-template-columns: minmax(0, 1.12fr) repeat(2, minmax(0, 0.62fr));
  grid-auto-rows: minmax(280px, 1fr);
  min-height: clamp(620px, 62vw, 860px);
}

.physical-gallery .finished-model {
  grid-row: span 2;
}

.physical-gallery .gallery-tile img {
  object-position: center center;
}

.physical-gallery .finished-model img {
  object-position: center 58%;
}

.mechanism-tile {
  background: #f7f7f1;
}

.mechanism-tile img {
  object-fit: contain;
  padding: clamp(10px, 2vw, 26px);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(54px, 9vw, 126px) clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #d7d9d0;
}

.about p:last-child {
  max-width: 680px;
  margin: 0;
  align-self: end;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 760;
  line-height: 1.06;
}

@media (max-width: 860px) {
  body {
    background-size: 18vw 100%;
  }

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

  nav {
    gap: 12px;
    font-size: 12px;
  }

  .hero,
  .home-hero,
  .case-hero,
  .section-heading,
  .project,
  .project-reverse,
  .about {
    grid-template-columns: 1fr;
  }

  .hero,
  .home-hero,
  .case-hero {
    min-height: auto;
  }

  .hero-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(210px, 32vh));
    min-height: auto;
  }

  .hero-mosaic img:first-child {
    grid-row: auto;
    box-shadow: 9px 9px 0 var(--ink);
  }

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

  .case-card {
    min-height: 430px;
  }

  .project-reverse .project-copy {
    order: initial;
  }

  .project-copy {
    position: static;
  }

  .thumb-row {
    grid-template-columns: 1fr;
  }

  .thumb-row-process {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb {
    min-height: 130px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-tile.tall {
    grid-row: span 1;
  }

  .physical-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    min-height: 0;
  }

  .physical-gallery .finished-model {
    grid-row: span 2;
  }
}

@media (max-width: 520px) {
  .mark {
    grid-template-columns: repeat(2, 28px);
    line-height: 28px;
  }

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

  h1 {
    font-size: 66px;
    line-height: 0.9;
  }

  .case-hero h1 {
    font-size: 52px;
    line-height: 0.92;
  }

  .intro {
    font-size: 22px;
  }

  .reel-frame {
    min-height: 360px;
    box-shadow: 9px 9px 0 var(--ink);
  }

  .porsche-panorama {
    min-height: 0;
    aspect-ratio: 21 / 9;
  }

  .video-frame {
    min-height: 360px;
    box-shadow: 9px 9px 0 var(--ink);
  }

  .video-frame video,
  .video-frame iframe {
    min-height: 360px;
  }

  .reel-frame p {
    font-size: 36px;
  }

  .media-card {
    min-height: 340px;
  }
}
