/* ═══════════════════════════════════════════════════════════════
   HAMZA — Portfolio design system
   Ivory + light pastels · curve UI · pixel frames · butter easing
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* palette — ivory & light */
  --ivory: #FFFDF4;
  --cream: #FAF5E9;
  --paper: #FFFFFF;
  --ink: #26262E;
  --ink-2: #3A3A46;
  --soft: #64646F;
  --faint: #97979F;

  --mint: #CFF2E5;
  --mint-deep: #6ED2B2;
  --mint-ink: #0E7A5F;
  --lav: #E9E3FF;
  --lav-deep: #B3A4FF;
  --peach: #FFE7D6;
  --peach-deep: #FFB18C;
  --sky: #DDEEFF;
  --sky-deep: #9CC8FF;
  --lemon: #FFF4C9;
  --err: #E8574A;

  --line: #ECE4CF;
  --line-2: #E0D6BC;

  /* radii & curves */
  --r-s: 14px;
  --r-m: 22px;
  --r-l: 34px;
  --r-xl: 52px;
  --blob-1: 62% 38% 55% 45% / 48% 60% 40% 52%;
  --blob-2: 44% 56% 62% 38% / 56% 44% 56% 44%;

  /* motion — the butter */
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --e-in-out: cubic-bezier(.65, 0, .35, 1);

  --shadow-s: 0 2px 10px rgba(38, 38, 46, .05);
  --shadow-m: 0 18px 44px -20px rgba(38, 38, 46, .25);
  --shadow-l: 0 36px 80px -34px rgba(38, 38, 46, .4);

  --nav-h: 78px;
  --hex-w: 196px;
}

/* ── reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button { cursor: pointer; }

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

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }

h1 { font-size: clamp(42px, 6.4vw, 78px); }
h2 { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font-size: clamp(19px, 2vw, 23px); }

h1 em, h2 em, .hero__name em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

h2 em, h1 em {
  background: linear-gradient(100deg, var(--mint-deep), var(--lav-deep) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { position: relative; padding: 110px 0; }
.section--cream { background: var(--cream); }

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.container--narrow { width: min(820px, calc(100% - 44px)); }

.section__head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 58px;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  max-width: none;
}

.section__sub { color: var(--soft); margin-top: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  padding: 9px 15px;
  border-radius: 999px;
  box-shadow: var(--shadow-s);
  margin-bottom: 20px;
}

.eyebrow--light {
  background: rgba(255, 253, 244, .08);
  border-color: rgba(255, 253, 244, .25);
  color: var(--ivory);
  box-shadow: none;
}

.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--soft); line-height: 1.7; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-deep);
  position: relative;
  flex: none;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--mint-deep);
  animation: pulse 1.8s var(--e-out) infinite;
}

@keyframes pulse {
  0% { transform: scale(.5); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

.chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--cream);
  border: 1.5px solid var(--line-2);
  color: var(--ink-2);
  padding: 7px 11px;
  border-radius: 999px;
}

.chip--solid { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}

.tag--light { background: rgba(255, 253, 244, .12); border-color: rgba(255, 253, 244, .3); color: rgba(255, 253, 244, .9); }

/* ── buttons ───────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .01em;
  padding: 16px 30px;
  border-radius: 999px;
  overflow: hidden;
  transition: transform .45s var(--e-out), box-shadow .45s var(--e-out),
              background .35s var(--e-out), color .35s var(--e-out),
              border-color .35s var(--e-out);
  will-change: transform;
  isolation: isolate;
}

.btn span, .btn svg { position: relative; z-index: 1; }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .8s var(--e-out);
}

.btn:hover::after { transform: translateX(110%); }

.btn:active { transform: scale(.97) !important; }

.btn--solid {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 14px 30px -16px rgba(38, 38, 46, .7);
}

.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -18px rgba(38, 38, 46, .75); }

.btn--ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-3px); }

.btn--ivory { background: var(--ivory); color: var(--ink); }
.btn--ivory:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); }

.btn--line { border: 2px solid rgba(255, 253, 244, .35); color: var(--ivory); }
.btn--line:hover { border-color: var(--ivory); transform: translateY(-3px); }

.btn--small { padding: 11px 20px; font-size: 14px; }

/* ── loader ────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ivory);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity .5s steps(7, end), visibility .5s;
}

.loader.is-done { opacity: 0; visibility: hidden; }

/* floating pixel dust */
.loader__dust { position: absolute; inset: 0; pointer-events: none; }

.loader__dust i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  background: var(--c);
  opacity: .55;
  animation: dustFloat 3.4s steps(8) infinite;
  animation-delay: var(--d);
}

.loader__dust i:nth-child(3n) { width: 7px; height: 7px; }
.loader__dust i:nth-child(4n) { width: 13px; height: 13px; opacity: .35; }

@keyframes dustFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .3; }
  50% { transform: translateY(-26px) rotate(90deg); opacity: .75; }
}

.loader__inner { position: relative; display: grid; justify-items: center; gap: 22px; width: min(320px, 80vw); }

.loader__mark {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background: var(--ink);
  display: grid;
  place-items: center;
  animation: loaderMark 1.6s var(--e-spring) infinite;
  box-shadow: var(--shadow-m);
  transition: background .3s;
}

.loader__mark span {
  font-family: 'Press Start 2P', monospace;
  font-size: 30px;
  color: var(--mint-deep);
  transition: color .3s;
}

