/* ─────────────────────────────────────────────────────
   AURORA WU · ANIMATION FOLIO 2026
   Illustrated Cover Style · Demo-E Production Build
───────────────────────────────────────────────────── */

:root {
  /* Palette — drawn from Serendipity desert tones */
  --sand-pale:  #fef3dc;
  --sand:       #f3d9b0;
  --sand-deep:  #ecbf85;
  --paper:      #fbeacb;
  --rust:       #c8351f;
  --rust-deep:  #8e2010;
  --amber:      #f0a940;
  --amber-deep: #d68821;
  --teal:       #2b8a7e;
  --teal-pale:  #8ec5be;
  --ink:        #3a2818;
  --ink-soft:   #5a3f2a;
  --ink-fade:   rgba(58,40,24,0.55);

  /* Type */
  --f-script:   'Caveat Brush', cursive;
  --f-hand:     'Caveat', cursive;
  --f-serif:    'Fraunces', serif;
  --f-body:     'Inter', sans-serif;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }
strong { font-weight: 600; }

/* ─── DECOR ─────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── CUSTOM CURSOR — Bow & Arrow ───────────────────── */
.cursor {
  position: fixed;
  width: 48px; height: 48px;
  z-index: 999;
  pointer-events: none;
  /* Anchor at arrowhead tip so it points toward what you're aiming at */
  transform: translate(-90%, -50%);
  transition: transform 0.12s ease;
  filter: drop-shadow(2px 3px 0 rgba(58,40,24,0.4));
  will-change: transform, left, top;
}
.cursor svg { display: block; width: 100%; height: 100%; }
.cursor-ring {
  position: fixed;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(200,53,31,0.6);
  z-index: 998;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width 0.25s, height 0.25s, opacity 0.25s, border-color 0.25s;
  opacity: 0.7;
}
body:not(:hover) .cursor,
body:not(:hover) .cursor-ring { opacity: 0; }

/* ─── CONTAINER ─────────────────────────────────────── */
.container { width: 90%; max-width: 1180px; margin-inline: auto; }
.section { padding: 120px 0; position: relative; }

/* ─── REVEAL ANIMATIONS ────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-pop {
  opacity: 0;
  transform: scale(0.85) rotate(-2deg);
  transition: opacity 0.85s var(--ease-bounce), transform 0.85s var(--ease-bounce);
}
.reveal-up.visible,
.reveal-pop.visible { opacity: 1; transform: none; }

/* ─── 3D TILT CARDS ────────────────────────────────── */
.tilt-card {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ─── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 5%;
  transition: padding 0.4s, background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(251,234,203,0.92);
  backdrop-filter: blur(14px);
  padding: 12px 5%;
  border-bottom: 2px dashed rgba(58,40,24,0.18);
}
.nav-logo {
  display: flex; align-items: center; gap: 6px;
}
.logo-star {
  font-family: var(--f-script);
  color: var(--rust);
  font-size: 1.4rem;
  display: inline-block;
  animation: spin 8s linear infinite;
}
.logo-name {
  font-family: var(--f-script);
  font-size: 1.55rem;
  color: var(--ink);
  letter-spacing: 0.005em;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 6s linear infinite; }

.nav-links {
  display: flex; gap: 8px; align-items: center;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-family: var(--f-hand); font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink); letter-spacing: 0.01em;
  border-radius: 40px;
  transition: background 0.2s, transform 0.2s;
}
.nav-links a em {
  font-family: var(--f-body); font-style: normal;
  font-size: 0.55rem; vertical-align: super;
  color: var(--rust); margin-left: 2px; letter-spacing: 0.1em;
}
.nav-links a:hover {
  background: var(--rust); color: var(--sand-pale);
  transform: translateY(-2px) rotate(-1deg);
}
.nav-links a:hover em { color: var(--amber); }
.nav-cta {
  background: var(--ink) !important;
  color: var(--sand-pale) !important;
  padding: 10px 20px !important;
  box-shadow: 3px 3px 0 var(--rust);
}
.nav-cta:hover {
  background: var(--rust) !important;
  box-shadow: 5px 5px 0 var(--ink) !important;
  transform: translate(-2px,-2px) !important;
}

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s; }

.mobile-menu {
  position: fixed; top: 0; right: 0;
  width: min(320px, 85vw); height: 100vh;
  background: var(--sand-pale);
  z-index: 99;
  display: flex; flex-direction: column; justify-content: center;
  gap: 24px; padding: 48px;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-out);
  border-left: 4px dashed var(--rust);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--f-script);
  font-size: 2.2rem; color: var(--ink);
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #f5d9b0, #ecbf85);
}
.hero-bg {
  position: absolute; inset: -10% -2% -2% -2%;
  z-index: 1;
  will-change: transform;
}
.hero-bg img {
  width: 100%; height: 110%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(circle at 50% 40%, rgba(0,0,0,0.15) 0%, rgba(58,40,24,0.32) 100%),
    linear-gradient(180deg, rgba(58,40,24,0.18) 0%, transparent 30%, transparent 65%, rgba(251,234,203,0.95) 100%);
}

