/* ==========================================================
   Hanifiyya — Personal Website
   Warm scrapbook editorial: cream, terracotta, olive
   ========================================================== */

:root {
  --cream: #FBF4E9;
  --paper: #F6ECDC;
  --paper-2: #F1E2CA;
  --line: rgba(120, 90, 50, .07);
  --terracotta: #E2553A;
  --terracotta-d: #C8432A;
  --peach: #F4A259;
  --peach-l: #F9C98F;
  --olive: #6B7A3A;
  --olive-l: #8E9B57;
  --olive-d: #3F4A22;
  --sage: #A9B279;
  --mustard: #D9A441;
  --ink: #3A2A1E;
  --ink-2: #6E5A47;
  --ink-3: #9A8670;
  --white: #FFFDF9;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -22px rgba(90, 60, 30, .35), 0 2px 6px rgba(90, 60, 30, .06);
  --shadow-card: 0 10px 24px -12px rgba(70, 45, 20, .35), 0 2px 4px rgba(70, 45, 20, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: #F4EBDD;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
i, em { font-style: italic; }
::selection { background: var(--terracotta); color: var(--white); }

/* ---------- Panels (rounded sheets with graph paper) ---------- */
main { padding: 96px 20px 24px; display: grid; gap: 28px; max-width: 1240px; margin: 0 auto; }

.panel {
  position: relative;
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  overflow: hidden;
}
.container { max-width: 940px; margin: 0 auto; position: relative; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed; top: 18px; left: 0; right: 0;
  display: flex; justify-content: center;
  z-index: 50; pointer-events: none; padding: 0 16px;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 8px 24px -10px rgba(70, 45, 20, .3), 0 0 0 1px rgba(120, 90, 50, .06);
}
.nav-logo {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--terracotta); color: var(--white);
  font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 17px;
  text-decoration: none; flex: none;
}
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 6px 11px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--terracotta);
  text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--paper); }
.nav-links a.is-active { background: var(--terracotta); color: var(--white); }
.nav-toggle {
  display: none; border: 0; background: var(--paper); color: var(--terracotta);
  font: 600 13.5px var(--sans); padding: 7px 14px; border-radius: 8px; cursor: pointer;
}

/* ---------- Typography helpers ---------- */
.eyebrow, .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 18px;
}
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }

.display {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -.02em; line-height: 1.22;
  color: var(--olive); max-width: 20ch;
  margin-bottom: 26px;
}
.display i {
  font-family: var(--serif); font-weight: 700; font-style: italic;
  color: var(--olive-d); letter-spacing: -.01em;
}
.display--center { margin-left: auto; margin-right: auto; text-align: center; }
.tag-sticker {
  display: inline-block;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  color: var(--olive-d);
  background: var(--paper-2);
  padding: 0 .28em .04em; border-radius: 10px;
  box-shadow: 0 0 0 3px var(--white), var(--shadow-card);
  transform: rotate(-3deg);
  margin: 0 .08em;
}
.tag-sticker--olive { background: var(--sage); }
.section-sub { color: var(--ink-2); max-width: 60ch; font-size: 17px; margin-bottom: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; justify-content: center; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--ink); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 15px var(--sans); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: 0 10px 22px -10px rgba(226, 85, 58, .8); }
.btn-primary:hover { background: var(--terracotta-d); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px rgba(120, 90, 50, .14); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(120, 90, 50, .2), var(--shadow-card); }
.btn:focus-visible, .cta-bar:focus-visible, .nav a:focus-visible, .note-card:focus-visible {
  outline: 3px solid var(--mustard); outline-offset: 3px;
}

/* ---------- Sparkles ---------- */
.spark { position: absolute; color: var(--terracotta); pointer-events: none; animation: twinkle 4s ease-in-out infinite; }
.spark.soft { color: var(--peach-l); }
.hero .s1 { width: 30px; height: 30px; top: 22%; left: 22%; }
.hero .s2 { width: 26px; height: 26px; top: 26%; right: 20%; animation-delay: .8s; }
.hero .s3 { width: 18px; height: 18px; top: 18%; right: 16%; animation-delay: 1.6s; }
.hero .s4 { width: 12px; height: 12px; top: 38%; left: 16%; animation-delay: 2.2s; }
.hero .s5 { width: 16px; height: 16px; top: 12%; left: 8%; }
.hero .s6 { width: 14px; height: 14px; top: 52%; right: 9%; animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .6; } }

