/* =========================================================
   Fonts (lokal, keine externe Referenz) — Courier Prime, OFL
   ========================================================= */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CourierPrime-Regular.ttf") format("truetype");
}
@font-face {
  font-family: 'Courier Prime';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CourierPrime-Italic.ttf") format("truetype");
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CourierPrime-Bold.ttf") format("truetype");
}
@font-face {
  font-family: 'Courier Prime';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/CourierPrime-BoldItalic.ttf") format("truetype");
}

/* =========================================================
   Custom properties
   ========================================================= */
:root {
  --black:     #0a0a0a;
  --dark:      #1c1c1c;
  --mid:       #7a7a7a;
  --rule:      #e8e8e8;
  --off-white: #fafaf8;
  --white:     #ffffff;
  --carmine:   #960018;

  --serif: 'Courier Prime', 'Courier New', Courier, monospace;
  --sans:  'Courier Prime', 'Courier New', Courier, monospace;

  --nav-h:       64px;
  --pad-x:       clamp(1.25rem, 5vw, 4rem);
  --pad-y:       clamp(3.5rem, 8vh, 7rem);
  --content-max: 960px;
  --wide-max:    1140px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.75;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* =========================================================
   Navigation
   ========================================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.5s ease, border-color 0.5s ease,
              backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease;
  /* notched phone support */
  padding-left:  env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

#site-header.is-scrolled {
  background: rgba(255,255,255,0.85);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--pad-x);
  max-width: calc(var(--wide-max) + 4rem);
  margin: 0 auto;
}

.header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--black);
}

.brand-role {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
}

.nav-list {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
}

.nav-list a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.nav-list a:hover { color: var(--black); }
.nav-list a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Section reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1),
              transform 0.9s cubic-bezier(.22,1,.36,1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1),
              transform 0.9s cubic-bezier(.22,1,.36,1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1),
              transform 0.9s cubic-bezier(.22,1,.36,1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1),
              transform 0.9s cubic-bezier(.22,1,.36,1);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for child groups */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }
.stagger > *:nth-child(7) { transition-delay: 0.6s; }
.stagger > *:nth-child(8) { transition-delay: 0.7s; }
.stagger > *:nth-child(9) { transition-delay: 0.8s; }
.stagger > *:nth-child(10) { transition-delay: 0.9s; }

/* =========================================================
   Intro
   ========================================================= */
#intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100svh;
  padding-top: var(--nav-h);
  background: var(--off-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grain texture overlay */
#intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

#intro > * { position: relative; z-index: 1; }

/* Clip-path curtain reveal on each intro element */
.intro-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.2rem;
  clip-path: inset(0 0 100% 0);
  animation: curtain-up 0.9s cubic-bezier(.22,1,.36,1) 0.2s forwards;
}

.intro-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--carmine);
  clip-path: inset(0 0 100% 0);
  animation: curtain-up 1.1s cubic-bezier(.22,1,.36,1) 0.4s forwards;
}

.intro-rule {
  display: none;
}

.intro-role {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--carmine);
  opacity: 0;
  margin-top: 1.5rem;
  animation: fade-in-up 0.8s cubic-bezier(.22,1,.36,1) 1.1s forwards;
}

@keyframes curtain-up {
  to { clip-path: inset(0 0 0% 0); }
}

@keyframes rule-grow {
  to { width: 40px; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.scroll-cta {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--mid);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in-up 0.6s ease 1.6s forwards, float 3s ease-in-out 2.2s infinite;
  transition: opacity 0.4s;
}

.scroll-cta.hidden { opacity: 0 !important; pointer-events: none; }

.scroll-cta svg { display: block; }

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =========================================================
   Gallery (full-screen swiper) — Bilder in Originalproportion,
   zentriert auf schwarzem Grund (analog Publikationen).
   ========================================================= */
#gallery {
  position: relative;
  height: calc(100svh - var(--nav-h));
  margin-top: var(--nav-h);
  overflow: hidden;
  background: #000;
}

.gallery-swiper {
  width: 100%;
  height: 100%;
}

