/* drrehana.com - Dr. Rehana Meghani
   Brand palette: black, cool/warm greys, near-white, soft blush accent
   #000000  #9ca1a2  #737373  #e5e1df  #fcfcfc  #e6dada
   Type: Georgia (serif) for headlines + body, Arial (sans) for labels/nav/meta */

:root {
  --black: #000000;
  --near-black: #141414;
  --charcoal: #242424;
  --ink: #1c1c1c;        /* body text */
  --grey: #737373;       /* muted text */
  --grey-cool: #9ca1a2;  /* borders, metadata */
  --stone: #e5e1df;      /* alt section background */
  --card: #f3f1ee;       /* cards on light */
  --white: #fcfcfc;      /* page background */
  --blush: #e6dada;      /* soft accent */
  --blush-deep: #d8c6c6; /* accent hover */

  --line: #ddd9d5;       /* light borders */
  --line-dark: #2e2e2e;  /* borders on dark */

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --maxw: 1120px;
  --measure: 38rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--grey); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--black);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.2em; }

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

.measure { max-width: var(--measure); }

/* Sans-serif labels / kickers / metadata */
.label,
.kicker,
.meta,
.nav__links a,
.btn,
.eyebrow {
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.72rem;
  color: var(--grey);
  margin: 0 0 1.4rem;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.95rem 1.8rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }

/* Primary on light sections: solid black */
.btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--primary:hover { background: var(--grey); border-color: var(--grey); color: var(--white); }

/* Primary on dark backgrounds: blush accent */
.hero .btn--primary,
.sec--brown .btn--primary,
.news .btn--primary {
  background: var(--blush);
  color: var(--black);
  border-color: var(--blush);
}
.hero .btn--primary:hover,
.sec--brown .btn--primary:hover,
.news .btn--primary:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: currentColor;
}
.btn--ghost:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.hero .btn--ghost,
.sec--brown .btn--ghost { color: var(--white); }
.hero .btn--ghost:hover,
.sec--brown .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.textlink {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.textlink:hover { text-decoration: none; opacity: 0.6; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav--dark {
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav--dark .nav__brand { color: var(--white); }
.nav__brand:hover { text-decoration: none; color: var(--grey); }

.nav__links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
}
.nav--dark .nav__links a { color: var(--stone); }
.nav__links a:hover { color: var(--grey); text-decoration: none; }
.nav--dark .nav__links a:hover { color: var(--blush); }
.nav__links a.is-active { color: var(--grey); }
.nav--dark .nav__links a.is-active { color: var(--blush); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s;
}
.nav--dark .nav__toggle span { background: var(--white); }

/* ---------- Sections ---------- */
section { position: relative; }

.sec { padding: clamp(4rem, 9vw, 8rem) 0; }
.sec--cream { background: var(--white); }
.sec--light { background: var(--stone); }
.sec--blush { background: var(--blush); }
.sec--brown { background: var(--black); color: var(--white); }
.sec--brown h1, .sec--brown h2, .sec--brown h3 { color: var(--white); }
.sec--brown a { color: var(--blush); }
.sec--tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }

.lead {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5;
}

.big-statement {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--black);
}
.sec--brown .big-statement { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--stone);
  max-width: 34rem;
}
.hero__sub em { color: var(--blush); font-style: italic; }
.hero__sig {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--grey-cool);
  margin-top: 2.5rem;
  line-height: 1.7;
}

/* Floating stat badge on hero portrait */
.hero__media { position: relative; perspective: 1100px; }

/* 3D stage: tilts toward cursor, gently floats at rest */
.hero__stage {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: hero-float 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Arch backdrop — sits behind her; her head rises above it */
.hero__arch {
  position: absolute;
  z-index: 0;
  left: 3%;
  right: 3%;
  top: 16%;
  bottom: 2%;
  background: var(--stone);
  border-radius: 50% 50% 16px 16px / 42% 42% 8px 8px;
  transform: translateZ(-55px) scale(1.02);
}

/* Transparent cutout — large, in front, bleeding above the arch */
.hero__cutout {
  position: relative;
  z-index: 1;
  display: block;
  width: 116%;
  max-width: none;
  margin: 0 0 -2px -8%;
  height: auto;
  max-height: 84vh;
  transform: translateZ(35px);
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.55));
}

@media (prefers-reduced-motion: reduce) {
  .hero__stage { animation: none; transition: none; }
}
.stat-badge {
  position: absolute;
  left: -1.5rem;
  bottom: 1.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 17rem;
  padding: 1.05rem 1.35rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateZ(70px);
}
.stat-badge__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 0.95;
  color: var(--black);
  letter-spacing: -0.01em;
}
.stat-badge__text {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Portrait placeholder - drop Rehana's photo here */
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  background: linear-gradient(160deg, #cfd2d2 0%, #9ca1a2 55%, #737373 100%);
  border: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero .portrait img { object-position: center 42%; }
.portrait::after {
  content: "PORTRAIT";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: rgba(28, 28, 28, 0.45);
}
.portrait.has-image::after { display: none; }

/* ---------- Credential marquee ---------- */
.marquee {
  background: var(--stone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.15rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.trust {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  padding: 0 2.75rem;
}
.trust em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: var(--grey);
}
.trust__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grey-cool);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: 100%; justify-content: center; flex-wrap: wrap; }
  .marquee__group:last-child { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; gap: 0.5rem 0; }
}

