/* ============================================================
   Tokens & themes
   ============================================================ */
:root {
  --maxw: 1600px;
  --vwc: min(100vw, var(--maxw));
  --pad: clamp(20px, 5vw, 72px);
  --radius: clamp(22px, 3vw, 40px);
  --radius-sm: 16px;
  --radius-pill: 100px;
  --radius-round: 50%;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: var(--font);

  /* type scale */
  --fs-display: clamp(58px, calc(var(--vwc) * 0.125), 200px);
  --fs-h1:      clamp(48px, calc(var(--vwc) * 0.095), 150px);
  --fs-h2:      clamp(40px, calc(var(--vwc) * 0.075), 120px);
  --fs-h3:      clamp(26px, calc(var(--vwc) * 0.030), 50px);
  --fs-role:    clamp(20px, calc(var(--vwc) * 0.024), 36px);
  --fs-lead:    clamp(18px, calc(var(--vwc) * 0.016), 25px);
  --fs-body:    clamp(16px, 1vw, 18px);
  --fs-label:   clamp(16px, 1.1vw, 19px);
  --fs-meta:    15px;
  /* spacing scale */
  --space-section: clamp(56px, 8vw, 110px);
  --space-block:   clamp(28px, 4vw, 64px);

  --bg: #e9e9e6;
  --bg-soft: #f2f2ef;
  --card: #ffffff;
  --ink: #141414;
  --ink-soft: #5d5d59;
  --line: #d2d2cd;
  --cover: #141414;
  --accent: #1f9d57;
}
:root[data-theme="dark"] {
  --bg: #0f0f0e;
  --bg-soft: #181816;
  --card: #1c1c1a;
  --ink: #f0f0ea;
  --ink-soft: #9c9c95;
  --line: #2b2b28;
  --cover: #f0f0ea;
  --accent: #34c46e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
a { color: inherit; text-decoration: none; }
/* display font (swappable via the design playground) */
.hero__title, .page-title, .cta-band__title, .about__lead, .footer__wordmark, .entry__role, .legal h2, .portfolio__soon { font-family: var(--font-display); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* one shared container — used by nav, main and footer so edges always align */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ============================================================
   Custom cursor (smaller, slower grow)
   ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%; background: #fff;
  mix-blend-mode: difference;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .5s var(--ease), height .5s var(--ease), opacity .3s;
  will-change: transform; opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 54px; height: 54px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============================================================
   Grain
   ============================================================ */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .grain { opacity: .05; }

/* ============================================================
   Page transition
   ============================================================ */
.transition { position: fixed; inset: 0; z-index: 9500; pointer-events: none; }
.transition__circle {
  position: absolute; top: 50%; left: 50%;
  width: 220vmax; height: 220vmax; border-radius: 50%;
  background: var(--cover);
  transform: translate(-50%, -50%) scale(1);
  transition: transform .66s var(--ease); will-change: transform;
}
.transition__circle.no-anim { transition: none; }
.transition.done { display: none; }

/* ============================================================
   Nav
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; mix-blend-mode: difference; transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-115%); }
.nav__inner { display: flex; align-items: center; gap: 28px; padding-block: clamp(16px, 2vw, 26px); color: #fff; }
.nav__logo img { width: clamp(52px, 4.4vw, 68px); height: auto; filter: invert(1); }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 40px); margin-left: auto; font-weight: 500; font-size: var(--fs-label); }
.nav__links a { position: relative; padding-block: 4px; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__controls { display: flex; align-items: center; gap: 12px; }
.ctrl { width: 46px; height: 46px; border: 1.5px solid currentColor; border-radius: var(--radius-round, 50%); display: grid; place-items: center; font-size: 16px; font-weight: 500; transition: background .3s, color .3s; }
.ctrl--lang { width: auto; padding-inline: 18px; border-radius: var(--radius-pill, 100px); letter-spacing: .03em; }
.ctrl:hover { background: #fff; color: #000; }
.ctrl svg { width: 19px; height: 19px; }
.ic-moon { display: none; }
:root[data-theme="dark"] .ic-sun { display: none; }
:root[data-theme="dark"] .ic-moon { display: block; }
.burger { display: none; width: 46px; height: 46px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.8px; background: currentColor; transition: transform .35s var(--ease), opacity .25s; }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: var(--pad); transform: translateY(-100%); transition: transform .6s var(--ease); visibility: hidden; }
body.menu-open .menu { transform: translateY(0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { font-size: clamp(40px, 13vw, 72px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

/* ============================================================
   Page / sections
   ============================================================ */
.page { padding-top: clamp(110px, 14vh, 160px); padding-bottom: clamp(40px, 6vw, 80px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 500; margin: 0 0 clamp(20px, 3vw, 32px); }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.section { padding-block: var(--space-section); }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: var(--space-block); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section__num { font-size: var(--fs-meta); color: var(--ink-soft); font-weight: 500; }
.section__label { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.page-title { font-size: var(--fs-h1); line-height: 0.9; font-weight: 600; letter-spacing: -0.03em; margin-bottom: var(--space-block); }

/* ============================================================
   Home hero (opens with photo)
   ============================================================ */
.hero { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 4vw, 64px); align-items: center; min-height: calc(100svh - 220px); }
.hero__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-soft); transition: transform .3s var(--ease); will-change: transform; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero__photo:hover img { transform: scale(1.04); }
.hero__title { font-size: var(--fs-display); line-height: 0.86; font-weight: 600; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__lead { max-width: 42ch; font-size: var(--fs-lead); line-height: 1.35; margin-top: clamp(22px, 3vw, 38px); color: var(--ink-soft); }
.hero__cta { margin-top: clamp(26px, 3vw, 40px); }

/* ============================================================
   CTA blend button (text pill + icon that merge on hover)
   ============================================================ */
.cta { --cta-h: clamp(54px, 5vw, 68px); display: inline-flex; align-items: stretch; gap: 0; transition: transform .4s var(--ease); }
.cta__label, .cta__icon {
  background: var(--ink); color: var(--bg);
  transition: border-radius .5s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.cta__label { display: flex; align-items: center; height: var(--cta-h); border-radius: var(--radius-pill, 100px); padding: 0 clamp(24px, 2.4vw, 38px); font-weight: 500; font-size: clamp(16px, 1.2vw, 21px); }
.cta__icon { display: grid; place-items: center; width: var(--cta-h); height: var(--cta-h); border-radius: var(--radius-round, 50%); flex: none; }
.cta__icon svg { width: 38%; height: auto; transition: transform .5s var(--ease); }
.cta:hover .cta__label { border-top-right-radius: 0; border-bottom-right-radius: 0; background: var(--bg-soft); color: var(--ink); }
.cta:hover .cta__icon { border-top-left-radius: 0; border-bottom-left-radius: 0; background: var(--bg-soft); color: var(--ink); }
.cta:hover .cta__icon svg { transform: translate(2px, -2px); }
/* on dark sections */
.is-dark .cta__label, .is-dark .cta__icon { background: var(--bg); color: var(--ink); }
.is-dark .cta:hover .cta__label, .is-dark .cta:hover .cta__icon { background: var(--ink); color: var(--bg); }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding-block: clamp(14px, 1.8vw, 24px); white-space: nowrap; margin-top: clamp(40px, 6vw, 80px); }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 52px); animation: scroll 30s linear infinite; }
.marquee__track span { font-size: clamp(20px, calc(var(--vwc) * 0.024), 38px); font-weight: 500; letter-spacing: -0.01em; }
.marquee .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   About (on home)
   ============================================================ */
.about__lead { font-size: var(--fs-h3); line-height: 1.14; font-weight: 500; letter-spacing: -0.02em; margin-bottom: clamp(28px, 4vw, 44px); max-width: 26ch; }
.about__body { max-width: 56ch; color: var(--ink-soft); font-size: var(--fs-body); }

/* facts row */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: var(--space-block); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact__label { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.fact__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.fact__value { font-size: clamp(18px, calc(var(--vwc) * 0.014), 22px); font-weight: 500; letter-spacing: -0.01em; }
.fact__value .js-clock { font-variant-numeric: tabular-nums; }

/* ============================================================
   Resume — entries with round logo avatars + accordion
   ============================================================ */
.entries { display: flex; flex-direction: column; }
.entry { border-bottom: 1px solid var(--line); }
.entry:first-child { border-top: 1px solid var(--line); }
.entry { position: relative; }
.entry:hover { z-index: 10; }
.entry__head {
  --av: clamp(150px, 15vw, 230px);
  --tilt: -8deg;
  --spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) clamp(118px, 12vw, 168px) 44px;
  gap: clamp(14px, 2vw, 28px); align-items: center;
  padding: clamp(18px, 2vw, 26px) clamp(6px, 1vw, 14px);
}

/* logo poster — hidden; bursts in big + tilted on hover, right-aligned.
   Not shown on hover once the entry is already open. */
.entry__avatar {
  --brand: var(--ink);
  position: absolute; left: auto; right: clamp(28px, 6vw, 100px); top: 50%;
  width: var(--av); aspect-ratio: 1; border-radius: clamp(20px, 2vw, 32px);
  overflow: hidden; z-index: 5;
  transform: translateY(-50%) scale(0.2) rotate(-24deg); opacity: 0;
  box-shadow: 0 26px 54px -20px var(--brand), 0 8px 20px -12px rgba(0,0,0,.38);
  transition: transform .55s var(--spring), opacity .35s var(--ease);
  pointer-events: none;
}
.entry__avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 18%, transparent); pointer-events: none; }
.entry__avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
@media (hover: hover) {
  .entry__head[aria-expanded="false"]:hover .entry__avatar { transform: translateY(-50%) scale(1) rotate(var(--tilt)); opacity: 1; }
}

