/* ==========================================================================
   timkoppers.com — Swiss structure, Koppers colors.
   Grid, borders, big uppercase type — but in the original white/black/yellow
   with Jost, the playful cursor and the marker highlights.
   Plain CSS, no build step.
   ========================================================================== */

/* ---- Font: Jost (variable, self-hosted) --------------------------------- */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-ext-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --ink: #141414;
  --muted: #f4f4f2;
  --yellow: #fee500;
  --border-w: 3px;
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --ease-pop: cubic-bezier(.22, 1.4, .36, 1);
  --ease-smooth: cubic-bezier(.25, .46, .45, .94);
}

/* ---- Reset / base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
/* paper-grain noise over the whole canvas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--yellow); color: var(--ink); }

.swiss-grid-pattern {
  background-image:
    linear-gradient(rgba(20, 20, 20, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, .04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.swiss-dots {
  background-image: radial-gradient(rgba(20, 20, 20, .07) 1px, transparent 1px);
  background-size: 16px 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--yellow); color: var(--ink);
  padding: 10px 18px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- Marker highlight (the signature, kept from the original site) ---------- */
.marker {
  display: inline;
  padding: .08em .3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(100deg, var(--yellow) 0%, var(--yellow) 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  transition: background-size .6s var(--ease-smooth) .1s;
}
.is-inked .marker, .marker.is-inked { background-size: 100% 100%; }

/* yellow rule that snaps in under key phrases */
.rule-in {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 0% 8px;
  background-position: 0 100%;
  padding-bottom: .08em;
  transition: background-size .4s var(--ease-smooth) .2s;
}
.is-inked .rule-in, .rule-in.is-inked { background-size: 100% 8px; }

/* ---- Header / nav ----------------------------------------------------------- */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  border-bottom: var(--border-w) solid var(--ink);
}
.logo-link { display: block; line-height: 0; text-decoration: none; order: -1; }
.logo { width: 74px; height: auto; overflow: visible; }
.logo-word {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .02em;
  fill: #fff;
  text-anchor: middle;
}
.logo-underline {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: draw-line .9s var(--ease-smooth) .4s forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.logo-sparkle {
  transform-origin: 103px 15px;
  animation: twinkle 3.5s ease-in-out 1.2s infinite;
}
@keyframes twinkle {
  0%, 82%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  88% { transform: scale(1.45) rotate(25deg); opacity: 1; }
  94% { transform: scale(.55) rotate(-15deg); opacity: .55; }
}
.logo-link:hover .logo { animation: wobble .7s var(--ease-pop); }
@keyframes wobble {
  0% { transform: rotate(0); }
  25% { transform: rotate(-7deg) scale(1.04); }
  55% { transform: rotate(5deg) scale(1.02); }
  80% { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}

.site-header nav {
  grid-column: 3;
  display: flex;
  gap: 28px;
}
.nav-link {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 2px;
}
/* vertical slide: label slides up, marker-highlighted copy slides in from below */
.nav-link .nav-label { display: inline-block; transition: transform .25s var(--ease-smooth); }
.nav-link::after {
  content: attr(data-label);
  position: absolute;
  left: 0; top: 4px;
  padding: 0 2px;
  background: var(--yellow);
  transform: translateY(130%);
  transition: transform .25s var(--ease-smooth);
}
.nav-link:hover .nav-label { transform: translateY(-130%); }
.nav-link:hover::after { transform: translateY(0); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--yellow); }

/* ---- Section labels (01 — Selected work) --------------------------------------- */
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 11px; height: 11px;
  margin-right: 12px;
  background: var(--yellow);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

/* ---- Hero statement ------------------------------------------------------------ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--pad) clamp(36px, 5vw, 64px);
  border-bottom: var(--border-w) solid var(--ink);
}
.statement {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(38px, 7.2vw, 100px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-sub {
  max-width: 44ch;
  margin: 28px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 8fr 4fr; gap: 48px; align-items: end; }
  .hero-sub { margin: 0 0 8px; justify-self: end; }
}

/* ---- Home: project index --------------------------------------------------------- */
.cards {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px);
  list-style: none;
}
.card { grid-column: span 12; }
/* asymmetric rhythm: full / 7-5 / 5-7 / ... */
@media (min-width: 820px) {
  .card:nth-child(4n+2) { grid-column: span 7; }
  .card:nth-child(4n+3) { grid-column: span 5; align-self: end; }
  .card:nth-child(4n) { grid-column: span 5; }
  .card:nth-child(4n+1) { grid-column: span 7; }
  .card:first-child { grid-column: span 12; }
}
.card-link {
  display: block;
  text-decoration: none;
  border: var(--border-w) solid var(--ink);
  background: var(--paper);
}
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: var(--border-w) solid var(--ink);
  background: var(--muted);
}
/* tilt: only the image inside tilts (with a zoom so no edges show);
   the frame itself stays straight */
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) scale(var(--zoom, 1));
  transition: transform .3s ease-out;
}
.card-link:hover .card-media img,
.card-link:focus-visible .card-media img { --zoom: 1.1; }
.card-caption {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px 15px;
  background: var(--paper);
  transition: background .15s linear;
}
.card-link:hover .card-caption,
.card-link:focus-visible .card-caption { background: var(--yellow); }
.card-index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 1px 6px;
  background: var(--yellow);
  transition: background .15s linear;
}
.card-link:hover .card-index { background: var(--paper); }
.card-year { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.card-title {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.25;
}

/* ---- Project pages ------------------------------------------------------------------ */
.page-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--pad) clamp(32px, 5vw, 56px);
  border-bottom: var(--border-w) solid var(--ink);
}
.page-title {
  margin: 0;
  font-size: clamp(32px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
  /* very long single words (Luchtverkeersleiding) may not fit the column;
     JS shrinks the font to fit, this is the no-JS safety net */
  overflow-wrap: break-word;
}
.page-year {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-year::before {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  margin-right: 12px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  vertical-align: -1px;
}
.page-year .marker { padding: .1em .4em; }
.page-intro { max-width: 62ch; margin: 22px 0 0; font-size: 16.5px; font-weight: 450; }
.page-intro p { margin: 0 0 1em; }
.page-intro p:last-child { margin-bottom: 0; }
.page-intro a, .slide-text a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.page-intro a:hover, .slide-text a:hover { background: var(--yellow); }
@media (min-width: 900px) {
  .page-header { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; }
  .page-header .header-side { padding-top: 10px; }
  .page-intro { margin-top: 18px; }
}

.slides {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--pad) 0;
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}
.slide-media {
  overflow: hidden;
  border: var(--border-w) solid var(--ink);
  background: var(--muted);
}
.slide-media img { width: 100%; }
.slide-text { max-width: 58ch; margin: 22px 0 0; }
/* alternate text blocks left / indented for asymmetric rhythm */
@media (min-width: 900px) {
  .slide:nth-child(even) .slide-text { margin-left: 41.666%; }
}
.slide-heading {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.slide-heading::before {
  content: '';
  display: inline-block;
  width: 11px; height: 11px;
  margin-right: 12px;
  background: var(--yellow);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.slide-text p { margin: 0 0 1em; font-weight: 450; color: #3c3c3c; }
.slide-text p:last-child { margin-bottom: 0; }

/* Video facade */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #111;
}
.video-facade img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .95;
  transition: transform .6s var(--ease-smooth), opacity .2s;
}
.video-facade:hover img { transform: scale(1.03); opacity: 1; }
.video-facade .play {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 84px; height: 84px;
  background: var(--yellow);
  border: var(--border-w) solid var(--ink);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease-pop);
}
.video-facade:hover .play { transform: scale(1.1) rotate(2deg); }
.video-facade .play::before {
  content: '';
  width: 0; height: 0;
  margin-left: 5px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--ink);
}
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #111; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Prev / next navigation ------------------------------------------------------------ */
.project-nav {
  max-width: var(--maxw);
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-nav a {
  display: block;
  padding: 22px 24px;
  border: var(--border-w) solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .15s linear;
}
.project-nav a:hover { background: var(--yellow); }
.project-nav .next { border-left: 0; text-align: right; }
.project-nav .all {
  grid-column: 1 / -1;
  border-top: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: .28em;
  background: var(--muted);
}
.project-nav .all:hover { background: var(--yellow); }
.project-nav small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: #8a8a8a;
  margin-bottom: 4px;
}
.project-nav a:hover small { color: var(--ink); }
.project-nav .arrow { display: inline-block; transition: transform .25s var(--ease-pop); }
.project-nav .prev:hover .arrow { transform: translateX(-5px); }
.project-nav .next:hover .arrow { transform: translateX(5px); }

