/* =========================================================
   Kritika Prasai — Personal Site
   Theme: "Molecular Intelligence"
   Palette: midnight ink · bioluminescent teal · heatmap coral
   Type: Space Grotesk (display) · Inter (body) · JetBrains Mono (labels)
   ========================================================= */

:root {
  /* Surfaces */
  --bg:         #faf8f3;
  --bg-warm:    #fffbf7;
  --bg-light:   #ffffff;
  --bg-accent:  #fef5f0;

  /* Accents - Warm Pastels */
  --peach:      #f2a679;
  --peach-light:#f5c5b8;
  --rose:       #e8a0a0;
  --gold:       #d4b088;
  --sage:       #b8d4c8;
  --lavender:   #d4c5e8;

  /* Text */
  --text:       #3d3d3d;
  --text-dark:  #2a2a2a;
  --muted:      #8a8a8a;
  --muted-light:#a8a8a8;

  /* Lines */
  --line:       rgba(61, 61, 61, 0.08);
  --line-subtle: rgba(242, 166, 121, 0.12);

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --wrap: 1140px;
  --grad: linear-gradient(100deg, var(--peach), var(--rose) 50%, var(--lavender));
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ============ NAV ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 243, 0);
  backdrop-filter: blur(0px);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}
.header.scrolled {
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.navbar {
  max-width: var(--wrap);
  margin: auto;
  padding: 1.05rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
}
.logo-text { font-size: 1.12rem; }
.logo-mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(242, 166, 121, .45);
  flex: none;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-dark); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  height: 2px;
  width: 0%;
  background: var(--grad);
  transition: width .1s linear;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(900px 500px at 78% 10%, rgba(242,166,121,.2), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(232,160,160,.16), transparent 60%),
    var(--bg-warm);
  color: var(--text-dark);
  overflow: hidden;
  margin-top: -72px;
  padding-top: 8rem;
}
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(212,192,232,.18), transparent 65%);
  filter: blur(20px);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--peach);
  margin-bottom: 1.4rem;
}

.hero-text h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
}
.hero-role span {
  display: block;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: .35rem;
  letter-spacing: 0;
}

.hero-blurb {
  max-width: 38ch;
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.04rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn-primary {
  background: var(--peach);
  color: #fff;
  box-shadow: 0 10px 30px rgba(242,166,121,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(242,166,121,.48); }
.btn-ghost {
  border: 1.5px solid var(--peach);
  color: var(--text-dark);
  background: transparent;
}
.btn-ghost:hover { background: rgba(242,166,121,.08); transform: translateY(-3px); }

.social-links { display: flex; gap: .7rem; flex-wrap: wrap; }
.social-links a {
  font-family: var(--mono);
  font-size: .82rem;
  padding: .5rem .95rem;
  border: 1px solid var(--peach-light);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.social-links a:hover { color: var(--text-dark); border-color: var(--peach); background: rgba(242,166,121,.1); }

/* Portrait */
.hero-image { position: relative; justify-self: center; }
.portrait-frame {
  position: relative;
  width: 300px; height: 360px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(242,166,121,.25);
  background: linear-gradient(160deg, #fff5f0, #fffbf7);
  box-shadow: 0 30px 60px rgba(0,0,0,.08);
  z-index: 2;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.portrait-frame img.img-missing { opacity: 0; }
.portrait-frame:has(img.img-missing)::before {
  content: "Add profile.jpg";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  background:
    repeating-linear-gradient(45deg, rgba(242,166,121,.04) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #fff5f0, #fffbf7);
}
.portrait-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--mono);
  font-size: .72rem;
  padding: .35rem .7rem;
  border-radius: 7px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--peach-light);
  color: var(--peach);
  z-index: 3;
}
.orbit-ring {
  position: absolute;
  inset: -26px;
  border-radius: 32px;
  border: 1px dashed rgba(242,166,121,.35);
  z-index: 1;
  animation: orbit 22s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--muted);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--peach);
  animation: scrolldot 1.6s var(--ease) infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(14px)} 100%{opacity:0} }

