/* ============================================================
   Mathijs Vierstraete — 3D Artist & Generalist
   Concept: a 3D scene being lit. Warm KEY light, cool RIM light,
   soft FILL light drift behind near-black; mono metadata gives a
   render-bay / 3D-software feel. Cursor = the key light.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #07070b;
  --bg-2:      #0c0c13;
  --surface:   #13131c;
  --surface-2: #1a1a27;
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.16);

  --text:    #f2efe9;
  --muted:   #9b9bab;
  --muted-2: #6b6b7b;

  /* three-point lighting */
  --key:  #ff7a3c;   /* warm key   */
  --rim:  #34e0d8;   /* cool rim   */
  --fill: #b06bff;   /* soft fill  */

  /* darkest tones of the same lights, used for the base background wash */
  --key-dark:  #2a1408;
  --rim-dark:  #0a201e;
  --fill-dark: #180a2a;

  --display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--key); color: #1a0c04; }

.mono { font-family: var(--mono); }

/* =========================================================
   ATMOSPHERE — lights, grid, grain, cursor
   ========================================================= */
.scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }

.light {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  will-change: transform;
}
.light--key  { background: radial-gradient(circle, var(--key-dark) 0%, transparent 85%);  top: -18vmax; left: -10vmax; animation: drift-a 22s var(--ease) infinite alternate; }
.light--rim  { background: radial-gradient(circle, var(--rim-dark) 0%, transparent 85%);   bottom: -22vmax; right: -12vmax; opacity: 0.6; animation: drift-b 26s var(--ease) infinite alternate; }
.light--fill { background: radial-gradient(circle, var(--fill-dark) 0%, transparent 85%);  top: 30%; left: 55%; opacity: 0.5; animation: drift-c 30s var(--ease) infinite alternate; }

@keyframes drift-a { to { transform: translate(22vmax, 16vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-18vmax, -14vmax) scale(1.2); } }
@keyframes drift-c { to { transform: translate(-24vmax, 10vmax) scale(0.85); } }

.flicker-grid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 60%, transparent 100%);
          mask-image: radial-gradient(circle at 50% 40%, #000 60%, transparent 100%);
  opacity: 0.6;
}

.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em;
  border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.4s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--key {
  background: var(--key); color: #1c0d04;
  box-shadow: 0 8px 30px -8px rgba(255,122,60,0.6);
}
.btn--key:hover { box-shadow: 0 14px 44px -8px rgba(255,122,60,0.85); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
.btn--big { padding: 1.05em 2em; font-size: 1.05rem; }
.btn__play { font-size: 0.72em; transform: translateY(0.5px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7,7,11,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 2.1rem; height: 2.1rem; border-radius: 8px;
  background: var(--text); object-fit: contain; padding: 0.3rem;
}
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__dot { color: var(--key); }

.nav__links { display: flex; gap: 0.4rem; }
.nav__link {
  position: relative; padding: 0.5rem 0.9rem; border-radius: 100px;
  font-size: 0.95rem; color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
  height: 2px; background: var(--key); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { padding: 0.55em 1.2em; }

.nav__social { display: flex; gap: 0.5rem; }
.social-btn {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--muted);
  font-size: 0.7rem; font-weight: 700; letter-spacing: -0.02em;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.social-btn:hover { color: var(--bg); background: var(--rim); border-color: transparent; transform: translateY(-3px); }

.nav__burger { display: none; width: 2.6rem; height: 2.6rem; position: relative; }
.nav__burger span {
  position: absolute; left: 0.55rem; right: 0.55rem; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 0.85rem; }
.nav__burger span:nth-child(2) { top: 1.25rem; }
.nav__burger span:nth-child(3) { top: 1.65rem; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(0.4rem) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-0.4rem) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7,7,11,0.96); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer__links { display: flex; flex-direction: column; gap: 0.4rem; }
.drawer__link {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 11vw, 3.4rem); letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 1rem; color: var(--text);
  transition: color 0.3s, padding-left 0.3s var(--ease);
}
.drawer__link:hover { color: var(--key); padding-left: 0.6rem; }
.drawer__idx { font-family: var(--mono); font-size: 0.9rem; color: var(--muted-2); font-weight: 400; }
.drawer__foot { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.5rem; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.drawer__foot a:hover { color: var(--rim); }

/* =========================================================
   LAYOUT / SECTIONS
   ========================================================= */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  position: relative;
}
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.02;
  letter-spacing: -0.03em; margin-top: 0.6rem;
}
.section__sub { color: var(--muted); max-width: 46ch; margin-top: 1rem; }

