/* ============================================================
   MAIN STYLESHEET
   ------------------------------------------------------------
   Organised in the same order as the page, top to bottom:
   NAV -> HERO -> INTRO -> ABOUT -> RESEARCH -> PROJECTS ->
   PUBLICATIONS -> BLOG -> CONTACT -> FOOTER
   Search this file by section name (Ctrl/Cmd+F "== ABOUT ==")
   to jump straight to what you want to edit.
============================================================ */

/* ============================================================
   == NAVIGATION ==
   Starts transparent over the hero image. JS adds the class
   "nav--scrolled" once the user scrolls past the hero, which
   swaps it to a solid background so it stays readable.
============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth),
              height var(--dur-med) var(--ease-smooth);
}

.nav--scrolled {
  background: rgba(18, 23, 58, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-nav);
  height: calc(var(--nav-height) - 12px);
}

.nav__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-smooth);
}
.nav__brand:hover { transform: scale(1.04); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.1rem);
}

.nav__link {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-on-dark-soft);
  padding: 0.4rem 0.1rem;
  transition: color var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth);
  display: inline-block;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-smooth);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-on-dark);
  transform: scale(1.08);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* hamburger - hidden on desktop, shown in responsive.css under the tablet breakpoint */
.nav__toggle {
  display: none;
  position: relative;
  width: 30px; height: 22px;
  z-index: 1200;
}
.nav__toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-smooth),
              opacity var(--dur-med) var(--ease-smooth),
              background var(--dur-med) var(--ease-smooth);
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }

/* hamburger morphs into an X when the mobile drawer is open */
.nav__toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }


/* ============================================================
   == MOBILE NAV DRAWER ==
   Full-height side panel. Hidden off-screen by default and
   slid in with a transform - this is what gives the smooth
   open/close animation. No search bar, by request.
============================================================ */

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(78vw, 340px);
  background: var(--color-ink);
  z-index: 1150;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height-mobile) + var(--space-4)) var(--space-4) var(--space-4);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.mobile-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(237, 235, 251, 0.25);
  color: var(--text-on-dark);
  transition: transform var(--dur-fast) var(--ease-smooth), border-color var(--dur-fast);
}
.mobile-drawer__close:hover {
  transform: scale(1.1) rotate(90deg);
  border-color: var(--color-accent);
}
.mobile-drawer__close svg { width: 18px; height: 18px; }

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-drawer__link {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text-on-dark-soft);
  padding: 0.55rem 0;
  transition: color var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth),
              padding-left var(--dur-fast) var(--ease-smooth);
}
.mobile-drawer__link:hover,
.mobile-drawer__link:active,
.mobile-drawer__link.is-active {
  color: var(--text-on-dark);
  padding-left: 0.4rem;
}

.mobile-drawer__footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(237, 235, 251, 0.12);
  display: flex;
  gap: var(--space-3);
}

/* dark backdrop behind the drawer, click to close */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 28, 0.55);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-smooth), visibility var(--dur-slow);
}
.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* lock page scroll while the drawer is open (class toggled by JS on <body>) */
body.drawer-locked {
  overflow: hidden;
}


/* ============================================================
   == HERO ==
   Full-viewport section. Background image + quote are picked
   at random by assets/js/main.js from the lists in data.js.
============================================================ */

.hero {
  position: relative;
  height: 50svh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-ink); /* fallback while the image loads */
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 16s var(--ease-out) forwards;
}

/* soft, slow zoom on the hero image - subtle, not a "Ken Burns" cliché speed */
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* darkening gradient so white text stays legible over any photo */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,23,58,0.35) 0%, rgba(18,23,58,0.25) 40%, rgba(12,15,40,0.78) 100%);
}

/*
.hero__fade {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 30px;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, var(--color-paper) 100%);
  pointer-events: none;
}
*/

/* animated particle-trajectory overlay, see main.js -> drawTrajectories() */
.hero__trajectories {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 clamp(1.5rem, 6vw, 5rem) clamp(3.5rem, 9vw, 6rem);
}

.hero__quote {
  max-width: 900px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-hero-quote);
  line-height: 1.4;
  color: var(--text-on-dark);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero__quote-mark {
  color: var(--color-accent);
  font-style: normal;
}

.hero__attribution {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--text-on-dark-soft);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero__attribution::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--color-accent);
  margin-right: 0.8rem;
  vertical-align: middle;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 6vw, 5rem);
  bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-on-dark-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}
.hero__scroll-cue .line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--text-on-dark-soft), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ============================================================
   == INTRO (photo + short introduction) ==
============================================================ */

.intro {
  padding-block: var(--section-padding-y);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.intro__photo-wrap {
  position: relative;
}

.intro__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

/* thin offset frame behind the photo - small structural detail */
.intro__photo-wrap::before {
  content: '';
  position: absolute;
  top: 16px; left: -16px;
  width: 100%; height: 100%;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  z-index: -1;
}

.intro__eyebrow {
  margin-bottom: var(--space-2);
}

.intro__name {
  font-size: var(--fs-h1);
  margin-bottom: 0.3rem;
}

.intro__role {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.intro__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  max-width: 62ch;
}

.intro__text p:last-child { margin-bottom: 0; }

.intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}


/* ============================================================
   == ABOUT ==
   Narrative text on the left, a simple education timeline on
   the right (the one place a numbered/sequential device makes
   sense, since a timeline really is chronological).
============================================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  max-width: 62ch;
}

.timeline {
  border-left: 1.5px solid var(--color-line);
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-4) - 5.5px);
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 2px solid var(--color-accent);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline__place {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}


/* ============================================================
   == RESEARCH ==
   Grid of research-interest cards + a longer statement.
============================================================ */

