/* ============================================================
   Neobrutalist design system — modeled on andrewvu.me
   White/black, sharp corners, hard offset shadows, IBM Plex.
   Light is default; dark via [data-theme="dark"] on <html>.
   ============================================================ */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg:          #f6f4ee;
  --bg-elev:     #ffffff;
  --text:        #0a0a0a;
  --text-muted:  #555b63;
  --border:      #0a0a0a;
  --shadow:      rgba(0, 0, 0, 0.18);
  --accent:      #0a66c2;   /* link / prompt accent */
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #1d1d1d;
  --bg-elev:     #272727;
  --text:        #f5f5f5;
  --text-muted:  #a3a3ad;
  --border:      #f5f5f5;
  --shadow:      rgba(255, 255, 255, 0.38);
  --accent:      #6cb6ff;
}

/* Fixed brand colors (theme-independent) */
:root {
  --linkedin:     #0a66c2;
  --researchgate: #00ccbb;
  --dribbble:     #ea4c89;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 940px;
  --radius: 6px;
  --shadow-hard: 4px 4px 0 0 var(--shadow);
  --section-pad: clamp(1.5rem, 4vw, 2.5rem);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  transition: background 0.2s ease, color 0.2s ease;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s ease; }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
ul, ol { margin: 0; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Terminal text accents */
.prompt-accent { color: var(--accent); font-family: var(--font-mono); }
.prompt-path   { color: var(--accent); font-family: var(--font-mono); }
.prompt        { font-family: var(--font-mono); color: var(--accent); font-weight: 500; }

/* ----------------------------- Top bar ----------------------------- */
.topbar { padding: 2.25rem 0 1.75rem; }
.topbar__inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: stretch;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
}
.topbar__actions {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}

/* Contact buttons (neobrutalist) */
.cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0 0.85rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-hard);
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.cbtn:hover { transform: translate(-1px, -1px); }
.cbtn__icon { width: 16px; height: 16px; flex-shrink: 0; }

