/* ==========================================================
   Remco van Zoeren — portfolio
   Design tokens
   ========================================================== */

@font-face {
  font-family: "ABC Diatype";
  src: url("../fonts/ABCDiatype-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ABC Diatype";
  src: url("../fonts/ABCDiatype-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --mint: #5CDEB2;
  --mint-pale: #B2F0B1;
  --teal: #117084;
  --teal-deep: #0A4A57;
  --green: #24B965;
  --green-deep: #1B9E56;
  --ink: #10201E;
  --paper: #FBFCFA;
  --paper-dim: #F2F5F1;

  --footer-from: var(--mint);
  --proj-color: var(--teal);
  --proj-color-deep: var(--teal-deep);
  --proj-gradient-to: var(--teal-deep);
  --proj-accent: var(--teal);
  --proj-text: #fff;

  --font: "ABC Diatype", "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 64px);

  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: .35s;
  --dur-med: .7s;
  --dur-slow: 1.1s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

/* -------------------- Custom cursor (dot, grows on hover, no label) -------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor.-view {
  width: 64px; height: 64px;
  background: var(--mint-pale);
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* -------------------- Page transition (simple solid wipe) -------------------- */
.page-wipe {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10000;
  transform: translateY(100%);
  pointer-events: none;
}
.page-wipe.-active { pointer-events: all; }

/* -------------------- Nav -------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  mix-blend-mode: difference;
}
.nav * { color: #fff; }
.nav__logo {
  height: 22px;
  width: auto;
  display: block;
  filter: invert(1) brightness(2);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #fff;
}
.nav__link { position: relative; padding-bottom: 2px; color: #fff; }
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right var(--dur-fast) var(--ease-out);
}
.nav__link:hover::after,
.nav__link.-current::after { right: 0; }
.lang-toggle { display: flex; gap: 6px; font-weight: 700; }
.lang-toggle button {
  background: none; border: none; color: #fff;
  font: inherit; font-weight: inherit; cursor: pointer;
  opacity: .45; padding: 0;
}
.lang-toggle button.-active { opacity: 1; }
.lang-toggle span { opacity: .45; color: #fff; }

/* -------------------- Type scale -------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

.display {
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: .92;
  text-transform: uppercase;
}

.body-lg { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 42ch; }
.body-md { font-size: 16px; line-height: 1.6; max-width: 46ch; }

/* ==========================================================
   HOME
   ========================================================== */
.hero-home {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: 56px;
  position: relative;
}
.hero-home__headline {
  font-size: clamp(42px, 7.4vw, 96px);
  margin-bottom: 28px;
}
.hero-home__headline .reveal-line { display: block; }
.hero-home__intro {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 46ch;
  color: #0C3D2E;
}

.home-gradient-field {
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint) 50%, var(--paper) 82%);
}

.work-label {
  padding-top: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  margin-top: 20px;
}

.project-list { padding-bottom: 40px; }
.project-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(16,32,30,.14);
  cursor: pointer;
  position: relative;
}
.project-row:first-child { border-top: 1px solid rgba(16,32,30,.14); }

.project-row__title {
  font-size: clamp(30px, 5.4vw, 68px);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: uppercase;
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-fast);
  transform-origin: left center;
}
.project-row__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #384745;
  white-space: nowrap;
}
.project-row__tag { font-weight: 700; color: var(--teal); }
.project-row__arrow {
  display: inline-block;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(16,32,30,.35);
  position: relative;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.project-row__arrow::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 9px; height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(-60%,-50%) rotate(45deg);
}
.project-row:hover .project-row__title { transform: translateX(14px); }
.project-row:hover .project-row__arrow {
  background: var(--ink); border-color: var(--ink); color: #fff;
  transform: rotate(45deg);
}

