/* ===============================================================
   Khushboo Agrawal — Portfolio Zine
   A warm, editorial, paper-feel single page. No gradients-as-vibes,
   no purple ombres. Just ink on cream, a few jokes, and lots of type.
   =============================================================== */

:root {
  /* Paper / ink palette — inspired by a well-loved Moleskine */
  --paper:     #f2e7d1;   /* warm cream */
  --paper-2:   #ece0c4;   /* deeper cream */
  --paper-3:   #dfd0ad;   /* kraft */
  --ink:       #1b1410;   /* near black, slightly warm */
  --ink-soft:  #4a3a2e;   /* cocoa text */
  --muted:     #8a7a68;
  --line:      rgba(27, 20, 16, 0.14);

  /* Accents — chocolate, rust, saffron, sage. Used as INK, not gradients. */
  --rust:      #b54a2a;
  --rust-ink:  #8d3519;
  --saffron:   #d19a2d;
  --sage:      #7a8d6c;
  --cocoa:     #6b3f2b;
  --hi:        #ffe7a1;   /* highlighter yellow */

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --font-sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-hand:  "Caveat", "Bradley Hand", cursive;
  --font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-paper: 0 1px 0 rgba(27,20,16,0.06), 0 18px 40px -24px rgba(27,20,16,0.35);
  --shadow-tape:  0 1px 2px rgba(27,20,16,0.25);
}

/* ------------- base ------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain — subtle, layered on everything via a pseudo. */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: multiply;
  z-index: 100;
}

/* warm "coffee ring" accent blobs — soft, not gradient-y */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 88% -10%, rgba(181, 74, 42, 0.08), transparent 60%),
    radial-gradient(500px 500px at -10% 30%, rgba(209, 154, 45, 0.07), transparent 65%),
    radial-gradient(700px 500px at 110% 110%, rgba(122, 141, 108, 0.08), transparent 60%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--hi); color: var(--ink); }

.caveat { font-family: var(--font-hand); font-size: 20px; color: var(--rust); }
.caveat--big { font-size: 28px; }

/* ------------- scroll progress ------------- */
.scrollbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 200;
}
.scrollbar__fill {
  height: 100%;
  width: 0%;
  background: var(--rust);
  transition: width 80ms linear;
}

/* ------------- masthead ------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 36px;
  background: rgba(242, 231, 209, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.monogram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.monogram__word {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.masthead__meta {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.masthead__dot { color: var(--rust); }

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.masthead__nav a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width 0.25s ease;
}
.masthead__nav a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.2s ease;
}
.nav__cta:hover { background: var(--rust); border-color: var(--rust); transform: translateY(-1px); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
}
.hamburger span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

@media (max-width: 900px) {
  .masthead { grid-template-columns: auto auto; gap: 12px; padding: 14px 20px; }
  .masthead__meta { display: none; }
  .masthead__nav {
    position: absolute; top: 100%; right: 12px; left: 12px;
    flex-direction: column; align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: var(--shadow-paper);
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .masthead__nav a { padding: 10px 8px; }
  .masthead[data-open="true"] .masthead__nav {
    opacity: 1; transform: scale(1); pointer-events: auto;
  }
  .hamburger { display: inline-flex; justify-self: end; }
}

/* ------------- hero ------------- */
.hero {
  position: relative;
  padding: 70px 36px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 40px;
  align-items: start;
}

