/* ------------------------------------------------------------------
   Linde Smit — portfolio
   Concept: de homepage als magazine-cover. Zwart-wit, één rood accent
   (C25 M100 Y97 K25). Bricolage Grotesque voor de koppen, Instrument
   Sans voor de tekst.
   ------------------------------------------------------------------ */

:root {
  /* CMYK 25/100/97/25 -> sRGB. Rekenkundig #8F0006, via SWOP-profiel #8E302B;
     hier een dieprode middenweg. Alleen deze regel aanpassen om de accentkleur te wijzigen. */
  --accent: #96201f;
  --ink: #000000;
  --ink-2: #4d4d4d;
  --muted: #8c8c8c;
  --line: #e2e2e2;
  --paper: #ffffff;
  --ground: #ededed;

  --display: "Manrope", "Inter Tight", system-ui, sans-serif;
  --body: "Manrope", "Inter", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1560px;
  --out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 88px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .32s ease-out both vt-out; }
::view-transition-new(root) { animation: .45s var(--out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }

/* ---------- navigatie: logo groot en centraal ---------- */

.nav {
  position: sticky; top: 0; z-index: 30;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 40px); }
.nav ul.right { justify-content: end; }
.nav li a { font-size: 15px; font-weight: 600; position: relative; padding: 6px 0; color: var(--ink-2); display: inline-block; }
.magnet { transition: transform .5s var(--out); will-change: transform; }
.nav li a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--out); }
.nav li a:hover::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav li a:hover, .nav li a[aria-current="page"] { color: var(--ink); }
.logo { display: block; justify-self: center; height: 52px; transition: transform .5s var(--out); }
.logo img { height: 100%; width: auto; }
.logo:hover { transform: scale(1.06); }
@media (max-width: 720px) {
  :root { --nav-h: 76px; }
  .logo { height: 44px; }
  .nav li a { font-size: 14px; }
}

/* voortgangsbalk op projectpagina's */
.prog { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 40; pointer-events: none; }

/* ---------- aangepaste cursor ---------- */

.cur { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cur {
    display: grid; place-items: center;
    position: fixed; top: 0; left: 0; z-index: 60;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border-radius: 50%; background: var(--accent);
    pointer-events: none;
    transition: width .35s var(--out), height .35s var(--out), margin .35s var(--out), background .3s, opacity .3s;
    opacity: 0;
  }
  .cur.on { opacity: 1; }
  .cur span { font-family: var(--display); font-size: 13px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .cur.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); }
  .cur.big span { opacity: 1; transition-delay: .1s; }
  .cur.hide { opacity: 0; }
}

/* ---------- cover (home hero) ---------- */

.cover { min-height: min(calc(100svh - var(--nav-h)), 820px); display: grid; align-content: center; padding: clamp(24px, 4vh, 56px) 0 clamp(32px, 5vh, 64px); }
.cover .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 40px); align-items: stretch; }
.mast { grid-column: 1 / 9; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.mast h1 { font-size: clamp(64px, 12.5vw, 200px); line-height: .88; letter-spacing: -0.04em; font-weight: 800; text-transform: uppercase; margin-top: -0.06em; }
.mask { display: block; overflow: hidden; }
.mask > span { display: block; }
.mast h1 .dot { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--accent); margin-left: .06em; }
.mast .lede { max-width: 32ch; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; color: var(--ink-2); }
.mast .lede b { font-weight: 600; color: var(--accent); }
.cover-photo { grid-column: 9 / 13; aspect-ratio: 4 / 5; align-self: end; background: var(--ground); position: relative; margin: 0; }
.cover-photo .ph { overflow: hidden; width: 100%; height: 100%; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.badge { position: absolute; left: -30px; bottom: -30px; width: 108px; height: 108px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(150,32,31,.25); }
.badge svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.badge svg text { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; fill: #fff; text-transform: uppercase; }
.badge::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
@media (max-width: 860px) { .badge { width: 88px; height: 88px; left: auto; right: -10px; bottom: -20px; } }
.cover-photo figcaption { position: absolute; right: 14px; bottom: 12px; color: #fff; font-size: 13px; opacity: .85; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.cover-foot { grid-column: 1 / 13; display: flex; justify-content: space-between; align-items: end; font-size: 13px; color: var(--muted); margin-top: clamp(12px, 2vh, 28px); }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.scroll-hint i { display: block; width: 44px; height: 2px; background: var(--accent); transform-origin: left; }

@media (max-width: 860px) {
  .cover .wrap { grid-template-columns: 1fr; }
  .mast, .cover-photo, .cover-foot { grid-column: 1 / -1; }
  .mast h1 { font-size: clamp(56px, 17vw, 120px); }
  .mast { gap: 24px; }
  .cover-photo { aspect-ratio: 4 / 5; max-width: 260px; }
}

/* ---------- marquee ---------- */

.marquee { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; padding: 14px 0; white-space: nowrap; }
.marquee .track { display: inline-flex; gap: 0; will-change: transform; }
.marquee span { font-family: var(--display); font-size: clamp(18px, 2vw, 26px); font-weight: 700; letter-spacing: -0.01em; display: inline-flex; align-items: center; padding-right: 36px; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 36px; }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- werk ---------- */

.section { padding: clamp(64px, 9vw, 140px) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head h2 { font-size: clamp(40px, 6vw, 96px); letter-spacing: -0.045em; }
.sec-head small { font-size: 14px; color: var(--accent); font-weight: 600; }

.werk-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 6vw, 96px) clamp(20px, 3vw, 48px); }
.card { display: block; perspective: 1100px; }
.card figure { margin: 0; overflow: hidden; background: var(--ground); aspect-ratio: 10 / 7; transition: transform .7s var(--out); transform-style: preserve-3d; }
.card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.1s var(--out); }
.card:hover img { transform: scale(1.045); }
.card-t { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 16px; }
.card-t h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.035em; font-weight: 700; display: flex; align-items: center; }
.card-t h3::before { content: ""; width: 0; height: .34em; border-radius: 50%; background: var(--accent); margin-right: 0; transition: width .5s var(--out), margin .5s var(--out); }
.card:hover .card-t h3::before { width: .34em; margin-right: .4em; }
.card-t span { font-size: 14px; color: var(--muted); text-align: right; flex-shrink: 0; transition: color .3s; }
.card:hover .card-t span { color: var(--accent); }