.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow span {
  color: var(--key); border: 1px solid var(--line-2);
  padding: 0.1rem 0.5rem; border-radius: 6px; font-size: 0.78rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh; max-width: var(--maxw); margin: 0 auto;
  padding: 7rem var(--pad) 0;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.hero__kicker {
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 0.65rem;
  text-transform: uppercase; margin-bottom: 1.6rem;
}
.hero__kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rim);
  box-shadow: 0 0 12px var(--rim); animation: pulse 2.4s ease-in-out infinite;
}
.hero__year { color: var(--key); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 13vw, 9.5rem); line-height: 0.92;
  letter-spacing: -0.045em; text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.08em 0.02em; margin: -0.05em 0; }
.hero__title .line__inner { display: block; transform: translateY(120%); }
.line__inner--outline {
  -webkit-text-stroke: 1.5px var(--text); color: transparent;
  background: linear-gradient(100deg, var(--key), var(--fill) 55%, var(--rim));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.amp-arial { font-family: 'Arial Black', Arial, sans-serif; }

.hero__lede { max-width: 52ch; color: var(--muted); margin: 2rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 2.4rem; font-family: var(--mono); font-size: 0.8rem; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }

.scroll-cue {
  position: absolute; bottom: 8.5rem; right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted);
}
.scroll-cue__line { width: 1px; height: 48px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--key); animation: scroll-run 2s ease-in-out infinite; }
@keyframes scroll-run { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(100%);} }

.hero__marquee { position: absolute; left: 0; right: 0; bottom: 0; }
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0.9rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; align-items: center; gap: 2rem; white-space: nowrap; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__set { display: inline-flex; align-items: center; gap: 2rem; }
.marquee__item {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--muted);
}
button.marquee__item { transition: color 0.3s; }
button.marquee__item:hover, button.marquee__item:focus-visible { color: var(--text); }
.marquee__track b { color: var(--key); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   WORK
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.filter {
  padding: 0.5em 1.1em; border-radius: 100px; border: 1px solid var(--line-2);
  font-size: 0.9rem; color: var(--muted);
  transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.filter:hover { color: var(--text); transform: translateY(-2px); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; overflow: hidden; transition: max-height 0.6s var(--ease); }

.work-toggle { display: flex; justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }
.work-toggle__btn { display: inline-flex; align-items: center; gap: 0.6em; }
.work-toggle__icon { display: inline-block; font-size: 0.8em; transition: transform 0.35s var(--ease); }
.work-toggle__btn.is-expanded .work-toggle__icon { transform: rotate(180deg); }

.work-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.5s;
  will-change: transform;
}
.work-card.is-hidden { display: none; }
.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-2);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04);
}

.work-card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, var(--g1, #2a2a3a), var(--g2, #14141d));
}
.work-card__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-card__media::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 45%),
    radial-gradient(circle at 75% 80%, var(--glow, rgba(255,122,60,0.4)), transparent 50%);
  mix-blend-mode: screen; opacity: 0.9;
}
.work-card__media::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0.4;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__media::after { transform: scale(1.08); }

.work-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.work-card__play span {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7,7,11,0.45); border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px); color: #fff; font-size: 1rem; padding-left: 4px;
  transform: scale(0.85); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s, background 0.3s;
}
.work-card:hover .work-card__play span { transform: scale(1); opacity: 1; background: var(--key); color: #1c0d04; border-color: transparent; }
.work-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.work-card__cat { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--key); }
.work-card__title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0.35rem 0 0.5rem; }
.work-card__tools { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

/* =========================================================
   ABOUT
   ========================================================= */
.section--about { border-top: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(150deg, #241a2e, #0e1320 60%, #07070b);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 35% 30%, var(--key), transparent 55%), radial-gradient(circle at 80% 85%, var(--rim), transparent 55%);
  opacity: 0.25; mix-blend-mode: screen;
}

.about__lead { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; color: var(--text); font-weight: 500; margin-bottom: 1.2rem; }
.about__body p + p { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.chips li {
  font-size: 0.88rem; padding: 0.45em 0.9em; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,0.02);
}

/* Skills */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 7vw, 5rem); }
.skills__title { margin-bottom: 1.4rem; }
.skills__title .mono { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; display: block; }
.skill-list { display: flex; flex-direction: column; gap: 1.15rem; }
.skill { }
.skill__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.skill__name { font-weight: 600; font-size: 1.02rem; }
.skill__note { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2); text-align: right; }
.bar { height: 6px; border-radius: 100px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar__fill {
  height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--key), var(--fill));
  transition: width 1.1s var(--ease);
}
.skill:nth-child(even) .bar__fill { background: linear-gradient(90deg, var(--rim), var(--key)); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); padding-top: 2.5rem;
}
.stat { text-align: left; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; display: block; }
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; display: block; }

/* =========================================================
   EXPERIENCE / TIMELINE
   ========================================================= */
.timeline { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); }
.timeline__col { position: relative; display: flex; flex-direction: column; gap: 1.6rem; padding-left: 1.6rem; }
.timeline__col::before { content: ""; position: absolute; left: 0; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--line-2); }

