:root {
  --bg: #F5F2EC;
  --bg-elev: #EFEADF;
  --ink: #0E0E10;
  --muted: #6B6B6B;
  --line: #D9D3C7;
  --accent: #2C4BD8;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 96;
}

a { color: inherit; }

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

/* Container helper */
.nav,
.hero,
.about,
.work,
.contact,
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* ---------- NAV ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.nav-bar.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav__logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 500;
}

.nav__logo .dot { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  opacity: 0.7;
  transition: opacity .2s var(--ease);
  padding: 6px 0;
}

.nav__links a:hover,
.nav__links a:focus-visible { opacity: 1; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  display: block;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: clamp(56px, 12vw, 140px);
  padding-bottom: clamp(64px, 12vw, 140px);
}

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

.hero__title {
  font-size: clamp(44px, 9vw, 112px);
  margin: 0 0 28px;
  font-weight: 300;
  max-width: 14ch;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero__sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 36px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: transform .2s var(--ease),
              background .2s var(--ease),
              color .2s var(--ease),
              border-color .2s var(--ease);
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- ABOUT ---------- */
.about {
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about__grid h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
  max-width: 14ch;
}

.about__body p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 58ch;
}

.about__body em {
  color: var(--ink);
  font-style: italic;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.pillars li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: baseline;
  color: var(--muted);
  font-size: 15px;
}

.pillars strong {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ---------- WORK ---------- */
.work {
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.work__header h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 36px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter {
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s var(--ease),
              border-color .2s var(--ease),
              background .2s var(--ease);
}

.filter:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 28px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.card.is-hidden { display: none; }

.card--wide { grid-column: span 2; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  text-decoration: none;
}

.card__media:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -22px rgba(14,14,16,0.25);
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card__media:hover img { transform: scale(1.03); }

/* Non-clickable thumbnail — show the image at its full aspect ratio */
.card__media--static {
  cursor: default;
  aspect-ratio: auto;
  padding: 0;
}
.card__media--static img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.card__media--static:hover {
  transform: none;
  box-shadow: none;
}
.card__media--static:hover img { transform: none; }

.card__tag {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(14,14,16,0.08);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  font-weight: 500;
}

/* Marketing gradient placeholders (no images yet) */
.card__media--gradient { align-items: flex-end; }
.card__media--gradient[data-gradient="1"] {
  background: linear-gradient(135deg, #EBE4D1 0%, #C9B9E0 100%);
}
.card__media--gradient[data-gradient="2"] {
  background: linear-gradient(135deg, #FAD7C7 0%, #E9B1C1 100%);
}
.card__media--gradient[data-gradient="3"] {
  background: linear-gradient(135deg, #DCE6CF 0%, #ACC7A5 100%);
}

/* Analytics stat tile */
.card__media--stat {
  background: var(--ink);
  color: var(--bg);
  padding: 28px;
  align-items: flex-end;
  justify-content: flex-start;
  border-color: var(--ink);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__num {
  font-family: 'Fraunces', serif;
  font-size: clamp(56px, 9vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--bg);
}

.stat__num small {
  font-size: 0.5em;
  color: var(--accent);
  margin-left: 2px;
  vertical-align: top;
}

.stat__label {
  font-size: 13px;
  color: rgba(245, 242, 236, 0.65);
  max-width: 220px;
  line-height: 1.45;
}

.card h3 {
  font-size: 20px;
  margin: 10px 0 2px;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

.card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.card__meta li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------- CONTACT ---------- */
.contact {
  padding-top: clamp(64px, 11vw, 140px);
  padding-bottom: clamp(64px, 11vw, 140px);
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(40px, 7vw, 96px);
  margin: 0 0 20px;
  max-width: 16ch;
  font-weight: 300;
}

.contact__sub {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 17px;
}

.contact__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.contact__links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font-size: 15px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.contact__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .card--wide { grid-column: span 1; }
  .pillars li { grid-template-columns: 120px 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px clamp(20px, 4vw, 48px) 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(14,14,16,0.15);
  }

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

  .nav__links a {
    opacity: 1;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }

  .nav__links a:first-child { border-top: none; }

  .nav__toggle { display: inline-flex; }

  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

  .pillars li { grid-template-columns: 1fr; gap: 4px; }
  .pillars strong { font-size: 13px; }

  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- SMALL TOUCHES ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ====================================================
   MULTI-PAGE ADDITIONS
   ==================================================== */

/* Active nav state */
.nav__links a[aria-current="page"] {
  opacity: 1;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* ---------- PORTALS (home page) ---------- */
.portals-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.portals {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.portal {
  border-bottom: 1px solid var(--line);
}

.portal__link {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px) 0;
  text-decoration: none;
  color: var(--ink);
  transition: color .35s var(--ease), padding-left .35s var(--ease);
  position: relative;
}

.portal__link:hover,
.portal__link:focus-visible {
  color: var(--accent);
  padding-left: 12px;
  outline: none;
}

.portal__num {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-weight: 500;
}

.portal__body {
  max-width: 620px;
}

.portal__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 6vw, 72px);
  margin: 0 0 10px;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: inherit;
  transition: color .35s var(--ease);
}

.portal__link:hover .portal__title,
.portal__link:focus-visible .portal__title {
  font-style: italic;
}

.portal__desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 54ch;
}

.portal__arrow {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--muted);
  transition: transform .35s var(--ease), color .35s var(--ease);
}

.portal__link:hover .portal__arrow,
.portal__link:focus-visible .portal__arrow {
  transform: translateX(10px);
  color: var(--accent);
}

@media (max-width: 720px) {
  .portal__link {
    grid-template-columns: 40px 1fr 24px;
    gap: 16px;
    padding: 24px 0;
  }
  .portal__num { font-size: 12px; }
  .portal__arrow { font-size: 20px; }
}

/* ---------- GENERAL INFO BLOCK (home page) ---------- */
.info-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.info__title {
  font-size: clamp(32px, 5vw, 64px);
  margin: 0 0 36px;
  font-weight: 300;
  max-width: 14ch;
}

.info__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.info__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.info__key {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.info__value {
  font-size: 15px;
  color: var(--ink);
}

.info__value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.info__value a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .info__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }
}

/* ---------- PAGE HERO (side pages) ---------- */
.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 10vw, 120px) clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px);
}