.research__statement {
  max-width: 74ch;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: var(--lh-loose);
  margin-bottom: var(--space-5);
}
.research__statement strong {
  color: var(--text-primary);
  font-weight: 600;
}

.research__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.research-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth),
              border-color var(--dur-med) var(--ease-smooth);
  cursor: default;
}

/* shared "expanded" look, triggered by :hover on desktop and
   .is-expanded (via JS) on touch devices */
.research-card:hover,
.research-card.is-expanded {
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
  z-index: 2;             /* lifts above neighbouring cards while it grows */
}

.research-card__desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-smooth),
              opacity var(--dur-fast) var(--ease-smooth) 0.05s,
              margin-top var(--dur-med) var(--ease-smooth);
}

.research-card:hover .research-card__desc,
.research-card.is-expanded .research-card__desc {
  max-height: 200px;       /* comfortably more than the text needs */
  opacity: 1;
  margin-top: 0.85rem;
}

.research-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.research-card__text {
  color: var(--text-secondary);
  font-size: 0.96rem;
}


/* ============================================================
   == PROJECTS ==
   Filterable grid of cards (typed notes / internships / other
   projects). Duplicate a .project-card block in index.html to
   add a new entry - see the HTML comments there.
============================================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-4);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-smooth);
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--text-primary);
  transform: scale(1.06);
}

.filter-btn.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--text-on-dark);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.project-card {
  position: relative;
}

.project-card:hover,
.project-card.is-expanded {
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.project-card__desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-smooth),
              opacity var(--dur-fast) var(--ease-smooth) 0.05s,
              margin-bottom var(--dur-med) var(--ease-smooth);
}

.project-card:hover .project-card__desc,
.project-card.is-expanded .project-card__desc {
  max-height: 160px;
  opacity: 1;
  margin-bottom: var(--space-2);
}

.project-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.project-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.project-card__text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: var(--space-2);
  flex: 1;
}

.project-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  transition: transform var(--dur-fast) var(--ease-smooth), gap var(--dur-fast) var(--ease-smooth);
}
.project-card__link:hover {
  gap: 0.65rem;
  transform: scale(1.04);
  color: var(--color-accent);
}


/* ============================================================
   == PUBLICATIONS ==
   Empty-state ready for future entries. Duplicate .pub-item
   once you have a first paper - see index.html comments.
============================================================ */

.pub-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-line);
}

.pub-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-3) 0.5rem;
  border-bottom: 1px solid var(--color-line);
  transition: background var(--dur-fast) var(--ease-smooth), padding-left var(--dur-fast) var(--ease-smooth);
}
.pub-item:hover {
  background: var(--bg-section-alt);
  padding-left: 1rem;
}

.pub-item__year {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 0.9rem;
}

.pub-item__title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.pub-item__meta {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.pub-item__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-smooth);
}
.pub-item__link:hover {
  border-color: var(--color-accent);
  transform: scale(1.06);
}

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-3);
  border: 1.5px dashed var(--color-line);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}
.empty-state__icon {
  width: 40px; height: 40px;
  margin: 0 auto var(--space-2);
  color: var(--color-accent);
  opacity: 0.8;
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.empty-state__text {
  max-width: 46ch;
  margin: 0 auto;
  font-size: 0.95rem;
}


/* ============================================================
   == BLOG ==
============================================================ */

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--space-2);
  transition: transform var(--dur-med) var(--ease-smooth);
}
.blog-card:hover { transform: translateY(-4px); }

.blog-card__media {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent-dim), var(--bg-section-alt));
  margin-bottom: var(--space-2);
  overflow: hidden;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }

.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.blog-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  transition: color var(--dur-fast) var(--ease-smooth);
}
.blog-card:hover .blog-card__title { color: var(--color-accent); }

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.94rem;
}


/* ============================================================
   == CONTACT ==
============================================================ */

.contact {
  background: var(--color-ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.contact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.contact .eyebrow { color: var(--color-accent); justify-content: center; }
.contact .eyebrow::before { display: none; }

.contact__heading {
  font-size: var(--fs-h1);
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
}

.contact__text {
  color: var(--text-on-dark-soft);
  font-size: 1.05rem;
  margin-bottom: var(--space-4);
  max-width: 56ch;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-ink);
}
.btn--primary:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px -8px rgba(184, 146, 90, 0.55);
}

.btn--ghost {
  border: 1.5px solid rgba(237, 235, 251, 0.35);
  color: var(--text-on-dark);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  transform: scale(1.06);
  background: rgba(237, 235, 251, 0.06);
}

.contact__socials {
  margin-top: var(--space-5);
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.social-icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(237, 235, 251, 0.25);
  color: var(--text-on-dark-soft);
  transition: all var(--dur-fast) var(--ease-smooth);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  transform: scale(1.15) translateY(-3px);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* faint trajectory motif reused in the contact section for continuity with the hero */
.contact__trajectories {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}


/* ============================================================
   == FOOTER ==
============================================================ */

.footer {
  background: #0C0F26;
  color: var(--text-on-dark-soft);
  padding-block: var(--space-4);
  font-size: 0.88rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__links {
  display: flex;
  gap: var(--space-3);
}
.footer__links a { transition: color var(--dur-fast), transform var(--dur-fast); display: inline-block; }
.footer__links a:hover { color: var(--text-on-dark); transform: scale(1.08); }

.back-to-top {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(237, 235, 251, 0.25);
  transition: all var(--dur-fast) var(--ease-smooth);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.back-to-top svg { width: 16px; height: 16px; }


/* ============================================================
   == SCROLL-REVEAL ==
   Sections/elements with class "reveal" fade + rise into view
   the first time they cross into the viewport (see main.js).
   Kept subtle on purpose - see frontend-design guidance about
   not overdoing motion.
============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger children of a revealed grid slightly for a nicer cascade */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.41s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }
