/* ── Bitroad ── */
@font-face {
  font-family: 'Bitroad';
  src: url('fonts/Bitroad-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ── Variables ── */
:root {
  --bg:           #FFFFFF;
  --bg-elevated:  #F5F3F0;
  --bg-card:      #FAFAFA;
  --bg-nav:       rgba(245,243,240,0.92);
  --ink:          #1A1A1A;
  --ink-mid:      #666666;
  --ink-light:    #999999;
  --coral:        #C8471E;
  --footer-accent: #C8471E;
  --border:       rgba(26,26,26,0.12);
  --nav-h:        72px;
  --max-w:        860px;
}

/* ── Themes ── */
body.theme-butter {
  --bg:            #FFF8DC;
  --bg-elevated:   #F5EEC8;
  --bg-card:       #FAF3D0;
  --bg-nav:        rgba(245,238,200,0.94);
  --ink:           #2D2416;
  --ink-mid:       #5C4A2A;
  --ink-light:     #8C7550;
  --footer-accent: #C8471E;
  --border:        rgba(45,36,22,0.12);
}
body.theme-sky {
  --bg:            #D6EAF8;
  --bg-elevated:   #C2DFEF;
  --bg-card:       #CBE4F4;
  --bg-nav:        rgba(194,223,239,0.94);
  --ink:           #1A2A3D;
  --ink-mid:       #2E4A6A;
  --ink-light:     #4A6A8A;
  --footer-accent: #C8471E;
  --border:        rgba(26,42,61,0.12);
}
body.theme-dark {
  --bg:            #1A1A1A;
  --bg-elevated:   #272727;
  --bg-card:       #222222;
  --bg-nav:        rgba(39,39,39,0.95);
  --ink:           #F5F0E8;
  --ink-mid:       #AAAAAA;
  --ink-light:     #666666;
  --coral:         #C8471E;
  --footer-accent: #C8471E;
  --border:        rgba(245,240,232,0.1);
}

/* ── Hero hover doodles ── */
.hero-hover-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.3) rotate(var(--rot, -20deg));
  transition: opacity 0.35s ease, transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  color: #1A1A1A;
}
body.theme-dark .hero-hover-doodle {
  color: #F5F0E8;
}
.hero-hover-doodle.pop {
  opacity: 0.75;
  transform: scale(1) rotate(var(--rot-end, 0deg));
}
.hero-hover-doodle svg { display: block; }
.window-canvas .hero-hover-doodle { color: #1A1A1A !important; }
.window-canvas .hero-hover-doodle svg { width: 32px; height: auto; }

/* ── Theme transition ── */
body, body * {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ── Theme switcher ── */
.theme-switcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.theme-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-hint {
  background: var(--ink);
  color: var(--bg);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
  position: relative;
  animation: hint-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.theme-hint::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--ink);
  border-right-width: 0;
}
@keyframes hint-pop {
  0%   { opacity: 0; transform: scale(0.7) translateX(8px); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}
.theme-hint.fade-out {
  opacity: 0;
}
.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--bg);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.4s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.theme-toggle-btn:hover { transform: scale(1.1); }
.theme-toggle-btn.spinning {
  animation: palette-spin 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes palette-spin {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.15) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}
.theme-swatches {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.theme-swatches.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.theme-swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-swatch-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.theme-swatch-row:has(.theme-swatch.active) .theme-swatch-label {
  color: var(--ink);
  font-weight: 600;
}
.theme-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch.active { border-color: var(--ink); }
.theme-swatch[data-theme="default"] { background: #F5F0E8; }
.theme-swatch[data-theme="butter"]  { background: #FFF8DC; border: 2px solid rgba(45,36,22,0.15); }
.theme-swatch[data-theme="sky"]     { background: #D6EAF8; }
.theme-swatch[data-theme="dark"]    { background: #1A1A1A; border: 2px solid rgba(255,255,255,0.25); }

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── Noise ── */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}


/* ── Scroll progress ── */
#scroll-prog {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--coral); z-index: 9996; width: 0%;
  transition: width 0.1s linear;
}

/* ── Nav ── */
#nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 28px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease, border-color 0.3s, box-shadow 0.3s;
  transition: border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.nav-pill > * {
  align-self: center;
}

#nav.scrolled .nav-pill {
  border-color: rgba(26,26,26,0.22);
  box-shadow: 0 4px 24px rgba(26,26,26,0.08);
}

.nav-link {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--coral);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Contact dropdown ── */
.nav-contact {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-contact-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 6px 8px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(26,26,26,0.10);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
}

.nav-contact:hover .nav-contact-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nc-link {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nc-link:hover {
  background: var(--bg-elevated);
  color: var(--ink);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.nav-logo:hover {
  transform: scale(1.12) rotate(-4deg);
  text-decoration: none;
}

/* ── Hero ── */
#hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 1000px;
  width: 100%;
}

.hero-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 0;
}


.cycle-wrap {
  display: inline-block;
  vertical-align: baseline;
  text-align: left;
}

#cycle-word {
  text-decoration: underline wavy var(--coral);
  text-underline-offset: 5px;
  display: inline;
  white-space: nowrap;
}

#cycle-word.typing::after {
  content: '|';
  display: inline;
  color: var(--coral);
  animation: blink-cursor 0.65s step-end infinite;
  font-weight: 300;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* macOS window wrapper */
.hero-sparkle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: sparkle-float 3s ease-in-out infinite alternate;
}

.hero-sparkle:nth-child(2) { animation-delay: 0.4s; }
.hero-sparkle:nth-child(3) { animation-delay: 0.9s; }
.hero-sparkle:nth-child(4) { animation-delay: 0.2s; }
.hero-sparkle:nth-child(5) { animation-delay: 0.7s; }
.hero-sparkle:nth-child(6) { animation-delay: 1.1s; }

@keyframes sparkle-float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(-6px) rotate(20deg); opacity: 1; }
}