/* ==========================================================
   HERO
   ========================================================== */
.hero { text-align: center; padding-bottom: 0; padding-top: clamp(72px, 10vw, 120px); }
.hero .eyebrow { margin-bottom: 22px; letter-spacing: .3em; font-size: 11.5px; }
.hero-name {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(42px, 7.6vw, 92px);
  line-height: 1.02; letter-spacing: -.025em;
  color: var(--terracotta);
  margin: 0 auto;
  font-variation-settings: "opsz" 144;
}
.hero-name span { display: block; }
@media (max-width: 700px) { .hero-name span { display: inline; } }
.hero-tagline {
  margin: 22px 0 0;
  font-size: 13px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase;
  color: var(--terracotta);
}

/* Folder collage */
.folder {
  position: relative;
  width: min(720px, 100%);
  height: 330px;
  margin: 56px auto 0;
}
.folder-back {
  position: absolute; left: 0; right: 0; bottom: 0; height: 230px;
  background: var(--olive);
  border-radius: 22px 22px 0 0;
}
.folder-back::before { /* tab */
  content: ""; position: absolute; top: -18px; right: 40px; width: 150px; height: 30px;
  background: var(--olive); border-radius: 12px 12px 0 0;
}
.folder-front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 132px; z-index: 5;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.05), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(0,0,0,.18), transparent 45%),
    var(--olive-d);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -12px 24px -14px rgba(0,0,0,.45);
  overflow: hidden;
}
.folder-front::before { /* stitching */
  content: ""; position: absolute; inset: 16px 16px -2px;
  border: 1.5px dashed rgba(251, 244, 233, .28); border-bottom: 0; border-radius: 4px;
}
.folder-front::after { /* round seal */
  content: ""; position: absolute; right: 13%; bottom: -44px; width: 104px; height: 104px;
  border-radius: 50%; border: 1.5px solid rgba(251, 244, 233, .22);
  background: rgba(107, 122, 58, .45);
}
.folder-word {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-weight: 800;
  font-size: 108px; line-height: 1; color: var(--cream); opacity: .92;
  letter-spacing: -.02em;
}

.fcard {
  position: absolute; bottom: 60px; margin: 0;
  box-shadow: var(--shadow-card);
  transition: transform .45s var(--ease);
  z-index: 2;
}
.polaroid {
  background: var(--white); padding: 10px 10px 34px; border-radius: 4px;
}
.polaroid-img { background: linear-gradient(160deg, var(--peach-l), var(--peach)); border-radius: 2px; overflow: hidden; aspect-ratio: 4/5; display: flex; align-items: flex-end; justify-content: center; }
.polaroid-img img { width: 96%; height: auto; object-fit: contain; }
.polaroid figcaption { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); text-align: center; margin-top: 8px; }
.fcard.polaroid { left: 3%; width: 168px; transform: rotate(-7deg); }
.fcard.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; }

.fcard.note {
  left: 26%; width: 178px; height: 210px; padding: 20px 18px;
  background: linear-gradient(180deg, #FCF3E3, #F5E6CC);
  border-radius: 4px; text-align: left;
  transform: rotate(3deg);
}
.fcard.note p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.32; color: var(--ink-2); margin: 0 0 14px; }
.fcard.note span { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-3); }

.fcard.notebook-card {
  left: 51%; width: 168px; height: 216px;
  background: var(--sage); border-radius: 14px; padding: 12px;
  display: grid; place-items: center;
  transform: rotate(-2deg);
}
.fcard.notebook-card img { width: 112%; max-width: none; transform: rotate(4deg); }

.fcard.map {
  right: 3%; width: 184px; height: 210px; border-radius: 10px; overflow: hidden;
  background: #EFE6D6;
  transform: rotate(7deg);
}
.map-svg { width: 100%; height: 100%; display: block; }
.map-pin {
  position: absolute; left: 52%; top: 40%; width: 20px; height: 20px; border-radius: 50%;
  background: var(--terracotta); box-shadow: 0 0 0 6px rgba(226, 85, 58, .2), 0 0 0 12px rgba(226, 85, 58, .1);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226,85,58,.35), 0 0 0 0 rgba(226,85,58,.15); } 100% { box-shadow: 0 0 0 10px rgba(226,85,58,0), 0 0 0 20px rgba(226,85,58,0); } }