.hero__aside {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.stamp {
  color: var(--rust);
  display: inline-flex;
  animation: stampSpin 28s linear infinite;
}
@keyframes stampSpin { to { transform: rotate(360deg); } }

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 150px;
  margin: 0;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0;
  position: relative;
}
.hero__eyebrow {
  display: block;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  color: var(--rust);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.hero__line { display: block; }
.hero__line--italic {
  font-style: italic;
  font-weight: 700;
  color: var(--rust);
}
.period { color: var(--saffron); }

.hero__foot {
  grid-column: 2;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero__intro {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 560px;
}
.hero__intro u {
  text-decoration: none;
  background-image: linear-gradient(transparent 60%, currentColor 60%, currentColor 86%, transparent 86%);
  background-repeat: no-repeat;
  padding: 0 2px;
  color: inherit;
}
.u-rust    { background-image: linear-gradient(transparent 60%, rgba(181,74,42,0.35) 60%, rgba(181,74,42,0.35) 90%, transparent 90%) !important; }
.u-saffron { background-image: linear-gradient(transparent 60%, rgba(209,154,45,0.45) 60%, rgba(209,154,45,0.45) 90%, transparent 90%) !important; }
.u-sage    { background-image: linear-gradient(transparent 60%, rgba(122,141,108,0.45) 60%, rgba(122,141,108,0.45) 90%, transparent 90%) !important; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--rust);
  align-self: start;
  max-width: 100%;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6ec26e;
  box-shadow: 0 0 0 0 rgba(110, 194, 110, 0.6);
  animation: pulse 1.8s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110, 194, 110, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(110, 194, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 194, 110, 0); }
}
.status__label { color: #d7ccb5; }
.status__value { color: #fff; transition: opacity 0.3s ease; }
.status__value.is-fading { opacity: 0; }

.hero__scroll {
  position: absolute;
  left: 36px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll svg { animation: bounceDown 1.8s ease-in-out infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px 64px; gap: 20px; }
  .hero__aside { flex-direction: row; align-items: center; gap: 14px; }
  .stamp { transform: scale(0.75); transform-origin: left; }
  .hero__kicker { max-width: none; }
  .hero__foot { grid-column: 1; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .hero__scroll { display: none; }
}

/* ------------- marquee ------------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marq 38s linear infinite;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.marquee__track span { flex: none; }
.marquee__dot { color: var(--rust); }
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ------------- sections ------------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 36px;
  position: relative;
}
.section + .section { padding-top: 40px; }

.section__head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section__kicker {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}
.inline-link {
  color: var(--rust);
  border-bottom: 1.5px solid var(--rust);
  transition: background 0.2s ease;
  padding: 0 2px;
}
.inline-link:hover { background: var(--hi); }

/* ------------- bento (about) ------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 18px;
}

.bento__card {
  position: relative;
  background: #fbf4e3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}
.bento__card::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
  border-radius: inherit;
}

.bento__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.bento__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.bento__sub { color: var(--ink-soft); margin: 0 0 16px; font-size: 14.5px; }
.bento__sub em { color: var(--rust); font-family: var(--font-hand); font-size: 18px; font-style: italic; }
.bento__list { list-style: none; padding: 0; margin: 0; color: var(--ink-soft); }
.bento__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.4;
}
.bullet {
  color: var(--rust);
  font-size: 13px;
  line-height: 1.45;
  flex: none;
  padding-top: 2px;
}
.bento__list--majors li { font-size: 15.5px; color: var(--ink); }
.bento__corner {
  position: absolute; right: 14px; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--muted);
}

/* bio card */
.bento__card--bio { grid-column: span 8; }
.bento__card--bio p { color: var(--ink-soft); font-size: 17px; margin: 0 0 14px; line-height: 1.65; }
.dropcap {
  float: left;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.9;
  padding: 8px 12px 0 0;
  color: var(--rust);
}
.pullquote {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--rust);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  background: rgba(255,231,161,0.35);
  border-radius: 4px;
}
.pullquote em { color: var(--rust); font-style: italic; }

/* edu card — spans 2 rows so the polaroid hangs without stretching neighbors */
.bento__card--edu {
  grid-column: span 4;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bento__card--edu .bento__sub { margin-bottom: 0; }
.bento__card--edu .polaroid--edu {
  margin-top: auto;
  align-self: center;
}

/* now card — moved up to fill the space under bio */
.bento__card--now { grid-column: span 8; }
.now-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.now-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.4;
}
.now-list li strong { color: var(--ink); font-weight: 600; }
.now-icon {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--rust);
  box-shadow: 2px 2px 0 var(--ink);
}
.now-list li:nth-child(1) .now-icon { color: var(--rust); }
.now-list li:nth-child(2) .now-icon { color: var(--saffron); background: #fff6dc; }
.now-list li:nth-child(3) .now-icon { color: var(--sage); background: #e6ecdc; }
.now-list li:nth-child(4) .now-icon { color: var(--cocoa); }
.now-list li:nth-child(5) .now-icon { color: var(--ink); background: #e7dcc0; }

/* chocolate card — widened to complete the bottom row */
.bento__card--chocolate {
  grid-column: span 4;
  align-self: stretch;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fbf4e3;
}
.chocolate-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.5, 1.6, 0.4, 1);
  filter: drop-shadow(4px 6px 0 rgba(27,20,16,0.15));
}
.chocolate-btn:hover  { transform: rotate(-4deg) scale(1.03); }
.chocolate-btn:active { transform: rotate(3deg) scale(0.94); }
.chocolate-btn.is-bitten { animation: bite 0.35s ease; }
@keyframes bite {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.1) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}
.chocolate-count {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
}
.chocolate-count span { color: var(--rust); font-size: 24px; }
.chocolate-hint { font-family: var(--font-hand); color: var(--muted); font-size: 18px; margin: 0; }

/* sky card */
.bento__card--sky {
  grid-column: span 4;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.altitude {
  position: relative;
  flex: 1;
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0 14px;
  background: linear-gradient(to bottom, #f1e5c4 0%, #e7dcc0 60%, #ddd0b0 100%);
  border: 1px solid var(--line);
}
.altitude__sky {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #e9dcba 0%, #e7dcc0 100%);
}
.cloud {
  position: absolute;
  font-size: 28px;
  color: #fff;
  opacity: 0.8;
  animation: floatX 22s linear infinite;
}
.cloud--a { top: 18%; left: -10%; animation-delay: -3s; }
.cloud--b { top: 55%; left: -30%; animation-delay: -12s; font-size: 22px; }
@keyframes floatX { to { left: 110%; } }
.parachute {
  position: absolute;
  top: 22%;
  right: 16%;
  width: 64px;
  animation: floatY 4.5s ease-in-out infinite;
}
.parachute svg { width: 100%; height: auto; display: block; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}
.altitude__ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  background: repeating-linear-gradient(90deg, #7a8d6c 0 14px, #6e805f 14px 28px);
  border-top: 2px solid var(--ink);
}
.altitude__caption { margin: 0; color: var(--ink-soft); font-size: 14px; }
.altitude__caption em { color: var(--rust); font-family: var(--font-hand); font-size: 20px; font-style: italic; }
.altitude__caption strong { font-family: var(--font-mono); font-weight: 500; }

/* learning (AI/ML) card */
.bento__card--learn { grid-column: span 4; align-self: stretch; }
.learn__head { margin-bottom: 8px; }
.learn__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.learn__sub {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--rust);
  margin: 0;
}
.neural {
  display: block;
  width: 100%;
  height: auto;
  margin: 12px 0 14px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 6px;
}
.neural .node { transition: r 0.3s ease; }
.neural .node--in  { animation: pulseNode 3.2s ease-in-out infinite; }
.neural .node--h   { animation: pulseNode 3.2s ease-in-out infinite; animation-delay: 0.4s; }
.neural .node--out { animation: pulseNode 3.2s ease-in-out infinite; animation-delay: 0.8s; }
@keyframes pulseNode {
  0%, 100% { r: 6; }
  50%      { r: 8; }
}
.neural .node--out { animation-name: pulseNodeOut; }
@keyframes pulseNodeOut {
  0%, 100% { r: 7; }
  50%      { r: 9.5; }
}

.learn-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.learn-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}
.dot-chip {
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}
.dot-chip--sage    { background: var(--sage); }
.dot-chip--saffron { background: var(--saffron); }
.dot-chip--rust    { background: var(--rust); }

/* tape corners — little paper zine detail */
.tape {
  position: absolute;
  width: 78px; height: 22px;
  background: rgba(209, 154, 45, 0.55);
  box-shadow: var(--shadow-tape);
  border-left: 1px dashed rgba(255,255,255,0.6);
  border-right: 1px dashed rgba(255,255,255,0.6);
}
.tape--tl { top: -8px; left: 20px; transform: rotate(-6deg); }
.tape--tr { top: -8px; right: 20px; transform: rotate(7deg); }

/* polaroid photos — paper-zine snapshots */
.polaroid {
  position: relative;
  margin: 0;
  padding: 10px 10px 38px;
  background: #fbf4e3;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    6px 8px 0 rgba(27,20,16,0.10),
    0 18px 30px -18px rgba(27,20,16,0.45);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  width: 100%;
  max-width: 200px;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper-2);
  filter: saturate(0.92) contrast(1.02);
}
.polaroid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink);
}
.tape--polaroid {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 64px; height: 18px;
  background: rgba(209, 154, 45, 0.55);
  box-shadow: var(--shadow-tape);
  border-left: 1px dashed rgba(255,255,255,0.6);
  border-right: 1px dashed rgba(255,255,255,0.6);
  transform: translateX(-50%) rotate(-3deg);
}