.hover-preview {
  position: fixed;
  top: 0; left: 0;
  width: 340px; height: 240px;
  border-radius: 4px;
  overflow: hidden;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  will-change: transform, opacity;
}
.hover-preview.-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 30px 70px -20px color-mix(in srgb, var(--glow, #117084) 55%, transparent),
              0 8px 24px -10px rgba(16,32,30,.4);
}
.hover-preview img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.hover-preview img.-shown { opacity: 1; }
@media (max-width: 860px) { .hover-preview { display: none; } }

/* ==========================================================
   PROJECT PAGE
   ========================================================== */
.project-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  color: var(--proj-text, #fff);
  background: linear-gradient(155deg, var(--proj-color) 0%, var(--proj-gradient-to) 100%);
  position: relative;
  overflow: hidden;
}
.project-hero__tag {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  opacity: .9;
}
.project-hero__title {
  font-size: clamp(52px, 10.5vw, 168px);
  line-height: .87;
  margin-bottom: 20px;
  color: var(--mint-pale);
  text-shadow: 0 2px 40px rgba(0,0,0,.08);
}
.project-hero__subtitle {
  font-size: clamp(16px, 1.6vw, 22px);
  max-width: 48ch;
  padding-bottom: 56px;
  opacity: .95;
}
.project-hero__image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.project-hero__image img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--hero-pos, 50% 50%);
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-out);
}
.project-hero__image.-loaded img { transform: scale(1); }

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 6vw, 96px);
  padding: 64px 0 8px;
}
.stat__value {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
  color: var(--proj-accent, var(--teal));
  line-height: 1;
}
.stat__label { margin-top: 8px; font-size: 13px; font-weight: 700; color: #5c6863; }

.project-body {
  padding: 40px 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.project-body p { margin: 0 0 1.1em; }
.project-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .project-body { grid-template-columns: 1fr; } }

.gallery { padding: 60px 0; }
.gallery-row { display: grid; gap: 16px; margin-bottom: 16px; }
.gallery-row:last-child { margin-bottom: 0; }
.gallery-cell {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #e8ede9;
  aspect-ratio: var(--cell-ratio, 4 / 3);
}
.gallery-cell.-natural { aspect-ratio: auto; }
.gallery-cell img, .gallery-cell video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  clip-path: inset(0 0 100% 0);
  transition: transform 1.1s var(--ease-out) .1s, clip-path 1.1s var(--ease-out);
}
.gallery-cell.-natural img, .gallery-cell.-natural video {
  height: auto; object-fit: initial;
}
.gallery-cell.-in-view img, .gallery-cell.-in-view video { transform: scale(1); clip-path: inset(0 0 0% 0); }
@media (max-width: 760px) {
  .gallery-row { grid-template-columns: repeat(2, 1fr) !important; }
  .gallery-row[data-cols="1"] { grid-template-columns: 1fr !important; }
}