/* corner pixel sparks */
.loader__mark::before,
.loader__mark::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--lav-deep);
  animation: sparkBlink 1s steps(2) infinite;
}

.loader__mark::before { top: -7px; right: -7px; }
.loader__mark::after { bottom: -7px; left: -7px; background: var(--peach-deep); animation-delay: .5s; }

@keyframes sparkBlink {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

.loader.is-ready .loader__mark { background: var(--mint-ink); }
.loader.is-ready .loader__mark span { color: var(--ivory); }

@keyframes loaderMark {
  0%, 100% { transform: rotate(-4deg) scale(1); border-radius: 20px; }
  50% { transform: rotate(4deg) scale(1.05); border-radius: 34px; }
}

/* track = runner + bar + milestone steps */
.loader__track { position: relative; width: 100%; padding-top: 46px; }

.loader__runner {
  position: absolute;
  top: 6px;
  left: var(--p, 0%);
  transform: translateX(-50%);
  transition: left .2s var(--e-out);
  filter: drop-shadow(0 3px 0 rgba(38, 38, 46, .14));
}

.loader__runner svg { display: block; animation: runnerBob .3s steps(2) infinite; }

@keyframes runnerBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* alternating walk frames */
.wl--a { animation: legA .3s steps(1) infinite; }
.wl--b { opacity: 0; animation: legB .3s steps(1) infinite; }

@keyframes legA { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes legB { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

.loader__bar {
  width: 100%;
  height: 10px;
  background: var(--cream);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}

.loader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background-image: linear-gradient(90deg, var(--mint-deep), var(--lav-deep), var(--mint-deep));
  background-size: 200% 100%;
  animation: loaderSheen 1.1s linear infinite;
  transition: width .18s var(--e-out);
}

@keyframes loaderSheen {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

/* milestone diamonds below the bar */
.loader__steps {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 9px);
  height: 8px;
}

.loader__steps i {
  position: absolute;
  top: 1px;
  width: 7px;
  height: 7px;
  background: var(--line-2);
  transform: translateX(-50%) rotate(45deg);
  transition: background .25s, transform .35s var(--e-spring);
}

.loader__steps i.is-on {
  background: var(--mint-deep);
  transform: translateX(-50%) rotate(45deg) scale(1.35);
}

.loader__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--soft);
}

.loader__label { color: var(--faint); transition: color .3s; }
.loader__label::after { content: '_'; animation: loaderBlink .7s steps(1) infinite; }
.loader.is-ready .loader__label { color: var(--mint-ink); }

@keyframes loaderBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── cursor ────────────────────────────────────────────────── */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 990;
    pointer-events: none;
  }

  .cursor__dot, .cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .cursor__dot {
    width: 7px;
    height: 7px;
    background: var(--ink);
    transition: opacity .3s;
  }

  .cursor__ring {
    width: 36px;
    height: 36px;
    border: 1.6px solid rgba(38, 38, 46, .45);
    transition: width .35s var(--e-out), height .35s var(--e-out),
                background .35s var(--e-out), border-color .35s var(--e-out),
                opacity .3s;
  }

  .cursor.is-hover .cursor__ring {
    width: 58px;
    height: 58px;
    background: rgba(110, 210, 178, .18);
    border-color: var(--mint-deep);
  }

  .cursor.is-down .cursor__ring { width: 26px; height: 26px; }
}

/* ── scroll progress ───────────────────────────────────────── */
.scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 320;
  pointer-events: none;
}

.scrollbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mint-deep), var(--lav-deep), var(--peach-deep));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 18px;
}

.skip-link:focus { left: 12px; top: 12px; }

/* ── nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 240; /* above fullscreen mobile menu so the close button stays tappable */
  padding: 14px 0;
  transition: padding .5s var(--e-out);
}

.nav__inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 9px 9px 16px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background .5s var(--e-out), border-color .5s var(--e-out),
              box-shadow .5s var(--e-out), backdrop-filter .5s;
}

.nav.is-scrolled { padding: 8px 0; }

.nav.is-scrolled .nav__inner {
  background: rgba(255, 253, 244, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: var(--shadow-m);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.nav__logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--mint-deep);
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: transform .5s var(--e-spring), border-radius .5s var(--e-out);
}

.nav__logo:hover .nav__logo-mark { transform: rotate(-8deg) scale(1.06); border-radius: 50%; }

.nav__logo-text { font-size: 19px; letter-spacing: -.02em; }
.nav__logo-text em { font-style: normal; color: var(--peach-deep); }

.nav__links { display: flex; gap: 6px; }

.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-2);
  padding: 9px 15px;
  border-radius: 999px;
  transition: color .3s, background .3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--mint-deep);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--e-out);
}

.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 230;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2.4px;
  border-radius: 2px;
  background: var(--ivory);
  transition: transform .45s var(--e-out), top .45s var(--e-out), opacity .3s;
}

.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }

.burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ── mobile menu ───────────────────────────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.menu__bg {
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: translateY(-100%);
  transition: transform .6s var(--e-in-out);
}

.menu__nav {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(40px, 10vw, 66px);
  font-weight: 800;
  letter-spacing: -.03em;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(46px);
  transition: opacity .55s var(--e-out), transform .55s var(--e-out),
              color .3s;
  transition-delay: 0s;
}

.menu__link:hover, .menu__link.is-active { color: var(--mint-ink); }

.menu__num {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--peach-deep);
}

.menu__foot {
  margin-top: 34px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .55s var(--e-out), transform .55s var(--e-out);
}

.menu__mail { font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--mint-deep); }

.menu__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--soft);
}

.menu.is-open { visibility: visible; pointer-events: auto; }
.menu.is-open .menu__bg { transform: translateY(0); }

.menu.is-open .menu__link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(.12s + var(--i) * .07s);
}

.menu.is-open .menu__foot {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(.2s + var(--i) * .07s);
}

/* ── toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 400;
  transform: translate(-50%, 160%);
  background: var(--ink);
  color: var(--ivory);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow-l);
  opacity: 0;
  transition: transform .6s var(--e-spring), opacity .4s;
  max-width: min(560px, calc(100vw - 40px));
  text-align: center;
  pointer-events: none;
}

.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.toast--warn { background: #8A4B2B; }
.toast--err { background: var(--err); }

/* ── blobs & dividers ──────────────────────────────────────── */
.hero__blobs, .page-hero__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: var(--blob-1);
  opacity: .55;
  animation: morph 15s ease-in-out infinite alternate;
}

.blob--mint { width: 360px; height: 320px; background: var(--mint); top: -60px; left: -80px; }
.blob--lav { width: 300px; height: 280px; background: var(--lav); top: 30px; right: -70px; animation-delay: -5s; animation-duration: 17s; }
.blob--peach { width: 240px; height: 230px; background: var(--peach); bottom: 90px; left: 36%; animation-delay: -9s; }
.blob--sky { width: 280px; height: 260px; background: var(--sky); bottom: 40px; right: 12%; animation-delay: -3s; }
.blob--lemon { width: 220px; height: 210px; background: var(--lemon); top: 90px; left: 12%; animation-delay: -7s; }

@keyframes morph {
  0% { border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%; transform: translate(0, 0) rotate(0deg); }
  50% { border-radius: 44% 56% 38% 62% / 56% 44% 60% 40%; transform: translate(18px, -16px) rotate(7deg); }
  100% { border-radius: 55% 45% 62% 38% / 42% 58% 46% 54%; transform: translate(-14px, 12px) rotate(-6deg); }
}

.divider { position: absolute; left: 0; right: 0; line-height: 0; pointer-events: none; }
.divider svg { width: 100%; height: 100%; display: block; }
.divider--hero { bottom: -1px; height: 92px; z-index: 3; }
.divider--hero path { fill: var(--ivory); }
.divider--top { top: -79px; height: 80px; }
.divider--bottom { bottom: -79px; height: 80px; }
.divider--top path, .divider--bottom path { fill: var(--cream); }

  /* image shimmer — smooth placeholder until each picture decodes */
  .frame__inner img, .atable__thumb img, .media-card__preview img,
  .img-preview img, .side-card__avatar img, .hero__portrait img {
    background-image: linear-gradient(100deg, var(--cream) 32%, #FFFFFF 50%, var(--cream) 68%);
    background-size: 220% 100%;
    animation: imgShimmer 1.25s linear infinite;
  }

  img.is-loaded {
    animation: none !important;
    background-image: none !important;
  }

  @keyframes imgShimmer {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
  }

  /* ── reveal ────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .95s var(--e-out) var(--d, 0s), transform .95s var(--e-out) var(--d, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ── hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 150px;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 40px;
  align-items: center;
}

.hero__title { margin: 6px 0 8px; }

.hero__line { display: block; font-size: clamp(26px, 3vw, 40px); font-weight: 600; color: var(--soft); letter-spacing: -.02em; }

.hero__name {
  display: inline-block;
  font-size: clamp(58px, 9vw, 116px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
  position: relative;
  background: linear-gradient(120deg, var(--ink) 55%, var(--ink-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__underline {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 24px;
  overflow: visible;
}

.hero__underline path {
  stroke: var(--mint-deep);
  stroke-dasharray: 430;
  stroke-dashoffset: 430;
  transition: stroke-dashoffset 1.4s var(--e-out) .5s;
}

body.is-ready .hero__underline path { stroke-dashoffset: 0; }

.hero__role {
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--mint-ink);
  margin-bottom: 12px;
}

.hero__intro { color: var(--soft); max-width: 50ch; font-size: 17px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero__chip {
  font-family: 'Press Start 2P', monospace;
  font-size: 8.5px;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  padding: 9px 12px;
  box-shadow: var(--shadow-s);
  transition: transform .4s var(--e-spring);
}

.hero__chip:hover { transform: translateY(-4px) rotate(-2deg); }

.hero__art { position: relative; display: grid; place-items: center; }

.hero__portrait { position: relative; width: min(430px, 88%); }

.age-badge {
  position: absolute;
  right: -6px;
  bottom: 6px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--lemon), var(--peach));
  border: 3px solid var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: var(--shadow-m);
  animation: badgeBob 4.5s var(--e-in-out) infinite;
}

.age-badge__ring {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 2px dashed rgba(38, 38, 46, .55);
  animation: spin 14s linear infinite;
}

.age-badge__num {
  font-family: 'Press Start 2P', monospace;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}

.age-badge__tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--ink-2);
  margin-top: 5px;
}

@keyframes badgeBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero__float {
  position: absolute;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 4;
}

.hero__float--1 { top: 12%; left: -4%; animation: floaty 5.5s var(--e-in-out) infinite; color: var(--mint-ink); }
.hero__float--2 { bottom: 10%; left: -8%; animation: floaty 6.5s var(--e-in-out) infinite reverse; color: var(--lav-deep); }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2.5deg); }
}

.hero__land {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  z-index: 1;
  pointer-events: none;
}

.hero__land img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  opacity: .92;
  -webkit-mask-image: linear-gradient(to top, #000 48%, transparent 98%);
  mask-image: linear-gradient(to top, #000 48%, transparent 98%);
}

/* ── marquee ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  background: var(--paper);
  padding: 15px 0;
  position: relative;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  font-family: 'Press Start 2P', monospace;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-2);
  white-space: nowrap;
  padding-right: 12px;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ── scroll-scrub video ────────────────────────────────────── */
.scrub {
  position: relative;
  height: 340vh;
}

.scrub__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scrub__head { text-align: center; margin-bottom: 34px; }
.scrub__hint { color: var(--soft); margin-top: 12px; }

.scrub__frame {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-l), 10px 10px 0 rgba(38, 38, 46, .08);
}

.frame-screen__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  padding: 11px 16px;
}

.frame-screen__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--err);
}

.frame-screen__bar span:nth-child(2) { background: var(--lemon); }
.frame-screen__bar span:nth-child(3) { background: var(--mint-deep); }

.frame-screen__bar em {
  font-family: 'Press Start 2P', monospace;
  font-style: normal;
  font-size: 8.5px;
  color: rgba(255, 253, 244, .66);
  margin-left: 10px;
}

.frame-screen__stage { position: relative; background: var(--cream); }

.frame-screen__stage video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.scrub__captions { position: absolute; left: 16px; right: 16px; bottom: 16px; }

.scrub__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-block;
  max-width: min(560px, 92%);
  background: rgba(38, 38, 46, .9);
  color: var(--ivory);
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.3vw, 10.5px);
  line-height: 1.8;
  padding: 13px 17px;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--e-out), transform .5s var(--e-out);
}

.scrub__cap b { color: var(--mint-deep); font-weight: 400; }
.scrub__cap.is-live { opacity: 1; transform: translateY(0); }

.scrub__cue {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--ivory);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 13px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: opacity .5s;
}

.scrub__cue svg { animation: cueBob 1.5s var(--e-in-out) infinite; }
.scrub__cue.is-hidden { opacity: 0; }

@keyframes cueBob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

.scrub__bar { height: 7px; background: var(--cream); border-top: 2px solid var(--ink); }

.scrub__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint-deep), var(--lav-deep));
}

/* ── frames: diamond / hex / arch / circle / pixel ─────────── */
.frame { position: relative; display: block; }

.frame__inner {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.frame__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--e-out);
}

.frame:hover .frame__inner img { transform: scale(1.07); }

.frame__facet {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* cut diamond */
.frame--diamond .frame__inner {
  aspect-ratio: 1;
  clip-path: polygon(50% 0%, 92% 13%, 100% 50%, 92% 87%, 50% 100%, 8% 87%, 0% 50%, 8% 13%);
}

.frame--diamond {
  filter:
    drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink))
    drop-shadow(0 2.5px 0 var(--ink)) drop-shadow(0 -2.5px 0 var(--ink));
}

.frame--diamond .frame__facet {
  background:
    linear-gradient(58deg, transparent 49.5%, rgba(255, 255, 255, .5) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(-58deg, transparent 49.5%, rgba(255, 255, 255, .5) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, transparent 34%);
  opacity: .9;
  mix-blend-mode: soft-light;
}

/* honeycomb hex */
.frame--hex .frame__inner {
  aspect-ratio: 1 / 1.12;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.frame--hex {
  filter:
    drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink))
    drop-shadow(0 2.5px 0 var(--ink)) drop-shadow(0 -2.5px 0 var(--ink));
}

.frame--hex .frame__facet {
  background: linear-gradient(170deg, rgba(255, 255, 255, .4) 0%, transparent 40%);
  mix-blend-mode: soft-light;
}

/* arch */
.frame--arch .frame__inner {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 26px 26px / 36% 36% 26px 26px;
  box-shadow: 0 0 0 3px var(--ink);
}

.frame--arch { padding: 0; }

/* circle */
.frame--circle .frame__inner {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ink);
}

.frame--circle::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed var(--line-2);
  transition: transform .9s var(--e-out);
}

.frame--circle:hover::before { transform: rotate(40deg); }

/* pixel corners */
.frame--pixel .frame__inner {
  aspect-ratio: 1;
  clip-path: polygon(
    14px 0, calc(100% - 14px) 0,
    calc(100% - 14px) 5px, calc(100% - 5px) 5px, calc(100% - 5px) 14px, 100% 14px,
    100% calc(100% - 14px), calc(100% - 5px) calc(100% - 14px),
    calc(100% - 5px) calc(100% - 5px), calc(100% - 14px) calc(100% - 5px),
    calc(100% - 14px) 100%, 14px 100%,
    14px calc(100% - 5px), 5px calc(100% - 5px),
    5px calc(100% - 14px), 0 calc(100% - 14px),
    0 14px, 5px 14px, 5px 5px, 14px 5px
  );
}