.polaroid--hero {
  transform: rotate(-4deg);
  width: 100%;
  max-width: 170px;
  align-self: center;
}
.polaroid--hero img { aspect-ratio: 4 / 5; }
.polaroid--hero:hover { transform: rotate(-1deg) translateY(-2px); }

.polaroid--edu {
  transform: rotate(2deg);
  width: 90%;
  max-width: 280px;
  margin: 0 auto;
}
.polaroid--edu img { aspect-ratio: 3 / 4; }
.polaroid--edu:hover { transform: rotate(0deg) translateY(-2px); }

@media (max-width: 1100px) {
  .polaroid--hero { max-width: 150px; }
  .polaroid--edu  { max-width: 240px; }
}
@media (max-width: 820px) {
  .polaroid--hero { max-width: 120px; transform: rotate(-3deg); }
  .polaroid--edu  { width: 55%; max-width: 220px; }
}
@media (max-width: 480px) {
  .polaroid--hero { max-width: 100px; }
  .polaroid--edu  { width: 70%; max-width: 220px; }
}

@media (max-width: 900px) {
  .bento__card--bio,
  .bento__card--edu,
  .bento__card--now,
  .bento__card--chocolate,
  .bento__card--sky,
  .bento__card--learn { grid-column: span 12; }
}