/* ---------- Audience logo marquee (Speaking) ---------- */
.logo-strip {
  background: var(--black);
  padding: 2.75rem 0 3rem;
}
.logo-strip .eyebrow {
  color: var(--grey-cool);
  text-align: center;
  margin-bottom: 2rem;
}
.marquee--logos {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  padding: 0;
}
.marquee--logos .marquee__track { animation-duration: 30s; }
.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.6rem;
  height: 52px;
}
.logo-item img {
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.logo-item--tall img { height: 48px; }
.logo-caption {
  margin-left: 0.7rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  white-space: nowrap;
}
.logo-item--text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--white);
  opacity: 0.85;
  white-space: nowrap;
}

/* ---------- Featured media embed ---------- */
.yt-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 3px;
  display: block;
  background: var(--black);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.5);
}

/* ---------- Premise video ---------- */
.premise-media { width: 100%; }
.video-frame {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.5);
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
}
.sec--light .card { background: var(--card); }
.card h3 { margin-bottom: 0.8rem; }
.card p { color: var(--grey); flex: 1; }
.card .textlink { color: var(--ink); align-self: flex-start; margin-top: 0.5rem; }

/* Media cover videos (Press grid) */
.media-cover {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--black);
}
.media-cover video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.media-cover__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey);
  padding: 0.85rem 1rem;
  text-align: center;
}

/* Pillar preview grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: 2.5rem;
}
.pillar {
  background: var(--near-black);
  padding: 2rem 1.6rem;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: background 0.25s ease;
}
.pillar:hover { background: var(--charcoal); }
.pillar span {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col--narrow { grid-template-columns: 1.4fr 1fr; }

/* ---------- Credentials list ---------- */
.creds {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  columns: 2;
  column-gap: 3rem;
}
.creds li {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

/* ---------- Offer list ---------- */
.offer-list { margin-top: 2.5rem; }
.offer-item {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.offer-item:last-child { border-bottom: 1px solid var(--line); }
.offer-item h3 { margin-bottom: 0.4rem; }
.offer-item p { color: var(--grey); margin-bottom: 0; }

/* ---------- Newsletter ---------- */
.news { background: var(--black); color: var(--white); }
.news h2 { color: var(--white); }
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
  max-width: 38rem;
}
.form-inline input { flex: 1 1 180px; }

/* ---------- Forms ---------- */
.form { max-width: 38rem; margin-top: 2rem; }
.form-row { margin-bottom: 1.2rem; }
.form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--grey);
}
.sec--brown .form label { color: var(--grey-cool); }
input, textarea, select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}
.sec--brown input, .sec--brown textarea, .news input {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-dark);
  color: var(--white);
}
.sec--brown input::placeholder, .news input::placeholder { color: var(--grey-cool); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(115, 115, 115, 0.2);
}
.sec--brown input:focus, .news input:focus {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(230, 218, 218, 0.18);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.tab {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--grey);
  cursor: pointer;
}
.tab.is-active { color: var(--black); border-bottom-color: var(--black); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Writing / filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 2.5rem 0 3rem;
}
.filter {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--grey);
  cursor: pointer;
}
.filter.is-active { background: var(--black); color: var(--white); border-color: var(--black); }

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.post {
  border-top: 2px solid var(--black);
  padding-top: 1.2rem;
}
.post .meta {
  font-size: 0.68rem;
  color: var(--grey);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  display: block;
}
.post h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.post p { color: var(--grey); font-size: 0.95rem; margin-bottom: 0; }
.post .date {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.05em;
  display: block;
  margin-top: 0.8rem;
}
.post--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  border-top-width: 3px;
  padding-top: 1.6rem;
}
.post--featured h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post--featured .featured-art {
  background: linear-gradient(160deg, #cfd2d2, #9ca1a2 60%, #737373);
  border-radius: 3px;
  min-height: 260px;
}

/* ---------- Page header ---------- */
.page-head {
  background: var(--black);
  color: var(--white);
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-head h1 { color: var(--white); }
.page-head .lead { color: var(--stone); max-width: 40rem; }
.page-head a { color: var(--blush); }

/* ---------- Quote ---------- */
.quote {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.3;
  font-style: italic;
  color: var(--black);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--stone);
  padding: 4rem 0 2.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer p { color: var(--grey-cool); font-size: 0.95rem; }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-cool);
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer__nav { list-style: none; padding: 0; margin: 0; }
.footer__nav li { margin-bottom: 0.6rem; }
.footer__nav a { color: var(--stone); font-family: var(--sans); font-size: 0.9rem; text-decoration: none; }
.footer__nav a:hover { color: var(--blush); text-decoration: none; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--grey);
  letter-spacing: 0.04em;
}
.footer__social a { color: var(--stone); margin-left: 1.2rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.footer__social a:hover { color: var(--blush); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { order: -1; max-width: 320px; }
  .stat-badge { left: auto; right: 0.5rem; bottom: 0.75rem; max-width: 14rem; padding: 0.9rem 1.1rem; }
  .stat-badge__num { font-size: 2.2rem; }
  .cards { grid-template-columns: 1fr; }
  .two-col, .two-col--narrow { grid-template-columns: 1fr; gap: 2rem; }
  .posts { grid-template-columns: 1fr; }
  .post--featured { grid-template-columns: 1fr; }
  .creds { columns: 1; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }

  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { color: var(--stone); padding: 0.9rem 0; width: 100%; border-bottom: 1px solid var(--line-dark); font-size: 0.9rem; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}
