/* ============================================================
   miguelbello.pt — editorial / personal brand
   ============================================================ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f3efe6;
  --ink: #14181f;
  --ink-soft: #4a5160;
  --muted: #8a8f9a;
  --accent: #1a2238;
  --accent-soft: #2a3554;
  --rule: rgba(20, 24, 31, 0.12);
  --max: 1180px;
  --col: 720px;
  --serif: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --t-fast: 180ms ease;
  --t-med: 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html[data-lang="pt"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="pt"] { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

::selection { background: var(--accent); color: var(--bg); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav__links a {
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--ink); }

.lang-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle__sep { opacity: 0.4; }
html[data-lang="pt"] .lang-toggle__pt { color: var(--accent); font-weight: 600; }
html[data-lang="en"] .lang-toggle__en { color: var(--accent); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 32px 100px;
  position: relative;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.hero__photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 5;
  filter: grayscale(0.15) contrast(1.02);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 500;
}

.hero__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--ink);
}

.hero__roles {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__roles strong { color: var(--ink); font-weight: 600; }

.hero__tagline {
  margin: 32px 0 36px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  max-width: 580px;
  font-style: italic;
}

.hero__cta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 100px 32px;
  border-top: 1px solid var(--rule);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  font-weight: 500;
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  max-width: 820px;
  color: var(--ink);
}

.section__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.section__head-row .section__title { margin-bottom: 0; }

.section--featured {
  background: var(--accent);
  color: var(--bg);
  border-top-color: transparent;
}
.section--featured .section__title,
.section--featured .section__eyebrow { color: var(--bg); }
.section--featured .section__eyebrow { opacity: 0.7; }
.section--featured .prose p,
.section--featured .prose { color: rgba(250, 248, 244, 0.85); }

.section--contact { background: var(--bg-alt); }

/* ============================================================
   PROSE
   ============================================================ */
.prose {
  max-width: var(--col);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose p { margin: 0 0 1.2em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink); }
.prose--large { font-size: 19px; }

.prose__cta { margin-top: 32px; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.bullets li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-soft);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.bullets li:last-child { border-bottom: none; }

/* ============================================================
   CARDS (Exec Ed)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 48px 0 0;
  max-width: 860px;
}

.card {
  padding: 32px;
  background: var(--bg-alt);
  border-radius: 4px;
  transition: transform var(--t-med), background var(--t-med);
}
.card:hover {
  transform: translateY(-2px);
  background: #ebe6da;
}
.card__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================================
   AI PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(250, 248, 244, 0.15);
  margin-top: 64px;
}

.pillar {
  background: var(--accent);
  padding: 40px 32px;
  position: relative;
}

.pillar__num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  color: rgba(250, 248, 244, 0.5);
  letter-spacing: 0.05em;
}

.pillar__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 12px 0 16px;
  color: var(--bg);
  letter-spacing: -0.01em;
}

.pillar__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.78);
}

/* ============================================================
   TIMELINE (Palestras)
   ============================================================ */
.timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-soft);
}
.timeline__year {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-size: 17px;
}
.timeline__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline__event {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.timeline__loc {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.timeline__topic {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}
.timeline__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.timeline__link:hover { color: var(--accent-soft); text-decoration: underline; }

/* ============================================================
   SPEAKING SECTION (photo + timeline)
   ============================================================ */
.speaking {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
}
.speaking__photo {
  margin: 0;
  position: sticky;
  top: 100px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 3 / 4;
}
.speaking__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(0.1) contrast(1.02);
}

/* ============================================================
   GALLERY (Speaking photos)
   ============================================================ */
.gallery {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}
.gallery__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
  font-weight: 500;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg-alt);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
  transition: transform var(--t-med), filter var(--t-med);
}

.gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(20, 24, 31, 0.25);
}
.gallery__item:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1);
}