/* ------------- work ------------- */
.role {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  padding: 36px;
  background: #fbf4e3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-paper);
  position: relative;
}
.role::before {
  /* punched edge — ticket stub feel */
  content: "";
  position: absolute;
  left: calc(150px + 18px);
  top: 10px; bottom: 10px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px);
}
.role__side { display: flex; flex-direction: column; gap: 10px; }
.role__year {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--rust);
  letter-spacing: -0.02em;
}
.role__ticket {
  display: inline-block;
  padding: 4px 8px;
  border: 1px dashed var(--ink-soft);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
  width: fit-content;
}

.role__card { position: relative; }
.role__stamp {
  position: absolute;
  top: -10px;
  right: -4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  background: var(--paper);
  border: 1.5px dashed var(--rust);
  padding: 4px 10px;
  border-radius: 4px;
  transform: rotate(3deg);
}
.role__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.role__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.01em;
}
.role__company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rust);
  font-weight: 500;
}
.role__logo {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.role__body { color: var(--ink-soft); margin: 0 0 14px; }

.work { padding-bottom: 40px; }
.work .role { margin-bottom: 22px; }
.role__fullstory {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 22px;
}
.role__fullstory .inline-link { color: var(--rust); border-bottom-color: var(--rust); }

.role__aside {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-left: 2px solid var(--rust);
  background: rgba(181, 74, 42, 0.04);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.role__aside-label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  vertical-align: 2px;
}
.role__aside-when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.85;
}

.role--upcoming .role__card {
  background: #fff6dc;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: -8px;
  box-shadow: 4px 4px 0 var(--rust);
}
.role--upcoming .role__year { color: var(--sage); }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .role { grid-template-columns: 1fr; padding: 24px; }
  .role::before { display: none; }
}