.moments { padding: 8px 0 100px; border-top: 1px solid #dfe6e2; }
.moments__label { font-size: 13px; font-weight: 700; color: var(--teal); padding: 40px 0 24px; }
.moment { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid #e8ede9; }
.moment:first-of-type { border-top: none; }
.moment__index { font-size: 15px; font-weight: 700; color: var(--teal); }
.moment__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.moment__body { font-size: 16px; line-height: 1.6; color: #384745; max-width: 58ch; }

.next-project { display: block; padding: 90px var(--gutter) 110px; text-align: center; background: var(--paper-dim); }
.next-project__label { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 18px; }
.next-project__title { font-size: clamp(38px, 8vw, 96px); transition: letter-spacing var(--dur-med) var(--ease-out); }
.next-project:hover .next-project__title { letter-spacing: .01em; }

/* ==========================================================
   ABOUT
   ========================================================== */
.about-hero { padding: 150px 0 40px; }
.about-hero__title { font-size: clamp(48px, 9vw, 108px); }

.who {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  padding: 40px 0 90px;
  align-items: start;
}
.who__photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; }
.who__photo img { width: 100%; height: 100%; object-fit: cover; }
.who__text p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.6; }
@media (max-width: 760px) {
  .who { grid-template-columns: 1fr; }
  .who__photo { max-width: 260px; }
}

.experience { padding: 40px 0 100px; border-top: 1px solid #dfe6e2; }
.exp-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 34px; }
.exp-col__heading { font-size: 14px; font-weight: 700; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--mint); }
.exp-item { padding: 16px 0; border-top: 1px solid #e8ede9; }
.exp-item:first-of-type { border-top: none; padding-top: 0; }
.exp-item__role { font-weight: 700; font-size: 16px; }
.exp-item__period { font-size: 13px; color: var(--teal); font-weight: 700; margin: 4px 0 8px; }
.exp-item__desc { font-size: 14px; line-height: 1.5; color: #4c5854; }
@media (max-width: 860px) { .exp-columns { grid-template-columns: 1fr; gap: 44px; } }

/* -------------------- Knowledge charts -------------------- */
.knowledge { padding: 40px 0 110px; border-top: 1px solid #dfe6e2; }
.chart-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; margin-top: 34px; }
@media (max-width: 960px) { .chart-grid { grid-template-columns: 1fr; } }

.chart-card { border-radius: 20px; padding: 30px; display: flex; flex-direction: column; min-height: 380px; }
.chart-card__heading { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.chart-card--programs { background: #1E4A63; color: #EAF6F0; }
.chart-card--knowledge { background: #C4EFC0; color: #123322; }
.chart-card--interests { background: #4FBE72; color: #0B2E17; }

.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; flex: 1; justify-content: center; }
.donut-svg { width: 100%; max-width: 220px; height: auto; }
.donut-svg circle { transition: stroke-dasharray 1.1s var(--ease-out); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.bars-chart { display: flex; align-items: flex-end; gap: 8px; flex: 1; padding-top: 20px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.bar-track { height: 220px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar {
  width: 100%;
  max-width: 26px;
  height: 0;
  background: #1E4A63;
  border-radius: 4px 4px 0 0;
  transition: height .9s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms);
}
.knowledge.-in-view .bar { height: var(--h); }
.bar-label {
  font-size: 9.5px;
  margin-top: 10px;
  text-align: center;
  line-height: 1.25;
  color: #123322;
  opacity: .85;
}

.bubble-grid { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; flex: 1; }
.bubble {
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(11,46,23,.14);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
.knowledge.-in-view .bubble { opacity: 1; transform: scale(1); }

.contact-block { padding: 90px 0 120px; }
.contact-block__title { font-size: clamp(38px, 7vw, 78px); margin-bottom: 18px; }
.contact-block__blurb { font-size: 17px; max-width: 46ch; margin-bottom: 44px; }
.contact-block__links { display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; }
.contact-block__socials { display: flex; gap: 16px; margin-top: 40px; }
.contact-block__socials a { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.contact-block.-dark { background: var(--teal); color: #fff; }
.contact-block.-dark .contact-block__blurb { opacity: .85; }
.contact-block.-dark .contact-block__links a { border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; }
.contact-block.-dark .contact-block__links a:hover { border-color: var(--mint-pale); color: var(--mint-pale); }
.contact-block.-dark .contact-block__socials a { border: 1px solid rgba(255,255,255,.35); }
.contact-block.-dark .contact-block__socials a:hover { border-color: var(--mint-pale); color: var(--mint-pale); }

.contact-block.-light { background: var(--paper); color: var(--ink); }
.contact-block.-light .contact-block__blurb { opacity: .68; }
.contact-block.-light .contact-block__links a { border-bottom: 1px solid rgba(16,32,30,.3); padding-bottom: 4px; }
.contact-block.-light .contact-block__links a:hover { border-color: var(--teal); color: var(--teal); }
.contact-block.-light .contact-block__socials a { border: 1px solid rgba(16,32,30,.3); }
.contact-block.-light .contact-block__socials a:hover { border-color: var(--teal); color: var(--teal); }

/* ==========================================================
   FOOTER (gradient from whatever sits above it, down to mint)
   ========================================================== */
.footer {
  background: var(--paper);
  padding: 26px 0 34px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #5c6863;
  flex-wrap: wrap; gap: 10px;
}

/* ==========================================================
   Reveal-on-load utilities
   ========================================================== */
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.reveal-line.-in span { transform: translateY(0); }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.fade-up.-in { opacity: 1; transform: translateY(0); }

.count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