.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: -1.6rem; top: 0.5rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--key);
  box-shadow: 0 0 0 4px rgba(255,122,60,0.15); transform: translateX(-4px);
}
.tl--edu::before { background: var(--rim); box-shadow: 0 0 0 4px rgba(52,224,216,0.15); }
.tl__date { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.tl__role { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; margin: 0.3rem 0 0.15rem; }
.tl__org { color: var(--key); font-weight: 600; font-size: 0.95rem; }
.tl--edu .tl__org { color: var(--rim); }
.tl__desc { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

.langs { margin-top: clamp(3rem, 7vw, 4.5rem); border-top: 1px solid var(--line); padding-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.langs__label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lang-list { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.lang-list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); transition: background 0.4s; }
.dots i.on { background: var(--key); }

/* =========================================================
   CONTACT
   ========================================================= */
.section--contact { text-align: center; border-top: 1px solid var(--line); }
.contact__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 9vw, 6.5rem); line-height: 0.96; letter-spacing: -0.04em; margin: 1rem 0; }
.contact__title em { font-style: normal; background: linear-gradient(100deg, var(--key), var(--fill) 55%, var(--rim)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section--contact .eyebrow { justify-content: center; }
.contact__sub { color: var(--muted); max-width: 44ch; margin: 0 auto; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2.6rem 0 2rem; }
.contact__links { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; font-family: var(--mono); font-size: 0.9rem; }
.contact__links a { color: var(--muted); transition: color 0.3s; display: inline-flex; gap: 0.3rem; }
.contact__links a:hover { color: var(--text); }
.contact__links span { color: var(--key); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--pad);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer__brand { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; }
.footer__mono { font-size: 0.8rem; color: var(--muted-2); }
.footer__top { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); transition: color 0.3s; }
.footer__top:hover { color: var(--key); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: var(--pad); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(4,4,7,0.82); backdrop-filter: blur(8px); }
.lightbox__panel {
  position: relative; z-index: 1; width: min(1240px, 96vw);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(16px) scale(0.98); transition: transform 0.4s var(--ease);
}
.lightbox.is-open .lightbox__panel { transform: none; }
.lightbox__scroll { display: flex; flex-direction: column; max-height: 94vh; overflow-y: auto; }
.lightbox__media { aspect-ratio: 16/9; flex: 0 0 auto; min-height: 0; overflow: hidden; background: #000; position: relative; }
.lightbox__media:empty::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: rgba(255,255,255,0.85); }
.lightbox__media video, .lightbox__media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lightbox__thumbs {
  display: flex; gap: 0.6rem; padding: 0.8rem clamp(1.5rem, 3vw, 2.4rem);
  overflow-x: auto; flex: 0 0 auto; border-bottom: 1px solid var(--line);
}
.lightbox__thumbs:empty { display: none; }
.lightbox__thumb {
  position: relative; flex: 0 0 auto; width: 84px; aspect-ratio: 16/10;
  border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: 0.55;
  transition: opacity 0.3s, border-color 0.3s;
}
.lightbox__thumb img, .lightbox__thumb video { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.7rem; color: #fff; background: rgba(7,7,11,0.35);
}
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--key); }
.lightbox__info { padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1.5rem, 3vw, 2.4rem); }
.lightbox__cat { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--key); }
.lightbox__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin: 0.5rem 0 0.9rem; }
.lightbox__desc { color: var(--muted); }
.lightbox__desc p + p { margin-top: 0.9em; }
.lightbox__desc a { color: var(--rim); text-decoration: underline; text-underline-offset: 2px; }
.lightbox__desc a:hover { color: var(--text); }
.lightbox__tools { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.lightbox__close {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(7,7,11,0.5); border: 1px solid var(--line-2); color: #fff;
  transition: background 0.3s, transform 0.3s;
}
.lightbox__close:hover { background: var(--key); color: #1c0d04; transform: rotate(90deg); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.hero__title .line__inner { transition: transform 1s var(--ease); }
body.loaded .hero__title .line__inner { transform: none; }
body.loaded .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.12s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav__links, .nav__cta, .nav__social { display: none; }
  .nav__burger { display: block; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 360px; }
  .timeline { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .lightbox__scroll { max-height: 92vh; }
}

@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero { padding-top: 6rem; }
  /* keep the long "& GENERALIST" line inside the viewport */
  .hero__title { font-size: clamp(2.3rem, 11vw, 4rem); letter-spacing: -0.035em; }
  .hero__meta { gap: 0.45rem 0.8rem; font-size: 0.72rem; }
  .footer__inner { justify-content: center; text-align: center; }
}

/* =========================================================
   MOTION / ACCESSIBILITY
   ========================================================= */
:focus-visible { outline: 2px solid var(--rim); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line__inner { transform: none; }
  .light { display: none; }
}