/* ---- Hello page --------------------------------------------------------------------------- */
.hello-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--pad) 0;
}
.hello-lines { display: block; }
.portrait {
  max-width: var(--maxw);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding: 0 var(--pad);
}
.portrait img { border: var(--border-w) solid var(--ink); width: 100%; }
.contact-wrap { text-align: left; max-width: var(--maxw); margin: 40px auto 0; padding: 0 var(--pad); }
.button-pill {
  display: inline-block;
  padding: 19px 42px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s linear, color .15s linear, transform .3s var(--ease-pop);
}
.button-pill:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: scale(1.04) rotate(-1deg);
}

/* ---- Footer ---------------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 104px);
  border-top: var(--border-w) solid var(--ink);
}
.site-footer .footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--pad) 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { background: var(--yellow); }
.footer-spark { color: var(--yellow); display: inline-block; }
.site-footer:hover .footer-spark { animation: twinkle-footer 1s ease-in-out; }
@keyframes twinkle-footer {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.6) rotate(180deg); }
}

/* ---- 404 ----------------------------------------------------------------------------------------- */
.error-page { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--pad) 24px; }
.error-code {
  font-size: clamp(110px, 24vw, 280px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  margin: 8px 0 0;
}
.error-code .marker { padding: 0 .12em; }
.error-page p { max-width: 44ch; margin: 24px 0 40px; font-weight: 450; }

/* ---- Scroll reveal ---------------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s var(--ease-smooth), transform .55s var(--ease-pop);
  transition-delay: var(--d, 0s);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---- Cursor comet (desktop only) --------------------------------------------------------------------- */
.cursor-blob, .cursor-trail, .cursor-spark {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  background: var(--yellow);
  pointer-events: none;
  z-index: 999;
  will-change: transform;
}
.cursor-blob {
  width: 16px; height: 16px;
  opacity: 0;
  transition: opacity .3s;
}
.cursor-blob::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink);
  opacity: 0;
  transition: opacity .25s;
}
/* Spin only the ring pseudo-element: animating rotate/scale on the blob itself
   would also transform its positioning translate and drag it off the cursor. */