/* ============ FOCUS STRIP (marquee) ============ */
.focus-strip {
  background: var(--bg-accent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1rem 0;
}
.focus-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.focus-track span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--muted);
}
.focus-track i { color: var(--peach); font-style: normal; font-size: .8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.focus-strip:hover .focus-track { animation-play-state: paused; }

/* ============ SECTION SHELL ============ */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.section-dark {
  max-width: none;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(212,192,232,.12), transparent 60%),
    #f5f0ed;
  color: var(--text-dark);
}
.section-dark > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 3rem; max-width: 720px; }
.kicker {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--peach);
  margin-bottom: .8rem;
}
.kicker-light { color: var(--peach); }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-dark);
}
.section-sub { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-sub { color: var(--muted); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-lead p { margin-bottom: 1.2rem; color: #555; font-size: 1.08rem; }
.about-lead strong { color: var(--text-dark); font-weight: 600; }

.about-stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-stats li {
  background: var(--bg-light);
  padding: 1.6rem 1.4rem;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.stat-label { font-size: .82rem; color: var(--muted); margin-top: .4rem; display: block; }

/* ============ RESEARCH ============ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.research-card {
  background: var(--bg-light);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.research-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242,166,121,.6);
  box-shadow: 0 24px 50px rgba(0,0,0,.06);
}
.research-media {
  height: 190px;
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(242,166,121,.08) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #fff5f0, #fffbf7);
  border-bottom: 1px solid var(--line);
}
.research-media::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 1.5rem;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
}
.research-body { padding: 1.4rem 1.5rem 1.7rem; }
.research-body .tag {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--peach);
  margin-bottom: .6rem;
}
.research-body h3 { font-size: 1.3rem; margin-bottom: .6rem; color: var(--text-dark); }
.research-body p { color: var(--muted); font-size: .95rem; }

/* ============ PUBLICATIONS ============ */
.pub-list { list-style: none; counter-reset: pub; }
.pub-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding-left .3s var(--ease);
}
.pub-item:last-child { border-bottom: 1px solid var(--line); }
.pub-item:hover { padding-left: 10px; }
.pub-index {
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 500;
  color: var(--peach);
  padding-top: .15rem;
}
.pub-title { font-family: var(--display); font-weight: 600; font-size: 1.18rem; margin-bottom: .4rem; color: var(--text-dark); }
.pub-authors { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.pub-authors strong { color: var(--peach); }
.pub-meta { font-size: .88rem; color: var(--muted); }
.pub-venue {
  font-weight: 600;
  color: var(--text-dark);
  font-style: italic;
}
.pub-status {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--peach);
  border: 1px solid rgba(242,166,121,.4);
  padding: .1rem .5rem;
  border-radius: 6px;
}

/* ============ TIMELINE ============ */
.timeline-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.timeline-heading {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--peach);
  margin-bottom: 1.6rem;
}
.timeline { position: relative; }
.tl-item {
  position: relative;
  padding: 0 0 2rem 1.8rem;
  border-left: 1px solid var(--line);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -7px; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--peach);
  box-shadow: 0 0 12px rgba(242,166,121,.4);
}
.tl-period { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
.tl-item h3 { font-size: 1.18rem; margin-bottom: .25rem; color: var(--text-dark); }
.tl-org { color: var(--peach); font-size: .92rem; font-weight: 500; margin-bottom: .5rem; }
.tl-item p:not(.tl-period):not(.tl-org) { color: var(--muted); font-size: .94rem; }

/* ============ ENTRY LIST (leadership / talks) ============ */
.entry-list { border-top: 1px solid var(--line); }
.entry {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.entry:hover { background: linear-gradient(90deg, rgba(242,166,121,.06), transparent 60%); }
.entry-year { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--peach); }
.entry-body h3 { font-size: 1.22rem; margin-bottom: .3rem; color: var(--text-dark); }
.entry-org { font-weight: 600; color: var(--peach); margin-bottom: .4rem; font-size: .95rem; }
.entry-body p:last-child { color: var(--muted); font-size: .95rem; }

/* ============ AWARDS ============ */
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.award-card-with-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.award-card-with-image:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.06); }

.award-media {
  height: 180px;
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(242,166,121,.08) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #fff5f0, #fffbf7);
  border-bottom: 1px solid var(--line);
}
.award-media::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 1rem;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
}
.award-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.award-card {
  position: relative;
  padding: 1.6rem 1.6rem;
  background: transparent;
  border: none;
}
.award-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
}
.award-card > * { position: relative; }
.award-year { font-family: var(--mono); font-size: .85rem; color: var(--peach); margin-bottom: .6rem; }
.award-card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--text-dark); font-weight: 600; }
.award-org { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.award-date { font-size: .82rem; color: var(--peach); font-weight: 600; }

/* ============ NEWS ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.news-card {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(242,166,121,.6); }
.news-media {
  height: 160px;
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(232,160,160,.08) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #fff5f0, #fffbf7);
}
.news-media::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .76rem; color: var(--muted);
}
.news-body { padding: 1.3rem 1.4rem 1.6rem; }
.news-date { font-family: var(--mono); font-size: .78rem; color: var(--peach); margin-bottom: .4rem; }
.news-body h3 { font-size: 1.15rem; margin-bottom: .4rem; color: var(--text-dark); }
.news-body p { color: var(--muted); font-size: .9rem; }

/* ============ CONTACT ============ */
.contact-card {
  max-width: var(--wrap);
  margin: 0 auto;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(242,166,121,.15), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(232,160,160,.12), transparent 60%),
    #f5ede8;
  color: var(--text-dark);
  padding: 4rem 3rem;
  border: 1px solid rgba(242,166,121,.25);
}
.contact-inner { max-width: 640px; }
.contact-card h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; margin: .6rem 0 1rem; }
.contact-sub { color: var(--muted); margin-bottom: 2.4rem; font-size: 1.05rem; }
.contact-rows { display: grid; gap: .9rem; }
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(242,166,121,.2);
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255,255,255,.5);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
a.contact-row:hover { border-color: var(--peach); background: rgba(242,166,121,.12); transform: translateX(6px); }
.contact-label {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--peach);
  min-width: 84px;
}
.contact-value { font-size: 1.02rem; color: var(--text-dark); }

/* ============ FOOTER ============ */
.footer {
  background: #f5ede8;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2.4rem 1.5rem;
}
.footer-inner {
  max-width: var(--wrap);
  margin: auto;
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: center;
  font-size: .9rem;
}

/* ============ BACK TO TOP ============ */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--peach);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(242,166,121,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 900;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; }
  .timeline-cols { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 248, 243, .97);
    backdrop-filter: blur(16px);
    padding: 1rem 1.5rem 1.6rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); color: var(--text-dark); }
  .nav-links a::after { display: none; }

  .section { padding: 4rem 1.3rem; }
  .contact-card { padding: 2.6rem 1.6rem; }
  .entry { grid-template-columns: 64px 1fr; gap: 1.2rem; }
  .pub-item { grid-template-columns: 44px 1fr; gap: 1rem; }
  .portrait-frame { width: 100%; max-width: 320px; height: 340px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