/* redactioneel, asymmetrisch stramien */
.card:nth-child(7n+1) { grid-column: 1 / 8; }
.card:nth-child(7n+2) { grid-column: 8 / 13; margin-top: clamp(40px, 10vw, 160px); }
.card:nth-child(7n+3) { grid-column: 1 / 6; margin-top: clamp(0px, 2vw, 32px); }
.card:nth-child(7n+4) { grid-column: 6 / 13; }
.card:nth-child(7n+5) { grid-column: 1 / 8; }
.card:nth-child(7n+6) { grid-column: 8 / 13; margin-top: clamp(40px, 10vw, 160px); }
.card:nth-child(7n+7) { grid-column: 3 / 11; }
@media (max-width: 860px) {
  .werk-grid { grid-template-columns: 1fr; gap: 48px; }
  .card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}

/* ---------- over ---------- */

.over { border-top: 1px solid var(--line); }
.over .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 96px); }
.over h2 { font-size: clamp(40px, 6vw, 96px); letter-spacing: -0.045em; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.prose p { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 34ch; margin-bottom: 1em; letter-spacing: -0.005em; }
.prose p:last-child { margin-bottom: 0; }
.prose p b { color: var(--ink); font-weight: 500; }
.facts { margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, auto); gap: 24px 40px; justify-content: start; font-size: 14px; }
.facts li { display: grid; gap: 4px; }
.facts li small { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .over .wrap { grid-template-columns: 1fr; }
  .over h2 { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 28px; }
.foot .lbl { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.foot .lbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.foot h2 { font-size: clamp(30px, 4.5vw, 64px); letter-spacing: -0.04em; }
.foot h2 a { position: relative; display: inline-block; }
.foot h2 a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--out); }
.foot h2 a:hover::after { transform: scaleX(1); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(32px, 5vw, 64px); font-size: 13px; color: var(--muted); }
.foot-row a:hover { color: var(--ink); }
.foot-row .powered a { color: var(--ink); font-weight: 600; }
.foot-row .powered a:hover { color: var(--accent); }

/* ---------- projectpagina ---------- */

.p-head { padding: clamp(32px, 6vh, 80px) 0 clamp(28px, 4vw, 48px); }
.crumb { font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: clamp(24px, 4vw, 48px); position: relative; }
.crumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--out); }
.crumb:hover { color: var(--ink); }
.crumb:hover::after { transform: scaleX(1); transform-origin: left; }
.p-head h1 { font-size: clamp(44px, 7vw, 112px); line-height: .95; letter-spacing: -0.045em; }
.p-head .sub { font-family: var(--display); font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; color: var(--muted); letter-spacing: -0.02em; margin-top: 14px; }
.p-head .lede { margin-top: clamp(20px, 3vw, 36px); max-width: 56ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.42; color: var(--ink-2); }

.mock { margin: 0; }
.mock .frame { overflow: hidden; background: var(--ground); }
.mock img { width: 100%; }
.mock figcaption, .page figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.mock figcaption::before, .page figcaption::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 8px; }
.mock + .mock { margin-top: clamp(24px, 3vw, 48px); }

.details { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); padding: clamp(40px, 6vw, 88px) 0; }
.meta { margin: 0; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 14px; }
.meta div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.meta div:last-child { border-bottom: 1px solid var(--line); }
.meta dt { color: var(--accent); font-weight: 600; }
.meta dd { margin: 0; }
.details .prose p { font-size: clamp(17px, 1.35vw, 21px); max-width: 58ch; }
@media (max-width: 860px) {
  .details { grid-template-columns: 1fr; }
  .meta { position: static; }
}

