@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/schibsted-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/schibsted-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #050505;
  --ink: #0B0B0C;
  --raise: #141416;
  --line: #1E1F22;
  --blue: #1B6BFF;
  --white: #FFFFFF;
  --paper: #F4F5F7;
  --muted: #8B8E96;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --display: clamp(4.2rem, 10vw, 8.5rem);
  --h2: clamp(2.4rem, 5.4vw, 5rem);
  --h3: clamp(1.25rem, 1.6vw, 1.6rem);
  --body: 1.0625rem;
  --small: 0.8125rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; background: var(--black); }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.55;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas { max-width: 100%; display: block; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip {
  position: absolute; left: 12px; top: -40px; z-index: 200;
  background: var(--blue); color: var(--white); padding: 8px 12px;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--blue); color: var(--white); text-decoration: none;
  font-weight: 600; letter-spacing: -0.02em;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:hover { background: #3b82ff; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent; color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: var(--raise); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: var(--small); }

/* Loader — SAMSPACE decode, then the screen splits open (~2s, not skippable) */
.loader { position: fixed; inset: 0; z-index: 80; pointer-events: all; }
.loader__half {
  position: absolute; inset: 0; background: var(--black);
  display: grid; place-items: center;
  will-change: transform;
}
.loader__half--top { clip-path: inset(0 0 50% 0); }
.loader__half--bot { clip-path: inset(50% 0 0 0); }
.loader__word {
  margin: 0; font-weight: 800; letter-spacing: -0.055em; line-height: 1;
  font-size: clamp(3.2rem, 14vw, 12rem); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.loader__word .w-sam { color: var(--white); }
.loader__word .w-space { color: var(--blue); }
.loader__half::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform 340ms var(--ease-out);
}
.loader.is-decoded .loader__half::after { transform: scaleX(1); }
.loader__meta {
  position: absolute; left: 28px; right: 28px; bottom: 26px; margin: 0;
  display: flex; justify-content: space-between;
  font-size: var(--small); color: var(--muted); font-variant-numeric: tabular-nums;
  transition: opacity 200ms var(--ease-out);
}
.loader.is-done { pointer-events: none; }
.loader.is-done .loader__meta { opacity: 0; }
.loader.is-done .loader__half--top { transform: translateY(-100%); transition: transform 820ms var(--ease-move); }
.loader.is-done .loader__half--bot { transform: translateY(100%); transition: transform 820ms var(--ease-move); }
body.is-loading { overflow: hidden; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: color-mix(in srgb, var(--black) 92%, transparent);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { border-bottom-color: var(--line); background: var(--black); }
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; letter-spacing: -0.03em;
}
.nav__mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--blue);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
}
.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__menu a { text-decoration: none; font-size: var(--small); font-weight: 500; color: var(--paper); }
.nav__menu a:hover { color: var(--white); }
.nav__menu[hidden] { display: none; }
@media (min-width: 960px) {
  .nav__menu, .nav__menu[hidden] { display: flex !important; }
  .nav__toggle { display: none; }
}
.nav__toggle { width: 40px; height: 40px; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white);
  transition: transform 200ms var(--ease-out), top 200ms var(--ease-out);
}
.nav__toggle span:first-of-type { top: 16px; }
.nav__toggle span:last-of-type { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-of-type { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-of-type { top: 20px; transform: rotate(-45deg); }
@media (max-width: 959px) {
  .nav__menu:not([hidden]) {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--ink); padding: 20px 28px 28px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
}

/* Hero */
.hero {
  min-height: 100svh; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: stretch; position: relative; overflow: hidden;
}
.hero__copy { padding: calc(var(--nav-h) + 6vh) 28px 8vh 48px; align-self: center; max-width: 760px; }
.hero h1 { font-size: var(--display); font-weight: 800; max-width: 9ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__lead { margin-top: 28px; max-width: 38ch; color: #c8c9ce; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats {
  display: flex; gap: 28px; list-style: none; margin-top: 48px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats strong { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.04em; color: var(--blue); }
.hero__stats span { font-size: var(--small); color: var(--muted); }
.hero__avail { margin-top: 22px; font-size: var(--small); color: var(--muted); }

/* Portrait — exact original photo, slight tilt, 2–4px shift, light overlay */
.portrait {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: center;
  perspective: 1400px;
}
.portrait__stage {
  position: absolute; inset: 0 0 0 0;
  z-index: 0;
  overflow: hidden;
  background: #0a1f66;
}
.portrait__rig {
  position: relative; z-index: 1; width: min(100%, 680px);
  transform-origin: 50% 70%;
  will-change: transform;
  transform-style: flat;
  margin-top: 8px;
}

/* Slow, GPU-cheap brand-blue mesh (hero stage + contact) */
.mesh { background: #0a1f66; overflow: hidden; }
.mesh__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.mesh__blob--a {
  width: 130%; height: 90%;
  left: -25%; top: -30%;
  background: radial-gradient(circle at 50% 50%, #3d7cff 0%, #1B6BFF 38%, transparent 68%);
  animation: mesh-a 28s ease-in-out infinite alternate;
}
.mesh__blob--b {
  width: 90%; height: 80%;
  right: -25%; top: 10%;
  background: radial-gradient(circle at 50% 50%, #1B6BFF 0%, #163a9e 42%, transparent 66%);
  animation: mesh-b 34s ease-in-out infinite alternate;
}
.mesh__blob--c {
  width: 80%; height: 70%;
  left: 10%; bottom: -28%;
  background: radial-gradient(circle at 50% 50%, #2a55d6 0%, #0a1f66 46%, transparent 68%);
  animation: mesh-c 31s ease-in-out infinite alternate;
}
@keyframes mesh-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, 6%, 0) scale(1.08); }
}
@keyframes mesh-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-7%, 5%, 0) scale(1); }
}
@keyframes mesh-c {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6%, -7%, 0) scale(1.06); }
}

