@font-face { font-family: "Spock Pro"; src: url("fonts/SpockPro-Black.otf") format("opentype"); font-display: swap; font-weight: 900; }
@font-face { font-family: "Spock Pro"; src: url("fonts/SpockPro-Regular.otf") format("opentype"); font-display: swap; font-weight: 400; }
@font-face { font-family: "Spock Ess"; src: url("fonts/SpockEss-Regular.otf") format("opentype"); font-display: swap; font-weight: 400; }
@font-face { font-family: "Spock Ess"; src: url("fonts/SpockEss-Bold.otf") format("opentype"); font-display: swap; font-weight: 700; }

:root {
  --black: #242424;
  --ink: #0f0f0f;
  --white: #ffffff;
  --yellow: #ffcc00;
  --cyan: #00ccff;
  --orange: #ff6014;
  --pink: #ff3366;
  --accent: #00ccff;
  --rule: rgba(255,255,255,0.18);
  --gap: 2px;
  --max: 1440px;
  --pad: 48px;
  --row: 400px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--white); }
body { font-family: "Spock Ess", system-ui, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.display { font-family: "Spock Pro", sans-serif; font-weight: 900; letter-spacing: -0.01em; line-height: 1; }
.nb { white-space: nowrap; }

/* nav */
.top { position: relative; z-index: 6; }
.top--over { position: absolute; top: 0; left: 0; right: 0; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.top:not(.top--over) .nav { border-bottom: 1px solid var(--rule); }
.wm { height: 22px; color: var(--white); display: block; }
.wm svg { height: 100%; width: auto; display: block; }
.menu { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; font-size: 14px; letter-spacing: 0.02em; }
.menu a { color: var(--white); opacity: 0.8; }
.menu a:hover { opacity: 1; }
.menu a.is-current { opacity: 1; position: relative; }
.menu a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: var(--accent); }

/* page hero (subpages) */
.page-hero { padding: 96px 0 56px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: 88px; max-width: 16ch; }
.page-hero .lede { font-size: 20px; line-height: 1.45; max-width: 52ch; margin-top: 28px; opacity: 0.85; }
.page-hero .bar { display: block; width: 72px; height: 4px; background: var(--accent); margin-bottom: 36px; }
.page-hero--flush { border-bottom: 0; padding-bottom: 44px; }

/* the one figure, everything else cut away; the layer is what the parallax moves */
.figure { position: relative; background: var(--ink); height: min(84vh, 760px); overflow: hidden; }
.figure__layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: transform; }
.figure__layer img { height: 85%; width: auto; max-width: 92%; object-fit: contain; display: block; }
.figure__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .figure__layer { transform: none !important; } }

/* section head */
.head { display: flex; align-items: baseline; justify-content: space-between; padding: 44px 0 20px; }
.head h2 { font-family: "Spock Pro", sans-serif; font-weight: 900; font-size: 30px; margin: 0; letter-spacing: -0.01em; }
.head .hint { font-size: 13px; opacity: 0.6; }
.head .hint b { color: var(--accent); font-weight: 400; }
.head a.more { font-size: 13px; opacity: 0.6; }
.head a.more:hover { opacity: 1; color: var(--accent); }

/* prose blocks */
.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section h2 { font-size: 56px; max-width: 18ch; }
.section .intro { font-size: 20px; line-height: 1.45; max-width: 52ch; margin-top: 24px; opacity: 0.85; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--rule); border: 1px solid var(--rule); margin-top: 44px; }
.block { background: var(--black); padding: 32px; min-height: 220px; display: flex; flex-direction: column; gap: 14px; }
.block h3 { font-family: "Spock Pro", sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -0.01em; line-height: 1.05; }
.block p { font-size: 16px; line-height: 1.5; opacity: 0.85; }
.block .k { margin-top: auto; font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--accent); }
.kicker { font-family: "Spock Pro", sans-serif; font-weight: 900; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; margin-top: 44px; max-width: 24ch; }
.kicker b { color: var(--accent); font-weight: 900; }