.map-label {
  position: absolute; left: 16px; bottom: 60px;
  background: var(--white); padding: 4px 14px; border-radius: 6px;
  font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--terracotta);
  box-shadow: var(--shadow-card); transform: rotate(-4deg);
}

.folder:hover .polaroid { transform: rotate(-10deg) translateY(-26px); }
.folder:hover .note { transform: rotate(5deg) translateY(-18px); }
.folder:hover .notebook-card { transform: rotate(-4deg) translateY(-28px); }
.folder:hover .map { transform: rotate(10deg) translateY(-20px); }

/* ---------- Intro ---------- */
.intro { padding: 8px 0; }
.intro-inner {
  max-width: 940px; margin: 0 auto;
  background: var(--white); border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow);
  position: relative;
}
.intro-hi { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); color: var(--terracotta); margin-bottom: 12px; }
.wave { display: inline-block; font-style: normal; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } }
.intro .lead em { font-family: var(--serif); font-weight: 600; color: var(--olive-d); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; color: var(--ink-2); }
.based { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 15px; }
.based .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px rgba(107,122,58,.18); }

/* Real photos fill their frame */
.polaroid-img.is-photo, .mp-img.is-photo { background: var(--paper-2); }
.polaroid-img.is-photo img, .mp-img.is-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   ABOUT
   ========================================================== */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 72px); margin-top: 44px; align-items: start; }
.about-photo { position: relative; margin: 0; padding-top: 10px; }
.polaroid--lg { transform: rotate(-4deg); box-shadow: var(--shadow-card); }
.polaroid--lg .polaroid-img { aspect-ratio: 3 / 4; }
.about-sticker { position: absolute; width: 96px; right: -22px; bottom: -14px; transform: rotate(10deg); filter: drop-shadow(0 6px 10px rgba(70,45,20,.2)); }
.about-text p { color: var(--ink-2); }
.about-text .lead { color: var(--ink); }
.pull {
  margin: 8px 0 26px; padding: 20px 24px;
  background: var(--paper); border-left: 4px solid var(--terracotta); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19px; line-height: 1.5; color: var(--olive-d);
}

/* Expand / collapse (hidden only when JS is available) */
.js .more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .4s; }
.js .more.is-open { grid-template-rows: 1fr; opacity: 1; }
.more-inner { min-height: 0; overflow: hidden; }

/* ==========================================================
   INTERESTS — bento
   ========================================================== */
.bento {
  display: grid; gap: 16px; margin-top: 44px;
  grid-template-columns: 1.05fr 1fr 1fr;
  grid-template-areas: "tall wide wide" "tall a b";
}
.tile {
  position: relative; border-radius: var(--r-md); padding: 28px;
  overflow: hidden; font-size: 14.5px; line-height: 1.65;
}
.tile h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.tile p { margin-bottom: .8em; }
.tile-num { display: block; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 15px; margin-bottom: 8px; opacity: .75; }
.tile-strong { font-weight: 600; }
.focus { font-size: 13.5px; margin: 0; opacity: .9; }

.tile--tall { grid-area: tall; display: flex; flex-direction: column; justify-content: flex-end; }
.tile--wide { grid-area: wide; display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; min-height: 280px; }
.tile--cream { grid-area: a; }
.tile--sage { grid-area: b; }