/* Falling petals field — populated by JS */
.petal-field {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -8%;
  font-family: var(--f-script);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
  user-select: none;
  will-change: transform;
  animation: petalFall linear infinite, petalSway ease-in-out infinite alternate;
}
.petal.p-amber { color: var(--amber); }
.petal.p-coral { color: #ff6b5b; }
.petal.p-cream { color: var(--sand-pale); }
.petal.p-pink  { color: #ff9eae; }
.petal.p-rust  { color: var(--rust); }
@keyframes petalFall {
  0%   { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); }
}
@keyframes petalSway {
  0%   { margin-left: -30px; }
  100% { margin-left: 30px; }
}

/* Floating hero decorations */
.hero-deco {
  position: absolute;
  font-family: var(--f-script);
  color: var(--amber);
  z-index: 4;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  animation: floatRotate 6s ease-in-out infinite;
}
.hero-deco.d1 { top: 16%;  left: 8%;  font-size: 2.2rem; animation-duration: 7s; }
.hero-deco.d2 { top: 22%;  right: 12%; font-size: 1.8rem; color: var(--rust); animation-duration: 5s; animation-delay: 0.5s; }
.hero-deco.d3 { top: 60%;  left: 14%; font-size: 2.6rem; color: var(--sand-pale); animation-duration: 8s; animation-delay: 1s; }
.hero-deco.d4 { top: 70%;  right: 18%; font-size: 1.6rem; animation-duration: 6s; animation-delay: 1.5s; }
.hero-deco.d5 { top: 38%;  right: 28%; font-size: 1.2rem; color: var(--sand-pale); animation-duration: 4s; animation-delay: 2s; }
@keyframes floatRotate {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-12px) rotate(15deg); }
}
.hero-top {
  position: absolute; top: 26px; left: 5%; right: 5%;
  display: flex; justify-content: space-between;
  z-index: 6;
  color: var(--sand-pale);
  font-family: var(--f-hand); font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  padding-top: 32px;
}
.hero-top .right { display: flex; align-items: center; gap: 8px; }

.hero-content {
  position: relative; z-index: 5;
  padding: 16vh 5% 14vh;
  max-width: 760px;
  margin: 0 auto 0 5%;
  text-align: left;
}

/* ─── HERO CHARACTER ───────────────────────────────── */
.hero-character {
  /* Sit inside the hero, anchored to its bottom edge.
     The hero element scrolls naturally — character scrolls with it,
     so her feet are ALWAYS glued to the hero/marquee boundary. */
  position: absolute;
  bottom: 0;
  right: 4%;
  width: clamp(280px, 32vw, 520px);
  height: 92vh;             /* tall enough for headroom even when scaled */
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform;
  transform-origin: 50% 100%; /* scale grows up from her feet */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-character-img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  object-position: bottom;
  /* Lighter shadow for better perf — only 2 drop-shadows instead of 3 */
  filter:
    drop-shadow(-2px 4px 0 rgba(58,40,24,0.35))
    drop-shadow(0 24px 32px rgba(58,40,24,0.4));
  user-select: none;
  -webkit-user-drag: none;
}

/* Static ground shadow — no animation */
.hero-character-shadow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 60%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(58,40,24,0.4) 0%, transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

/* Decorative tag — sits to the LEFT of the character at chest height */
.hero-character::after {
  content: '✦ from Serendipity';
  position: absolute;
  top: 32%;
  right: 100%;
  margin-right: -8px;       /* slight inward overlap with the character's outline */
  transform: rotate(-10deg);
  transform-origin: right center;
  font-family: var(--f-script);
  font-size: 1rem;
  color: var(--sand-pale);
  background: var(--rust);
  padding: 4px 16px;
  border-radius: 40px;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: tagPop 0.8s ease-out 1.2s forwards;
}
@keyframes tagPop {
  0%   { opacity: 0; transform: rotate(-10deg) scale(0.4); }
  60%  { transform: rotate(-10deg) scale(1.15); }
  100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}
.title-kicker {
  font-family: var(--f-hand); font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--rust);
  margin-bottom: -8px;
  display: inline-block;
  transform: rotate(-3deg);
}
.wobble {
  display: inline-block;
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.title-main {
  font-family: var(--f-script);
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 0.85;
  letter-spacing: 0.005em;
  color: var(--sand-pale);
  text-shadow:
    8px 8px 0 var(--ink),
    -2px -2px 0 var(--ink),
    2px -2px 0 var(--ink),
    -2px 2px 0 var(--ink),
    2px 2px 0 var(--ink);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}
.title-line {
  display: block;
  position: relative;
  transition: transform 0.6s var(--ease-out);
}
.title-line:hover { transform: scale(1.04) rotate(-2deg); }
.title-line.accent {
  color: var(--amber);
  margin-left: 5%;
}
/* Single-word "Aurora" hero — no indent, larger */
.title-main.single { margin-bottom: 28px; }
.title-main.single .title-line {
  margin-left: 0;
  font-size: clamp(5.5rem, 17vw, 15rem);
}
.title-year {
  font-family: var(--f-script);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--rust);
  margin-top: -8px;
  margin-left: 16%;
  text-shadow:
    4px 4px 0 var(--ink),
    -1.5px -1.5px 0 var(--ink),
    1.5px -1.5px 0 var(--ink),
    -1.5px 1.5px 0 var(--ink),
    1.5px 1.5px 0 var(--ink);
}
.star-rot { display: inline-block; animation: spin 5s linear infinite; }

.hero-tags {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.tag-pill {
  font-family: var(--f-hand); font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  background: var(--ink); color: var(--sand-pale);
  border-radius: 40px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--rust);
  transition: transform 0.3s var(--ease-bounce);
}
.tag-pill:hover { transform: translate(-2px,-2px) rotate(-2deg); box-shadow: 5px 5px 0 var(--rust); }