.hero-window-wrap {
  position: relative;
  width: 480px;
  max-width: 90vw;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-window {
  width: 100%;
  background: #FDFCFA;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(26,26,26,0.12), 0 4px 12px rgba(26,26,26,0.06);
  overflow: hidden;
  border: 1px solid rgba(26,26,26,0.08);
}

.window-bar {
  height: 36px;
  background: #F0ECE4;
  border-bottom: 1px solid rgba(26,26,26,0.07);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.wb { width: 12px; height: 12px; border-radius: 50%; }
.wb-red    { background: #FF5F57; }
.wb-yellow { background: #FFBD2E; }
.wb-green  { background: #28C840; }

.window-canvas {
  aspect-ratio: 4/3;
  background: #FDFCFA;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-image:
    linear-gradient(rgba(26,26,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,26,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-illustration {
  width: 90%;
  max-height: 115%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* Sticky notes in hero */
.sticky {
  position: absolute;
  background: url('sticky-note.png') top center / contain no-repeat;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  width: 155px;
  height: 155px;
  padding: 38px 12px 12px;
  cursor: grab;
  user-select: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s;
}
.sticky:hover {
  filter: drop-shadow(4px 6px 12px rgba(26,26,26,0.28));
  z-index: 20;
}
.sticky:active { cursor: grabbing; }

.sticky-doodle {
  width: 100px;
  height: 100px;
  object-fit: contain;
  pointer-events: none;
}

.sticky-left {
  left: -130px;
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
}
.sticky-right {
  right: -120px;
  top: 30%;
  transform: translateY(-50%) rotate(3deg);
}


/* Script subtitle */
.hero-info {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink-mid);
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: 20px;
}

.hero-script {
  font-family: 'Bitroad', monospace;
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: lowercase;
  color: var(--ink-mid);
  margin-top: 24px;
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 48px;
  font-size: 1.25rem;
  color: var(--ink-light);
  animation: bounce-down 1.8s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* ── Sections ── */
.section {
  padding: 120px 48px;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Section label ── */
.section-label {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 48px;
}

/* ── Work filters ── */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 52px;
}

.work-filter {
  font-family: 'Bitroad', monospace;
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.work-filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.work-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ── Work cards ── */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-card {
  margin-bottom: 80px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card.hidden {
  display: none;
}

.work-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.work-card:hover .work-img {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(26,26,26,0.15);
}

.work-card:hover .work-img img {
  transform: scale(1.04);
}

.work-img-link {
  display: block;
  text-decoration: none;
}

.work-meta {}

.work-cat {
  display: block;
  font-family: 'Bitroad', monospace;
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 8px;
}

.work-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}

.work-desc {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}

.work-link {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--coral);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.work-link:hover {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Behance nudge ── */
.behance-nudge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
  padding: 20px 32px;
  border: 1px solid var(--border);
  border-radius: 100px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.behance-nudge span {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--ink-mid);
}

.behance-nudge-link {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--coral);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}

.behance-nudge-link:hover { opacity: 0.85; transform: translateY(-2px); }

@media (max-width: 600px) {
  .behance-nudge { flex-direction: column; gap: 10px; text-align: center; border-radius: 16px; }
}

/* ── About ── */
.about-bg {
  background: var(--bg-card);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.polaroid-wrap {
  position: relative;
  width: 100%;
}

.about-sparkle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: sparkle-float 3s ease-in-out infinite alternate;
  z-index: 2;
}

.about-sparkle:nth-child(2) { animation-delay: 0.5s; }
.about-sparkle:nth-child(3) { animation-delay: 1s; }
.about-sparkle:nth-child(4) { animation-delay: 1.5s; }

.polaroid-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.polaroid {
  background: #F5F0E8;
  padding: 10px 10px 40px;
  box-shadow: 0 8px 32px rgba(26,26,26,0.12), 0 2px 8px rgba(26,26,26,0.06);
  transform: rotate(-2.5deg);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  width: 100%;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); }

.polaroid-img {
  background: var(--bg-elevated);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--ink-mid);
  border: 1px solid rgba(26,26,26,0.05);
}

.polaroid-cap {
  font-family: 'Bitroad', monospace;
  text-align: center;
  margin-top: 8px;
  font-size: 1.1rem;
  color: #666666;
}

.resume-btn {
  display: inline-block;
  margin-top: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 10px 24px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.resume-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.about-label {
  display: block;
  font-family: 'Bitroad', monospace;
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  margin-bottom: 16px;
}

.about-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}
.about-title em {
  font-style: italic;
  color: var(--coral);
}

.about-right p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-right strong { color: var(--ink); font-weight: 600; }

.edu-line {
  font-size: 0.875rem !important;
  margin-top: 4px;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.skills-cloud span {
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: 'Bitroad', monospace;
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-mid);
  transition: border-color 0.2s, color 0.2s;
}
.skills-cloud span:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── Doodle section chip overrides ── */
.chip {
  display: inline-block;
  padding: 5px 14px;
  background: var(--coral);
  color: var(--bg);
  border-radius: 100px;
  font-family: 'Bitroad', monospace;
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.sec-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.sec-title em {
  font-style: italic;
  color: var(--coral);
}

.sec-desc {
  font-family: 'Instrument Sans', sans-serif;
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

/* ── Skills collage strip ── */
.scatter-strip {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 48px 80px;
  overflow: hidden;
}

.sc-star {
  position: absolute;
  font-size: 1.1rem;
  color: var(--ink);
  pointer-events: none;
  user-select: none;
}

.sc-sparkle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: sparkle-float 3s ease-in-out infinite alternate;
}

.sc-inner {
  max-width: 960px;
  margin: 0 auto;
}

.sc-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--coral);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 56px;
}

/* ── Food scene ── */
.food-scene {
  position: relative;
  width: 640px;
  height: 520px;
  margin: 0 auto;
}

.food-plate {
  position: absolute;
  width: 450px;
  height: 450px;
  object-fit: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.food-item {
  position: absolute;
  width: 190px;
  height: 190px;
  cursor: pointer;
  z-index: 2;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
}

.food-item:hover {
  transform: rotate(var(--rot, 0deg)) scale(1.18);
  z-index: 10;
}

.food-img-wrap {
  width: 190px;
  height: 190px;
  position: relative;
}

.food-img-wrap img {
  position: absolute;
  width: 190px;
  height: 190px;
  top: 0;
  left: 0;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.food-skill-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.food-item:hover .food-skill-label {
  opacity: 1;
}

.sc-desc {
  font-family: 'Instrument Sans', sans-serif;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-top: 52px;
  line-height: 1.6;
}

.sc-corner {
  position: absolute;
  bottom: 20px;
  right: 28px;
  font-family: 'Bitroad', monospace;
  font-style: italic;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--coral);
  border: 1.5px solid var(--coral);
  padding: 4px 10px;
  text-align: center;
  line-height: 1.5;
}

/* ── Footer ── */
#contact {
  background: #1A1A1A !important;
  padding: 80px 48px 48px;
}
body.theme-dark #contact {
  background: #2E2E2E !important;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 48px;
}

.footer-script {
  font-family: 'Bitroad', monospace;
  font-style: italic;
  font-weight: 400;
  color: var(--footer-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
}

.footer-email {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-email:hover {
  color: #FFFFFF;
  animation: email-flash 0.4s ease;
}
@keyframes email-flash {
  0%   { color: rgba(255,255,255,0.7); }
  30%  { color: var(--footer-accent); }
  100% { color: #FFFFFF; }
}

.footer-socials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-social {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom span {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .section { padding: 80px 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-left { align-items: center; }
  .polaroid { max-width: 240px; margin: 0 auto; }
  .polaroid-wrap { display: flex; flex-direction: column; align-items: center; }
  .sticky-left { left: -90px; }
  .sticky-right { right: -80px; }
  #contact { padding: 60px 32px 40px; }
}

@media (max-width: 700px) {
  .nav-pill { gap: 20px; padding: 12px 20px; }
  .hero-window-wrap { width: 90vw; }
  .sticky-left, .sticky-right { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-headline { font-size: clamp(1.75rem, 8vw, 3rem); }
  .section { padding: 64px 24px; }
  #contact { padding: 48px 24px 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .scatter-strip { min-height: 220px; }
  .hero-headline { font-size: clamp(1.85rem, 8vw, 2.5rem); }
}

@media (max-width: 500px) {
  .nav-pill { gap: 14px; padding: 10px 16px; }
  .nav-link { font-size: 0.78rem; }
  .nav-logo { font-size: 1.3rem; }
}
