/* ==========================================================================
   Project BANG — demo 2027 · base
   Gedeeld door alle pagina's: tokens, type, header, footer, knoppen, media,
   work-overzicht en case-template. Concept-specifieke stijl zit in home-*.css.
   ========================================================================== */

@font-face { font-family: Aeonik; src: url("../fonts/Aeonik-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Aeonik; src: url("../fonts/Aeonik-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Aeonik; src: url("../fonts/Aeonik-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #161616;
  --fg: #f7f7f7;
  --mute: #a6a6a6;          /* 7.3:1 op --bg */
  --line: rgba(247, 247, 247, .14);
  --line-2: rgba(247, 247, 247, .28);
  --panel: #1e1e1e;

  --sans: Aeonik, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1680px;
  --header-h: 72px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: clamp(88px, 11vw, 176px);

  --t-display: clamp(46px, 8.2vw, 148px);
  --t-h1: clamp(40px, 6vw, 104px);
  --t-h2: clamp(32px, 4.2vw, 72px);
  --t-h3: clamp(22px, 2vw, 32px);
  --t-lead: clamp(18px, 1.45vw, 23px);
  --t-body: 17px;
  --t-small: 14px;
  --t-label: 12px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: var(--t-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; background: var(--fg); color: var(--bg); border-radius: 99px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s6); }
.label { font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.display { font-size: var(--t-display); font-weight: 500; line-height: .92; letter-spacing: -.045em; }
.h1 { font-size: var(--t-h1); font-weight: 500; line-height: .95; letter-spacing: -.04em; }
.h2 { font-size: var(--t-h2); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.h3 { font-size: var(--t-h3); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--fg); max-width: 38rem; }
.muted { color: var(--mute); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: clamp(40px, 5vw, 80px); flex-wrap: wrap; }
.head > p { max-width: 30rem; color: var(--mute); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 99px; font-weight: 500; font-size: 16px; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s; }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: #fff; }
.btn--line { border: 1px solid var(--line-2); }
.btn--line:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.arrow { transition: transform .35s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
.link { border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .3s; }
.link:hover { border-color: var(--fg); }
.soon { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 7px; margin-left: 6px; color: var(--mute); vertical-align: 2px; }
.ph { display: inline-block; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 4px 10px; font-size: var(--t-small); color: var(--mute); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: transform .5s var(--ease), background .3s; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid { background: rgba(22, 22, 22, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); font-size: 15px; font-weight: 500; }
.nav a { opacity: .8; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav .btn { opacity: 1; min-height: 42px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 99px; font-weight: 500; }
.menu { position: fixed; inset: 0; z-index: 200; background: var(--bg); padding: 20px var(--gutter) 32px; display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--header-h) - 20px); }
.menu__links { margin-top: 8vh; display: flex; flex-direction: column; gap: 6px; }
.menu__links a { font-size: clamp(40px, 12vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--panel); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media .hover-vid { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.media .hover-vid.on { opacity: 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1 { aspect-ratio: 1; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.yt button { position: absolute; inset: 0; display: grid; place-items: center; }
.yt button span { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 99px; background: var(--fg); color: var(--bg); font-weight: 500; }
.yt:hover img { opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Case tile (work overview + rails) ---------- */
.tile { display: block; }
.tile .media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.tile__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.tile__title { font-weight: 500; font-size: 17px; line-height: 1.25; }
.tile__sub { color: var(--mute); font-size: var(--t-small); white-space: nowrap; }
.tile img, .tile video { transition: transform .9s var(--ease); }
.tile:hover img, .tile:hover video { transform: scale(1.03); }

/* ---------- Work overview ---------- */
.work-page { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 120px)); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background .25s, color .25s, border-color .25s; }
.chip small { font-size: 12px; color: var(--mute); }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip[aria-pressed="true"] small { color: #555; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.grid .tile--wide { grid-column: span 2; }
.grid .tile--wide .media { aspect-ratio: 16 / 10; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .grid .tile--wide { grid-column: auto; } .grid .tile--wide .media { aspect-ratio: 4 / 5; } }
.count { color: var(--mute); }

/* ---------- Case template ---------- */
.case-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(32px, 4vw, 64px); }
.case-hero .media { position: absolute; inset: 0; }
.case-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,22,22,.5) 0%, rgba(22,22,22,0) 30%, rgba(22,22,22,0) 45%, rgba(22,22,22,.9) 100%); }
.case-hero .wrap { position: relative; z-index: 1; }
.case-hero .label { color: var(--fg); opacity: .8; }
.case-hero h1 { margin-top: 12px; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.case-meta dt { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.case-meta dd { font-weight: 500; }
.case-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); }
.case-intro .h2 { max-width: 16ch; }
.case-intro__body { display: flex; flex-direction: column; gap: var(--s3); }
.did { display: flex; flex-wrap: wrap; gap: 8px; }
.did li { border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 14px; font-size: var(--t-small); }
.figures { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery { columns: 2; column-gap: clamp(12px, 1.6vw, 24px); }
.gallery > * { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 24px); border-radius: var(--radius); overflow: hidden; }
.gallery .full { column-span: all; }
.gallery .media img, .gallery .media video { height: auto; object-fit: initial; }
.credits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s3); }
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: end; border-top: 1px solid var(--line); padding-top: var(--s4); }
.next .media { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.next:hover .arrow { transform: translateX(6px); }
@media (max-width: 760px) {
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-intro, .credits, .next { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
}

/* ---------- Contact block ---------- */
.contact-block { border-top: 1px solid var(--line); }
.contact-block__title { font-size: clamp(48px, 9vw, 168px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.contact-block__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: clamp(32px, 4vw, 64px); }
.contact-block__lines { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: var(--t-lead); }
.contact-block__lines a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact-block__lines a:hover { border-color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 112px) 0 28px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s4); }
.footer__grid h2 { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 14px; }
.footer__grid li + li { margin-top: 8px; }
.footer__grid a:hover { opacity: .7; }
.footer__line { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; max-width: 22ch; }
.footer__script { width: 100%; height: auto; margin-top: clamp(48px, 6vw, 96px); opacity: .95; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; color: var(--mute); font-size: var(--t-small); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal (alleen met JS + motion) ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