.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(to top, rgba(20, 24, 31, 0.85) 0%, rgba(20, 24, 31, 0) 100%);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med), transform var(--t-med);
  pointer-events: none;
}
.gallery__item:hover .gallery__cap {
  opacity: 1;
  transform: none;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 31, 0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__img {
  max-width: min(100%, 1200px);
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.5);
  border-radius: 3px;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 1px solid rgba(250, 248, 244, 0.3);
  color: var(--bg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.lightbox__close:hover {
  border-color: var(--bg);
  background: rgba(250, 248, 244, 0.1);
}

/* ============================================================
   WHITEPAPER SECTION
   ============================================================ */
.section--whitepaper {
  background: var(--bg-alt);
  border-top-color: transparent;
  position: relative;
}
.section--whitepaper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.whitepaper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.whitepaper__text { max-width: 540px; }

.section__title--tight { margin-bottom: 28px; }

.whitepaper__dek {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 36px;
}

.whitepaper__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--rule);
}
.whitepaper__meta li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.whitepaper__meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.whitepaper__meta-value {
  color: var(--ink);
  font-weight: 500;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn__icon {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.whitepaper__filesize {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 0;
  font-weight: 500;
}

/* Whitepaper cover card */
.cover-card-link {
  display: block;
  perspective: 1000px;
  transition: transform var(--t-med);
}
.cover-card-link:hover { transform: translateY(-4px); }

.cover-card {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: var(--bg);
  padding: 40px 36px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 4px;
  box-shadow: 0 20px 60px -20px rgba(20, 24, 31, 0.35),
              0 4px 12px -4px rgba(20, 24, 31, 0.2);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-med);
  max-width: 420px;
  margin: 0 auto;
}
.cover-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250,248,244,0.4), transparent);
}
.cover-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,248,244,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cover-card-link:hover .cover-card {
  box-shadow: 0 30px 80px -20px rgba(20, 24, 31, 0.45),
              0 8px 20px -4px rgba(20, 24, 31, 0.25);
}

.cover-card__top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}
.cover-card__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: -0.01em;
}
.cover-card__brand-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.65);
  font-weight: 500;
}

.cover-card__middle {
  position: relative;
  z-index: 1;
}
.cover-card__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.65);
  margin: 0 0 18px;
  font-weight: 500;
}
.cover-card__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--bg);
}

.cover-card__bottom {
  font-size: 13px;
  color: rgba(250, 248, 244, 0.75);
  letter-spacing: 0.04em;
  margin: 0;
  position: relative;
  z-index: 1;
}
.cover-card__author { font-weight: 500; }

/* ============================================================
   MEDIA TAG
   ============================================================ */
.media-item__tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
  margin-top: 4px;
  align-self: flex-start;
  width: max-content;
}

/* ============================================================
   MEDIA LIST (Publicações)
   ============================================================ */
.media-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--col);
}
.media-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.media-item__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.media-item__source {
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.media-item__date { color: var(--muted); }
.media-item__title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.45;
}
.media-item__title--link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color var(--t-fast);
}
.media-item__title--link:hover { color: var(--accent); }
.media-item__title--link .media-item__arrow {
  display: inline-block;
  transition: transform var(--t-fast);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}
.media-item__title--link:hover .media-item__arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ============================================================
   BLOG / INSIGHTS
   ============================================================ */
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.post-card {
  padding: 36px 32px;
  background: var(--bg-alt);
  border-radius: 4px;
  transition: background var(--t-med), transform var(--t-med);
}
.post-card:hover {
  background: #ebe6da;
  transform: translateY(-2px);
}
.post-card__meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.post-card__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.form { display: grid; gap: 20px; }

.form__field { display: grid; gap: 8px; }
.form__hp { position: absolute; left: -9999px; }

.form__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 500;
}

.form__field input,
.form__field textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  width: 100%;
  transition: border-color var(--t-fast);
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form__field textarea { resize: vertical; min-height: 120px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  justify-self: start;
}
.btn:hover { background: var(--accent-soft); transform: translateY(-1px); }

.contact-aside { padding-top: 8px; }
.contact-aside__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 24px 0 6px;
  font-weight: 500;
}
.contact-aside__label:first-child { margin-top: 0; }

/* ============================================================
   LINK ARROW (reusable)
   ============================================================ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color var(--t-fast), color var(--t-fast), gap var(--t-fast);
}
.link-arrow:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 10px;
}

.section--featured .link-arrow {
  color: var(--bg);
  border-bottom-color: rgba(250, 248, 244, 0.3);
}
.section--featured .link-arrow:hover {
  color: var(--bg);
  border-bottom-color: var(--bg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 36px 32px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { max-width: 360px; aspect-ratio: 4 / 5; }
  .hero { padding: 56px 24px 72px; }
  .section { padding: 72px 24px; }
  .card-grid, .pillars, .posts { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section__head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .speaking { grid-template-columns: 1fr; gap: 40px; }
  .speaking__photo { position: static; max-width: 400px; }
  .whitepaper { grid-template-columns: 1fr; gap: 48px; }
  .whitepaper__cover { order: -1; }
  .cover-card { max-width: 320px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 640px) {
  .nav__inner { padding: 14px 20px; gap: 12px; }
  .nav__links { display: none; }
  .hero { padding: 40px 20px 56px; }
  .section { padding: 56px 20px; }
  .media-item { grid-template-columns: 1fr; gap: 6px; }
  .media-item__meta { flex-direction: row; gap: 12px; }
  .timeline__item { grid-template-columns: 60px 1fr; gap: 16px; }
  .nav__brand { font-size: 17px; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