.cbtn--linkedin     { background: var(--linkedin);     color: #fff; border-color: var(--linkedin); }
.cbtn--researchgate { background: var(--researchgate); color: #04201d; border-color: var(--researchgate); }
.cbtn--dribbble     { background: var(--dribbble);     color: #fff; border-color: var(--dribbble); }
.cbtn--email:hover  { background: var(--text); color: var(--bg); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  justify-self: end;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.theme-toggle:hover { transform: translate(-1px, -1px); background: var(--text); color: var(--bg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun  { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* Subsection titles use a fixed near-black (#101114) in light mode;
   keep them readable (light) in dark mode. */
[data-theme="dark"] .timeline__org,
[data-theme="dark"] .timeline__role,
[data-theme="dark"] .pub__title { color: var(--text); }

/* ----------------------------- Hero ----------------------------- */
.hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 var(--section-pad); }
.hero__cmd {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}
.hero__name {
  font-size: clamp(1.75rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__role {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: clamp(0.95rem, 3.5vw, 1.4rem);
  margin: 0.5rem 0 0;
}
.hero__tagline {
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin: 1.25rem 0 0;
  min-height: 1.6em;
}
.cursor { animation: blink 1.05s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.hero__meta { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.75rem 0 1.5rem; }
.hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.hero__socials a { color: var(--text-muted); text-decoration: none; }
.hero__socials a:hover { color: var(--accent); text-decoration: underline; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-hard);
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); background: var(--text); color: var(--bg); }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Open Resources + Say hello + CV + certificate buttons — compact size */
.resource-cta__btn, .btn--solid, .cv__actions .btn, .cert-list .btn { font-size: 0.78rem; padding: 0.45rem 0.9rem; }
.btn--sm {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.26rem 0.62rem;
  border-radius: 0;
  box-shadow: none;
}
.timeline__actions { margin: 0.7rem 0 0; }
.timeline__actions .btn { font-family: var(--font-sans); }

/* Snappier taps on touch devices (no 300ms delay), intentional tap highlight */
.btn, .cbtn, .theme-toggle, .modal__btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Comfortable tap targets on touch / coarse-pointer devices */
@media (pointer: coarse) {
  .modal__btn { width: 2.4rem; height: 2.4rem; }
}

/* ----------------------------- Sections ----------------------------- */
/* Each section is a full bordered box with the italic title notched into the
   top border (short dash to the left, line continuing to the right) and a soft
   offset shadow — matches andrewvu.me. Section padding is small so the boxes
   sit close together. */
.section { padding: clamp(0.85rem, 2vw, 1.2rem) 1.25rem; }
.section > .container {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 2rem 1.5rem 1.6rem;
}
.section__title {
  position: absolute;
  top: 0;
  left: 1.5rem;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 0.6rem;
  background: var(--bg);
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  line-height: 1.2;
  white-space: nowrap;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
.lead { color: var(--text); font-size: clamp(0.88rem, 2.5vw, 1rem); max-width: 62ch; }
.section--contact { margin-bottom: 1.5rem; }
.section--contact .lead { margin-bottom: 1.5rem; }
#certificates { margin-bottom: 1.5rem; }
.section--contact .hero__socials { margin-top: 1.75rem; }

/* About + photo */
.about { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.about__text { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.about__text .lead { margin: 0; }
.about__photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  align-self: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 12%;
}
@media (min-width: 640px) {
  .about { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .about__photo { width: 240px; flex-shrink: 0; align-self: flex-start; }
  .about__text { flex: 1; }
}

/* Resources */
.resource-cta .lead { margin-bottom: 1.5rem; }

/* CV */
.cv .lead { margin-bottom: 1.25rem; }
.cv__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cv__actions .btn { font-family: var(--font-sans); }

/* Certificates — grid of full-width buttons (1 col mobile, 2 cols wider) */
.cert-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.cert-list .btn { display: block; text-align: center; font-family: var(--font-sans); }
@media (min-width: 600px) { .cert-list { grid-template-columns: 1fr 1fr; } }

/* Modal (PDF popup preview) */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overscroll-behavior: contain;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.modal__dialog {
  position: relative;
  width: min(820px, 100%);
  height: min(90vh, 100%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}
.modal__title {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal__bar-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.modal__btn:hover { background: var(--text); color: var(--bg); }
.modal__pdf { flex: 1; width: 100%; border: 0; background: #ffffff; }
.modal__img {
  display: block;
  align-self: center;
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(90vh - 3.25rem); /* leave room for the title bar */
  object-fit: contain;
  background: #ffffff;
}
.modal__pdf[hidden], .modal__img[hidden] { display: none; }

/* Photo gallery — captioned card grid */
.modal__dialog--gallery { width: min(920px, 100%); height: auto; max-height: 90vh; background: #ffffff; }
.modal__dialog--gallery .modal__bar { align-items: flex-start; padding: 0.85rem 1rem; background: #f1f0ec; border-bottom: 1px solid #e3e3e3; }
.modal__dialog--gallery .modal__title-lg { color: #101114; }
.modal__dialog--gallery .modal__subtitle { color: #6b6b6b; }
.modal__dialog--gallery .photo-card figcaption { color: #101114; }
.modal__heading { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.modal__title-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  white-space: normal;
}
.modal__subtitle { font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-muted); }
.photo-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
}
.photo-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.6rem;
  border: 1px solid #b7b6b0;
  border-radius: 0;
  background: #f1efe7;
}
.modal__dialog--gallery .photo-card { background: #f1efe7; }
.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #b7b6b0;
  border-radius: 0;
  background: #ffffff;
}
.photo-card--full img { aspect-ratio: auto; height: auto; object-fit: contain; }
.photo-card figcaption {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text);
}
.photo-card figcaption span { color: inherit; }
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* Image preview: dialog shrink-wraps to the certificate's exact size/ratio */
.modal__dialog.is-image {
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: 90vh;
}

/* ----------------------------- Boxed cards (shared) ----------------------------- */
.timeline { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.timeline__item,
.pub {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.timeline__item { display: flex; gap: 1.1rem; align-items: flex-start; position: relative; }
.timeline__logo {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: var(--radius);
  padding: 5px;
}
.timeline__body { flex: 1; min-width: 0; position: relative; }
.timeline__role { font-family: var(--font-display); font-size: clamp(0.9rem, 2.4vw, 0.95rem); font-weight: 600; color: #101114; }
/* Date stacks in flow on phones (tight); moves to the top-right on wider screens. */
.timeline__dates { display: block; font-size: clamp(0.78rem, 2.2vw, 0.84rem); color: var(--text-muted); margin: 0.15rem 0 0; }
.timeline__company { color: var(--text); font-size: 0.9rem; font-weight: 400; margin: 0.15rem 0 0; }
.timeline__bullets { padding-left: 1.1rem; color: var(--text-muted); display: grid; gap: 0.35rem; }

/* Experience-style subsection: company heading + role subtitle + location */
.section__intro { color: var(--text); font-size: clamp(0.88rem, 2.5vw, 1rem); margin: 0 0 1.5rem; max-width: 62ch; }
/* Portfolio has no content under its description — drop the trailing gap */
#portfolio .section__intro { margin-bottom: 0; }
.timeline__org { font-family: var(--font-display); font-size: clamp(0.9rem, 2.4vw, 0.95rem); font-weight: 600; color: #101114; }
.timeline__position { color: var(--text); font-size: clamp(0.84rem, 2.4vw, 0.9rem); font-weight: 400; margin: 0.15rem 0 0; }
.timeline__location { font-size: 0.72rem; color: var(--text-muted); margin: 0.15rem 0 0; }
.timeline__desc { color: var(--text); font-family: var(--font-sans); font-size: 0.84rem; margin: 0.5rem 0 0; }

/* ----------------------------- Publication ----------------------------- */
.pub__title { font-family: var(--font-display); font-size: clamp(0.9rem, 2.4vw, 0.95rem); font-weight: 600; line-height: 1.35; color: #101114; }
.pub__venue { color: var(--text); font-size: 0.84rem; font-weight: 400; margin: 0.6rem 0 1rem; }
.pub__meta { color: var(--text-muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
.pub__body { color: var(--text); font-size: 0.84rem; margin: 0.75rem 0 0; }
.pub__links { margin-top: 1rem; font-size: 0.82rem; }
.pub__links a { text-decoration: none; }
.pub__links a:hover { text-decoration: underline; }
/* Publication highlight tags use the body (sans) font, matching the venue line */
.pub .tags li { font-family: var(--font-sans); }
.pub__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.pub__actions .tags { margin: 0; }
.pub__actions .tags li { font-size: 0.7rem; font-weight: 400; line-height: 1.3; padding: 0.26rem 0.62rem; border-radius: 0; }
.pub__actions .btn { font-family: var(--font-sans); }

/* ----------------------------- Tags / chips ----------------------------- */
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
}

/* ----------------------------- Skills ----------------------------- */
.skill-groups { display: grid; gap: 1.75rem; }
/* Tools/interests chips use the sans body font, like the education line */
.skill-group .tags li { font-family: var(--font-sans); font-size: 0.7rem; line-height: 1.3; padding: 0.26rem 0.62rem; }
.skill-group__label { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text); margin-bottom: 0.75rem; }

/* ----------------------------- Footer ----------------------------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.footer__copyright { margin: 0.6rem 0 0; font-size: 0.8rem; }

/* ----------------------------- Scroll reveal ----------------------------- */
.reveal, .timeline__item, .pub {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible,
.timeline__item.is-visible,
.pub.is-visible { opacity: 1; transform: none; }

/* ----------------------------- Responsive ----------------------------- */
.cbtn { min-width: 0; }

/* Mobile topbar: LinkedIn · Email · toggle all on one row, vertically centered */
.topbar__actions {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}
.topbar__actions .cbtn { height: 2.25rem; }
.topbar__actions .theme-toggle { height: 2.25rem; width: 2.25rem; align-self: center; }

/* ---- Very small phones: < 360px (Galaxy Fold, SE gen1, etc.) ---- */
@media (max-width: 359px) {
  .container { padding: 0 0.875rem; }
  .topbar { padding: 1.5rem 0 1.25rem; }
  .section { padding: clamp(0.65rem, 2.2vw, 0.9rem) 0.875rem; }
  .section > .container { padding: 1.75rem 0.9rem 1.25rem; }
  .section__title { font-size: 0.8rem; left: 1rem; }
  .cbtn { font-size: 0.7rem; padding: 0 0.4rem; gap: 0.25rem; height: 2rem; }
  .cbtn__icon { width: 13px; height: 13px; }
  .theme-toggle { width: 2rem; height: 2rem; }
  .timeline__item, .pub { padding: 0.9rem 0.85rem; }
  .timeline__logo { width: 40px; height: 40px; padding: 3px; }
  .timeline__item { gap: 0.75rem; }
  .hero__name { font-size: clamp(1.65rem, 9vw, 2.2rem); }
  .hero__actions { gap: 0.5rem; }
}

/* ---- Small phones: 360px – 430px ---- */
@media (min-width: 360px) and (max-width: 430px) {
  .cbtn { font-size: 0.76rem; padding: 0 0.55rem; gap: 0.35rem; }
  .cbtn__icon { width: 14px; height: 14px; }
  .timeline__item, .pub { padding: 1.1rem 1.15rem; }
  .timeline__logo { width: 46px; height: 46px; }
}

/* ---- iPhone portrait only (≤430px): tight, compact stacking of the card
   text lines so it reads exactly like andrewvu.me's experience cards.
   Dates drop onto their own line; line-height + margins collapse to a snug list. ---- */
@media (max-width: 430px) {
  .timeline__org, .timeline__role { line-height: 1.3; }
  .timeline__position, .timeline__company { margin: 0; line-height: 1.3; }
  .timeline__dates { margin: 0; line-height: 1.3; }
  .timeline__location { margin: 0.05rem 0 0; line-height: 1.3; }
  .timeline__desc { margin: 0.3rem 0 0; line-height: 1.4; }
}

/* ---- Phablets / large phones: 431px – 639px ---- */
@media (min-width: 431px) and (max-width: 639px) {
  .topbar__actions { gap: 0.55rem; }
  .timeline__item, .pub { padding: 1.2rem 1.35rem; }
}

/* ---- Small tablets / landscape phones: 640px+ ---- */
@media (min-width: 640px) {
  .topbar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .topbar__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
  }
  .cbtn { min-width: 6.5rem; height: 2rem; }
  .theme-toggle { width: 2rem; height: 2rem; flex: 0 0 auto; }
  .skill-groups { grid-template-columns: 1fr 1fr; }
  /* Enough width here — float the date to the top-right, aligned with the place name */
  .timeline__dates { position: absolute; top: -0.1rem; right: 0; margin: 0; white-space: nowrap; }
  .timeline__org, .timeline__role { padding-right: 6.5rem; }
}

/* ---- Tablets / iPad portrait: 768px+ ---- */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .section { padding: clamp(0.95rem, 1.8vw, 1.25rem) 2rem; }
  .section > .container { padding: 2.1rem 2rem 1.75rem; }
  .topbar { padding: 2.5rem 0 2rem; }
  .timeline { gap: 1rem; }
  .about__photo { width: 260px; }
}

/* ---- Desktop / iPad landscape: 1024px+ ---- */
@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
  .section { padding: 1.25rem 2.5rem; }
  .section > .container { padding: 2.1rem 2.5rem 1.75rem; }
  .timeline { gap: 1.1rem; }
}

/* ---- Large desktop: 1280px+ ---- */
@media (min-width: 1280px) {
  .container { padding: 0 3rem; }
  .section { padding: 1.35rem 3rem; }
  .section > .container { padding: 2.1rem 3rem 1.75rem; }
}

/* ----------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .timeline__item, .pub { opacity: 1; transform: none; }
  .cursor { animation: none; }
}