.frame--pixel {
  filter:
    drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink))
    drop-shadow(0 2.5px 0 var(--ink)) drop-shadow(0 -2.5px 0 var(--ink));
}

.frame--pixel .frame__facet {
  background: linear-gradient(145deg, rgba(255, 255, 255, .35) 0%, transparent 38%);
  mix-blend-mode: soft-light;
}

.frame--wide .frame__inner { aspect-ratio: 16 / 11; }

.frame--lg .frame__inner { width: 100%; }

/* ── about preview ─────────────────────────────────────────── */
.about-preview__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.about-preview__media { position: relative; max-width: 440px; }

.about-preview__sticker {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: var(--ink);
  color: var(--lemon);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(38, 38, 46, .2);
  transform: rotate(-6deg);
}

.about-preview__copy h2 { margin-bottom: 18px; }
.about-preview__bio { margin-top: 16px; color: var(--soft); display: grid; gap: 12px; }
.about-preview__copy .btn { margin-top: 26px; }

/* stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 5vw, 74px);
  margin-top: 84px;
  padding: 44px 26px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-s);
}

.stat { text-align: center; }

.stat__value {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--ink);
  letter-spacing: -.02em;
}

.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--soft);
}

/* ── honeycomb skills ──────────────────────────────────────── */
.honeycomb {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 0 10px;
}

.honeycomb__row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.honeycomb__row + .honeycomb__row { margin-top: -46px; }

.honeycomb__row.is-offset { transform: translateX(calc((var(--hex-w) + 14px) / 2)); }

.hex {
  position: relative;
  width: var(--hex-w);
  aspect-ratio: 1 / 1.13;
  /* clip-path lives on .hex__inner so these drop-shadow outlines survive */
  filter:
    drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink))
    drop-shadow(0 2.5px 0 var(--ink)) drop-shadow(0 -2.5px 0 var(--ink));
}

.hex__inner {
  position: absolute;
  inset: 0;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background-color: var(--paper);
  background-image: linear-gradient(180deg, var(--mint) 0%, var(--lav) 100%);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 18px 26px;
  transition: background-size .85s var(--e-out);
}

.hex__fill { display: none; }

.hex:hover .hex__inner {
  background-size: 100% calc(var(--lvl, .8) * 100%);
}

.hex__level {
  font-weight: 800;
  font-size: 33px;
  letter-spacing: -.03em;
  line-height: 1;
}

.hex__level i { font-style: normal; font-size: 16px; color: var(--mint-ink); }

.hex__name {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hex__group { font-size: 12px; font-weight: 600; color: var(--soft); }

/* ── services ──────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-l);
  padding: 30px 26px 34px;
  overflow: hidden;
  transition: transform .55s var(--e-out), box-shadow .55s var(--e-out), border-color .4s;
}

.service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-m);
  border-color: var(--line-2);
}

.service__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--mint);
  color: var(--mint-ink);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform .55s var(--e-spring), background .4s, color .4s;
}

.service:nth-child(2) .service__icon { background: var(--lav); color: #5B4BC4; }
.service:nth-child(3) .service__icon { background: var(--peach); color: #C4662E; }
.service:nth-child(4) .service__icon { background: var(--sky); color: #3D7BD9; }

.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); }

.service__icon svg { width: 26px; height: 26px; }

.service h3 { margin-bottom: 10px; }
.service p { color: var(--soft); font-size: 15px; }

.service__no {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--faint);
}

/* ── project cards ─────────────────────────────────────────── */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3.4vw, 44px);
}

.work__grid .pcard:nth-child(even) { margin-top: 54px; }

.pcard__link { display: grid; gap: 20px; align-content: start; }

.pcard .frame { transition: transform .6s var(--e-out); }

.pcard:hover .frame { transform: translateY(-10px) rotate(-1.6deg); }

.pcard__body { display: grid; gap: 10px; justify-items: start; }

.pcard__body h3 { transition: color .3s; }
.pcard:hover .pcard__body h3 { color: var(--mint-ink); }

.pcard__body p { color: var(--soft); font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }

.pcard__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8.5px;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--ink);
  padding-bottom: 4px;
  background-image: linear-gradient(90deg, var(--mint-deep), var(--mint-deep));
  background-repeat: no-repeat;
  background-size: 0% 2.5px;
  background-position: 0 100%;
  transition: background-size .5s var(--e-out), color .3s;
}

.pcard:hover .pcard__more { background-size: 100% 2.5px; }
.pcard__more svg { transition: transform .45s var(--e-out); }
.pcard:hover .pcard__more svg { transform: translateX(5px); }

/* projects page grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.6vw, 48px);
}

.projects-grid .pcard {
  transition: opacity .45s var(--e-out), transform .45s var(--e-out);
}

.projects-grid .pcard:nth-child(3n + 2) { margin-top: 46px; }
.projects-grid .pcard.is-out { display: none; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 52px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14.5px;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 11px 19px;
  transition: background .35s var(--e-out), color .35s var(--e-out),
              border-color .35s, transform .35s var(--e-out);
}

.filter span {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  background: var(--cream);
  border-radius: 999px;
  padding: 5px 7px;
  color: var(--soft);
}

.filter:hover { transform: translateY(-2px); border-color: var(--ink); }

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.filter.is-active span { background: rgba(255, 253, 244, .16); color: var(--ivory); }

.empty {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  color: var(--soft);
}

.empty .frame { width: min(260px, 70vw); }
.empty a { color: var(--mint-ink); font-weight: 700; border-bottom: 2px solid var(--mint-deep); }

/* ── timeline ──────────────────────────────────────────────── */
.timeline { position: relative; max-width: 940px; margin: 30px auto 0; }