.cursor-blob.is-active::after { opacity: 1; animation: blob-spin 5s linear infinite; }
@keyframes blob-spin { to { rotate: 360deg; } }
.cursor-trail { opacity: .5; }

/* Click splat: dots + little stars + popping ring (positioned via left/top) */
.cursor-spark {
  animation: spark-fly var(--t, .6s) cubic-bezier(.15, .8, .3, 1) forwards;
}
.cursor-spark.is-star {
  background: none;
  border-radius: 0;
  color: var(--yellow);
  font-size: var(--fs, 14px);
  line-height: 1;
  text-shadow: 0 0 1px var(--ink);
}
@keyframes spark-fly {
  0% { translate: 0 0; scale: 1; opacity: 1; rotate: 0deg; }
  100% { translate: var(--dx) var(--dy); scale: .15; opacity: 0; rotate: var(--rot, 180deg); }
}
.click-ring {
  position: fixed;
  width: 44px; height: 44px;
  border: 2px dashed var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  animation: ring-pop .5s ease-out forwards;
}
@keyframes ring-pop {
  0% { scale: .25; opacity: 1; rotate: 0deg; }
  100% { scale: 1.5; opacity: 0; rotate: 45deg; }
}
@media (hover: none), (pointer: coarse) { .cursor-blob, .cursor-trail, .cursor-spark, .click-ring { display: none; } }

