/* =========================================================================
   STUDIO SPANO — stylesheet
   ========================================================================= */

:root {
  --bg: #F8F8F8;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #8A8A8A;
  --line: #E5E5E5;
  --placeholder: #EDEDED;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { 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, p { margin: 0; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--ink-2); }

.label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(248, 248, 248, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo: Studio Spano op één regel; de twee S'en zijn vet en iets groter
   dan de rest. Bij hover spiegelt de S van Spano en schuiven de letters
   iets uit elkaar. */
.logo {
  --logo-size: 17px;
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  font-family: var(--font-display);
  font-size: var(--logo-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: letter-spacing .6s var(--ease);
}
.logo-word { white-space: nowrap; }
.logo-s {
  display: inline-block;
  font-size: 1.22em;
  font-weight: 600;
  letter-spacing: .02em;
  transform-origin: 50% 46%;
  transition: transform .6s var(--ease);
}
.logo:hover, .logo:focus-visible { letter-spacing: .14em; }
.logo:hover .logo-s--mirror,
.logo:focus-visible .logo-s--mirror { transform: scaleY(-1); }

.nav { display: flex; gap: clamp(28px, 4vw, 56px); }
.nav a {
  font-family: var(--font-display);
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative; z-index: 60;
}
.menu-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  padding-top: calc(var(--header-h) + 32px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.1;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 18px;
  transform: translateY(12px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.mobile-menu a small { font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open { overflow: hidden; }

/* ---------- View / page transition ---------- */

.view {
  display: block;
  min-height: 100vh;
  padding-top: var(--header-h);
  outline: none;
}
.view.is-entering { animation: viewIn .7s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Media (images + placeholders) ---------- */

.media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio, 3/2);
  overflow: hidden;
  background: var(--placeholder);
}
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s ease;
}
.media.fit-contain { background: var(--surface); }
.media.fit-contain img { object-fit: contain; padding: clamp(12px, 3%, 32px); }

.media .ph {
  position: absolute; inset: 0;
  display: none;
  align-items: flex-end; justify-content: space-between;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-3);
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
    var(--placeholder);
}
.media.is-missing img { opacity: 0; }
.media.is-missing .ph { display: flex; }
.media.fit-contain.is-missing .ph { background-color: var(--placeholder); }

/* ---------- Shared typographic blocks ---------- */

.page-head { padding-top: clamp(64px, 11vw, 160px); padding-bottom: clamp(48px, 7vw, 96px); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 112px);
  line-height: .98;
  letter-spacing: -.045em;
}

.h-page {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 128px);
  line-height: .95;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[aria-disabled="true"] { border-color: var(--line); color: var(--ink-3); pointer-events: none; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Home ---------- */

.hero {
  min-height: calc(88vh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(40px, 6vw, 80px);
}
.hero .label { margin-bottom: clamp(24px, 3vw, 40px); }
.hero .display { max-width: 15ch; }
.hero-foot {
  margin-top: clamp(40px, 6vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.03em;
}
.text-link {
  font-family: var(--font-display); font-size: 15px;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

.home-cta {
  padding-top: clamp(72px, 10vw, 144px); padding-bottom: clamp(72px, 10vw, 144px);
  display: flex; justify-content: center;
}

/* ---------- Works grid ---------- */

.works-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.works-head .lead { justify-self: end; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 4vw, 64px);
  row-gap: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
/* rustig raster: alle kaarten even groot, tekeningen in een wit kader */
.card--drawing .media.fit-contain img { padding: 0; }

.card { display: block; }
.card .media { margin-bottom: 18px; }
.card:hover .media img { transform: scale(1.035); }
.card-meta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.card-nr { font-family: var(--font-display); font-size: 13px; color: var(--ink-3); }
.card-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; line-height: 1.25;
}
.card-year { font-family: var(--font-display); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.card-type { grid-column: 2 / -1; font-size: 14px; color: var(--ink-2); margin-top: -6px; }
.card-title .go {
  display: inline-block; opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card:hover .card-title .go { opacity: 1; transform: none; }

/* ---------- Project detail ---------- */

.credit {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.hero-credit { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.hero-credit .credit { display: inline; margin: 0; }
.card-credit { grid-column: 2 / -1; font-size: 12px; color: var(--ink-3); margin-top: -10px; }

.gallery-head {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em;
  padding-top: 20px; border-top: 1px solid var(--line);
  margin: clamp(24px, 4vw, 56px) 0 clamp(-24px, -2vw, -8px);
}
.gallery-head:first-child { margin-top: 0; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gallery-head small { font-family: var(--font-body); font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.gallery figure.situatie { width: min(100%, 1100px); }

.accent-link {
  display: block; width: fit-content;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.accent-link + .accent-link { margin-top: 4px; }
.accent-link:hover { border-bottom-color: var(--ink); }
.accent-note { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }

.back-link {
  display: inline-flex; gap: 10px;
  font-family: var(--font-display); font-size: 14px; color: var(--ink-2);
  padding: 32px 0 0;
}
.back-link:hover { color: var(--ink); }

.project-head { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(36px, 5vw, 64px); }
.project-head .label { margin-bottom: 20px; }
.project-head h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6.4vw, 100px); line-height: .98; letter-spacing: -.045em;
  max-width: 16ch;
}
.project-head .subtitle {
  margin-top: clamp(20px, 2.5vw, 32px);
  font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; color: var(--ink-2);
  max-width: 32em;
}

/* Situatietekening naast de titel */
.project-head.has-site {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: clamp(28px, 4vw, 72px); align-items: center;
}
.site-plan { margin: 0; }
.site-plan .media { background: var(--surface); }
.site-plan .media.fit-contain img { padding: 0; }
.site-plan figcaption {
  margin-top: 10px; font-family: var(--font-display); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
@media (max-width: 900px) {
  .project-head.has-site { grid-template-columns: 1fr; }
  .site-plan { width: min(100%, 440px); }
}

.project-hero { margin: 0 0 clamp(56px, 8vw, 120px); }
.project-hero .media { max-height: 82vh; }
.project-hero .media img { object-fit: cover; }
.project-hero .media.fit-contain img { object-fit: contain; }
.project-hero.is-portrait { width: min(100%, 720px); margin-left: auto; margin-right: auto; }

.project-body {
  display: grid;
  grid-template-columns: minmax(240px, 4fr) 7fr;
  gap: clamp(40px, 7vw, 120px);
  padding-bottom: clamp(24px, 4vw, 48px);
}
.facts { margin: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 0; font-size: 15px; line-height: 1.5; }

.prose p {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.7;
  max-width: 38em;
}
.prose p + p { margin-top: 1.2em; }
.prose p:first-child {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.45; letter-spacing: -.015em;
}

.gallery {
  display: flex; flex-direction: column; gap: clamp(48px, 7vw, 112px);
  padding-top: clamp(72px, 10vw, 144px); padding-bottom: clamp(72px, 10vw, 144px);
}
.gallery figure { margin: 0; }
.gallery figure.narrow { width: min(100%, 860px); margin: 0 auto; }
.gallery figure.offset { width: min(100%, 860px); margin-left: auto; }
.gallery figcaption {
  display: flex; gap: 16px;
  margin-top: 14px; font-size: 14px; color: var(--ink-2);
}
.gallery figcaption span:first-child { font-family: var(--font-display); color: var(--ink-3); }

.next-project {
  display: block;
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 10vw, 144px);
}
.next-project .label { margin-bottom: 18px; }
.next-project .next-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 7vw, 112px); line-height: .98; letter-spacing: -.045em;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.next-project .next-title .arrow {
  font-size: .6em; transition: transform .5s var(--ease);
}
.next-project:hover .next-title .arrow { transform: translateX(12px); }
.next-project .next-meta { margin-top: 16px; color: var(--ink-2); }

/* ---------- About ---------- */

.about {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 120px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.about-photo { align-self: start; }
.about-body .placeholder-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em;
}
.about-text { display: grid; gap: .8em; max-width: 38em; }
.about-text p { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--ink-2); }
.about-text p:first-child { font-family: var(--font-display); font-size: clamp(19px, 1.65vw, 24px); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.about-blocks { margin-top: clamp(20px, 2.2vw, 32px); display: grid; gap: 0; }
.about-block { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 11px 0; border-top: 1px solid var(--line); }
.about-block:last-child { border-bottom: 1px solid var(--line); }
.about-block .label { padding-top: 3px; }
.about-block p { color: var(--ink); }
.inline-link { border-bottom: 1px solid var(--ink-3); }
.inline-link:hover { border-bottom-color: var(--ink); }
.skills {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px;
  grid-template-rows: repeat(5, auto); grid-auto-flow: column;
}
.skill { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.skill-name small { font-size: 12px; color: var(--ink-3); }
.skill-dots { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
}
.dot.is-full { background: var(--ink); }
.dot.is-half { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.about-actions { margin-top: 22px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Slideshow (projecten + inspiratie) ---------- */

.slider { position: relative; scroll-margin-top: calc(var(--header-h) + 16px); }
.slider-stage { display: grid; touch-action: pan-y; }
.slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.slide .media img { transition: opacity .6s ease, transform 6s linear; }
.slide .media img:not([src]) { opacity: 0; }

.slider-bar {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.slider-btns { display: flex; gap: 8px; }
.slider-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--font-display); font-size: 16px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.slider-btn:hover { background: var(--ink); color: var(--bg); }
.slider-play .i-pause, .slider-play .i-play { display: block; }
.slider-play .i-pause { width: 9px; height: 12px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.slider-play .i-play { display: none; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.slider.is-paused .slider-play .i-pause { display: none; }
.slider.is-paused .slider-play .i-play { display: block; }
.slider-progress { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.slider-progress span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.slider.is-ticking .slider-progress span { animation: sliderProgress var(--delay, 6000ms) linear forwards; }
@keyframes sliderProgress { to { transform: scaleX(1); } }
.slider-count {
  margin-left: auto;
  font-family: var(--font-display); font-size: 14px; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.slider-thumbs {
  display: flex; gap: 8px;
  margin-top: 16px; padding-bottom: 6px;
  overflow-x: auto; scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.slider-thumb {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  background: var(--placeholder);
  opacity: .45;
  outline-offset: -1px;
  scroll-snap-align: center;
  transition: opacity .3s var(--ease);
}
.slider-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slider-thumb:hover { opacity: .8; }
.slider-thumb.is-active { opacity: 1; outline: 1px solid var(--ink); }
.slider-thumb[hidden] { display: none; }

/* Projectslider: tekeningen in een rustig wit kader */
.slider--project .media { max-height: 78vh; }
.slider--project figcaption {
  display: flex; gap: 16px;
  margin-top: 14px; font-size: 14px; color: var(--ink-2);
}
.slider--project figcaption span:first-child { font-family: var(--font-display); color: var(--ink-3); }
.slider--project .slider-thumb { width: 88px; height: 60px; background: var(--surface); }
.slider--project .slider-thumb img { object-fit: contain; }

/* ---------- Inspiratie ---------- */

.insp-top { padding-top: clamp(32px, 5vw, 72px); }
.insp-title-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.insp-title-row .h-page { font-size: clamp(40px, 6vw, 96px); }

.insp-slide {
  --insp-h: clamp(360px, calc(100vh - var(--header-h) - 300px), 760px);
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
}
/* foto in eigen verhouding, tekst er direct naast */
.insp-slide .media {
  aspect-ratio: auto;
  width: fit-content;
  height: var(--insp-h);
  background: transparent;
}
.insp-slide .media.fit-contain img {
  position: static;
  width: auto; height: 100%;
  max-width: min(64vw, 920px);
  padding: 0;
}
.insp-slide .media.is-missing { width: calc(var(--insp-h) * .75); }
.slider--insp .slide.is-active .media img { transform: scale(1.015); }
.insp-cap { padding-bottom: 8px; max-width: 30em; }
.insp-theme {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  font-family: var(--font-display); font-size: 13px; color: var(--ink-2);
  margin-bottom: 18px;
}
.insp-theme span {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--line); color: var(--ink-3);
}
.insp-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.03em;
}
.insp-text-slide { margin-top: 18px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; color: var(--ink-2); }

.insp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 13px; color: var(--ink-2);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.chip span { color: var(--ink-3); }
.chip small { font-size: 11px; color: var(--ink-3); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] span, .chip[aria-pressed="true"] small { color: inherit; opacity: .7; }

.insp-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  padding-top: clamp(72px, 9vw, 136px); padding-bottom: clamp(48px, 6vw, 88px);
}
.insp-intro-head {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -.035em;
  max-width: 12ch;
}
.insp-text { justify-self: end; max-width: 36em; display: grid; gap: 20px; }
.insp-lead { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; letter-spacing: -.01em; }

.dijkstra { padding-bottom: clamp(80px, 10vw, 160px); }
.dijkstra-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; align-items: end;
  padding-top: 24px; border-top: 1px solid var(--line);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.dijkstra-head .label { grid-column: 1 / -1; }
.dijkstra-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -.035em;
}
.dijkstra-head .lead { justify-self: end; }
.dijkstra-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 48px);
}
.dijkstra-item { padding-top: 16px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.dijkstra-nr { font-family: var(--font-display); font-size: 13px; color: var(--ink-3); }
.dijkstra-item h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.02em; line-height: 1.2; }
.dijkstra-item p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.dijkstra-go { align-self: flex-start; margin-top: auto; font-size: 14px; }

/* ---------- 404 ---------- */

.notfound { padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(96px, 14vw, 200px); }
.notfound p { margin: 24px 0 40px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px; padding-top: 48px; padding-bottom: 48px;
  font-size: 14px;
}
.footer-mark { --logo-size: 15px; margin-bottom: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-end { align-items: flex-end; text-align: right; }
.footer-link { width: fit-content; border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer-link:hover { border-bottom-color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .works-head { grid-template-columns: 1fr; }
  .works-head .lead { justify-self: start; }
  .insp-intro, .dijkstra-head { grid-template-columns: 1fr; }
  .insp-text, .dijkstra-head .lead { justify-self: start; }
  .dijkstra-list { grid-template-columns: repeat(2, 1fr); }
  .insp-slide { --insp-h: clamp(320px, 62vh, 640px); grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .insp-slide .media { width: 100%; }
  .insp-slide .media.fit-contain img { width: 100%; max-width: none; object-fit: contain; }
  .project-body { grid-template-columns: 1fr; }
  .facts { position: static; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-toggle { display: block; }

  .grid { grid-template-columns: 1fr; row-gap: 56px; }

  .hero-foot { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 96px 1fr; }
  .about-block { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-end { align-items: flex-start; text-align: left; }
  .dijkstra-list { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-thumb { width: 52px; height: 52px; }
  .insp-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Home: hero met beeld ---------- */
.hero--image {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: #1a1a1a; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) both; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.1) 100%);
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-inner { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; flex: 1; }
.hero--image .label { color: rgba(255,255,255,.82); }
.hero--image .display { max-width: none; text-transform: uppercase; font-weight: 500; }
.hero--image .hero-foot { border-top-color: rgba(255,255,255,.35); align-items: center; }
.hero-caption { font-size: 14px; color: rgba(255,255,255,.82); display: inline-flex; gap: 10px; }
.hero-caption:hover { color: #fff; }
.hero--image .btn { border-color: #fff; color: #fff; }
.hero--image .btn:hover { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } }

/* ---------- About: slideshow ---------- */
.about-slides { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.about-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.about-slide.is-active { opacity: 1; }
.about-slide .media { height: 100%; }
.about-hit {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2;
  background: none; border: 0; padding: 0; margin: 0;
}
.about-hit--prev { left: 0; cursor: w-resize; }
.about-hit--next { right: 0; cursor: e-resize; }
.about-hit:focus-visible { outline: 1px solid #fff; outline-offset: -6px; }
