/* ============================================================
   Justine Karel Dimaano's Personal Web Resume
   Nature Beach Theme — Bright Coastal Paradise
   css/style.css
   ============================================================ */

/* ---------- Self-hosted display font ---------- */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/quicksand-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/quicksand-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/quicksand-700.woff2') format('woff2');
}

/* ---------- Design Tokens ---------- */
:root {
  /* Ocean blues */
  --ocean-900: #0c4a6e;
  --ocean-800: #075985;
  --ocean-700: #0e7490;
  --ocean-600: #0891b2;
  --ocean-500: #06b6d4;
  --ocean-400: #22d3ee;
  --ocean-200: #a5f3fc;
  --ocean-100: #cffafe;
  --ocean-50:  #ecfeff;

  /* Sandy beiges */
  --sand-50:  #fdfaf3;
  --sand-100: #faf3e3;
  --sand-200: #f2e6c9;
  --sand-300: #e6d3a8;
  --sand-400: #d9bf85;

  /* Coral accents */
  --coral-700: #c2410c;
  --coral-600: #ea580c;
  --coral-500: #f97316;
  --coral-400: #fb923c;
  --coral-100: #ffedd5;

  /* Neutrals */
  --ink:       #1e293b;
  --ink-soft:  #475569;
  --white:     #ffffff;

  /* Elevation & shape */
  --shadow-sm: 0 1px 3px rgba(12, 74, 110, 0.12);
  --shadow-md: 0 4px 14px rgba(12, 74, 110, 0.14);
  --shadow-lg: 0 10px 30px rgba(12, 74, 110, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Typography */
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Quicksand', Georgia, 'Times New Roman', serif;

  /* Layout */
  --container: 1080px;
  --nav-h: 64px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--ocean-100) 0%, transparent 60%),
    radial-gradient(900px 420px at -10% 0%, var(--coral-100) 0%, transparent 55%),
    linear-gradient(180deg, var(--sand-50) 0%, var(--sand-100) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ocean-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral-500);
}

main {
  flex: 1;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

.section--tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12, 74, 110, 0.08);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--ocean-900);
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ocean-800);
  margin-bottom: 14px;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--coral-400), var(--ocean-400));
  margin-top: 8px;
}

/* ---------- Top Bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--ocean-900), var(--ocean-700));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand:hover { color: var(--ocean-200); }

.brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: var(--ocean-600);
}

.brand__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--ocean-50);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.nav__link.is-active {
  background: var(--white);
  color: var(--ocean-900);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
}

.nav__toggle svg {
  width: 28px;
  height: 28px;
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  padding: 72px 0 84px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(251, 146, 60, 0.18), transparent 60%),
    radial-gradient(700px 350px at 80% 20%, rgba(34, 211, 238, 0.22), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  background: var(--coral-100);
  color: var(--coral-600);
  border: 1px solid rgba(234, 88, 12, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero__avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.profile-avatar {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--ocean-100);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

.fav-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  color: var(--ocean-900);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 60px;
  color: var(--sand-200);
  pointer-events: none;
  overflow: hidden;
}

.hero__waves-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: wave-drift 14s linear infinite;
}

.hero__waves-track svg {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
}

@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--ocean-600), var(--ocean-700));
  color: var(--white);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
  color: var(--white);
}

.btn--coral {
  background: linear-gradient(135deg, var(--coral-400), var(--coral-500));
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--ocean-600);
  color: var(--ocean-700);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--ocean-50);
  color: var(--ocean-800);
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ---------- Cards & Grids ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12, 74, 110, 0.08);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__title {
  font-family: var(--font-display);
  color: var(--ocean-800);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.card__list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-400), var(--ocean-600));
}

/* ---------- Detail rows (Profile table replacement) ---------- */
.detail-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(12, 74, 110, 0.15);
}

.detail-list__label {
  font-weight: 700;
  color: var(--ocean-800);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
}

.detail-list__value {
  color: var(--ink);
}

