/* =========================================================
   Zion R. Perry — personal site
   Vintage-futuristic pastel design system
   Motifs (abstract): molecule networks, jellyfish blooms, tardigrade forms
   ========================================================= */

:root{
  /* paper + ink */
  --paper: #faf5ee;
  --paper-alt: #f2ebe0;
  --paper-deep: #ece3d5;
  --ink: #362f3d;
  --ink-soft: #6d6275;
  --ink-faint: #9b90a1;
  --line: rgba(54,47,61,0.14);
  --line-soft: rgba(54,47,61,0.08);

  /* pastel palette */
  --lilac: #c6b2e8;
  --lilac-soft: #e6dbf6;
  --lilac-deep: #9a7dc9;
  --rose: #e6b0ac;
  --rose-soft: #f6e0dd;
  --rose-deep: #cb8681;
  --sage: #a3c49c;
  --sage-soft: #dcebd7;
  --sage-deep: #7a9e73;
  --sky: #a3c1d9;
  --sky-soft: #dbe9f2;
  --sky-deep: #6f95b3;
  --stone: #beb8ae;
  --stone-soft: #e7e2d8;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", "SF Mono", Menlo, monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px -20px rgba(54,47,61,0.35);
  --shadow-tight: 0 8px 20px -12px rgba(54,47,61,0.3);
  --container: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ overflow-x: hidden; background: var(--paper); }
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; font-weight: 500; }
h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; }
h3{ font-size: 1.3rem; font-weight: 600; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: inherit; }
img{ max-width: 100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section{ position: relative; }

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); box-shadow: var(--shadow-tight); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--ink); background: var(--paper-alt); }
.btn-soft{
  background: var(--lilac-soft);
  border-color: transparent;
  color: var(--ink);
}
.btn-soft:hover{ background: var(--lilac); }
.btn-row{ display:flex; gap: 14px; flex-wrap: wrap; }

/* ---------- nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.brand svg{ width: 34px; height: 34px; flex-shrink:0; }
.brand-logo{ width: auto; height: 40px; flex-shrink:0; }
.brand small{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: uppercase;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a{
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover{ background: var(--lilac-soft); color: var(--ink); }
.nav-links a.active{ background: var(--ink); color: var(--paper); }
.nav-toggle{
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width: 820px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--line-soft);
    display: none;
    gap: 2px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding: 12px 14px; }
}

/* ---------- hero ---------- */
.hero{
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-swirl{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero h1 em,
.page-hero h1 em,
#teaching h2 em{
  font-style: normal;
  color: var(--lilac-deep);
}
.amp{ color: var(--lilac-deep); }
.hero p.lede{
  font-size: 1.15rem;
  max-width: 46ch;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* ---------- decorative blobs (jellyfish-bloom inspired) ---------- */
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.blob-anim{ animation: drift 14s ease-in-out infinite; }
@keyframes drift{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-16px, 22px) scale(1.06); }
}
.float{ animation: floaty 7s ease-in-out infinite; }
@keyframes floaty{
  0%,100%{ transform: translateY(0px); }
  50%{ transform: translateY(-14px); }
}