/* ------------- projects ------------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.feature:last-of-type { border-bottom: 1px solid var(--line); }
.feature--flip .feature__art  { order: 2; }
.feature--flip .feature__body { order: 1; }

.feature__art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #ecdfc6;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s ease;
  transform: rotate(-1deg);
}
.feature--flip .feature__art { transform: rotate(1deg); }
.feature__art:hover { transform: rotate(0) translateY(-4px); }

.feature__svg { width: 100%; height: auto; display: block; }
.feature__num {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: var(--ink);
  padding: 5px 9px;
  border-radius: 4px;
}
.feature__badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--rust);
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
}

.feature__body {}
.feature__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.05;
}
.feature__tagline {
  margin: -4px 0 10px;
  color: var(--rust);
}
.feature__lede {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0 0 14px;
  max-width: 540px;
}
.feature__lede strong { color: var(--ink); font-weight: 600; }
.feature__lede--sub {
  font-size: 16px;
  color: var(--ink-soft);
  padding: 12px 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--saffron);
  border-radius: 6px;
}
.accent-dot { color: var(--rust); }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
  transition: gap 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.arrow-link span { transition: transform 0.2s ease; }
.arrow-link:hover { gap: 14px; color: var(--rust); border-color: var(--rust); }
.arrow-link:hover span { transform: translateX(2px); }

.projects__cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.projects__cta .caveat--big { color: var(--ink-soft); }
.projects { padding-bottom: 40px; }
.fun { padding-top: 40px; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 22px; padding: 40px 0; }
  .feature--flip .feature__art  { order: 0; }
  .feature--flip .feature__body { order: 0; }
}

/* ------------- videos (Learning out loud) ------------- */
.videos { padding-top: 40px; padding-bottom: 40px; }

.videos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 820px) {
  .videos__grid { grid-template-columns: 1fr; }
}

.video-card {
  background: #fbf4e3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 74, 42, 0.35);
  box-shadow: 0 26px 60px -22px rgba(27, 20, 16, 0.35);
}

/* Outer "frame" — a tiny paper bezel around the chalkboard */
.video-card__frame {
  position: relative;
  padding: 10px;
  background:
    linear-gradient(135deg, #ede0c4 0%, #e5d6b6 100%);
  border-bottom: 1px solid var(--line);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #2e3c26;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.5);
  cursor: pointer;
}
.chalk {
  width: 100%; height: 100%;
  display: block;
}

.video-card__topic,
.video-card__duration {
  position: absolute;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 2;
}
.video-card__topic {
  left: 12px;
  background: #ffd785;
  color: #2e3c26;
  font-weight: 700;
}
.video-card__duration {
  right: 12px;
  background: rgba(27, 20, 16, 0.6);
  color: #f4ecdf;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-card__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: rgba(181, 74, 42, 0.95);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6), 0 0 0 0 rgba(181, 74, 42, 0.5);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.3s ease;
  z-index: 3;
}
.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 14px 34px -10px rgba(0,0,0,0.6), 0 0 0 10px rgba(181, 74, 42, 0.18);
}
.video-card__play:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.video-card__body {
  padding: 20px 22px 22px;
  flex: 1;
}
.video-card__body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.video-card__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.video-card__body p em {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--hi);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink);
  font-style: normal;
}

/* When video is loaded, the <video> element replaces the thumb */
.video-card__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 8px;
  background: #000;
}

/* "Coming soon" placeholder */
.video-card--soon { opacity: 0.95; }
.video-card__thumb--soon {
  cursor: default;
  filter: saturate(0.8);
}
.video-card--soon .video-card__frame {
  background: repeating-linear-gradient(
    135deg,
    #ede0c4 0 10px,
    #e5d6b6 10px 20px
  );
}

.videos__note {
  display: block;
  margin-top: 24px;
  color: var(--ink-soft);
  text-align: right;
}