.scroll-down {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--f-hand); font-weight: 700;
  font-size: 0.95rem; color: var(--ink);
}
.scroll-down .arrow { animation: bounce 1.8s ease-in-out infinite; font-size: 1.3rem; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ─── MARQUEE ──────────────────────────────────────── */
.marquee {
  background: var(--ink);
  color: var(--sand-pale);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  border-top: 4px solid var(--rust);
  border-bottom: 4px solid var(--rust);
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.marquee-track {
  display: flex; gap: 24px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  font-family: var(--f-script);
  font-size: 1.4rem;
  align-items: center;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-track span:not(.dot) { flex-shrink: 0; }
.marquee-track .dot { color: var(--amber); font-size: 0.9rem; flex-shrink: 0; }

/* ─── SECTION HEADERS ──────────────────────────────── */
.section-header {
  margin-bottom: 60px;
  text-align: left;
}
.section-pill {
  display: inline-block;
  font-family: var(--f-script);
  background: var(--ink); color: var(--sand-pale);
  font-size: 1.2rem;
  padding: 6px 20px;
  border-radius: 40px;
  margin-bottom: 18px;
  box-shadow: 3px 3px 0 var(--amber);
  transform: rotate(-1.5deg);
}
.section-pill.light {
  background: var(--sand-pale); color: var(--ink); box-shadow: 3px 3px 0 var(--rust);
}
.section-title {
  font-family: var(--f-script);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.005em;
  position: relative;
  display: inline-block;
}
.section-title .hl, .section-title em {
  color: var(--rust);
  font-style: normal;
}
.title-underline {
  display: block;
  width: 70%;
  height: 10px;
  margin-top: 6px;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.8s var(--ease-out) 0.3s;
}
.title-underline path {
  stroke: var(--rust);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}
.reveal-up.visible + .title-underline,
.section-title.in-view .title-underline { stroke-dashoffset: 0; }

/* ─── ABOUT ────────────────────────────────────────── */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
}
.avatar-wrap {
  position: relative;
  width: 280px; height: 280px;
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--sand-pale);
  box-shadow:
    0 0 0 6px var(--rust),
    8px 8px 0 var(--ink),
    0 20px 50px rgba(58,40,24,0.25);
  background: var(--ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-badge {
  position: absolute; top: -16px; left: -24px;
  font-family: var(--f-script); font-size: 1.6rem;
  color: var(--rust);
  transform: rotate(-15deg);
  white-space: nowrap;
  z-index: 3;
}
.avatar-deco {
  position: absolute;
  font-family: var(--f-script);
  font-size: 1.8rem;
  color: var(--amber);
  animation: spin 6s linear infinite;
}
.avatar-deco.s1 { bottom: 0; right: -10px; color: var(--rust); animation-duration: 8s; }
.avatar-deco.s2 { top: 30%; right: -28px; color: var(--teal); animation-duration: 4s; }
.avatar-deco.s3 { bottom: 30%; left: -28px; color: var(--amber); animation-duration: 7s; animation-direction: reverse; }

.about-text { max-width: 720px; }
.greeting {
  font-family: var(--f-hand); font-weight: 700;
  font-size: 2rem; color: var(--rust);
  margin-bottom: 8px;
}
.about-text h2 {
  font-family: var(--f-script);
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 24px;
}
.about-text h2 .me {
  color: var(--amber);
  display: inline-block;
  transform: rotate(-3deg);
  margin-left: 6px;
}
.about-text h2 .exc { color: var(--rust); }
.bio {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.bio strong { color: var(--rust); font-weight: 600; }
.bio em {
  font-family: var(--f-hand); font-style: normal; font-weight: 700;
  color: var(--ink); font-size: 1.15em;
}

.bio-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
  max-width: 480px;
}
.stat {
  padding: 18px 14px;
  background: var(--sand-pale);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--f-script);
  font-size: 2.6rem;
  color: var(--rust);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--f-hand); font-weight: 700;
  font-size: 0.95rem; color: var(--ink);
}

.ribbon {
  display: inline-block;
  background: var(--ink); color: var(--sand-pale);
  font-family: var(--f-script);
  font-size: 1.4rem;
  padding: 6px 22px;
  margin-top: 18px;
  transform: rotate(-1.5deg);
  box-shadow: 4px 4px 0 var(--amber);
  border-radius: 6px;
}

/* ─── CAPSTONE ─────────────────────────────────────── */
.capstone {
  background: linear-gradient(180deg, var(--paper), var(--sand) 100%);
  position: relative;
  overflow: hidden;
}
.capstone::before {
  content: '✦ ✿ ★ ✦ ✿ ★ ✦ ✿ ★ ✦ ✿ ★ ✦ ✿ ★ ✦';
  position: absolute; top: 16px; left: 0; right: 0;
  font-family: var(--f-script); font-size: 0.9rem;
  color: rgba(200,53,31,0.15);
  text-align: center;
  letter-spacing: 1em;
}
.capstone-hero {
  width: 100%;
  aspect-ratio: 16/8;
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--rust);
  position: relative;
  margin-bottom: 48px;
  background: #000;
}
.capstone-hero img { width: 100%; height: 100%; object-fit: cover; }
.img-corner {
  position: absolute; top: 18px; right: 18px;
  background: var(--ink); color: var(--sand-pale);
  font-family: var(--f-script);
  font-size: 1.1rem;
  padding: 6px 18px;
  border-radius: 40px;
  transform: rotate(2deg);
  box-shadow: 3px 3px 0 var(--amber);
}

.capstone-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}
.capstone-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.capstone-desc em {
  font-family: var(--f-hand); font-style: normal; font-weight: 700;
  color: var(--rust); font-size: 1.1em;
}
.capstone-desc strong { color: var(--ink); font-weight: 600; }
.capstone-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.t-pill {
  font-family: var(--f-hand); font-weight: 700;
  background: var(--sand-pale);
  border: 2px solid var(--ink);
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 0.95rem;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.2s;
}
.t-pill:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }

.capstone-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.info-card {
  background: var(--sand-pale);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.info-tag {
  display: block;
  font-family: var(--f-script);
  color: var(--rust);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.info-val {
  font-family: var(--f-hand); font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}

.capstone-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--rust);
  background: var(--sand-pale);
}
.cap-tile img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
}
.tile-label {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink); color: var(--sand-pale);
  font-family: var(--f-script);
  font-size: 1rem;
  padding: 4px 14px;
  border-radius: 40px;
  white-space: nowrap;
}