/* ---------- Fieldset-like groups ---------- */
.group {
  background: var(--white);
  border: 1px solid rgba(12, 74, 110, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  margin-bottom: 18px;
}

.group__legend {
  font-family: var(--font-display);
  color: var(--ocean-800);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.group__row {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(12, 74, 110, 0.15);
}

.group__row:last-child { border-bottom: none; }

.group__row b { color: var(--ocean-800); }

/* ---------- Photo pages ---------- */
.photo-entry {
  background: var(--ocean-600);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  border: 1px solid rgba(12, 74, 110, 0.08);
}

/* Standalone photo entries (e.g. autobiography pages) — centered, story-sized */
.section > .photo-entry {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.photo-entry img {
  width: 100%;
  display: block;
}

.photo-entry__caption {
  padding: 14px 18px;
  color: var(--sand-100);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--ocean-600);
}

.photo-grid {
  column-count: 1;
  column-gap: 20px;
}

@media (min-width: 601px) {
  .photo-grid { column-count: 2; }
}

@media (min-width: 901px) {
  .photo-grid { column-count: 3; }
}

.photo-grid .photo-entry {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  background: transparent;
  border: none;
  box-shadow: var(--shadow-sm);
}

.photo-grid .photo-entry img {
  max-height: none;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.photo-grid .photo-entry__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 12px;
  border-top: none;
  background: linear-gradient(to top, rgba(8, 47, 73, 0.94), rgba(8, 47, 73, 0));
  color: var(--sand-100);
  font-size: 0.9rem;
  max-height: 55%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-grid .photo-entry:hover .photo-entry__caption,
.photo-grid .photo-entry:focus-within .photo-entry__caption {
  opacity: 1;
}

@media (hover: none) {
  .photo-grid .photo-entry__caption { opacity: 1; }
}

/* ---------- Pagination (prev/next) ---------- */
.pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 8px;
}

/* ---------- Song page ---------- */
.lyrics {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12, 74, 110, 0.08);
  font-family: var(--font-display);
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

audio {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-full);
}

/* ---------- Video embeds ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--ocean-900);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, var(--ocean-900), var(--ocean-800));
  color: var(--ocean-100);
  padding: 36px 0 22px;
  font-size: 0.92rem;
}

.site-footer a { color: var(--ocean-200); }
.site-footer a:hover { color: var(--coral-400); }

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 6px;
}

.site-footer__contacts {
  list-style: none;
  display: grid;
  gap: 6px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  color: var(--ocean-200);
  font-size: 0.85rem;
}

/* ---------- Scroll progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}

.progress-bar__fill {
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--coral-400), var(--ocean-400));
}

/* ---------- Page transition ---------- */
main {
  animation: page-fade 0.45s ease both;
}

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ---------- Install hint banner ---------- */
.install-banner {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--ocean-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.install-banner.is-visible { display: flex; }

.install-banner__btn {
  margin-left: auto;
  background: var(--coral-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Timeline (Autobiography) ---------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--ocean-400), var(--ocean-700), var(--coral-400));
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 44px 42px;
}

.timeline__item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline__item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline__dot {
  position: absolute;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral-500);
  border: 5px solid var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline__item:nth-child(odd) .timeline__dot {
  right: -11px;
}

.timeline__item:nth-child(even) .timeline__dot {
  left: -11px;
}

.timeline__year {
  display: inline-block;
  background: var(--ocean-700);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.timeline__card {
  background: var(--white);
  border: 1px solid rgba(12, 74, 110, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  text-align: left;
}

.timeline__card h3 {
  font-family: var(--font-display);
  color: var(--ocean-800);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.timeline__card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.timeline__card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: zoom-in;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 18, 30, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: min(94vw, 1200px);
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.lightbox__caption {
  max-width: min(94vw, 1200px);
  color: var(--sand-100);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox__counter {
  color: var(--sand-200);
  font-size: 0.85rem;
}

.lightbox__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 94vw;
}

.lightbox__thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lightbox__thumbs button.is-active {
  opacity: 1;
  border-color: var(--coral-500);
}

.lightbox__thumbs button:hover {
  opacity: 1;
}

.lightbox__thumbs img {
  display: block;
  width: 56px;
  height: 42px;
  object-fit: cover;
}

@media (hover: none) {
  .lightbox__btn { display: none; }
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__btn--prev { left: 20px; }
.lightbox__btn--next { right: 20px; }

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: linear-gradient(180deg, var(--ocean-800), var(--ocean-900));
    box-shadow: var(--shadow-lg);
    padding: 14px 16px 20px;
    transform: translateY(-120%);
    transition: transform 0.28s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root { --nav-h: 58px; }

  .brand { font-size: 0.95rem; }

  .hero { padding: 48px 0 64px; }

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .section--tint {
    padding: 22px 18px;
  }

  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }

  /* Timeline collapses to a single left-aligned column */
  .timeline::before {
    left: 12px;
    transform: none;
  }

  .timeline__item {
    width: 100%;
    left: 0 !important;
    padding: 0 0 36px 44px;
    text-align: left !important;
  }

  .timeline__item:nth-child(odd) .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot {
    left: 1px;
    right: auto;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-footer, .to-top, .pager, .btn-row { display: none; }
  body { background: none; }
}