/* Toast (used when a video file is missing) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 var(--rust);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 500;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast[hidden] { display: none; }
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ------------- buttons ------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--rust); }
.btn--ink:hover { box-shadow: 4px 4px 0 var(--rust); background: var(--rust); border-color: var(--rust); }
.btn--big { font-size: 17px; padding: 16px 24px; }

/* ------------- fun ------------- */
.fun__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: #fbf4e3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-paper);
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-3px) rotate(0) !important; }

.card--tilt-l { grid-column: span 4; transform: rotate(-1.2deg); }
.card--tilt-r { grid-column: span 4; transform: rotate(1.4deg); }
.card--keys   { grid-column: span 4; }
.card--sticky { grid-column: span 5; background: #fff6a8; transform: rotate(-2deg); border-color: #e8d56a; }
.card--stats  { grid-column: span 7; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--stats .card__label { color: #d7ccb5; }

.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.ranked { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.ranked li { margin-bottom: 6px; }
.ranked li::marker { color: var(--rust); font-weight: 700; font-family: var(--font-serif); }

.geek { list-style: none; padding: 0; margin: 0; }
.geek li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.geek li:last-child { border-bottom: none; }
.geek li::before {
  content: "✦";
  position: absolute; left: 0; top: 8px;
  color: var(--rust);
}

.kbd-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  margin: 0;
}
.kbd-list dt { display: flex; justify-content: flex-start; }
.kbd-list dd { margin: 0; color: var(--ink-soft); align-self: center; }
kbd {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 28px; height: 28px;
  padding: 0 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.kbd-list--big { gap: 14px 20px; font-size: 16px; }
.kbd-list--big kbd { min-width: 36px; height: 36px; font-size: 14px; }

.sticky-note {
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.sticky-sig { display: block; margin-top: 14px; font-size: 18px; color: var(--ink-soft); }

.stats {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats__num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--saffron);
}
.stats__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfc3ac;
}

@media (max-width: 900px) {
  .card--tilt-l, .card--tilt-r, .card--keys { grid-column: span 12; }
  .card--sticky, .card--stats { grid-column: span 12; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
}

/* ------------- connect ------------- */
.connect { padding-top: 60px; }
.connect__card {
  position: relative;
  background: #fbf4e3;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: center;
  box-shadow: 10px 10px 0 var(--rust);
  overflow: hidden;
}
.connect__text p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 460px;
  margin: 16px 0 0;
}
.connect__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.underline-wave {
  position: relative;
  white-space: nowrap;
}
.underline-wave::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M0 4 Q10 0 20 4 T40 4 T60 4 T80 4' fill='none' stroke='%23b54a2a' stroke-width='2' stroke-linecap='round'/></svg>") repeat-x;
  background-size: 80px 8px;
}

.connect__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.social:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.social svg { flex: none; }

.connect__doodle {
  position: absolute;
  right: -20px; bottom: -20px;
  width: 220px; height: auto;
  color: var(--rust);
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 820px) {
  .connect__card { grid-template-columns: 1fr; padding: 36px 28px; box-shadow: 6px 6px 0 var(--rust); }
}

/* ------------- footer ------------- */
.footer {
  padding: 40px 36px 56px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__sig { display: flex; flex-direction: column; gap: 0; color: var(--rust); }
.footer__sig .caveat--big { color: var(--ink); }
.footer__meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer__meta a {
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__meta a:hover { color: var(--rust); border-color: var(--rust); }

/* ------------- modal ------------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(27,20,16,0.55);
  backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 10px 10px 0 var(--rust);
  padding: 32px;
  max-width: 420px; width: 100%;
  animation: pop 0.2s ease;
}
@keyframes pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.modal__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover { color: var(--rust); }
.modal__tip { margin: 18px 0 0; }

/* ------------- confetti ------------- */
.confetti {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 400;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  width: 10px; height: 14px;
  top: -20px;
  animation: fall 1.8s ease-in forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }
}

/* ------------- reveal ------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .stamp, .cloud, .parachute, .status__dot { animation: none !important; }
  html { scroll-behavior: auto; }
}