/* ---- View transitions (cross-document, progressive enhancement) ---------------------------------------- */
@view-transition { navigation: auto; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(root) { animation: vt-out .22s var(--ease-smooth) both; }
::view-transition-new(root) { animation: vt-in .25s var(--ease-smooth) .06s both; }

/* ---- Reduced motion: gentle mode -------------------------------------------------------------------------
   Soft opacity fades and the marker ink sweeps stay (no positional movement);
   parallax, tilt, cursor and wobble go. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity .9s ease; }
  .marker { transition-duration: 1s; }
  .rule-in { transition-duration: .9s; }
  .logo-underline { animation-duration: 1.4s; }
  .logo-sparkle, .logo-link:hover .logo, .site-footer:hover .footer-spark { animation: none !important; }
  .card-media img { transform: none !important; }
  .video-facade:hover img { transform: none; }
  .video-facade:hover .play { transform: none; }
  .button-pill:hover { transform: none; }
  .nav-link .nav-label, .nav-link::after { transition: none; }
  .nav-link:hover .nav-label { transform: none; }
  .nav-link:hover::after { transform: translateY(130%); }
  .project-nav .arrow { transition: none; }
  .cursor-blob, .cursor-trail, .cursor-spark, .click-ring { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ---- Post-feedback refinements (Tim 2026-07-12) --------------------------------- */
/* keep the 2002-highlight inside its own line so it never covers the line above */
.statement .marker {
  padding: 0 .16em;
  background-size: 0% 78%;
  background-position: 0 62%;
}
.statement.is-inked .marker, .is-inked .statement .marker { background-size: 100% 78%; }

/* content between hero and footer: clean, borderless, rounded — old style */
.card-link { border: 0; }
.card-media {
  border-bottom: 0;
  border-radius: 10px;
}
.card-caption {
  padding: 12px 2px 0;
  background: transparent;
}
.card-link:hover .card-caption, .card-link:focus-visible .card-caption { background: transparent; }
.card-link:hover .card-index { background: var(--ink); color: var(--yellow); }
.card-index { transition: background .15s linear, color .15s linear; border-radius: 3px; }

.slide-media {
  border: 0;
  border-radius: 10px;
}
.slide-text {
  max-width: 620px;
  margin: 26px auto 0;
  text-align: center;
}
@media (min-width: 900px) {
  .slide:nth-child(even) .slide-text { margin-left: auto; }
}
.slide-heading { display: inline-block; }
.slide-heading::before { display: none; }
.slide-heading {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 0% 9px;
  background-position: 50% 96%;
  padding: 0 .2em .1em;
  transition: background-size .5s var(--ease-smooth) .15s;
}
.is-inked .slide-heading { background-size: 100% 9px; }

.video-facade .play {
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

/* ---- Feedback ronde 3: rounded rules, stacked cards, overlay titles -------------- */

/* horizontal rules get rounded ends (pseudo-elements instead of borders) */
.site-header, .hero, .page-header { border-bottom: 0; position: relative; }
.site-header::after, .hero::after, .page-header::after {
  content: '';
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 0;
  height: 4px;
  background: var(--ink);
  border-radius: 999px;
}
.site-footer { border-top: 0; position: relative; }
.site-footer::before {
  content: '';
  position: absolute;
  left: var(--pad); right: var(--pad); top: 0;
  height: 4px;
  background: var(--ink);
  border-radius: 999px;
}
@media (min-width: 1376px) {
  .site-header::after, .hero::after, .page-header::after, .site-footer::before {
    left: calc(50% - var(--maxw) / 2 + var(--pad));
    right: calc(50% - var(--maxw) / 2 + var(--pad));
  }
}

/* prev/next blocks follow the rounding */
.project-nav .prev { border-radius: 12px 0 0 0; }
.project-nav .next { border-radius: 0 12px 0 0; }
.project-nav .all { border-radius: 0 0 12px 12px; }

/* cards: single column, stacked, title + year on the image */
.cards {
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  padding-top: clamp(36px, 6vw, 64px);
}
.card, .card:first-child,
.card:nth-child(4n), .card:nth-child(4n+1),
.card:nth-child(4n+2), .card:nth-child(4n+3) {
  grid-column: span 1;
  align-self: auto;
}
.card-link { position: relative; }
.card-text {
  position: absolute;
  top: clamp(18px, 3vw, 36px);
  left: clamp(18px, 3vw, 36px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: calc(100% - 40px);
}
.card-title {
  margin: 0;
  font-size: clamp(17px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.3;
}
.card-year {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  letter-spacing: .1em;
}
.card-link:hover .card-text { animation: label-pop .45s var(--ease-pop); }
@keyframes label-pop {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.03) rotate(-.8deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (max-width: 640px) {
  .card-text { top: 14px; left: 14px; }
}

/* portrait photo on hello: clean like the rest */
.portrait img { border: 0; border-radius: 10px; }