.timeline__rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.timeline__rail i {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, var(--mint-deep), var(--lav-deep), var(--peach-deep));
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .18s linear;
}

.tl {
  position: relative;
  width: 50%;
  padding: 16px 52px 34px;
  box-sizing: border-box;
}

.tl--left { left: 0; text-align: right; }
.tl--right { left: 50%; }

.tl__node {
  position: absolute;
  top: 32px;
  width: 17px;
  height: 17px;
  background: var(--ink);
  border: 3.5px solid var(--ivory);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2.5px var(--ink);
  z-index: 2;
}

.tl--left .tl__node { right: -10px; }
.tl--right .tl__node { left: -10px; }

.tl__card {
  display: inline-block;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px 24px;
  box-shadow: var(--shadow-s);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out);
}

.tl__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }

.tl__year {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  background: var(--mint);
  color: var(--mint-ink);
  border: 1.5px solid var(--mint-deep);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tl__card h3 { font-size: 19px; margin-bottom: 7px; }
.tl__card p { color: var(--soft); font-size: 14.5px; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { display: grid; gap: 14px; }

.faq__item {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s;
}

.faq__item.is-open { border-color: var(--ink); box-shadow: var(--shadow-m); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font-weight: 700;
  font-size: 16.5px;
  padding: 21px 24px;
}

.faq__q i {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--line-2);
  transition: transform .5s var(--e-out), background .4s;
}

.faq__q i::before, .faq__q i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2.4px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--e-out);
}

.faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item.is-open .faq__q i { background: var(--mint); transform: rotate(180deg); }
.faq__item.is-open .faq__q i::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--e-in-out);
}

.faq__a p { padding: 0 24px 22px; color: var(--soft); }

/* ── CTA ───────────────────────────────────────────────────── */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--r-xl);
  padding: clamp(54px, 7vw, 92px) clamp(24px, 5vw, 70px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta h2 { color: var(--ivory); }
.cta h2 em { background: linear-gradient(100deg, var(--mint-deep), var(--lav-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cta__sub { color: rgba(255, 253, 244, .72); margin: 18px auto 0; max-width: 46ch; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.cta__blob { position: absolute; border-radius: var(--blob-2); opacity: .16; z-index: -1; }
.cta__blob--1 { width: 320px; height: 300px; background: var(--mint-deep); top: -80px; left: -60px; animation: morph 16s ease-in-out infinite alternate; }
.cta__blob--2 { width: 280px; height: 260px; background: var(--lav-deep); bottom: -70px; right: -50px; animation: morph 13s ease-in-out infinite alternate-reverse; }

/* ── footer ───────────────────────────────────────────────── */
.footer {
  position: relative;
  margin-top: 130px;
  background: var(--ink);
  color: rgba(255, 253, 244, .78);
}

.footer__curve {
  position: absolute;
  top: -88px;
  left: 0;
  right: 0;
  height: 90px;
  line-height: 0;
}

.footer__curve svg { width: 100%; height: 100%; }
.footer__curve path { fill: var(--ink); }

/* availability strip */
.footer__strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 16px clamp(18px, 4vw, 44px);
  transition: background .35s var(--e-out);
}

.footer__strip:hover { background: #BEEEDD; }

.footer__strip-l { display: inline-flex; align-items: center; gap: 10px; }
.footer__strip-r { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.footer__strip-r svg { transition: transform .4s var(--e-out); }
.footer__strip:hover .footer__strip-r svg { transform: translateX(6px); }

.footer__body { padding: 58px 0 30px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr 1.2fr;
  gap: 40px;
}

.footer .nav__logo-mark { background: var(--mint-deep); color: var(--ink); }
.footer .nav__logo-text { color: var(--ivory); }

.footer__tag { margin-top: 18px; max-width: 34ch; font-size: 15px; }

.footer__wave {
  width: min(212px, 74%);
  margin-top: 22px;
  background: var(--ivory);
  border: 2.5px solid var(--ivory);
  border-radius: 20px;
  overflow: hidden;
  transform: rotate(-2.5deg);
  box-shadow: 0 26px 55px -22px rgba(0, 0, 0, .65);
  transition: transform .55s var(--e-out);
}

.footer__wave:hover { transform: rotate(0deg) scale(1.04); }

.footer__wave .frame-screen__stage video {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--mint-deep);
}

.footer__col { display: grid; gap: 11px; align-content: start; }

.footer__col h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--lemon);
  margin-bottom: 8px;
  font-weight: 400;
}

.footer__col a {
  font-size: 15px;
  width: fit-content;
  transition: color .3s, transform .35s var(--e-out);
}

.footer__col a:hover { color: var(--mint-deep); transform: translateX(5px); }

.footer__mail {
  font-weight: 800;
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--ivory) !important;
  border-bottom: 2.5px solid var(--mint-deep);
  padding-bottom: 3px;
  width: fit-content;
  transition: color .3s, border-color .3s;
}

.footer__mail:hover { color: var(--mint-deep) !important; border-color: var(--lemon); }

.footer__meta { font-size: 14px; margin-top: 6px; color: rgba(255, 253, 244, .55); }

.footer__local {
  font-size: 13.5px;
  margin-top: 14px;
  color: rgba(255, 253, 244, .45);
}

.footer__local span { color: var(--peach-deep); font-weight: 700; }

/* giant kinetic wordmark */
.kinetic {
  overflow: hidden;
  margin-top: 54px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 253, 244, .13);
  border-bottom: 1px solid rgba(255, 253, 244, .13);
  user-select: none;
}

.kinetic__track {
  display: flex;
  width: max-content;
  animation: kinetic 34s linear infinite;
}

.kinetic:hover .kinetic__track { animation-play-state: paused; }

.kinetic__track span {
  font-size: clamp(56px, 9.5vw, 128px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
  padding-right: .35em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 253, 244, .3);
  transition: -webkit-text-stroke-color .45s;
}

.kinetic:hover .kinetic__track span { -webkit-text-stroke-color: rgba(110, 210, 178, .8); }

@keyframes kinetic { to { transform: translateX(-50%); } }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  font-size: 13.5px;
  color: rgba(255, 253, 244, .5);
}