/* dotted molecule-grid texture band */
.molecule-field{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- sections ---------- */
.section{ padding: 88px 0; }
.section-alt{ background: var(--paper-alt); }
.section-head{
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left{ margin-left:0; text-align:left; }

/* ---------- stat row ---------- */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.stat-tile{
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}
.stat-tile .num{
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink);
  display:block;
}
.stat-tile .label{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 760px){ .stats{ grid-template-columns: repeat(2,1fr); } }

/* ---------- cards ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px){ .card-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px){ .card-grid{ grid-template-columns: 1fr; } }

.card{
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.card .icon{
  width: 52px; height:52px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.card .icon svg{ width: 28px; height:28px; }
.icon.lilac{ background: var(--lilac-soft); color: var(--lilac-deep); }
.icon.rose{ background: var(--rose-soft); color: var(--rose-deep); }
.icon.sage{ background: var(--sage-soft); color: var(--sage-deep); }
.icon.sky{ background: var(--sky-soft); color: var(--sky-deep); }

.card h3{ margin-bottom: 10px; }
.card p{ font-size: 0.96rem; margin-bottom: 14px; }
.tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top: 14px; }
.card a.card-link{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--rose-deep);
  padding-bottom: 2px;
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
}

/* project note card (research page — "field notebook" feel) */
.notebook{
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}
.notebook .project-image{
  order: 1;
  min-height: 220px;
  border-radius: var(--radius-md);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.notebook .project-image img{
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.notebook .img-caption{
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 4px 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: right;
  color: var(--ink-faint);
}
.notebook-body{ order: 2; display: flex; flex-direction: column; min-width: 0; }
#arena .project-image{ align-self: start; height: 540px; }
.notebook.reverse .project-image{ order: 2; }
.notebook.reverse .notebook-body{ order: 1; }

/* wide/banner layout for images that are long and shallow (e.g. arc plots) */
.notebook.wide{ grid-template-columns: 1fr; }
.notebook.wide .project-image{
  order: 1;
  min-height: 0;
  background: transparent;
}
.notebook.wide .project-image img{
  width: 100%;
  height: auto;
  object-fit: contain;
}
.notebook.wide .notebook-body{ order: 2; }

.notebook-head{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.notebook .badge{
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 62% 38% 55% 45% / 45% 52% 48% 55%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 0;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.7), 0 6px 16px -8px rgba(54,47,61,0.3);
}
.notebook .badge.lilac{ background: rgba(198,178,232,0.4); }
.notebook .badge.sage{ background: rgba(163,196,156,0.4); }
.notebook .badge.sky{ background: rgba(163,193,217,0.4); }
.notebook .badge.rose{ background: rgba(230,176,172,0.4); }
.notebook .badge svg{ width: 22px; height:22px; }
.notebook h3{ margin-bottom: 0; }
.notebook .meta{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.notebook ul.points{ margin: 14px 0; }
.notebook ul.points li{
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.notebook ul.points li::before{
  content: "";
  position: absolute; left:0; top: 9px;
  width: 6px; height:6px; border-radius: 50%;
  background: var(--sage-deep);
}
#hotair .points li::before{ background: var(--lilac-deep); }
#primates .points li::before{ background: var(--sage-deep); }
#arena .points li::before{ background: var(--sky-deep); }
#protein-design .points li::before{ background: var(--rose-deep); }
@media (max-width: 720px){
  .notebook{ grid-template-columns: 1fr; }
  .notebook .project-image{ order: 1 !important; min-height: 180px; }
  .notebook-body{ order: 2 !important; }
  .notebook.wide .project-image{ min-height: 0; }
  #arena .project-image{ height: auto; align-self: auto; }
}

/* tag pill */
.tag{
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-alt);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

/* ---------- timeline ---------- */
.timeline{
  position: relative;
  padding-left: 30px;
  border-left: 2px dotted var(--stone);
}
.timeline-item{
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content:"";
  position: absolute;
  left: -37px; top: 4px;
  width: 12px; height:12px;
  border-radius: 50%;
  background: var(--lilac);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--lilac-deep);
}
.timeline-item .meta{
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 6px;
}
.timeline-item h3{ margin-bottom: 4px; }
.timeline-item .org{ color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 10px; }
.timeline-item p{ font-size: 0.95rem; }

/* ---------- publications ---------- */
.pub-list{ display:flex; flex-direction: column; gap: 4px; }
.pub-group-title{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--sage-deep);
  margin: 40px 0 16px;
}
.pub-group-title:first-child{ margin-top: 0; }
.pub{
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}
.pub .dot{
  width: 8px; height:8px; border-radius:50%;
  background: var(--lilac-deep);
  margin-top: 8px;
}
#writing .dot{ background: var(--sky-deep); }
.pub .title{ font-weight: 600; color: var(--ink); }
.pub .desc{ font-size: 0.92rem; color: var(--ink-soft); margin-top: 6px; }
.pub .venue{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); margin-top: 6px; }
.pub a{ color: var(--lilac-deep); text-decoration: none; border-bottom: 1px solid transparent; }
.pub a:hover{ border-color: var(--lilac-deep); }
#writing .pub a{ color: var(--sky-deep); }
#writing .pub a:hover{ border-color: var(--sky-deep); }

/* ---------- list rows (grants/honors/service) ---------- */
.row-list{ display:flex; flex-direction: column; }
.row-list li{
  display:flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96rem;
}
.row-list li .r-left{ color: var(--ink); font-weight: 600; }
.row-list li .r-mid{ color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.82rem; }
.row-list li .r-right{ color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.85rem; white-space: nowrap; }

/* ---------- quote / dreams section ---------- */
.dream-panel{
  border-radius: var(--radius-lg);
  padding: 56px;
  background: linear-gradient(135deg, var(--lilac-soft), var(--sky-soft) 55%, var(--rose-soft));
  position: relative;
  overflow: hidden;
}
.dream-panel blockquote{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-style: italic;
  color: var(--ink);
  margin: 0;
  max-width: 62ch;
  line-height: 1.5;
}
.dream-panel .eyebrow{ color: var(--rose-deep); }

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 40px;
  margin-top: 40px;
  background: var(--paper-alt);
}
.footer-grid{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links{ display:flex; gap: 22px; flex-wrap: wrap; }
.footer-links a{
  text-decoration:none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-links a:hover{ color: var(--ink); }
.footer-note{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 30px;
}

/* ---------- misc page header (non-home pages) ---------- */
.page-hero{
  padding: 70px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow{ margin-bottom: 16px; }
.page-hero p.lede{ max-width: 60ch; font-size: 1.08rem; }

/* core research interests: a small molecular backbone, one node per interest */
.interests-panel{ margin-top: 32px; max-width: 440px; }
.interests-panel .eyebrow{ margin-bottom: 18px; }
.interest-chain{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 2px;
}
.interest-chain::before{
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--lilac-deep), var(--sky-deep), var(--sage-deep), var(--rose-deep));
  opacity: 0.35;
}
.interest-node{
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.node-dot{
  width: 13px; height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-soft);
  position: relative;
  z-index: 1;
}
.node-label{
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

/* corner bracket decoration (HUD / futuristic touch) */
.bracket{
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--lilac-deep);
  opacity: 0.5;
}
.bracket.tl{ top: 18px; left: 18px; border-top: 2px solid; border-left: 2px solid; }
.bracket.br{ bottom: 18px; right: 18px; border-bottom: 2px solid; border-right: 2px solid; }

/* avatar monogram (about page) */
/* about page: photo + bio stacked for a wider reading measure, facts card beside it */
.about-photo{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-soft);
  background: var(--paper-alt);
}
.about-photo-side{
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-soft);
  background: var(--paper-alt);
  margin-top: 20px;
  display: block;
}
.photo-caption{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 10px;
}
.about-intro{
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px){
  .about-intro{ grid-template-columns: 1fr; }
}
.about-lead{ display: flex; flex-direction: column; gap: 26px; }
.about-copy p{
  font-size: 1.03rem;
  line-height: 1.8;
  margin-bottom: 1.3em;
}
.cv-mini-link{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--paper-alt);
  border: 1px solid var(--line-soft);
  color: var(--lilac-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.cv-mini-link svg{ width: 16px; height: 16px; flex-shrink: 0; }
.cv-mini-link:hover{ background: var(--lilac-soft); transform: translateY(-1px); }
.about-copy p:last-child{ margin-bottom: 0; }

/* two column layout helper */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px){ .two-col{ grid-template-columns: 1fr; gap: 36px; } }