.entry__role { font-size: var(--fs-role); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.entry__org { font-size: clamp(15px, 1.1vw, 19px); color: var(--ink-soft); }
.entry__year { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); justify-self: end; white-space: nowrap; }
.entry__toggle { width: 36px; height: 36px; border-radius: var(--radius-round, 50%); border: 1.5px solid var(--line); display: grid; place-items: center; justify-self: end; transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease); }
.entry__toggle svg { width: 16px; height: 16px; }
.entry__head[aria-expanded="true"] .entry__toggle { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(45deg); }
.entry__panel { overflow: hidden; max-height: 0; transition: max-height .55s var(--ease); }
.entry__panel-inner { padding: 0 clamp(6px, 1vw, 14px) clamp(24px, 3vw, 34px); }
.entry__panel-inner p { max-width: 60ch; font-size: clamp(16px, 1.1vw, 19px); color: var(--ink-soft); }

.skills { display: flex; flex-wrap: wrap; gap: clamp(9px, 1vw, 14px); }
.skills li { list-style: none; border: 1.5px solid var(--ink); border-radius: var(--radius-pill, 100px); padding: clamp(9px, 1vw, 14px) clamp(16px, 1.6vw, 26px); font-size: clamp(15px, 1.2vw, 20px); font-weight: 500; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.skills li:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio-block { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: clamp(48px, 9vw, 130px) clamp(24px, 5vw, 80px); text-align: center; display: flex; flex-direction: column; align-items: center; transition: background .5s var(--ease), color .5s var(--ease); }
.portfolio-block .kicker { color: rgba(150,150,150,.9); }
.portfolio__soon { font-size: clamp(56px, calc(var(--vwc) * 0.13), 220px); line-height: 0.85; font-weight: 600; letter-spacing: -0.04em; background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portfolio__note { margin-top: clamp(22px, 3vw, 40px); max-width: 42ch; opacity: .7; font-size: clamp(16px, 1.1vw, 20px); }

/* ============================================================
   CTA band (bottom of every page) + footer
   ============================================================ */
.cta-band { padding-block: clamp(60px, 9vw, 130px); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.cta-band__title { font-size: var(--fs-h2); line-height: 0.92; font-weight: 600; letter-spacing: -0.03em; max-width: 16ch; }
.cta-band__alt { display: flex; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; font-size: clamp(17px, 1.3vw, 22px); font-weight: 500; }
.cta-band__alt a { position: relative; }
.cta-band__alt a::after { content: ""; position: absolute; left: 0; bottom: 1px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.cta-band__alt a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer__wordmark {
  font-size: clamp(96px, 26vw, 460px); line-height: 0.78; font-weight: 600; letter-spacing: -0.04em;
  text-align: center; white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  padding-block: clamp(16px, 3vw, 48px) 0; margin-bottom: -0.12em;
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: clamp(24px, 3vw, 40px); color: var(--ink-soft); font-size: var(--fs-meta); }
.footer__inner a:hover { color: var(--ink); }
.footer__clock { font-variant-numeric: tabular-nums; }
.footer__clock b { font-weight: 500; color: var(--ink); }

/* focus states */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* subtle coming-soon toast */
.toast { position: fixed; left: 50%; bottom: clamp(24px, 5vh, 48px); transform: translate(-50%, 14px); display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: var(--radius-pill, 100px); font-size: var(--fs-meta); font-weight: 500; z-index: 9600; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); box-shadow: 0 14px 36px -12px rgba(0,0,0,.45); }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* cookie consent (subtle, bottom-left, frosted) */
.consent { position: fixed; right: clamp(16px, 3vw, 28px); left: auto; bottom: clamp(16px, 3vw, 28px); width: min(340px, calc(100vw - 32px)); background: color-mix(in srgb, var(--card) 72%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); color: var(--ink); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--radius-sm); padding: 15px 17px; z-index: 9700; box-shadow: 0 10px 28px -16px rgba(0,0,0,.28); transform: translateY(14px); opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.consent.is-show { opacity: 1; transform: none; }
.consent__text { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.consent__link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent__link:hover { color: var(--accent); }
.consent__actions { display: flex; gap: 10px; margin-top: 13px; }
.consent__btn { border-radius: var(--radius-pill, 100px); padding: 9px 18px; font-weight: 500; font-size: 13px; border: 1.5px solid var(--ink); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.consent__btn--accept { background: var(--ink); color: var(--bg); }
.consent__btn--accept:hover { opacity: .85; }
.consent__btn--decline { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.consent__btn--decline:hover { color: var(--ink); border-color: var(--ink); }

/* legal / privacy page */
.legal { max-width: 64ch; }
.legal__lead { font-size: var(--fs-lead); line-height: 1.4; margin-bottom: clamp(28px, 4vw, 44px); }
.legal h2 { font-size: clamp(20px, calc(var(--vwc) * 0.02), 28px); font-weight: 600; letter-spacing: -0.01em; margin-top: clamp(28px, 4vw, 44px); }
.legal p { color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.priv-en { display: none; }
:root[lang="en"] .priv-nl { display: none; }
:root[lang="en"] .priv-en { display: block; }

/* design playground (secret) */
.dtrigger { position: fixed; left: clamp(16px, 3vw, 24px); bottom: clamp(16px, 3vw, 24px); width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); display: grid; place-items: center; z-index: 9650; box-shadow: 0 8px 24px -12px rgba(0,0,0,.3); opacity: .45; transition: opacity .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.dtrigger:hover, .dtrigger.is-active { opacity: 1; color: var(--ink); transform: rotate(90deg); }
.dtrigger svg { width: 18px; height: 18px; }
.dpanel { position: fixed; left: clamp(16px, 3vw, 24px); bottom: calc(clamp(16px, 3vw, 24px) + 52px); width: min(282px, calc(100vw - 32px)); max-height: calc(100svh - 88px); overflow-y: auto; background: color-mix(in srgb, var(--card) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--line); border-radius: 18px; padding: 16px; z-index: 9650; box-shadow: 0 16px 44px -16px rgba(0,0,0,.35); opacity: 0; transform: translateY(10px) scale(.98); transform-origin: bottom left; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.dpanel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.dpanel__title { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.dpanel__group { margin-bottom: 14px; }
.dpanel__glabel { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 8px; }
.dpanel__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dchip { border: 1.5px solid var(--line); border-radius: 100px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--ink-soft); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.dchip:hover { border-color: var(--ink); color: var(--ink); }
.dchip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.dchip--swatch { width: 26px; height: 26px; padding: 0; border-radius: 50%; background: var(--sw); border: 2px solid transparent; }
.dchip--swatch.is-active { background: var(--sw); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.dpanel__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.dpanel__actions { display: flex; gap: 12px; }
.dpanel__btn, .dpanel__link { font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.dpanel__btn:hover, .dpanel__link:hover { color: var(--ink); }
.dchip--picker { width: 26px; height: 26px; padding: 0; border: 2px solid var(--line); border-radius: 50%; overflow: hidden; cursor: pointer; background: none; }
.dchip--picker::-webkit-color-swatch-wrapper { padding: 0; }
.dchip--picker::-webkit-color-swatch { border: none; border-radius: 50%; }
.dchip--picker::-moz-color-swatch { border: none; border-radius: 50%; }

/* design playground effects */
:root[data-cursor="off"] .cursor { display: none; }
:root[data-cursor="off"] body.has-cursor,
:root[data-cursor="off"] body.has-cursor a,
:root[data-cursor="off"] body.has-cursor button { cursor: auto; }
:root[data-font="dmserif"] .hero__title,
:root[data-font="dmserif"] .page-title,
:root[data-font="dmserif"] .cta-band__title,
:root[data-font="dmserif"] .about__lead,
:root[data-font="dmserif"] .footer__wordmark,
:root[data-font="dmserif"] .entry__role,
:root[data-font="dmserif"] .legal h2 { font-weight: 400; letter-spacing: 0; }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__title .line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.hero__title .line.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__title .line > span { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .transition__circle { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: clamp(18px, 5vw, 28px); }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__controls { margin-left: auto; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: -1; max-width: 360px; }
  .entry__head { --av: clamp(44px, 12vw, 56px); grid-template-columns: 1fr auto; grid-template-areas: "role toggle" "org toggle" "year toggle"; row-gap: 2px; }
  .entry__role { grid-area: role; }
  .entry__org { grid-area: org; }
  .entry__year { grid-area: year; justify-self: start; }
  .entry__toggle { grid-area: toggle; align-self: center; }
  /* no hover on touch: hidden until opened, then pops in just left of the toggle */
  .entry__avatar { left: auto; right: clamp(56px, 15vw, 72px); border-radius: 50%; box-shadow: 0 8px 18px -8px var(--brand); }
  .entry__head[aria-expanded="true"] .entry__avatar { transform: translateY(-50%) scale(1) rotate(0); opacity: 1; }
}
@media (max-width: 520px) {
  .footer__inner { flex-direction: column; }
  .cta__label { font-size: 16px; }
}