.footer__stack { font-family: 'Press Start 2P', monospace; font-size: 7.5px; color: rgba(255, 253, 244, .38); }

.to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform .5s var(--e-spring), background .3s;
}

.to-top:hover { transform: translateY(-6px); background: var(--mint-deep); }

/* ── page hero (inner pages) ───────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 58px) 0 128px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream), var(--ivory));
  isolation: isolate;
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 16ch; }
.page-hero__sub { color: var(--soft); font-size: clamp(16px, 1.6vw, 18.5px); margin-top: 16px; max-width: 56ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8.5px;
  color: var(--faint);
  margin-bottom: 22px;
}

.crumbs a:hover { color: var(--mint-ink); }
.crumbs em { font-style: normal; color: var(--mint-ink); }

.page-hero__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

/* ── project detail ────────────────────────────────────────── */
.project-detail__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 5vw, 66px);
  align-items: start;
}

.project-detail__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.fact {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  padding: 15px 16px;
}

.fact span {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 7.5px;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fact b { font-size: 14.5px; font-weight: 700; }

.project-detail__copy { display: grid; gap: 18px; align-content: start; }
.project-detail__copy p { color: var(--soft); }
.project-detail__copy .lead { color: var(--ink); font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; }

.project-detail__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 10px; }

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 74px;
  padding-top: 34px;
  border-top: 1.5px dashed var(--line-2);
}

.project-nav__item {
  display: grid;
  gap: 7px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  min-width: min(260px, 44%);
  transition: transform .45s var(--e-out), box-shadow .45s var(--e-out), border-color .3s;
}

.project-nav__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--ink); }
.project-nav__item--next { text-align: right; }

.project-nav__item span {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--faint);
  text-transform: uppercase;
}

.project-nav__item b { font-size: 17.5px; }

/* ── contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 30px;
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-m);
}

.contact-card__head { margin-bottom: 26px; }

.alert {
  border-radius: var(--r-s);
  padding: 15px 18px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 22px;
}

.alert--ok { background: var(--mint); border: 1.5px solid var(--mint-deep); color: var(--mint-ink); }

.form { display: grid; gap: 18px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: grid; gap: 8px; }

.field > span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .01em;
}

.field input, .field textarea {
  width: 100%;
  background: var(--ivory);
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  padding: 14.5px 17px;
  font-size: 15.5px;
  transition: border-color .35s var(--e-out), box-shadow .35s var(--e-out), background .35s;
  outline: none;
  resize: vertical;
}

.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.field input:focus, .field textarea:focus {
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(110, 210, 178, .35);
}

.field.is-err input, .field.is-err textarea {
  border-color: var(--err);
  box-shadow: 0 0 0 4px rgba(232, 87, 74, .16);
  animation: shake .45s var(--e-out);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.field__err {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--err);
  min-height: 0;
}

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form__hint { font-size: 13.5px; color: var(--faint); }

.form__status {
  font-weight: 700;
  font-size: 15px;
  color: var(--mint-ink);
  display: none;
}

.form__status.is-show { display: block; animation: rise .5s var(--e-out); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-side { display: grid; gap: 18px; }

.side-card {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-l);
  padding: 26px;
}

.side-card h3 { font-size: 21px; }
.side-card h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 8.5px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  margin: 16px 0 8px;
}

.side-card h4:first-child { margin-top: 0; }
.side-card a { font-weight: 700; color: var(--mint-ink); }
.side-card a:hover { text-decoration: underline; }
.side-card p { color: var(--soft); font-size: 15px; }

.side-card:first-child {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
}

.side-card__avatar { width: 78px; flex: none; }
.side-card__avatar .frame__inner { border-radius: 50%; }

.side-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--mint-ink) !important;
  font-weight: 600;
}

.side-card__links { display: flex; flex-wrap: wrap; gap: 9px; }

.side-card__links a {
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13.5px;
  color: var(--ink-2) !important;
  transition: transform .4s var(--e-out), background .3s, color .3s;
}

.side-card__links a:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: var(--ivory) !important;
  text-decoration: none;
}

.side-card--pixel { padding: 0; overflow: hidden; text-align: center; }
.side-card--pixel img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center 30%; }
.side-card--pixel p { padding: 18px 22px 22px; font-weight: 600; font-style: italic; }

/* ── 404 ───────────────────────────────────────────────────── */
.notfound { padding-top: calc(var(--nav-h) + 70px); min-height: 74vh; display: grid; align-content: center; }
.notfound__frame { width: min(250px, 64vw); margin: 0 auto 30px; }
.notfound .lead { margin: 16px 0 26px; }