.tile--olive { background: linear-gradient(180deg, var(--olive) 0%, var(--olive-l) 100%); color: var(--cream); }
.tile--olive p { color: rgba(251, 244, 233, .85); }
.tile--orange { background: linear-gradient(135deg, #F7B86E 0%, var(--peach) 45%, #EE8A4E 100%); color: var(--ink); }
.tile--orange p { color: rgba(58, 42, 30, .78); }
.tile--cream { background: #FCEFD9; box-shadow: inset 0 0 0 1px rgba(120,90,50,.08); }
.tile--cream p { color: var(--ink-2); }
.tile--sage { background: linear-gradient(180deg, #B6BC80, var(--sage)); color: var(--olive-d); }
.tile--sage p { color: rgba(63, 74, 34, .85); }

.photo-stack { position: relative; height: 250px; margin: -4px -6px 22px; }
.mini-polaroid {
  position: absolute; width: 58%; margin: 0;
  background: var(--white); padding: 8px 8px 30px; border-radius: 4px;
  box-shadow: 0 14px 26px -14px rgba(0,0,0,.5);
  transition: transform .45s var(--ease);
}
.mini-polaroid figcaption { position: absolute; bottom: 5px; left: 0; right: 0; text-align: center; color: var(--ink); font-weight: 600; font-size: 14px; }
.mp-img { aspect-ratio: 4/5; border-radius: 2px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.mp-img img { width: 100%; height: 100%; object-fit: contain; }
.mp-img.peach { background: linear-gradient(170deg, var(--peach-l), #EDB37A); }
.mp-img.cream { background: linear-gradient(170deg, #F8EAD2, #EEDAB8); }
.r-l { left: 0; top: 18px; transform: rotate(-6deg); z-index: 2; }
.r-r { right: 0; top: 0; transform: rotate(5deg); }
.r-r figcaption { text-align: right; padding-right: 14px; }
.tile--tall:hover .r-l { transform: rotate(-9deg) translate(-4px, -6px); }
.tile--tall:hover .r-r { transform: rotate(8deg) translate(4px, -10px); }

.pills { position: relative; min-height: 220px; }
.pill {
  position: absolute; z-index: 2; white-space: nowrap;
  background: var(--white); color: var(--ink);
  padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 16px -8px rgba(120, 50, 10, .45);
  transition: transform .4s var(--ease);
}
.p1 { top: 4%; right: 6%; transform: rotate(-14deg); }
.p2 { top: 38%; left: 2%; transform: rotate(6deg); }
.p3 { bottom: 10%; right: 0; transform: rotate(-4deg); }
.tile--wide:hover .p1 { transform: rotate(-8deg) translateY(-4px); }
.tile--wide:hover .p2 { transform: rotate(2deg) translateX(6px); }
.tile--wide:hover .p3 { transform: rotate(-8deg) translateY(-4px); }
.pills-sticker { position: absolute; width: 104px; right: 34%; top: 52%; transform: rotate(-8deg); filter: drop-shadow(0 8px 12px rgba(120,50,10,.25)); }

.tile-sticker { width: 74px; float: right; margin: -6px -6px 8px 10px; transform: rotate(8deg); filter: drop-shadow(0 6px 10px rgba(70,45,20,.2)); transition: transform .4s var(--ease); }
.tile:hover .tile-sticker { transform: rotate(-4deg) scale(1.06); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips li {
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--white); color: var(--ink-2); box-shadow: 0 0 0 1px rgba(120,90,50,.12);
}
.chips--light li { background: rgba(255, 253, 249, .7); color: var(--olive-d); box-shadow: none; }

/* ==========================================================
   RESEARCH
   ========================================================== */
.research { display: grid; grid-template-columns: 1fr 1.45fr; gap: 16px; margin-top: 44px; }
.research-info {
  background: rgba(255, 253, 249, .8); border-radius: var(--r-md);
  padding: 28px; box-shadow: inset 0 0 0 1px rgba(120,90,50,.1);
  display: flex; flex-direction: column;
}
.year { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 16px; color: var(--ink-3); margin-bottom: 18px; }
.year span { flex: 1; height: 1px; background: rgba(120,90,50,.18); }
.research-info h3 { font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 12px; }
.meta { font-size: 13.5px; color: var(--terracotta); font-weight: 600; margin: 0; }
.research-info hr { border: 0; height: 1px; background: rgba(120,90,50,.15); margin: 22px 0; width: 100%; }
.stat { margin-bottom: 18px; }
.stat:last-child { margin-bottom: 0; }
.stat b { display: block; font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 14px; color: var(--ink-3); }

.research-visual { display: flex; flex-direction: column; gap: 14px; }
.rv-card {
  position: relative; flex: 1; min-height: 330px;
  border-radius: var(--r-md); overflow: hidden;
  background: radial-gradient(circle at 70% 20%, #FCD7A3, transparent 55%), linear-gradient(135deg, #F7B86E, var(--peach) 55%, #EE8A4E);
  display: grid; place-items: center; padding: 24px 24px 60px;
}
.rv-card img { width: min(400px, 88%); filter: drop-shadow(0 20px 26px rgba(120, 50, 10, .3)); transition: transform .6s var(--ease); }
.rv-card:hover img { transform: translateY(-6px) rotate(-1deg); }
.rv-card .spark { color: var(--white); }
.rv-s1 { width: 22px; height: 22px; top: 22px; left: 26px; }
.rv-s2 { width: 14px; height: 14px; top: 58px; left: 58px; animation-delay: 1s; }
.sent-legend {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 14px; background: rgba(255,253,249,.92); padding: 7px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.sent-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sent-legend i { width: 9px; height: 9px; border-radius: 50%; }
.sent-legend .pos { background: var(--olive); }
.sent-legend .neu { background: var(--mustard); }
.sent-legend .neg { background: var(--terracotta); }

.cta-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 20px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: #E9C98E; color: var(--olive-d);
  font: 600 18px var(--sans);
  transition: background .25s, transform .25s var(--ease);
}
.cta-bar svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.cta-bar:hover { background: #E2BC77; }
.cta-bar:hover svg { transform: translateX(6px); }
.cta-bar.is-open svg { transform: rotate(-90deg); }

.research-body { margin-top: 16px; }
.rb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--ink-2); padding-top: 14px; }
.questions {
  background: var(--white); border-radius: var(--r-md); padding: 24px 28px; margin: 6px 0 18px;
  box-shadow: inset 0 0 0 1px rgba(120,90,50,.1);
}
.q-label { font-weight: 600; margin-bottom: 10px; }
.questions ol { margin: 0; padding-left: 0; list-style: none; counter-reset: q; display: grid; gap: 10px; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 36px 1fr; gap: 10px; color: var(--ink-2); }
.questions li::before {
  content: counter(q, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-weight: 700;
  color: var(--terracotta); font-size: 18px;
}
.rb-close { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--olive-d); }

.field { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.field .chips { margin: 0; }

/* ==========================================================
   EXPERIENCE
   ========================================================== */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.exp { border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.exp:hover { transform: translateY(-4px); }
.exp-img { height: 240px; display: grid; place-items: center; padding: 22px; position: relative; }
.exp-img img { max-height: 100%; width: auto; filter: drop-shadow(0 14px 18px rgba(40, 30, 10, .25)); transition: transform .6s var(--ease); }
.exp:hover .exp-img img { transform: scale(1.04) rotate(-1deg); }
.exp-img--photo { height: 300px; padding: 26px 22px 18px; }
.exp-polaroid { margin: 0; padding: 8px 8px 30px; transform: rotate(-3deg); box-shadow: 0 16px 28px -14px rgba(0,0,0,.55); position: relative; transition: transform .5s var(--ease); max-width: 100%; }
.exp-polaroid img { width: 340px; max-width: 100%; max-height: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: none; border-radius: 2px; }
.exp-polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 5px; margin: 0; }
.exp:hover .exp-polaroid { transform: rotate(-1deg) translateY(-4px); }
.exp:hover .exp-polaroid img { transform: none; }
.exp-body { padding: 26px 28px 30px; flex: 1; font-size: 15px; }
.exp-role { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.exp h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.01em; }
.exp-quote { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 17px; margin: 18px 0 0; padding-top: 16px; }

.exp--olive { background: var(--olive); color: var(--cream); }
.exp--olive .exp-img { background: radial-gradient(circle at 50% 60%, rgba(244,162,89,.55), transparent 62%), var(--olive-l); }
.exp--olive .exp-body p { color: rgba(251,244,233,.85); }
.exp--olive .exp-role { color: var(--peach-l) !important; }
.exp--olive .exp-quote { border-top: 1px dashed rgba(251,244,233,.3); color: var(--cream) !important; }

.exp--peach { background: #FBE3C3; color: var(--ink); }
.exp--peach .exp-img { background: radial-gradient(circle at 50% 60%, rgba(255,253,249,.8), transparent 62%), var(--peach-l); }
.exp--peach .exp-body p { color: var(--ink-2); }
.exp--peach .exp-role { color: var(--terracotta) !important; }
.exp--peach .exp-quote { border-top: 1px dashed rgba(120,90,50,.25); color: var(--olive-d) !important; }

.exp-sticker { position: absolute; right: 0; top: -10px; width: 150px; transform: rotate(8deg); filter: drop-shadow(0 10px 14px rgba(70,45,20,.2)); }
@media (max-width: 700px) { .exp-sticker { width: 92px; top: -30px; right: -6px; } }

/* ==========================================================
   NOTES
   ========================================================== */
.notes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.notes-books { width: 190px; flex: none; transform: rotate(4deg); filter: drop-shadow(0 12px 16px rgba(70,45,20,.2)); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.note-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--white); border-radius: var(--r-md); padding: 26px;
  box-shadow: inset 0 0 0 1px rgba(120,90,50,.1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.note-card:nth-child(2) { transform: rotate(.6deg); }
.note-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: inset 0 0 0 1px rgba(120,90,50,.1), var(--shadow-card); }
.note-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #FADBD3; color: var(--terracotta-d); margin-bottom: 18px; }
.note-tag--olive { background: #E3E7C9; color: var(--olive-d); }
.note-tag--mustard { background: #F6E3B8; color: #8A6216; }
.note-card h3 { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--ink); margin-bottom: 10px; }
.note-card p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.note-foot { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--terracotta); margin-top: 8px; }
.note-foot svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.note-card:hover .note-foot svg { transform: translateX(4px); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-env { width: 180px; margin-bottom: 10px; transform: rotate(-6deg); filter: drop-shadow(0 14px 18px rgba(70,45,20,.22)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
.contact .c1 { width: 28px; height: 28px; top: 18%; left: 18%; }
.contact .c2 { width: 18px; height: 18px; bottom: 22%; right: 16%; animation-delay: 1.4s; }
.contact .display { font-size: clamp(38px, 6vw, 68px); }

/* ---------- Footer ---------- */
.footer {
  max-width: 1240px; margin: 0 auto; padding: 28px 36px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.footer p { margin: 0; display: flex; align-items: center; gap: 10px; }
.footer-logo { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--terracotta); color: var(--white); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 14px; }
.footer-tag { font-family: var(--serif); color: var(--terracotta); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .note-card.reveal.is-in:nth-child(2) { transform: rotate(.6deg); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .nav-links a { padding: 6px 8px; font-size: 13px; }
}

@media (max-width: 900px) {
  .nav { width: 100%; max-width: 520px; justify-content: space-between; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; padding: 6px 0 2px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 15px; }

  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "wide wide" "tall a" "tall b"; }
  .research { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 700px) {
  main { padding: 84px 12px 16px; gap: 16px; }
  .panel { border-radius: 22px; }

  .folder { height: 300px; margin-top: 44px; }
  .folder-back { height: 200px; }
  .folder-front { height: 112px; }
  .folder-word { font-size: 80px; bottom: -18px; }
  .fcard { bottom: 50px; }
  .fcard.polaroid { width: 128px; left: 0; }
  .fcard.note { width: 140px; height: 180px; left: 24%; padding: 14px; }
  .fcard.note p { font-size: 15px; }
  .fcard.notebook-card { display: none; }
  .fcard.map { width: 140px; height: 176px; right: 0; }
  .map-label { font-size: 16px; bottom: 50px; }

  .intro-cols, .rb-cols { grid-template-columns: 1fr; gap: 0; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "wide" "tall" "a" "b"; }
  .tile--wide { grid-template-columns: 1fr; }
  .pills { min-height: 190px; }
  .pills-sticker { width: 80px; right: auto; left: 4%; top: auto; bottom: 0; }
  .p3 { bottom: 4%; }
  .hero .s1, .hero .s2, .hero .s4 { display: none; }
  .photo-stack { height: 230px; }

  .exp-grid, .notes { grid-template-columns: 1fr; }
  .note-card:nth-child(2) { transform: none; }
  .notes-head { flex-direction: column; align-items: flex-start; }
  .notes-books { width: 140px; align-self: flex-end; margin-top: -20px; }
  .footer { justify-content: center; text-align: center; padding: 24px 16px 32px; }
}

@media (max-width: 420px) {
  .fcard.polaroid { width: 112px; }
  .fcard.note { left: 22%; width: 128px; }
  .fcard.map { width: 124px; }
  .hero-tagline { letter-spacing: .26em; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