/* Hero photo — the original <img> by default; a WebGL dust layer takes over only while interacting */
.reveal { position: relative; width: 100%; aspect-ratio: 1086 / 1448; }
.reveal img, .reveal canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Chevron cut between hero and work — follows pointer and scroll */
.cut {
  width: 47.5%; margin-left: auto;
  --mx: 0.5; --cs: 0; --min: 25%; --span: 50%;
  --h: clamp(80px, 11vw, 170px);
  position: relative; z-index: 3; height: var(--h); margin-top: calc(-1 * var(--h));
  pointer-events: none;
}
.cut__back, .cut__front { position: absolute; inset: 0; }
.cut__front {
  background: var(--black);
  clip-path: polygon(0 calc(30% - var(--cs) * 30%), calc(var(--min) + var(--mx) * var(--span)) 100%, 100% calc(30% - var(--cs) * 30%), 100% 100%, 0 100%);
}
.cut__back {
  background: #0a1f66;
  background: #07185a;
  clip-path: polygon(0 calc(8% - var(--cs) * 8%), calc(var(--min) + var(--mx) * var(--span) + 3%) 84%, 100% calc(8% - var(--cs) * 8%), 100% 100%, 0 100%);
}
.cut--m { display: none; }
@media (max-width: 959px) {
  .cut { display: none; }
  .cut--m { display: block; position: absolute; left: 0; right: 0; bottom: 0; margin: 0; width: auto; --h: 56px; --min: 30%; --span: 40%; z-index: 5; }
}

/* Work-ID badge — clipped to left chest (viewer's right), no lanyard */
.badge {
  position: absolute;
  left: 52.5%;
  top: 53.5%;
  width: 154px;
  z-index: 4;
  pointer-events: none;
  transform: perspective(800px) rotateY(-11deg) rotateX(6deg) rotateZ(3deg);
  transform-origin: 50% 0;
  filter: drop-shadow(6px 14px 18px rgba(0,0,0,0.5));
}
.badge__pin { transform-origin: 50% 0; }
.badge__clip {
  position: relative;
  z-index: 3;
  width: 30px;
  height: 20px;
  margin: 0 auto -7px;
}
.badge__clip-top {
  display: block;
  width: 30px;
  height: 13px;
  background: linear-gradient(180deg, #eceff3 0%, #b4bac2 38%, #7a828c 72%, #4e555e 100%);
  border-radius: 3px 3px 1px 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -1px 0 rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.35);
  position: relative;
}
.badge__clip-top::before {
  content: "";
  position: absolute;
  left: 50%; top: 3px;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4f6f8, #6a717a 55%, #3c4248);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 0 0 1px rgba(0,0,0,0.18);
}
.badge__clip-jaw {
  display: block;
  width: 16px;
  height: 11px;
  margin: -2px auto 0;
  background: linear-gradient(180deg, #c5cad1 0%, #8b929b 50%, #555c64 100%);
  border-radius: 0 0 2px 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 1px 1px rgba(0,0,0,0.25);
}
.badge__card {
  width: 100%;
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
  padding: 7px 7px 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 0 rgba(0,0,0,0.06), 0 10px 20px rgba(0,0,0,0.22);
  transform-style: preserve-3d;
  position: relative;
}
.badge__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.badge__face.is-back { position: absolute; inset: 7px 7px 8px; transform: rotateY(180deg); }
.badge__face img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 4px;
  background: var(--blue);
  display: block;
}
.badge__face p { margin-top: 6px; }
.badge__face span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c616a;
  font-weight: 700;
  line-height: 1;
}
.badge__face strong {
  display: block;
  margin-top: 3px;
  font-size: 1.02rem;
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 800;
}

/* Work hub */
/* Work hub — spatial doors with cover collages */
.work, .exp, .about { transform-style: preserve-3d; }
.work { padding: 120px 48px 100px; }
.work__head, .exp__head {
  display: grid; grid-template-columns: 1fr minmax(200px, 36ch);
  gap: 24px 48px; align-items: end; margin-bottom: 48px;
}
.work__head h2, .exp__head h2, .about h2 { font-size: var(--h2); }
.work__head p, .exp__head p { color: var(--muted); }