/* ── about story ───────────────────────────────────────────── */
.about-story__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.about-story__stack { position: relative; max-width: 460px; }

.about-story__video {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: min(210px, 54%);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-m);
  transform: rotate(3deg);
  transition: transform .55s var(--e-out);
}

.about-story__video:hover { transform: rotate(0deg) scale(1.03); }
.about-story__video .frame-screen__stage video { aspect-ratio: 1; height: auto; }
.frame-screen--mini .frame-screen__bar { padding: 8px 11px; }
.frame-screen--mini .frame-screen__bar span { width: 8px; height: 8px; }
.frame-screen--mini .frame-screen__bar em { font-size: 6.5px; }

.about-story__sticker {
  position: absolute;
  top: -18px;
  left: -16px;
  background: var(--lemon);
  border: 2.5px solid var(--ink);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-8deg);
  z-index: 3;
  animation: badgeBob 5s var(--e-in-out) infinite;
}

.about-story__copy h2 { margin-bottom: 20px; }
.about-story__copy .lead + .lead { margin-top: 14px; }

.fun { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }

.fun__chip {
  font-size: 13.5px;
  font-weight: 600;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 14px;
  transition: transform .4s var(--e-spring), background .3s;
}

.fun__chip:nth-child(3n+1):hover { background: var(--mint); transform: translateY(-3px) rotate(-2deg); }
.fun__chip:nth-child(3n+2):hover { background: var(--lav); transform: translateY(-3px) rotate(2deg); }
.fun__chip:nth-child(3n):hover { background: var(--peach); transform: translateY(-3px) rotate(-1deg); }

.about-story__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

/* ── skill bars ────────────────────────────────────────────── */
.skillbars { display: grid; gap: 26px; }

.skillbar { display: grid; gap: 9px; }

.skillbar__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.skillbar__name { font-weight: 700; font-size: 16.5px; }

.skillbar__val {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--mint-ink);
}

.skillbar__track {
  height: 13px;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}

.skillbar__track i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-deep), var(--lav-deep));
  transition: width 1.4s var(--e-out);
  position: relative;
}

.skillbar__track i.is-in { width: calc(var(--lvl, 0) * 1%); }

.skillbar__group { font-size: 12.5px; color: var(--faint); font-weight: 600; }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: grid; justify-items: center; }
  .hero__intro { margin-inline: auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__art { order: -1; margin-top: 10px; }
  .hero__portrait { width: min(330px, 76%); }
  .hero__land { height: 190px; }

  .work__grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid .pcard:nth-child(even), .projects-grid .pcard:nth-child(3n + 2) { margin-top: 0; }
  .projects-grid .pcard:nth-child(even) { margin-top: 42px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview__grid, .about-story__grid, .project-detail__grid { grid-template-columns: 1fr; }
  .about-preview__media, .about-story__stack { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }

  .timeline__rail { left: 12px; }
  .tl { width: 100%; left: 0 !important; text-align: left; padding: 12px 0 30px 44px; }
  .tl__node { left: 4px !important; right: auto !important; top: 26px; }
  .tl--left { text-align: left; }

  .section { padding: 84px 0; }
  .scrub { height: 300vh; }
  .honeycomb__row.is-offset { transform: none; }
  .honeycomb__row + .honeycomb__row { margin-top: -40px; }

  .section__head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .container, .container--narrow { width: calc(100% - 32px); }

  .hero { padding-top: calc(var(--nav-h) + 34px); padding-bottom: 120px; }
  .hero__float { display: none; }
  .age-badge { width: 78px; height: 78px; right: 0; }
  .age-badge__num { font-size: 22px; }

  .section { padding: 68px 0; }
  .section__head { margin-bottom: 40px; }

  .marquee__track span { font-size: 9px; }

  .scrub { height: 270vh; }
  .scrub__head { margin-bottom: 20px; }
  .scrub__frame { border-radius: 20px; }
  .scrub__cue { top: 8px; right: 8px; padding: 6px 10px; }

  .work__grid, .projects-grid, .services__grid, .form__row { grid-template-columns: 1fr; }
  .projects-grid .pcard:nth-child(even) { margin-top: 0; }

  .stats { margin-top: 54px; padding: 30px 18px; gap: 26px 34px; }
  .stat { min-width: 38%; }

  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }

  :root { --hex-w: 158px; }
  .honeycomb__row { gap: 10px; }
  .honeycomb__row + .honeycomb__row { margin-top: -36px; }
  .hex__level { font-size: 26px; }
  .hex__inner { padding: 12px 18px; gap: 5px; }
  .hex__name { font-size: 6.5px; }

  .project-detail__facts { grid-template-columns: 1fr; }
  .project-nav { flex-direction: column; }
  .project-nav__item { min-width: 0; }

  .about-story__video { right: -6px; bottom: -26px; }

  .footer { margin-top: 96px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }

  .cta { border-radius: var(--r-l); }
  .cursor { display: none !important; }
}

/* ── reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