/* reveal-on-scroll */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* contact page */
.contact-panel{
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.contact-inner{ width: fit-content; max-width: 100%; margin: 0 auto; text-align: left; }
.contact-methods{ display:flex; flex-direction:column; align-items: stretch; gap: 14px; margin-top: 26px; }
.contact-method{
  display:flex; align-items:center; gap: 16px;
  max-width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--paper-alt);
  text-decoration:none;
  color: var(--ink);
  transition: background .2s ease, transform .2s ease;
}
.contact-method:hover{ background: var(--lilac-soft); transform: translateX(4px); }
.contact-method .icon{ width:40px;height:40px;border-radius:12px; flex-shrink:0; }
.contact-method .icon svg{ width:22px;height:22px; }
.contact-method > div:last-child{ min-width: 0; flex: 1; }
.contact-method .label{ font-weight: 600; }
.contact-method .value{ font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-faint); overflow-wrap: anywhere; }
@media (max-width: 520px){
  .contact-panel{ padding: 28px 22px; }
}

/* about fun-fact callout */
.callout{
  border-radius: var(--radius-md);
  padding: 22px 24px;
  background: var(--sage-soft);
  border: 1px dashed var(--sage-deep);
  font-size: 0.95rem;
  color: var(--ink);
  display:flex;
  gap: 14px;
  align-items: flex-start;
}
.callout svg{ width: 26px; height:26px; flex-shrink:0; color: var(--sage-deep); margin-top:2px;}

/* featured course card (DNA -> RNA -> protein) */
.course-feature{
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(198,178,232,0.14), rgba(163,193,217,0.12) 50%, rgba(230,176,172,0.14));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}
.course-feature .eyebrow{ margin-bottom: 8px; }
.course-feature h4{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.course-feature > p{
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 22px;
}
.dna-flow{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.dna-flow-node{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dna-flow-icon{
  width: 52px; height: 52px;
  border-radius: 62% 38% 55% 45% / 45% 52% 48% 55%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.7), 0 6px 16px -8px rgba(54,47,61,0.3);
}
.dna-flow-icon svg{ width: 26px; height: 26px; }
.dna-flow-node.lilac .dna-flow-icon{ background: rgba(198,178,232,0.4); color: var(--lilac-deep); }
.dna-flow-node.sky .dna-flow-icon{ background: rgba(163,193,217,0.4); color: var(--sky-deep); }
.dna-flow-node.rose .dna-flow-icon{ background: rgba(230,176,172,0.4); color: var(--rose-deep); }
.dna-flow-node span{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.dna-flow-arrow{
  color: var(--ink-faint);
  font-size: 1.3rem;
  margin-bottom: 26px;
}
@media (max-width: 480px){
  .dna-flow{ gap: 8px; }
  .dna-flow-icon{ width: 44px; height: 44px; }
  .dna-flow-icon svg{ width: 22px; height: 22px; }
}

/* download button on cv page */
.cv-download{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 50px;
}
.cv-download h3{ color: var(--paper); margin-bottom:4px; }
.cv-download p{ color: rgba(250,245,238,0.7); margin: 0; }

.skills-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 30px; margin-top: 30px; }
@media (max-width: 700px){ .skills-grid{ grid-template-columns: 1fr; } }
.skills-grid h4{ font-family: var(--font-mono); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 14px; }
.skills-grid .tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top:0; }
.skills-grid .tag{ background: var(--paper); border-color: var(--line); }