.gallery-swiper .swiper-slide {
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-figure {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.slide-figure > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.taillight-glow { display: none; }

/* Gallery project bar — one clickable segment per project */
.gallery-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 3px;
  padding: 0 var(--pad-x) 0.75rem;
  z-index: 20;
}

.gallery-seg {
  flex: 1 1 0;
  height: 3px;
  padding: 0;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.gallery-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--seg-fill, 0));
  background: #fff;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}

.gallery-seg:hover { background: rgba(255,255,255,0.5); }

/* Caption strip */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  padding-top: 3rem;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.4s ease;
  opacity: 0;
}

.slide-caption.is-visible-caption {
  transform: translateY(0);
  opacity: 1;
}

.caption-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  cursor: pointer;
  user-select: none;
}

.caption-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.caption-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.caption-counter {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
}

.caption-expand {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.caption-expand:hover { color: #fff; }

.caption-expand svg {
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.slide-caption.is-open .caption-expand svg { transform: rotate(180deg); }

.caption-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(.4,0,.2,1);
}

.slide-caption.is-open .caption-body {
  max-height: 70svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.caption-body p {
  padding: 0 var(--pad-x) 1.2rem;
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  max-width: 680px;
}

/* Swiper nav */
.swiper-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  left: var(--pad-x);
  flex-direction: column;
  pointer-events: none;
}

.swiper-btn {
  width: 52px;
  height: 52px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 0;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  pointer-events: all;
  backdrop-filter: blur(6px);
}

.swiper-btn:hover { background: rgba(0,0,0,0.7); }

.swiper-btn.swiper-button-disabled {
  opacity: 0.2;
  pointer-events: none;
}

/* Place buttons on left side, stacked */
#gallery-prev { transform: none; }
#gallery-next { transform: none; }

/* Transparent arrows, no box (both gallery and publications) — in Karminrot */
#gallery-prev,
#gallery-next,
#pub-prev,
#pub-next {
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--carmine);
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}

#gallery-prev:hover,
#gallery-next:hover,
#pub-prev:hover,
#pub-next:hover {
  background: transparent;
  color: var(--carmine);
  opacity: 0.85;
}

.gallery-swiper .slide-img { cursor: zoom-in; }

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(0,0,0,0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* =========================================================
   Section scaffold
   ========================================================= */
.section {
  scroll-margin-top: var(--nav-h);
  padding: var(--pad-y) var(--pad-x);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-inner.wide {
  max-width: var(--wide-max);
}

.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 2.5rem;
}

#profile .section-title,
#references .section-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

#profile .section-label {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0.35rem;
}

#profile .section-rule,
#references .section-rule {
  display: none;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin-bottom: 2.5rem;
}

/* =========================================================
   Awards
   ========================================================= */
#awards {
  background: var(--off-white);
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 5rem;
}

.awards-col-title {
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}

.award-entry {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.award-year {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--mid);
  padding-top: 0.1em;
  white-space: nowrap;
}

/* =========================================================
   Publications (image swiper)
   ========================================================= */
#publications {
  padding: 0;
  position: relative;
  height: calc(100svh - var(--nav-h));
  background: #111;
  overflow: hidden;
}

.publications-swiper {
  width: 100%;
  height: 100%;
}

.publications-swiper .swiper-slide {
  overflow: hidden;
}

.publications-swiper .slide-figure {
  position: relative;
  width: 100%;
  height: 100%;
}

.publications-swiper .slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================================
   Profile
   ========================================================= */
#profile {
  background: var(--white);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  align-items: start;
}

.profile-image img {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-left: auto;
  filter: grayscale(15%);
}

.profile-entry {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.profile-entry:last-child {
  border-bottom: none;
}

.profile-year {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--mid);
  padding-top: 0.1em;
  white-space: nowrap;
}

/* =========================================================
   References
   ========================================================= */
#references {
  background: var(--off-white);
}

.ref-columns {
  columns: 3;
  column-gap: 3rem;
  font-size: 0.9375rem;
  line-height: 1.9;
}

.ref-item {
  break-inside: avoid;
  margin-top: 1.75rem;
}

.ref-item:first-child { margin-top: 0; }

.ref-year {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--mid);
  break-after: avoid;
}

/* =========================================================
   Contact
   ========================================================= */