/* ─── SKILLS ───────────────────────────────────────── */
.skills {
  background: var(--paper);
}
.skill-cat {
  margin: 32px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px dashed var(--rust);
  display: flex; align-items: baseline; gap: 20px;
}
.skill-cat:first-of-type { margin-top: 0; }
.cat-label {
  font-family: var(--f-script);
  color: var(--rust);
  font-size: 1.3rem;
}
.cat-name {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
}
.skills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.skill-card {
  background: var(--sand-pale);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 22px 14px 18px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
}
.sk-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  color: #fff;
  font-family: var(--f-body); font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.s-maya { background: linear-gradient(135deg, #0696d7, #003c5a); }
.s-zb   { background: linear-gradient(135deg, #ce432e, #821b0d); }
.s-bl   { background: linear-gradient(135deg, #ea7600, #6e3000); }
.s-py   { background: linear-gradient(135deg, #3776ab, #ffd43b); color: #003366; }
.s-ps   { background: linear-gradient(135deg, #31a8ff, #001e36); }
.s-ai   { background: linear-gradient(135deg, #ff9a00, #330000); }
.s-mj   { background: linear-gradient(135deg, #000, #444); }
.s-sd   { background: linear-gradient(135deg, #a259ff, #210052); }
.s-sub  { background: linear-gradient(135deg, #f15a24, #6b1900); }
.s-ue   { background: linear-gradient(135deg, #0e1128, #313ba0); }
.s-rs   { background: linear-gradient(135deg, #d70022, #7a0014); }
.s-ae   { background: linear-gradient(135deg, #9999ff, #00005b); }
.s-pr   { background: linear-gradient(135deg, #ea77ff, #2a0033); }

.sk-name {
  font-family: var(--f-serif); font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.sk-detail {
  font-family: var(--f-hand); font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-fade);
  margin-top: 2px;
}

.skill-tags {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 8px;
}
.big-tag {
  font-family: var(--f-script);
  font-size: 1.5rem;
  color: var(--ink);
  background: var(--sand-pale);
  padding: 8px 22px;
  border: 3px solid var(--ink);
  border-radius: 40px;
  box-shadow: 4px 4px 0 var(--rust);
  transition: transform 0.25s var(--ease-bounce);
}
.big-tag:hover {
  transform: translate(-2px,-2px) rotate(-2deg);
  box-shadow: 6px 6px 0 var(--rust);
  background: var(--amber);
}
.big-tag:nth-child(2n):hover { transform: translate(-2px,-2px) rotate(2deg); }

/* ─── WORK ─────────────────────────────────────────── */
.work {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
}
.work-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
  padding: 40px;
  background: var(--sand-pale);
  border: 4px solid var(--ink);
  border-radius: 24px;
  box-shadow: 10px 10px 0 var(--rust);
  position: relative;
}
.work-card.alt { grid-template-columns: 1fr 1.2fr; box-shadow: -10px 10px 0 var(--amber); }

.work-media {
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: #000;
}
.work-media video, .work-media img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; display: block;
}
.work-media.polaroid {
  background: var(--sand-pale);
  padding: 14px 14px 38px;
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 0.4s var(--ease-bounce);
}
.work-card.alt .work-media.polaroid { transform: rotate(1.5deg); }
.work-media.polaroid:hover { transform: rotate(0) scale(1.02); }
.work-media.polaroid::after {
  content: '✦ a moment ✦';
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-script);
  color: var(--ink-fade);
  font-size: 0.95rem;
}
.work-media.polaroid img { aspect-ratio: 4/3; border-radius: 6px; }

.work-num {
  font-family: var(--f-script);
  font-size: 2.5rem;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 6px;
}
.work-cat {
  font-family: var(--f-hand); font-weight: 700;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.work-title {
  font-family: var(--f-script);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
}
.work-desc {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.work-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.work-tags span {
  font-family: var(--f-hand); font-weight: 700;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 0.9rem;
}

/* ─── Rigging Demo custom poster ───────────────── */
.rigging-video {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: #000;
}
.rigging-video video {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.rigging-poster {
  position: absolute; inset: 0;
  z-index: 5;
  border: none; background: none; padding: 0; margin: 0;
  cursor: none;
  display: flex;
  align-items: stretch;
  background: radial-gradient(ellipse at 30% 50%, #1c1208 0%, #0a0604 70%, #000 100%);
  transition: opacity 0.4s ease;
}
.rigging-poster.hidden { opacity: 0; pointer-events: none; }
.rigging-poster::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 75% 50%, rgba(240,169,64,0.18) 0%, transparent 50%),
    radial-gradient(circle at 25% 80%, rgba(200,53,31,0.12) 0%, transparent 45%);
  pointer-events: none;
}
.rigging-poster-char {
  position: absolute;
  right: 3%;
  top: 4%;
  bottom: 4%;
  width: auto;
  max-width: 42%;
  height: 92%;
  object-fit: contain;
  object-position: center;   /* center the full character so head + feet both visible */
  filter:
    drop-shadow(0 0 30px rgba(240,169,64,0.25))
    drop-shadow(-4px 6px 0 rgba(0,0,0,0.4));
}
.rigging-poster-text {
  position: relative;
  z-index: 2;
  padding: 8% 8% 8% 7%;
  text-align: left;
  color: var(--sand-pale);
  align-self: center;
  max-width: 60%;
}
.rigging-poster-eyebrow {
  font-family: var(--f-hand);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 10px;
}
.rigging-poster-title {
  font-family: var(--f-script);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 0.95;
  color: var(--sand-pale);
  letter-spacing: 0.01em;
  text-shadow:
    4px 4px 0 #000,
    -1.5px -1.5px 0 var(--rust),
    1.5px -1.5px 0 var(--rust),
    -1.5px 1.5px 0 var(--rust),
    1.5px 1.5px 0 var(--rust);
  margin-bottom: 14px;
}
.rigging-poster-sub {
  font-family: var(--f-hand);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(245,237,216,0.75);
  margin-bottom: 18px;
}
.rigging-poster-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 40px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.rigging-poster:hover .rigging-poster-play {
  transform: translate(-2px, -2px) scale(1.05);
  box-shadow: 5px 5px 0 var(--ink);
}

/* ─── Merged 2D Work — dual project layout ─────────── */
.dual-project {
  display: grid;
  gap: 14px;
  margin: 8px 0 14px;
}
.dual-item {
  padding: 14px 16px;
  background: var(--paper);
  border: 2px dashed rgba(58,40,24,0.25);
  border-radius: 10px;
}
.dual-tag {
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rust);
  margin-bottom: 6px;
}
.dual-item p:last-child {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ─── Card 3 · Locket-only layout (3D perspective wrapper) ─── */
.work-media.story-locket-only {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  perspective: 1200px;        /* 3D depth */
  perspective-origin: 50% 30%; /* viewer looking slightly down */
}

/* THE clickable Merry locket hyperlink — shape follows the image, with 3D */
.story-locket-link {
  position: relative;
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  cursor: none;
  transform-style: preserve-3d;
  /* Idle pendulum swing in 3D — like a real locket dangling */
  animation: locketDangle 5s ease-in-out infinite;
  transform-origin: 50% 8%;   /* pivot at the chain top, like a real hinge */
  transition: filter 0.4s;
  will-change: transform;
}
@keyframes locketDangle {
  0%, 100% { transform: rotateZ(-3deg) rotateY(-8deg) rotateX(2deg); }
  25%      { transform: rotateZ(0deg)  rotateY(0deg)   rotateX(0deg); }
  50%      { transform: rotateZ(3deg)  rotateY(8deg)   rotateX(2deg); }
  75%      { transform: rotateZ(0deg)  rotateY(0deg)   rotateX(0deg); }
}
/* On hover: stop the swing, pop forward in 3D space, glow */
.story-locket-link:hover {
  animation-play-state: paused;
  transform: rotateZ(0deg) rotateY(0deg) rotateX(0deg) translateZ(40px) scale(1.06);
  transition: transform 0.4s var(--ease-bounce), filter 0.4s;
}
.work-media .story-locket-img,
.story-locket-img {
  display: block;
  /* Override default .work-media img rules — locket must show at natural aspect */
  width: 360px !important;     /* explicit larger width */
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: none !important;
  /* Drop-shadow follows the alpha channel — so the shadow ITSELF is locket-shaped, not rectangular */
  filter:
    drop-shadow(3px 8px 0 rgba(58,40,24,0.18))
    drop-shadow(4px 14px 16px rgba(58,40,24,0.32));
  transition: filter 0.4s;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 1024px) {
  .story-locket-img { width: 280px !important; }
}
.story-locket-link:hover .story-locket-img {
  filter:
    drop-shadow(3px 10px 0 rgba(58,40,24,0.22))
    drop-shadow(6px 20px 24px rgba(58,40,24,0.42))
    drop-shadow(0 0 36px rgba(240,169,64,0.7));
}

/* Hover-only hint floats up from below the locket */
.story-locket-hover-hint {
  position: absolute;
  bottom: -36px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  font-family: var(--f-script);
  font-size: 1.2rem;
  color: var(--sand-pale);
  background: var(--rust);
  padding: 4px 18px;
  border-radius: 40px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease-bounce);
}
.story-locket-link:hover .story-locket-hover-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Legacy caption styles removed — locket shape is now the entire CTA */

/* ─── Circular turntable thumbnails ─────────────────── */
.tt-circles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 8px;
}
.tt-circle {
  position: relative;
  background: #000;
  border: 4px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
  cursor: none;
  padding: 0;
  box-shadow: 6px 6px 0 var(--rust);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
  aspect-ratio: 1;
}
.tt-circle:nth-child(2n)   { box-shadow: -6px 6px 0 var(--amber); }
.tt-circle:nth-child(4n-1) { box-shadow: -6px 6px 0 var(--teal);  }
.tt-circle:nth-child(4n)   { box-shadow: 6px 6px 0 var(--rust);   }
.tt-circle:hover {
  transform: translate(-3px, -3px) scale(1.04);
  box-shadow: 9px 9px 0 var(--ink);
  z-index: 5;
}
.tt-circle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  /* Slight zoom so character stays centered in the circle */
  transform: scale(1.15);
}
.tt-circle-label {
  position: absolute;
  bottom: 8%; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--sand-pale);
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 3px 16px;
  border-radius: 40px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 2px 2px 0 var(--rust);
}

/* ─── Old turntable-mini (kept for legacy / mobile fallback) ─── */
.turntable-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.tt-thumb {
  position: relative;
  background: #000;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  cursor: none;
  padding: 0;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.tt-thumb:hover {
  transform: translate(-2px, -2px) scale(1.03);
  box-shadow: 6px 6px 0 var(--ink);
  z-index: 5;
}
.tt-thumb video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #000;
}
.tt-label {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--sand-pale);
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 12px;
  border-radius: 40px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

/* ─── Video Lightbox Modal ─────────────────────────── */
.vb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(10,6,4,0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.vb-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.vb-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
  max-height: 90vh;
}
.vb-video {
  width: auto;
  max-width: 80vw;
  max-height: 80vh;
  border: 4px solid var(--sand-pale);
  border-radius: 8px;
  background: #000;
  box-shadow: 10px 10px 0 var(--rust);
}
.vb-caption {
  font-family: var(--f-script);
  color: var(--sand-pale);
  font-size: 1.4rem;
  text-align: center;
}
.vb-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--sand-pale);
  border: 3px solid var(--sand-pale);
  font-family: var(--f-script);
  font-size: 1.5rem;
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  z-index: 5;
}
.vb-close:hover { transform: rotate(90deg) scale(1.1); }

@media (max-width: 768px) {
  .turntable-mini { grid-template-columns: 1fr 1fr; }
  .rigging-poster-char { max-width: 45%; height: 100%; }
  .rigging-poster-text { max-width: 65%; padding: 6%; }
}
/* Book section label inside thesis card */
.book-section-label {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px dashed rgba(58,40,24,0.2);
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rust);
}
.book-section-label em {
  font-family: var(--f-script);
  font-style: normal;
  color: var(--ink);
  font-size: 1.1em;
}
.book-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.book-mini img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: none;
  transition: transform 0.25s var(--ease-out);
}
.book-mini img:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 5px 5px 0 var(--ink);
}
@media (max-width: 768px) {
  .book-mini { grid-template-columns: repeat(3, 1fr); }
}

/* Thesis "more from series" thumbnail grid */
.thesis-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.thesis-mini img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: none;
  transition: transform 0.25s var(--ease-out);
}
.thesis-mini img:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 5px 5px 0 var(--ink);
}

/* ─── TRADITIONAL ART GALLERY SECTION ──────────────── */
.trad-gallery {
  background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%);
  border-top: 4px dashed rgba(58,40,24,0.15);
  border-bottom: 4px dashed rgba(58,40,24,0.15);
}
.trad-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 720px;
  margin-top: 18px;
  font-family: var(--f-body);
}

.art-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
  padding: 32px 0;
  border-top: 2px dashed rgba(58,40,24,0.18);
}
.art-row:first-of-type { border-top: none; padding-top: 16px; }

.art-row-label {
  position: sticky;
  top: 100px;
}
.art-medium {
  font-family: var(--f-script);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
  position: relative;
}
.art-medium::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  background: var(--rust);
  margin-top: 6px;
  border-radius: 2px;
}
.art-count {
  font-family: var(--f-hand);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.02em;
}

.art-row-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--rust) transparent;
}
.art-row-strip::-webkit-scrollbar { height: 6px; }
.art-row-strip::-webkit-scrollbar-thumb { background: var(--rust); border-radius: 3px; }
.art-row-strip::-webkit-scrollbar-track { background: transparent; }

.art-tile {
  background: var(--sand-pale);
  border: 3px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: none;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}
.art-tile:nth-child(2n) { transform: rotate(-0.8deg); }
.art-tile:nth-child(3n) { transform: rotate(0.8deg); }
.art-tile:hover {
  transform: translate(-3px, -3px) rotate(0deg) scale(1.02);
  box-shadow: 8px 8px 0 var(--ink);
  z-index: 5;
}
.art-tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--paper);
}
.art-tile figcaption {
  padding: 8px 12px 10px;
  font-family: var(--f-hand);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  background: var(--sand-pale);
  border-top: 2px dashed rgba(58,40,24,0.2);
}

@media (max-width: 768px) {
  .art-row { grid-template-columns: 1fr; gap: 16px; }
  .art-row-label { position: static; }
  .thesis-mini { grid-template-columns: repeat(2, 1fr); }
}

/* ─── EXPERIENCE TIMELINE ──────────────────────────── */
.experience { background: var(--paper); }
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 50px;
}
.t-line {
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    180deg,
    var(--rust) 0,
    var(--rust) 10px,
    transparent 10px,
    transparent 18px
  );
}
.t-item {
  position: relative;
  margin-bottom: 32px;
}
.t-dot {
  position: absolute;
  left: -38px; top: 28px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.t-item:nth-child(even) .t-dot { background: var(--rust); }
.t-card {
  background: var(--sand-pale);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
}
.t-year {
  display: inline-block;
  font-family: var(--f-script);
  color: var(--rust);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.t-card h4 {
  font-family: var(--f-serif); font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.t-role {
  font-family: var(--f-hand); font-weight: 700;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.t-desc {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.t-desc em {
  font-family: var(--f-hand); font-style: normal; font-weight: 700;
  color: var(--rust); font-size: 1.1em;
}
.t-desc strong { color: var(--rust); font-weight: 600; }

/* ─── RESUME ───────────────────────────────────────── */
.resume { background: var(--sand); }
.resume-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--ink);
  color: var(--sand-pale);
  padding: 64px;
  border-radius: 24px;
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--rust);
  position: relative;
  overflow: hidden;
}
.r-stamp {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--f-script);
  background: var(--rust); color: var(--sand-pale);
  padding: 6px 22px;
  border-radius: 40px;
  font-size: 1.2rem;
  transform: rotate(3deg);
  box-shadow: 3px 3px 0 var(--amber);
}
.resume-title {
  font-family: var(--f-script);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 18px 0 18px;
}
.resume-title .hl { color: var(--amber); }
.resume-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(254,243,220,0.75);
  margin-bottom: 28px;
  max-width: 480px;
}
.resume-actions {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
.btn-stamp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--ink);
  font-family: var(--f-hand); font-weight: 700;
  font-size: 1.2rem;
  padding: 14px 28px;
  border-radius: 40px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--sand-pale);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.btn-stamp:hover {
  transform: translate(-3px,-3px) rotate(-2deg);
  box-shadow: 8px 8px 0 var(--sand-pale);
}
.btn-link {
  font-family: var(--f-hand); font-weight: 700;
  color: var(--sand-pale);
  font-size: 1.1rem;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px dashed var(--amber);
  padding-bottom: 2px;
  transition: gap 0.3s;
}
.btn-link:hover { gap: 14px; color: var(--amber); }

.r-doc {
  position: relative;
}
.r-doc-paper {
  background: var(--sand-pale);
  border-radius: 8px;
  padding: 32px 26px;
  transform: rotate(-4deg);
  box-shadow:
    -2px 2px 0 rgba(0,0,0,0.1),
    0 30px 60px rgba(0,0,0,0.4);
  position: relative;
  min-height: 360px;
}
.r-doc-row {
  height: 8px;
  background: var(--ink-fade);
  border-radius: 4px;
  margin-bottom: 10px;
  opacity: 0.4;
}
.r-doc-row.long { width: 100%; }
.r-doc-row.med { width: 70%; }
.r-doc-row.short { width: 40%; }
.r-doc-divider {
  height: 2px;
  background: var(--rust);
  margin: 16px 0;
  opacity: 0.5;
}
.r-doc-stamp {
  position: absolute;
  bottom: 16px; right: 12px;
  font-family: var(--f-script);
  color: var(--rust);
  font-size: 1.6rem;
  text-align: right;
  line-height: 1;
  transform: rotate(-12deg);
  border: 3px solid var(--rust);
  padding: 4px 12px;
  border-radius: 8px;
  opacity: 0.7;
}
.r-clip {
  position: absolute;
  top: -18px; right: 30%;
  font-size: 2.4rem;
  transform: rotate(35deg);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* ─── CONTACT ──────────────────────────────────────── */
.contact {
  background: var(--paper);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 140px 0 160px;
}
.contact-inner { position: relative; z-index: 2; }
.contact-title {
  font-family: var(--f-script);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 18px;
}
.contact-title .hl { color: var(--rust); }
.hand-arrow {
  display: inline-block;
  font-family: var(--f-script);
  color: var(--amber);
  font-size: 1.2em;
  animation: wiggle 2s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(15deg); }
}
.contact-sub {
  font-family: var(--f-hand); font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 28px;
  background: var(--sand-pale);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  text-align: left;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.contact-link:hover {
  transform: translate(-3px,-3px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--ink);
}
.contact-link.primary { background: var(--amber); }
.cl-label {
  font-family: var(--f-script);
  color: var(--rust);
  font-size: 1.25rem;
  white-space: nowrap;
}
.cl-val {
  font-family: var(--f-body); font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}

.signature {
  margin-top: 56px;
  font-family: var(--f-script);
  font-size: 2rem;
  color: var(--rust);
  letter-spacing: 0.02em;
}

.big-bg-text {
  position: absolute;
  bottom: -0.1em; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-script);
  font-size: clamp(8rem, 22vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 2px rgba(58,40,24,0.08);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.01em;
  z-index: 1;
}

/* ─── FOOTER ───────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--sand-pale);
  padding: 32px 0;
  border-top: 4px dashed var(--rust);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--f-hand); font-weight: 700;
  font-size: 0.95rem;
}

/* ─── LIGHTBOX ─────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(58,40,24,0.94);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px;
  border: 4px solid var(--sand-pale);
  box-shadow: 10px 10px 0 var(--rust);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: var(--rust); color: var(--sand-pale);
  border: 3px solid var(--sand-pale);
  font-family: var(--f-script);
  font-size: 1.5rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close:hover { transform: rotate(90deg) scale(1.1); }
.lb-prev:hover  { transform: translateY(-50%) translateX(-4px); }
.lb-next:hover  { transform: translateY(-50%) translateX(4px); }
.lb-cap {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-script); font-size: 1.2rem;
  color: var(--sand-pale);
}

/* ─── SELECTION ────────────────────────────────────── */
::selection { background: var(--rust); color: var(--sand-pale); }

/* ─── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--rust); border-radius: 3px; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE — full mobile / tablet pass
   Breakpoints: 1024 (tablet), 768 (small tablet / phone landscape),
                600 (large phone), 400 (small phone)
   ════════════════════════════════════════════════════════ */

/* ─── TOUCH DEVICES: disable custom cursor entirely ─── */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto !important; }
  .cursor, .cursor-ring { display: none !important; }
  a, button, .tilt-card, .gallery-item, .trad-item, .resume-doc,
  .skill-card, .big-tag, .contact-link, .tag-pill, .work-card,
  .tt-circle, .tt-thumb, .character-frame, .story-locket-link,
  .art-tile, .cap-tile, .lb-close, .lb-prev, .lb-next, .vb-close,
  .nav-burger, .lightbox-close, .lightbox-prev, .lightbox-next,
  .work-media.polaroid, .trad-mini img, .thesis-mini img,
  .book-mini img, .reel-play-overlay, .rigging-poster {
    cursor: pointer !important;
  }
  /* Touch-friendly tap targets — min 44px hit area */
  .nav-links a, .nav-cta, .mobile-menu a, .contact-link,
  .btn-stamp, .btn-link, .reel-play-overlay, .rigging-poster {
    min-height: 44px;
  }
  /* No tilt animation on touch (no mouse anyway) */
  .tilt-card { transition: none; }
}

/* ─── TABLETS (≤ 1024px) ────────────────────────── */
@media (max-width: 1024px) {
  .nav-links li:nth-child(-n+5) a em { display: none; }
  .skills-row { grid-template-columns: 1fr 1fr; }
  .capstone-grid { grid-template-columns: 1fr; gap: 32px; }
  .capstone-gallery { grid-template-columns: 1fr 1fr; }
  .resume-card { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .work-card, .work-card.alt { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .contact-links { grid-template-columns: 1fr; }
  .turntable-mini { grid-template-columns: 1fr 1fr; }
  .tt-circles { grid-template-columns: 1fr 1fr; }
}

/* ─── SMALL TABLETS / PHONE LANDSCAPE (≤ 900px) ───── */
@media (max-width: 900px) {
  .hero-character { right: -10%; width: 55%; opacity: 0.45; }
  .hero-character::after { display: none; }
  .hero-content { max-width: 100%; margin: 0; text-align: center; padding: 14vh 5%; }
  .nav { padding: 14px 5%; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ─── PHONES (≤ 768px) ─────────────────────────── */
@media (max-width: 768px) {
  /* TYPOGRAPHY: scale down headlines */
  .section-title { font-size: clamp(2.2rem, 8vw, 3rem); margin-bottom: 32px; }
  .section { padding: 64px 0; }
  .container { width: 92%; }

  /* HERO */
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 80px; }
  .hero-content { padding: 8vh 5% 4vh; max-width: 100%; }
  .hero-top {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    font-size: 0.85rem;
    top: 70px;            /* below the nav, not over it */
    padding-top: 0;
  }
  .hero-top .right { display: none; }    /* "Digital Portfolio 2026" hidden — saves space */
  .title-kicker { font-size: 1.2rem; margin-bottom: -4px; }
  .hero-name { font-size: clamp(3.5rem, 16vw, 6rem); }
  .hero-tags { justify-content: center; gap: 6px; }
  .tag-pill { font-size: 0.85rem; padding: 6px 14px; }
  .scroll-down { bottom: 18px; font-size: 0.85rem; }
  .hero-character { right: -18%; width: 70%; opacity: 0.35; bottom: 0; }

  /* MARQUEE */
  .marquee { padding: 12px 0; }
  .marquee-track { font-size: 1.1rem; gap: 18px; animation-duration: 42s; }
  .marquee::before, .marquee::after { width: 40px; }

  /* ABOUT */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .avatar-wrap { width: 200px; height: 200px; margin: 0 auto; }
  .bio-stats { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .bio { font-size: 0.98rem; }

  /* CAPSTONE */
  .capstone-cards { grid-template-columns: 1fr 1fr; }
  .capstone-gallery { grid-template-columns: 1fr; }
  .capstone-hero img { max-height: 280px; }

  /* SKILLS */
  .skills-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .skill-card { padding: 16px 10px 14px; }
  .big-tag { font-size: 1.2rem; padding: 6px 16px; }

  /* WORK */
  .work .container:first-child { margin-bottom: 40px; }
  .project { padding-bottom: 60px; }
  .work-card, .work-card.alt {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
    box-shadow: 5px 5px 0 var(--rust);
  }
  .work-card.alt { box-shadow: -5px 5px 0 var(--amber); }
  .work-title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .work-num { font-size: 2rem; }
  .work-desc { font-size: 0.95rem; }
  .dual-project { gap: 12px; }
  .dual-item { padding: 12px 14px; }

  /* Card 03 LOCKET — fits within the card on mobile */
  .work-media.story-locket-only { padding: 8px; }
  .work-media .story-locket-img,
  .story-locket-img { width: 220px !important; max-width: 90% !important; }

  /* Rigging poster (Card 01) — character smaller */
  .rigging-video { aspect-ratio: 4/3; }
  .rigging-poster-char { max-width: 38%; height: 80%; right: 4%; }
  .rigging-poster-text { max-width: 60%; padding: 6%; }
  .rigging-poster-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .rigging-poster-eyebrow { font-size: 0.8rem; }
  .rigging-poster-play { font-size: 0.85rem; padding: 6px 14px; }

  /* BPR stack (Card 02) becomes single column */
  .bumper-bpr-stack { grid-template-columns: 1fr !important; }

  /* Turntables (Card 04) */
  .tt-circles { grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px; }
  .turntable-mini { grid-template-columns: 1fr 1fr; }

  /* Thesis (Card 05) */
  .thesis-mini { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .book-mini { grid-template-columns: repeat(3, 1fr); }

  /* TRADITIONAL ART GALLERY */
  .art-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .art-row-label { position: static; }
  .art-row-strip { padding: 8px 4px 18px; }
  .art-row-strip .art-tile { min-width: 200px; }
  .art-medium { font-size: 1.6rem; }

  /* EXPERIENCE TIMELINE */
  .timeline { padding-left: 36px; }
  .t-line { left: 14px; }
  .t-dot { left: -28px; width: 14px; height: 14px; }
  .t-card { padding: 16px 18px; }
  .t-card h4 { font-size: 1.15rem; }

  /* RESUME */
  .resume-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .resume-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .r-doc-paper { transform: rotate(-2deg); padding: 24px 20px; min-height: 280px; }

  /* CONTACT */
  .contact { padding: 90px 0; }
  .contact-title { font-size: clamp(2.4rem, 9vw, 4rem); }
  .contact-links { grid-template-columns: 1fr; gap: 12px; }
  .contact-link { padding: 14px 18px; }
  .big-bg-text { font-size: clamp(5rem, 22vw, 9rem); }

  /* FOOTER */
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
  .footer p { font-size: 0.85rem; }

  /* LIGHTBOX (touch) */
  .lb-close, .lb-prev, .lb-next, .vb-close { width: 48px; height: 48px; }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-cap, .vb-caption { font-size: 1rem; bottom: 16px; padding: 0 14px; text-align: center; }
}

/* ─── SMALL PHONES (≤ 600px) ─────────────────────── */
@media (max-width: 600px) {
  .hero-name { font-size: clamp(3rem, 17vw, 5rem); letter-spacing: -0.04em; }
  .hero-name-line:nth-child(2) { margin-left: 20px; }
  .hero-character { width: 80%; right: -20%; opacity: 0.3; }
  .hero-eyebrow { font-size: 10px; padding: 6px 14px; }
  .skills-row { grid-template-columns: 1fr 1fr; }
  .capstone-cards { grid-template-columns: 1fr; }
  .bio-stats { grid-template-columns: 1fr; }
  .stat { padding: 14px 12px; }
  .stat-num { font-size: 2.2rem; }
  .tt-circles { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 100%; }
  .tt-circle { box-shadow: 4px 4px 0 var(--rust); }
  .turntable-mini { grid-template-columns: 1fr 1fr; }
  .thesis-mini { grid-template-columns: 1fr 1fr; }
  .book-mini { grid-template-columns: 1fr 1fr; }
  .nav-cta { padding: 6px 14px !important; font-size: 12px !important; }
  .logo-name { font-size: 1.3rem; }
  /* Marquee smaller text */
  .marquee-track { font-size: 1rem; gap: 14px; }
  /* Mobile menu wider on small phones */
  .mobile-menu { width: 80vw; padding: 36px 28px; }
  .mobile-menu a { font-size: 1.6rem; }
  /* Section header tighter */
  .section-pill { font-size: 1rem; padding: 5px 16px; }
  .section-tag { font-size: 10px; }
}

/* ─── EXTRA-SMALL (iPhone SE etc · ≤ 400px) ──────── */
@media (max-width: 400px) {
  .container { width: 94%; }
  .hero-content { padding-left: 4%; padding-right: 4%; }
  .work-card, .work-card.alt { padding: 18px 16px; }
  .section { padding: 56px 0; }
  .tag-pill { font-size: 0.78rem; padding: 5px 11px; }
  .skill-card { padding: 14px 8px; }
  .big-tag { font-size: 1.05rem; padding: 5px 12px; }
  .work-media .story-locket-img,
  .story-locket-img { width: 180px !important; }
  .rigging-poster-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}