.eyebrow .crumb {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.eyebrow .crumb:hover {
  color: var(--ink);
}

.page-hero__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 7vw, 88px);
  margin: 0 0 24px;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 16ch;
}

.page-hero__title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.page-hero__sub {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 28px;
}

.page-hero__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- EXPERIENCE LIST ---------- */
.experience {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.experience__heading,
.work__heading,
.skills-section__heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.exp-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.exp-item__role {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.exp-item__org {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
}

.exp-item__dates {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.exp-item__body ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.exp-item__body li {
  margin: 0 0 10px;
}

.exp-item__body li:last-child { margin: 0; }

.exp-item__body li strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 760px) {
  .exp-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------- WORK block (reusable) ---------- */
.work {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

/* ---------- SKILLS ---------- */
.skills-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills li {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.skills li:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- RESUME CTA ---------- */
.resume-cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.resume-cta__text {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  margin: 0 0 24px;
  max-width: 28ch;
  color: var(--ink);
}

/* ---------- CASE STUDIES (full-size showcase) ---------- */
.case-studies {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.case-studies__heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  margin: 0 0 36px;
  letter-spacing: -0.02em;
}

.case {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.case:last-of-type {
  border-bottom: 1px solid var(--line);
}

.case__header {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.case__tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}

.case__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  margin: 10px 0 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variation-settings: "opsz" 96;
}

.case__desc {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
  line-height: 1.7;
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.case__meta li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.case__frame {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.case__frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -28px rgba(14,14,16,0.3);
}

.case__frame img {
  width: 100%;
  height: auto;
  display: block;
}

.case__hint {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
  letter-spacing: 0.03em;
}

.case__hint::before {
  content: "↗ ";
  color: var(--accent);
}

@media (max-width: 760px) {
  .case__header { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- PAGE FOOTER PAGER (Home + Next) ---------- */
.page-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pager {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  text-decoration: none;
  color: var(--ink);
  transition: color .3s var(--ease), background .25s var(--ease);
}

.pager:hover,
.pager:focus-visible {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  outline: none;
}

.pager--home {
  justify-content: flex-start;
  border-right: 1px solid var(--line);
}

.pager--next {
  justify-content: flex-end;
  text-align: right;
}

.pager__copy { display: block; }

.pager__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 500;
}

.pager__title {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3.5vw, 48px);
  letter-spacing: -0.02em;
  font-weight: 300;
  line-height: 1.05;
}

.pager__arrow {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .3s var(--ease), color .3s var(--ease);
}

.pager:hover .pager__arrow,
.pager:focus-visible .pager__arrow {
  color: var(--accent);
}

.pager--home:hover .pager__arrow,
.pager--home:focus-visible .pager__arrow {
  transform: translateX(-10px);
}

.pager--next:hover .pager__arrow,
.pager--next:focus-visible .pager__arrow {
  transform: translateX(10px);
}

@media (max-width: 640px) {
  .page-footer-nav {
    grid-template-columns: 1fr;
  }
  .pager--home {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .pager__title {
    font-size: 28px;
  }
}

/* ---------- TIKTOK CHANNEL ---------- */
.tiktok-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.tiktok-section__head {
  max-width: 64ch;
  margin-bottom: 48px;
}

.tiktok-section__heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.tiktok-section__sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}

.tiktok-section__handle {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tiktok-section__handle:hover,
.tiktok-section__handle:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
  justify-items: center;
}

.tiktok-clip {
  width: 100%;
  max-width: 360px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tiktok-clip__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.25);
}

.tiktok-clip__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tiktok-clip__caption {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.tiktok-clip__caption a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tiktok-clip__caption a:hover,
.tiktok-clip__caption a:focus-visible {
  color: var(--ink);
}

.tiktok-section__cta {
  margin: 48px 0 0;
}

.tiktok-section__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tiktok-section__link span {
  font-weight: 600;
}

.tiktok-section__link:hover,
.tiktok-section__link:focus-visible {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.tiktok-section__arrow {
  transition: transform 0.2s ease;
}

.tiktok-section__link:hover .tiktok-section__arrow,
.tiktok-section__link:focus-visible .tiktok-section__arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 640px) {
  .tiktok-grid {
    grid-template-columns: 1fr;
  }
}