/* tiles and bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, var(--row)); gap: var(--gap); background: var(--rule); border: 1px solid var(--rule); }
.slot-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.slot-2 { grid-column: 3; grid-row: 1; }
.slot-3 { grid-column: 3; grid-row: 2; }
.slot-4 { grid-column: 1; grid-row: 3; }
.slot-5 { grid-column: 2; grid-row: 3; }
.slot-6 { grid-column: 3; grid-row: 3; }
.slot-7 { grid-column: 1 / span 2; grid-row: 4; }
.slot-8 { grid-column: 3; grid-row: 4; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: var(--row); gap: var(--gap); background: var(--rule); border: 1px solid var(--rule); }

.band { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 460px; gap: var(--gap); background: var(--rule); border: 1px solid var(--rule); margin-top: 44px; }
.band--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 420px; }
.band .title { font-size: 30px; }

.tile { position: relative; overflow: hidden; background: var(--ink); display: block; color: var(--white); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 240ms ease; }
.tile:hover img { transform: scale(1.015); }
.tile .cap { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.tile .title { font-family: "Spock Pro", sans-serif; font-weight: 900; font-size: 24px; line-height: 1.05; letter-spacing: -0.005em; margin: 0; opacity: 0.92; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.slot-1 .title { font-size: 44px; }
.slot-7 .title { font-size: 34px; }
.tile .client { font-size: 12px; opacity: 0.6; margin-top: 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.tile .num { position: absolute; top: 12px; left: 18px; font-size: 11px; letter-spacing: 0.08em; opacity: 0.55; }
.tile .bar { position: absolute; top: 0; left: 0; width: 0; height: 4px; background: var(--accent); transition: width 240ms ease; }
.tile:hover .bar { width: 100%; }
.tile[hidden] { display: none; }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 20px; }
.chip { font: inherit; font-size: 13px; letter-spacing: 0.02em; color: var(--white); background: transparent; border: 1px solid var(--rule); padding: 8px 14px; cursor: pointer; opacity: 0.8; }
.chip:hover { border-color: var(--accent); opacity: 1; }
.chip.is-on { background: var(--accent); color: var(--black); border-color: var(--accent); opacity: 1; font-weight: 700; }
.count { font-size: 13px; opacity: 0.6; }

/* case detail */
.case-hero { position: relative; aspect-ratio: 16 / 9; background: var(--ink); margin-top: 2px; overflow: hidden; }
.case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero .bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--accent); }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.02em; opacity: 0.6; margin-top: 22px; }
.back::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.back:hover { opacity: 1; color: var(--accent); }
.case-head { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 44px 0 0; }
.case-head h1 { font-size: 84px; }
.case-meta { font-size: 13px; line-height: 1.7; opacity: 0.7; padding-top: 14px; }
.case-meta b { font-weight: 400; opacity: 1; color: var(--white); }
.case-meta .tags a { color: var(--accent); }
.case-body { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 36px 0 56px; border-bottom: 1px solid var(--rule); }
.case-body p { font-size: 26px; line-height: 1.4; max-width: 48ch; opacity: 0.92; }
.case-body .outcome { font-family: "Spock Pro", sans-serif; font-weight: 900; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; color: var(--accent); }
.case-body .verify { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--yellow); opacity: 0.9; display: block; margin-top: 12px; }
.video { position: relative; margin: 44px 0 0; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }
.video figcaption { font-size: 13px; opacity: 0.6; padding: 12px 2px 0; }