#contact {
  background: var(--black);
  color: var(--white);
}

.contact-inner {
  max-width: 560px;
}

.contact-inner .section-title {
  color: var(--white);
}

.contact-inner .section-rule {
  background: rgba(255,255,255,0.15);
}

address {
  font-style: normal;
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.contact-inner p {
  font-size: 0.9375rem;
  line-height: 2;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.contact-inner a {
  opacity: 1;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s;
}

.contact-inner a:hover {
  border-color: rgba(255,255,255,0.7);
}

/* =========================================================
   Footer
   ========================================================= */
#site-footer {
  padding: 2rem var(--pad-x);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

#site-footer p {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* =========================================================
   Large screens — generous reading width
   ========================================================= */
@media (min-width: 1400px) {
  :root {
    --content-max: 1060px;
    --wide-max:    1260px;
  }

  .caption-body p { max-width: 760px; }
}

@media (min-width: 1800px) {
  :root { --pad-x: 5rem; }
}

/* =========================================================
   Tablet — collapse two-column layouts
   ========================================================= */
@media (max-width: 900px) {
  .awards-grid,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-image { display: none; }

  .ref-columns { columns: 2; column-gap: 2rem; }

  .awards-col + .awards-col { margin-top: 2.5rem; }
}

/* =========================================================
   Mobile — ≤ 640 px
   ========================================================= */
@media (max-width: 640px) {
  :root {
    --nav-h:  56px;
    --pad-x:  1.125rem;
    --pad-y:  3rem;
  }

  /* --- Nav hamburger --- */
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.25rem 0 1rem;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(.22,1,.36,1),
                opacity   0.3s ease;
  }

  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list li { width: 100%; }
  .nav-list a  {
    display: block;
    padding: 0.85rem var(--pad-x);
    font-size: 0.8rem;          /* bigger tap targets */
    letter-spacing: 0.14em;
  }
  .nav-list a::after { display: none; }

  /* --- Intro --- */
  .intro-name {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
    letter-spacing: 0.05em;
  }

  /* --- Gallery: show 75% of next slide as peek hint --- */
  #gallery {
    height: 70svh;              /* shorter on portrait phone */
  }

  .swiper-btn { width: 56px; height: 56px; } /* tappable */
  #gallery-prev, #gallery-next, #pub-prev, #pub-next { width: 56px; height: 56px; }
  #gallery-prev svg, #gallery-next svg, #pub-prev svg, #pub-next svg { width: 34px; height: 34px; }

  .caption-row { padding: 0.85rem var(--pad-x); }
  .caption-title { font-size: 0.68rem; }
  .caption-counter { display: none; }      /* save space */
  .caption-expand { width: 36px; height: 36px; } /* fat tap target */
  .caption-body p  { font-size: 0.85rem; padding: 0 var(--pad-x) 1rem; }

  /* --- Publications: shorter --- */
  #publications { height: 60svh; }

  /* --- Content sections --- */
  .section-title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    margin-bottom: 1.75rem;
  }

  .section-rule { margin-bottom: 1.75rem; }

  .awards-col + .awards-col { margin-top: 2rem; }

  /* Year-based grids: stack year above text */
  .award-entry,
  .profile-entry {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    margin-bottom: 1.25rem;
  }

  .award-year,
  .profile-year {
    font-size: 0.82rem;
    opacity: 0.6;
    padding-top: 0;
  }

  .ref-columns {
    columns: 1;
    font-size: 0.9375rem;
  }

  /* Contact: full width */
  .contact-inner { max-width: 100%; }

  address, .contact-inner p { font-size: 0.9375rem; }

  /* --- Reduce stagger delay on small screens (feels sluggish) --- */
  .stagger > *:nth-child(n) { transition-delay: 0s; }
}

/* =========================================================
   Reduced-motion: strip all transitions/animations
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .intro-eyebrow,
  .intro-name,
  .intro-role { clip-path: none; opacity: 1; }

  .intro-rule { width: 40px; }

  .scroll-cta { opacity: 1; }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1; transform: none;
  }

  .slide-caption { transform: none; opacity: 1; }
  .gallery-seg::after { transition: none; }
}