.pages { padding-top: clamp(40px, 6vw, 88px); }
.pages .sec-head h2 { font-size: clamp(26px, 3vw, 40px); }
.pages .sec-head { margin-bottom: clamp(20px, 2.5vw, 32px); }
.pages .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.page { margin: 0; }
.page.wide { grid-column: span 2; }
.page button { all: unset; display: block; cursor: zoom-in; width: 100%; overflow: hidden; background: var(--ground); }
.page img { width: 100%; transition: transform 1s var(--out); }
.page button:hover img { transform: scale(1.02); }
@media (max-width: 720px) { .pages .grid { grid-template-columns: 1fr 1fr; } .page.wide { grid-column: 1 / -1; } }

.next { margin-top: clamp(48px, 7vw, 100px); border-top: 1px solid var(--ink); padding-top: clamp(28px, 4vw, 56px); }
.next small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.next a.big { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 4vw, 64px); align-items: center; }
.next .name { font-family: var(--display); font-size: clamp(36px, 5.5vw, 88px); letter-spacing: -0.055em; line-height: .95; font-weight: 800; transition: color .3s; }
.next a.big:hover .name { color: var(--accent); }
.next figure { margin: 0; overflow: hidden; background: var(--ground); aspect-ratio: 10 / 7; }
.next img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--out); }
.next a.big:hover img { transform: scale(1.045); }
.next .prev { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--muted); }
.next .prev:hover { color: var(--ink); }
@media (max-width: 720px) { .next a.big { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; padding: 56px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; animation: lb-in .4s var(--out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lightbox .cap { position: absolute; left: 24px; bottom: 20px; color: #aaa; font-size: 13px; }
.lightbox .cap b { color: #fff; font-weight: 600; margin-right: 6px; }
.lightbox button { all: unset; cursor: pointer; position: absolute; color: #fff; font-family: var(--display); font-size: 15px; padding: 12px; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lightbox .close { top: 16px; right: 20px; }
.lightbox .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .nextb { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) { .lightbox { padding: 60px 16px 48px; } }

/* ---------- beweging ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* laadsequentie: alleen als JS draait, anders alles direct zichtbaar */
  .js .mask > span { transform: translateY(112%); }
  .js .ready .mask > span { transform: none; transition: transform 1.15s var(--out); transition-delay: calc(var(--d, 0) * 1s); }

  .js .cover-photo .ph { clip-path: inset(0 0 100% 0); }
  .js .cover-photo img { transform: scale(1.18); }
  .js .ready .cover-photo .ph { clip-path: inset(0); transition: clip-path 1.3s var(--out) .25s; }
  .js .ready .cover-photo img { transform: none; transition: transform 1.8s var(--out) .25s; }

  .js .fade { opacity: 0; transform: translateY(14px); }
  .js .ready .fade { opacity: 1; transform: none; transition: opacity .9s var(--out), transform .9s var(--out); transition-delay: calc(var(--d, 0) * 1s); }

  .js .mast h1 .dot { transform: scale(0); }
  .js .ready .mast h1 .dot { animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) 1.05s both; }
  @keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
  .js .badge { transform: scale(0); }
  .js .ready .badge { animation: pop .8s cubic-bezier(.34, 1.56, .64, 1) 1.5s both; }
  .badge svg { animation: spin 16s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .js .rv-t .mask > span { transform: translateY(112%); }
  .js .rv-t.in .mask > span { transform: none; transition: transform 1s var(--out); }
  .js .scroll-hint i { transform: scaleX(0); }
  .js .ready .scroll-hint i { animation: hint 2.4s var(--out) 1.4s infinite; }
  @keyframes hint { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

  .marquee .track { animation: marquee 32s linear infinite; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* onthulling bij scrollen: beeld schuift uit een masker */
  .js .rv figure, .js .rv .frame { clip-path: inset(0 0 100% 0); }
  .js .rv figure img, .js .rv .frame img { transform: scale(1.12); }
  .js .rv.in figure, .js .rv.in .frame { clip-path: inset(0); transition: clip-path 1.2s var(--out); transition-delay: calc(var(--d, 0) * 1s); }
  .js .rv.in figure img, .js .rv.in .frame img { transform: scale(1.001); transition: transform 1.6s var(--out); transition-delay: calc(var(--d, 0) * 1s); }
  .js .rv .card-t, .js .rv figcaption { opacity: 0; transform: translateY(10px); }
  .js .rv.in .card-t, .js .rv.in figcaption { opacity: 1; transform: none; transition: opacity .8s var(--out) calc(var(--d, 0) * 1s + .3s), transform .8s var(--out) calc(var(--d, 0) * 1s + .3s); }
  /* hover-transities blijven werken na de onthulling */
  .js .rv.in.card:hover figure img { transform: scale(1.045); transition: transform 1.1s var(--out); }
  .js .rv.in.page button:hover img { transform: scale(1.02); transition: transform 1s var(--out); }
}