/* case gallery: big supporting stills */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); background: var(--rule); border: 1px solid var(--rule); margin-top: 44px; }
.shot { position: relative; background: var(--ink); margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.shot--contain img { object-fit: contain; padding: 24px; }
.shot figcaption { font-size: 13px; opacity: 0.6; padding: 12px 16px 16px; }
.shot:first-child:last-child { grid-column: 1 / -1; }

/* awards */
.award { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 34px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.award .yr { font-family: "Spock Pro", sans-serif; font-weight: 900; font-size: 44px; line-height: 0.9; color: var(--accent); }
.award h3 { font-family: "Spock Pro", sans-serif; font-weight: 900; font-size: 32px; letter-spacing: -0.01em; line-height: 1.05; }
.award .what { font-size: 18px; opacity: 0.85; margin-top: 10px; }
.award .verify { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--yellow); opacity: 0.9; margin-top: 12px; }
.award .body { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.5; margin-top: 10px; }
.jury { border-top: 1px solid var(--rule); }
.jury-row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 48px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.jury-row span:first-child { color: var(--accent); font-family: "Spock Pro", sans-serif; font-weight: 900; }
.jury-row span:last-child { opacity: 0.6; }

/* partners */
.partner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 44px 0; border-bottom: 1px solid var(--rule); }
.partner__logo { height: 44px; display: flex; align-items: center; margin-bottom: 20px; }
.partner__logo img { height: 100%; width: auto; max-width: 260px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }
.partner__logo--todo { border: 1px dashed var(--rule); padding: 0 18px; }
.partner__logo--todo span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.4; }
.partner h3 { font-family: "Spock Pro", sans-serif; font-weight: 900; font-size: 36px; letter-spacing: -0.01em; line-height: 1.05; }
.partner .where { font-size: 13px; opacity: 0.6; margin-top: 10px; }
.partner p { font-size: 18px; line-height: 1.5; max-width: 56ch; opacity: 0.9; }
.partner .list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.partner .list span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--rule); padding: 6px 10px; opacity: 0.8; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 72px 0 96px; }
.contact h1 { font-size: 72px; }
.contact .lines { font-size: 22px; line-height: 1.6; padding-top: 12px; }
.contact .lines a { color: var(--accent); }
.contact .small { font-size: 13px; opacity: 0.6; margin-top: 28px; line-height: 1.6; }
.map { position: relative; aspect-ratio: 3 / 2; background: var(--ink); border: 1px solid var(--rule); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) saturate(0.4); }

/* footer */
.foot { display: flex; align-items: center; justify-content: space-between; height: 96px; border-top: 1px solid var(--rule); margin-top: 44px; font-size: 13px; }
.foot div { display: flex; gap: 28px; opacity: 0.8; }
.foot a:hover { color: var(--accent); }

/* reorder tool (home only) */
.readout { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0 0; font-size: 13px; }
.readout code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; opacity: 0.85; line-height: 1.6; }
.readout .btns { display: flex; gap: 10px; flex: none; }
.readout button { font: inherit; color: var(--white); background: transparent; border: 1px solid var(--rule); padding: 8px 14px; cursor: pointer; }
.readout button:hover { border-color: var(--accent); }
.readout button.primary { background: var(--accent); color: var(--black); border-color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .menu { display: none; }
  .page-hero h1, .contact h1 { font-size: 40px; }
  /* let the figure's own aspect set the band, so he fills the width with no dead ink */
  .figure { height: 100vw; }
  .figure__layer img { width: 100%; height: auto; max-width: 100%; }
  .section h2 { font-size: 30px; }
  .blocks, .case-head, .case-body, .partner, .contact { grid-template-columns: 1fr; }
  .award { grid-template-columns: 1fr; gap: 12px; }
  .award .yr { font-size: 30px; }
  .award h3 { font-size: 24px; }
  .jury-row { grid-template-columns: 70px 1fr; gap: 16px; font-size: 14px; }
  .jury-row span:last-child { grid-column: 2; }
  .bento, .grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .band, .band--3 { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .shots { grid-template-columns: 1fr; }
  .band .title { font-size: 22px; }
  .tile { height: 300px; }
  .slot-1, .slot-2, .slot-3, .slot-4, .slot-5, .slot-6, .slot-7, .slot-8 { grid-column: 1; grid-row: auto; }
  .slot-1 .title, .slot-7 .title { font-size: 18px; }
  .case-head h1 { font-size: 40px; }
  .readout { flex-direction: column; align-items: flex-start; }
}