.hub { display: flex; flex-direction: column; gap: 18px; perspective: 1800px; }
.hub__door {
  display: grid; grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  min-height: clamp(240px, 38vh, 400px);
  text-decoration: none; position: relative; overflow: hidden;
  background: var(--ink); border: 1px solid var(--line);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  will-change: transform;
}
.hub__door-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px 36px 36px;
  background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 82%, transparent) 70%, transparent 100%);
}
.hub__idx { font-size: var(--small); color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.hub__name { font-size: clamp(2.1rem, 4.4vw, 3.8rem); font-weight: 700; letter-spacing: -0.045em; }
.hub__meta { margin-top: 16px; color: var(--muted); font-size: var(--small); }
.hub__meta strong { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 2px; }

.hub__door-viz {
  position: relative; overflow: hidden; min-height: 100%;
  perspective: 1400px;
}
.hub__stack {
  position: absolute; inset: 12% -8% 12% 8%;
  display: flex; align-items: stretch; gap: 14px;
  transform: rotateY(-18deg) rotateX(5deg) translateZ(0);
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out);
}
.hub__shot {
  flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; object-position: 50% 65%;
  background: var(--raise);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.hub__shot.is-phone { flex: 0.62 1 0; }

@media (hover: hover) and (pointer: fine) {
  .hub__door {
    transition: transform 500ms var(--ease-out), border-color 200ms var(--ease-out);
  }
  .hub__door:hover, .hub__door:focus-visible {
    border-color: #2d3038;
    transform: rotateX(-5deg) translateY(-6px) translateZ(24px);
  }
  .hub__door:hover .hub__stack,
  .hub__door:focus-visible .hub__stack {
    transform: rotateY(-10deg) rotateX(2deg) translateZ(28px);
  }
}

/* Experience — light, compact */
.exp { padding: 80px 48px 100px; border-top: 1px solid var(--line); }
.exp__list { list-style: none; max-width: 920px; }
.exp__list > li { display: block; }
.exp__panel {
  display: grid; grid-template-columns: 220px 1fr; gap: 8px 36px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.exp__meta { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: var(--small); }
.exp__meta span { color: var(--blue); font-weight: 500; }
.exp__list h3 { font-size: var(--h3); margin-bottom: 4px; }
.exp__org { color: var(--paper); font-weight: 500; margin-bottom: 10px; }
.exp__org span { color: var(--muted); font-weight: 400; }
.exp__list ul { list-style: none; color: #c8c9ce; }
.exp__list ul li { display: block; padding: 0 0 6px 0; border: 0; grid-template-columns: none; }
.exp__list ul li::before { content: "– "; color: var(--muted); }
.exp__body { min-width: 0; }

/* About */
.about {
  display: grid; grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
  gap: 48px 104px; align-items: center; padding: 80px 48px 120px;
  border-top: 1px solid var(--line);
}
.about__photo { background: var(--paper); overflow: hidden; }
.about__photo img { width: 100%; height: auto; object-fit: cover; object-position: 50% 12%; }
.about__copy { max-width: none; width: 100%; min-width: 0; }
.about__lead { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.035em; line-height: 1.2; margin: 22px 0 18px; font-weight: 500; }
.about__copy > p:not(.about__lead) { color: #c8c9ce; max-width: none; }
.about__edu { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.about__edu h3 { font-size: var(--small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.about__edu p { color: var(--paper); font-size: 0.95rem; }

/* Contact */
.contact {
  background: #0a1f66; color: var(--white);
  padding: 140px 48px 80px; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.contact > *:not(.mesh) { position: relative; z-index: 1; }
.contact__mesh { position: absolute; inset: 0; z-index: 0; }
.nav.on-blue { background: color-mix(in srgb, #0a1f66 35%, var(--blue) 65%); border-bottom-color: transparent; }
.nav.on-blue .nav__mark { background: var(--black); color: var(--white); }
.nav.on-blue .btn { background: var(--black); }
.nav.on-blue .btn:hover { background: #1a1a1c; }
.contact h2 { font-size: var(--display); max-width: 12ch; }
.contact__mail {
  margin-top: 36px; font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.04em; text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--white) 40%, transparent);
  align-self: flex-start;
}
.contact__mail:hover { border-bottom-color: var(--white); }
.contact__row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; }
.contact__row a {
  text-decoration: none; font-size: var(--small); font-weight: 500;
  padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--black) 18%, transparent);
}
.contact__row a:hover { background: color-mix(in srgb, var(--black) 32%, transparent); }
.contact__foot { margin-top: 64px; font-size: var(--small); display: flex; gap: 24px; opacity: 0.85; }
.contact__foot a { color: inherit; }

/* Overlay (skill + folder views) */
.overlay {
  position: fixed; inset: 0; z-index: 40; background: var(--black);
  display: flex; flex-direction: column;
  transform-origin: 50% 0%;
  perspective: 1600px;
}
.overlay[hidden] { display: none; }
body.is-overlay { overflow: hidden; }
.overlay__bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 20px;
  padding: calc(var(--nav-h) + 8px) 28px 16px;
  border-bottom: 1px solid var(--line); background: var(--black);
  z-index: 2;
}
.overlay__back {
  font-weight: 600; font-size: var(--small);
  padding: 8px 0; letter-spacing: -0.02em;
}
.overlay__back::before { content: "← "; }
.overlay__back:hover { color: var(--blue); }
.overlay__back:focus { outline: none; }
.overlay__back:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: var(--small); color: var(--muted); }
.crumbs a { color: var(--paper); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span + span::before { content: "/"; margin: 0 8px; color: var(--line); }
.overlay__body {
  flex: 1 1 auto; overflow: auto; padding: 32px 48px 48px;
  transform-origin: 50% 0%;
}

.view__head { max-width: 46rem; margin-bottom: 28px; }
.view__head h1 { font-size: var(--h2); margin-bottom: 14px; }
.view__head p { color: var(--muted); max-width: 58ch; }

.view__feature {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 8px; height: clamp(180px, 26vh, 250px);
  margin: 0 0 36px; overflow: hidden;
  background: var(--ink);
}
.view__feature img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.view__feature.is-vertical {
  grid-template-columns: repeat(3, minmax(0, 240px));
  justify-content: start;
  gap: 10px;
  height: clamp(220px, 32vh, 300px);
}
.view__feature.is-vertical img {
  width: auto; max-width: 100%; height: 100%;
  aspect-ratio: 9/16; object-position: 50% 50%;
  justify-self: start;
}
.view__feature img:first-child { grid-row: 1; }

/* Format filter — text toggles, not candy pills */
.filter { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.filter button {
  font-size: var(--small); font-weight: 500; color: var(--muted);
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.filter button.is-on, .filter button[aria-pressed="true"] {
  color: var(--white); border-bottom-color: var(--blue);
}

.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.folder-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--ink); border: 1px solid var(--line); min-height: 300px;
  padding: 0; overflow: hidden;
  transform: perspective(1000px) rotateX(0);
}
.folder-card__cover { aspect-ratio: 16/9; overflow: hidden; background: var(--raise); }
.folder-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.folder-card__body { padding: 18px 18px 22px; margin-top: auto; }
.folder-card__body h2 { font-size: 1.45rem; margin-bottom: 6px; }
.folder-card__body p { font-size: var(--small); color: var(--muted); }
.folder-card__tags { margin-top: 10px; font-size: 0.75rem; color: var(--paper); }
.flag { font-size: 0.7rem; color: var(--blue); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) {
  .folder-card { transition: transform 250ms var(--ease-out), border-color 200ms var(--ease-out); }
  .folder-card:hover, .folder-card:focus-visible {
    transform: perspective(1000px) rotateX(-3deg) translateY(-3px);
    border-color: #2a2c32;
  }
}

/* Galleries — equal columns, frames contain media, play sits inside the frame */
.gallery { display: grid; gap: 24px 18px; align-items: start; }
.gallery--cases { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery--mixed { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery--vertical {
  grid-template-columns: repeat(auto-fill, minmax(180px, 210px));
  justify-content: start;
}
.gallery--video-h { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.group { margin-top: 8px; }
.group + .group { margin-top: 48px; }
.group__title {
  font-size: var(--small); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.item { min-width: 0; }
.item__frame {
  background: var(--raise); overflow: hidden; position: relative;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.item__frame img,
.item__frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.item__frame video { opacity: 0; transition: opacity 200ms var(--ease-out); pointer-events: none; }
.item__frame.is-playing video { opacity: 1; }
.item--r-16-9 .item__frame { aspect-ratio: 16/9; }
.item--r-9-16 .item__frame { aspect-ratio: 9/16; }
.item--r-4-5 .item__frame { aspect-ratio: 4/5; }
.item--r-1-1 .item__frame { aspect-ratio: 1/1; }
.item__play {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700;
  pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.item__body { padding: 14px 2px 0; }
.item__body h3 { font-size: 1.05rem; margin: 0 0 4px; }
.item__meta { font-size: var(--small); color: var(--muted); }
.item__body p { margin-top: 8px; font-size: var(--small); color: #c8c9ce; }
.item.is-placeholder .flag { display: inline-block; margin-bottom: 4px; }

/* Lightbox + custom player */
.lite {
  position: fixed; inset: 0; z-index: 70; background: rgba(5,5,5,0.94);
  display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 72px 20px;
}
.lite[hidden] { display: none; }
.lite.is-in { animation: lite-in 260ms var(--ease-out) both; }
@keyframes lite-in { from { opacity: 0; } to { opacity: 1; } }
.lite.is-in .lite__stage { animation: lite-stage 320ms var(--ease-out) both; }
@keyframes lite-stage { from { transform: scale(0.97); } to { transform: none; } }
.lite__stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lite__stage.is-image img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); object-fit: contain; }
.lite__stage.is-video .player { width: min(1200px, 100%); max-height: calc(100vh - 140px); aspect-ratio: 16/9; }
.lite__stage.is-video.is-vertical .player { width: auto; height: calc(100vh - 140px); aspect-ratio: 9/16; max-width: 100%; }
.lite__close { position: absolute; top: 18px; right: 24px; font-weight: 600; font-size: var(--small); z-index: 2; }
.lite__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: var(--small); font-weight: 600; color: var(--muted); padding: 12px 8px; z-index: 2;
}
.lite__nav:hover { color: var(--white); }
.lite__nav--prev { left: 14px; }
.lite__nav--next { right: 14px; }
.lite__cap { display: flex; gap: 18px; align-items: baseline; margin: 14px 0 0; font-size: var(--small); color: var(--muted); }
.lite__cap strong { color: var(--white); font-weight: 600; }
.lite__cap a { color: var(--blue); }

.player { position: relative; background: #000; overflow: hidden; max-width: 100%; }
.player video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.player__big {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--white); color: var(--black);
  display: grid; place-items: center;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.player__big svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.player__big:active { transform: scale(0.96); }
.player.is-playing .player__big { opacity: 0; transform: scale(0.9); pointer-events: none; }
.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px; padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.player.is-idle .player__bar { opacity: 0; transform: translateY(6px); }
.player__btn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--white); flex: 0 0 auto; }
.player__btn svg { width: 16px; height: 16px; fill: currentColor; }
.player__btn:active { transform: scale(0.94); }
.player__time { font-size: 0.75rem; color: #d9dade; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__track { position: relative; flex: 1 1 auto; height: 18px; cursor: pointer; touch-action: none; }
.player__track::before, .player__buf, .player__fill {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; transform-origin: 0 50%;
}
.player__track::before { background: rgba(255,255,255,0.22); }
.player__buf { background: rgba(255,255,255,0.35); transform: scaleX(0); }
.player__fill { background: var(--blue); transform: scaleX(0); }
.player__knob {
  position: absolute; top: 4px; left: 0; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--white); transition: transform 150ms var(--ease-out);
}
.player__track:hover .player__knob { transform: scale(1.3); }
.player__track:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Skill brief */
.brief {
  display: grid; grid-template-columns: minmax(180px, 0.6fr) 2fr; gap: 32px 56px;
  padding: 28px 0 36px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
}
.brief__years strong { display: block; font-size: clamp(4.5rem, 10vw, 8rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; color: var(--blue); font-variant-numeric: tabular-nums; }
.brief__years span { display: block; margin-top: 10px; font-size: var(--small); color: var(--muted); max-width: 14ch; }
.brief__copy p { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 52ch; color: var(--paper); }
.brief__copy .brief__ind { margin-top: 22px; font-size: var(--small); color: #c8c9ce; line-height: 1.8; }
.brief__ind span { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.brief__ind b { font-weight: 400; white-space: nowrap; }
.brief__ind i { font-style: normal; color: var(--line); margin: 0 4px; }
.brief__copy { min-width: 0; }

/* Content creation totals */
.stats { margin: 4px 0 36px; }
.stats__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.stats__head h2 { font-size: var(--h3); }
.stats__head p { font-size: var(--small); color: var(--muted); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--black); padding: 26px 20px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat__ring { position: relative; width: min(150px, 100%); aspect-ratio: 1; }
.stat__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.stat__track { fill: none; stroke: var(--raise); stroke-width: 6; }
.stat__arc { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; }
.stat.is-pending .stat__track { stroke: #2a2c32; stroke-dasharray: 3 7; }
.stat.is-pending .stat__arc { display: none; }
.stat.is-pending.is-in .stat__ring svg { animation: ring-spin 14s linear infinite; }
@keyframes ring-spin { to { transform: rotate(270deg); } }
.stat__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.stat.is-pending .stat__num { font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat__label { margin-top: 14px; font-weight: 600; font-size: 0.95rem; }
.stat__note { margin-top: 4px; font-size: 0.75rem; color: var(--muted); max-width: 24ch; }
.samples { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px; margin-bottom: 40px; }
.samples > p:first-child { color: #c8c9ce; font-size: 0.95rem; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--small); }
.socials a, .contact__socials a { color: var(--paper); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.socials a:hover { color: var(--white); border-bottom-color: var(--blue); }
.contact__socials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; position: relative; font-weight: 500; }
.contact__socials a:hover { border-bottom-color: var(--white); }

.folders__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 18px; }
.folders__head h2 { font-size: var(--h3); }
.folders__head p { color: var(--muted); font-size: var(--small); }
.folders__head .filter { margin-top: 0; margin-left: auto; }
.folder-card__blurb { margin-top: 8px; color: #c8c9ce !important; }

/* Live marker — text + dot, not a pill */
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #3ddc84; margin-bottom: 6px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
@media (prefers-reduced-motion: no-preference) {
  .live i { animation: live-blink 2.4s ease-in-out infinite; }
}
@keyframes live-blink { 50% { opacity: 0.35; } }
.item__links { display: flex; gap: 18px; margin-top: 10px !important; }
.item__links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.item__links a:hover { text-decoration: underline; }
.item--r-4-3 .item__frame { aspect-ratio: 4/3; }
.item--r-hero .item__frame { aspect-ratio: 45/32; }
a.item__frame { display: block; }
.item__frame[role="button"] { cursor: zoom-in; }
.item__frame:has(video[data-src]:not([data-hover])) { cursor: pointer; }
.item__play svg { width: 12px; height: 12px; fill: currentColor; margin-left: 2px; }

/* Website case */
.case__head { max-width: 48rem; margin-bottom: 22px; }
.case__head h1 { font-size: var(--h2); margin: 4px 0 12px; }
.case__head p { color: #c8c9ce; max-width: 60ch; }
.case__kind { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.case__meta { margin-top: 8px; font-size: var(--small); color: var(--muted) !important; }
.case__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.case__tabs { margin: 0 0 14px; }
.case__screen { border: 1px solid var(--line); background: var(--ink); }
.case__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.case__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #2a2c32; }
.case__chrome span { margin-left: 12px; font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case__view { position: relative; aspect-ratio: 16 / 10; background: #000; }
.case__view img, .case__view iframe, .case__view .player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: 50% 0; }
.case__view iframe { background: var(--white); }
.case__note { position: absolute; left: 12px; bottom: 10px; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 640px) {
  .case__view.is-live { aspect-ratio: 9 / 14; }
  .lite { padding: 56px 12px 16px; }
  .lite__nav { top: auto; bottom: 14px; transform: none; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .samples { flex-direction: column; }
}

/* Spatial enter for overlay shell and inner views */
.overlay.is-enter { animation: plane-in 800ms var(--ease-out) both; }
.overlay.is-leave { animation: plane-out 480ms var(--ease-move) both; }
.overlay__body.is-view-out { animation: view-out 420ms var(--ease-move) both; }
.overlay__body.is-view-in { animation: view-in 700ms var(--ease-out) both; }
@keyframes plane-in {
  from { opacity: 0; transform: perspective(1600px) rotateX(10deg) translateY(10vh); }
  to { opacity: 1; transform: perspective(1600px) rotateX(0) translateY(0); }
}
@keyframes plane-out {
  from { opacity: 1; transform: perspective(1600px) rotateX(0) translateY(0); }
  to { opacity: 0; transform: perspective(1600px) rotateX(-8deg) translateY(-5vh); }
}
@keyframes view-out {
  from { opacity: 1; transform: rotateX(0) translateY(0); }
  to { opacity: 0; transform: rotateX(-8deg) translateY(-5vh); }
}
@keyframes view-in {
  from { opacity: 0; transform: rotateX(10deg) translateY(8vh); }
  to { opacity: 1; transform: rotateX(0) translateY(0); }
}

/* Responsive */
@media (max-width: 1100px) {
  .gallery--cases { grid-template-columns: repeat(2, 1fr); }
  .gallery--mixed, .gallery--vertical { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { padding: 28px 24px 40px; order: 1; }
  .portrait { min-height: 54vh; order: 0; }
  .portrait__rig { width: min(100%, 420px); }
  .work, .exp, .about, .contact, .overlay__body { padding-left: 24px; padding-right: 24px; }
  .work { padding-top: 80px; }
  .work__head, .exp__head, .about, .exp__panel, .about__edu {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 5.5rem); }
  .contact { min-height: 100svh; padding-top: 100px; }
  .overlay__bar { padding-left: 24px; padding-right: 24px; }
  .hub__door { grid-template-columns: 1fr; min-height: 0; }
  .hub__door-viz { height: 200px; order: -1; }
  .hub__door-copy { background: var(--ink); padding: 22px 22px 24px; }
  .hub__stack { inset: 16px 16px 0 16px; transform: rotateY(-8deg) rotateX(3deg); }
  .view__feature { grid-template-columns: 1fr 1fr; height: 200px; }
  .view__feature img:last-child { display: none; }
  .gallery--video-h { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero__stats { gap: 16px; }
  .badge { width: 124px; left: 48%; top: 55%; }
  .badge__face img { height: 64px; }
  .badge__face strong { font-size: 0.86rem; }
  .gallery--vertical, .gallery--mixed, .gallery--cases { grid-template-columns: repeat(2, 1fr); }
  .folders { grid-template-columns: 1fr; }
  .hub__name { font-size: clamp(1.8rem, 10vw, 2.4rem); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .overlay.is-enter, .overlay.is-leave,
  .overlay__body.is-view-in, .overlay__body.is-view-out { animation: none; }
  .hub__stack, .portrait__rig { transform: none !important; }
    .work, .exp, .about { transform: none !important; }
  .mesh__blob { animation: none !important; }
  .loader__half { transition: opacity 400ms ease !important; }
  .loader.is-done .loader__half { transform: none !important; opacity: 0; }
  .reveal__fx { display: none !important; }
  .stat__arc { transition: none !important; }
}

#work, #experience, #about, #contact, #hero { scroll-margin-top: 72px; }

/* keep 3D scroll planes from widening the mobile layout viewport */
main { overflow-x: clip; }
/* graphics show whole (posters and logos are never cropped) */
.gallery--mixed .item__frame img { object-fit: contain; }
.lite__stage.is-long { place-items: stretch center; }
.lite__scroll { width: min(1200px, 100%); height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; background: #000; }
.lite__scroll img { display: block; width: 100%; height: auto; }
.stat__num.is-long { font-size: clamp(1.2rem, 2vw, 1.75rem); letter-spacing: -0.05em; }

/* app screens: full size, side by side, panel scrolls */
.lite__stage.is-screens { place-items: stretch center; }
.lite__screens { width: min(1440px, 100%); display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 28px; padding: 28px; background: #0b0b0c; }
.lite__screens img { width: var(--sw, 393px); max-width: calc(50% - 14px); height: auto; flex: none; border-radius: 6px; }
@media (max-width: 640px) {
  .lite__screens { gap: 14px; padding: 14px; }
  .lite__screens img { max-width: 100%; width: min(var(--sw, 393px), 100%); }
}

/* two headline stats: a balanced pair, rings a little larger */
.stats--n2 .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats--n2 .stat { padding: 34px 24px 30px; }
.stats--n2 .stat__ring { width: min(180px, 100%); }
.stats--n2 .stat__num { font-size: clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 640px) {
  .stats--n2 .stat { padding: 26px 14px 22px; }
  .stats--n2 .stat__ring { width: min(140px, 100%); }
  .stats--n2 .stat__num { font-size: 1.6rem; }
}

/* wide pages (brand guides): one per row, up to the panel width */
.lite__screens.is-wide img { max-width: 100%; border-radius: 4px; }

/* ===== v2.3 round ===== */

/* no visible scrollbars anywhere on the site; wheel, trackpad and touch still scroll.
   Website live previews are iframes (their own documents), so they keep their scrollbar. */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
.overlay__body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* hero: silhouette by default, the real photo opens in a circle from the cursor */
.reveal { outline: none; cursor: default; -webkit-tap-highlight-color: transparent; }
.reveal:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; }
.reveal img { user-select: none; -webkit-user-drag: none; }
.reveal__sil { z-index: 1; transition: opacity 500ms var(--ease-out); }
.reveal__photo {
  z-index: 2;
  clip-path: circle(0% at var(--rx, 50%) var(--ry, 28%));
  transition: clip-path 760ms var(--ease-out);
}
.reveal.is-photo .reveal__photo { clip-path: circle(150% at var(--rx, 50%) var(--ry, 28%)); }
.reveal.is-photo .reveal__sil { opacity: 0; transition-delay: 160ms; }
.reveal__hint {
  position: absolute; z-index: 3; left: 50%; top: 9%; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  color: var(--white); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  pointer-events: none; transition: opacity 300ms var(--ease-out);
}
.reveal.is-photo .reveal__hint { opacity: 0; }
.reveal__hint-touch { display: none; }
.reveal.is-touch .reveal__hint-fine { display: none; }
.reveal.is-touch .reveal__hint-touch { display: inline; }

/* hero years: number + plus, sitting a little higher */
.hero__stats { margin-top: 30px; }
.hero__stats strong { line-height: 1; }

/* skill brief years: 8+ */
.brief { align-items: start; }
.brief__years { margin-top: -10px; }
.brief__years strong b { font-weight: inherit; }
.brief__years strong i { font-style: normal; margin-left: 0.02em; }

/* socials: brand icon + label */
.soc { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.soc li { display: block; }
.soc .soc__link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 11px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  color: var(--white); text-decoration: none; font-size: var(--small); font-weight: 600; letter-spacing: -0.01em;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.soc .soc__link svg { width: 18px; height: 18px; flex: none; fill: var(--brand, #fff); }
.soc .soc__link:hover { background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px var(--brand, #fff); transform: translateY(-1px); border: 0; }
.soc .soc__link:active { transform: translateY(0); }
.contact__socials.soc .soc__link { background: rgba(0,0,0,0.24); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
.contact__socials.soc .soc__link:hover { background: rgba(0,0,0,0.36); }
.socials--big { gap: 12px; }
.socials--big .soc__link { padding: 12px 20px 12px 15px; font-size: 0.95rem; }
.socials--big .soc__link svg { width: 22px; height: 22px; }

/* content folders: sample count on top, socials at the bottom */
.samples-tag {
  display: inline-flex; align-items: baseline; gap: 6px; margin: 0 0 16px !important;
  padding: 6px 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 55%, transparent);
  color: #cfe0ff !important; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.samples-tag b { color: var(--white); font-size: 0.9rem; letter-spacing: 0; }
.more {
  margin-top: 64px; padding: 36px 36px 38px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 60%), var(--ink);
}
.more__kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px !important; }
.more__title { font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.12; max-width: 30ch; margin-bottom: 24px; }
@media (max-width: 640px) { .more { padding: 26px 20px 28px; } }

/* experience: sticky stacking cards; each new card pops up over the previous one */
.exp__list.is-stack { max-width: 980px; padding-bottom: 6vh; }
.exp__list.is-stack > li {
  position: sticky;
  top: calc(var(--nav-h) + 22px + min(var(--i, 0), 6) * 10px);
  margin-bottom: 18vh;
  will-change: transform;
}
.exp__list.is-stack > li:last-child { margin-bottom: 0; }
.exp__list.is-stack .exp__panel {
  position: relative; border: 1px solid var(--line); border-radius: 22px;
  padding: 38px 42px 36px;
  background: linear-gradient(160deg, #15161a 0%, #0d0d0f 60%);
  box-shadow: 0 -18px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  will-change: transform, filter;
}
.exp__list.is-stack .exp__panel::after {
  content: attr(data-n); position: absolute; right: 24px; top: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums;
}
@media (max-width: 959px) {
  .exp__list.is-stack > li { top: calc(var(--nav-h) + 12px + min(var(--i, 0), 6) * 6px); margin-bottom: 14vh; }
  .exp__list.is-stack .exp__panel { padding: 26px 22px 24px; border-radius: 18px; gap: 6px; }
  .exp__list.is-stack .exp__panel::after { right: 18px; top: 16px; }
}

/* about: copy starts level with the top of the photo; years sit high, right under the title */
.about { align-items: start; }
.about__copy { display: flex; flex-direction: column; }
.about__copy h2 { margin-top: -0.08em; }
.about__years {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 22px 0 6px; background: var(--line); border: 1px solid var(--line);
}
.about__years li { background: var(--black); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.about__years strong { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--blue); }
.about__years span { font-size: var(--small); color: var(--muted); line-height: 1.3; }
@media (max-width: 640px) {
  .about__years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .about { align-items: stretch; }
  .about__photo { align-self: stretch; min-height: 100%; position: relative; }
  .about__photo picture, .about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .about__photo img { object-fit: cover; object-position: 50% 18%; }
}
@media (max-width: 959px) {
  .reveal__hint { top: auto; bottom: 14%; }
}

/* hero years visible on load, bigger numbers (14 Nov) */
@media (min-width: 801px) {
  .hero__copy { padding-top: calc(var(--nav-h) + 3vh); padding-bottom: 4vh; }
  .hero h1 { font-size: min(var(--display), 17vh); }
  .hero__lead { margin-top: 2.2vh; }
  .hero__actions { margin-top: 2.6vh; }
  .hero__stats { margin-top: 3.2vh; gap: 36px; }
}
.hero__stats strong { font-size: clamp(2.25rem, 3.4vw, 3rem); }
.hero__stats span { font-size: 0.9rem; }
@media (min-width: 801px) {
  .hero h1 { font-size: min(var(--display), 14.5vh); }
  .hero__copy { padding-top: calc(var(--nav-h) + 1vh); padding-bottom: 2vh; }
}
@media (min-width: 801px) and (max-height: 780px) {
  .hero__lead { font-size: 1rem; margin-top: 1.6vh; }
  .hero__actions { margin-top: 2vh; }
  .hero__stats { margin-top: 2.4vh; }
}
@media (min-width: 801px) {
  .hero__copy { align-self: start; padding-top: calc(var(--nav-h) + 10vh); }
}
@media (min-width: 801px) and (max-height: 780px) {
  .hero__copy { padding-top: calc(var(--nav-h) + 6vh); }
}

/* iOS Safari: overflow-x:hidden on body breaks position:sticky, so use clip */
html, body { overflow-x: clip; }

/* mobile skill frames: 3D lift + cover parallax (driven by GSAP on max-width 800px) */
@media (max-width: 800px) {
  .hub { perspective: 1600px; perspective-origin: 50% 30%; }
  .hub__door { will-change: transform, opacity; }
  .hub__shot { will-change: transform; }
  .folders { perspective: 1400px; }
  .folder-card { transform-style: preserve-3d; will-change: transform, opacity; }
  .folder-card__cover img { will-change: transform; }
}

/* Reduce Motion: keep skill frames static on desktop only; phones keep the scroll lift. */
@media (prefers-reduced-motion: reduce) and (min-width: 801px) {
  .hub__door, .hub__shot, .folder-card, .folder-card__cover img { transform: none !important; }
}

/* Logo: Space K S monogram, white on blue */
.nav__mark { width: 32px; height: 32px; border-radius: 9px; }
.nav__mark img { width: 68%; height: 68%; object-fit: contain; display: block; }

@media (prefers-reduced-motion: reduce) {
  .badge__card { transition-duration: 900ms !important; }
  .badge__pin { transition-duration: 500ms !important; }
}

/* Badge: both faces share one grid cell so the card always fits the longest role; keep roles on one line */
.badge__card { display: grid; }
.badge__face { grid-area: 1 / 1; min-width: 0; }
.badge__face.is-back { position: relative; inset: auto; }
.badge__face strong { white-space: nowrap; }
@media (max-width: 640px) {
  .badge { width: 138px; }
  .badge__face strong { font-size: 0.84rem; }
}
