/* Mars' Hill Magazine — Editorial Design System */

:root {
  --ink: #121212;
  --ink-soft: #26252a;
  --ink-muted: #5a5861;
  --paper: #f7f5f0;
  --paper-deep: #edeae1;
  --white: #ffffff;
  --cobalt: #4669f6;
  --cobalt-dark: #2c4cd6;
  --orchid: #da8bbe;
  --orchid-hover: #e5a3ce;
  --orchid-ink: #141016;
  --border-light: rgba(18, 18, 18, 0.12);
  --border-dark: rgba(255, 255, 255, 0.14);

  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-sans: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1220px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 10px 30px rgba(18, 18, 18, 0.08);
  --shadow-cover: 0 28px 60px rgba(0, 0, 0, 0.52), 0 4px 16px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--ink);
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--cobalt);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* Shared primitives */
.story-card,
.issue-card,
.archive-item,
.team-card,
.job-card,
.form-panel,
.metric-card,
.audit-row,
.callout-box,
.declass-note {
  background: var(--white);
  border: 1px solid var(--border-light);
}

.hero-bg-placeholder,
.hero-bg,
.hero::after,
.cover-placeholder,
.cover-sheen,
.portrait-panel::after,
.carousel-media,
.carousel-slide::after,
.page-hero.has-bg::before,
.page-hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.cover-frame img,
.portrait-panel img,
.story-media img,
.carousel-media img,
.issue-cover-wrap img,
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-group-label,
.section-kicker,
.page-hero-kicker,
.carousel-kicker,
.carousel-bar-label,
.story-meta,
.badge,
.story-read,
.issue-card-num,
.archive-volume-count,
.archive-item-top,
.archive-item-cta,
.team-role,
.declass-note-issue,
.field label,
.metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-toggle,
.carousel-arrow,
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

/* Header & Navigation */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
}

#site-header:empty,
.site-header {
  background: rgba(18, 18, 18, 0.88);
  border-bottom: 1px solid var(--border-dark);
}

.site-header {
  position: relative;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--white);
  transition: background-color 0.25s ease;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 44px;
  height: 44px;
  transition: transform 0.3s var(--ease-out);
}

.brand-mark:hover svg {
  transform: scale(1.06);
}

.brand-wordmark {
  display: none;
  font: 700 18px/1 var(--font-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-trigger,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.88);
  font: 500 15px/1.2 var(--font-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-trigger:hover,
.nav-link:hover,
.nav-trigger[aria-expanded='true'],
.nav-link[aria-current='page'] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-trigger .chevron {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform 0.2s var(--ease-out);
}

.nav-trigger[aria-expanded='true'] .chevron {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  padding: 10px;
  background: #1b1b1f;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out), visibility 0.2s;
}

.dropdown-panel.wide {
  min-width: 390px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.nav-item:is(.open, :focus-within) .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  font: 500 13px/1.3 var(--font-sans);
  letter-spacing: 0.03em;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-link:hover {
  background: rgba(218, 139, 190, 0.16);
  color: var(--white);
}

.dropdown-link .tag-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  display: none;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  color: var(--white);
}

.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 95;
  background: #141417;
  color: var(--white);
  padding: 24px 20px 48px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out), visibility 0.22s;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
}

.mobile-group-label {
  letter-spacing: 0.14em;
  color: var(--orchid);
  margin: 0 0 10px;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-links a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 500;
}

.mobile-links a:hover {
  background: rgba(218, 139, 190, 0.18);
}

/* Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: 700 13px/1.2 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-orchid:hover {
  background: var(--orchid-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.btn-cobalt {
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(70, 105, 246, 0.28);
}

.btn-cobalt:hover {
  background: var(--cobalt-dark);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-dark {
  background: transparent;
  border-color: rgba(18, 18, 18, 0.25);
  color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 12px;
}

/* Homepage Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
  background: #050507;
  color: var(--paper);
  overflow: hidden;
}

.hero-bg-placeholder,
.hero-bg,
.hero::after {
  z-index: 0;
  pointer-events: none;
}

.hero-bg-placeholder {
  background: radial-gradient(ellipse 65% 55% at 22% 42%, rgba(255, 255, 255, 0.045), transparent 70%), #050507;
  transition: opacity 0.85s var(--ease-out);
}

.hero.hero-bg-loaded .hero-bg-placeholder {
  opacity: 0;
}

.hero-bg img {
  max-width: none;
  object-position: 12% 35%;
}

.hero::after {
  content: '';
  background: rgba(10, 9, 13, 0.15);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font: italic 500 clamp(32px, 4.4vw, 56px)/1 var(--font-serif);
  color: #f4f2ee;
}

.hero-title {
  margin: 0;
  font: 400 clamp(148px, 26vw, 340px)/0.84 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #f4f2ee;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-issue-meta {
  margin: 24px 0 0 4px;
  font: 600 clamp(13px, 1.5vw, 20px)/1.3 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c4c1ba;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.hero-actions .btn {
  padding: 15px 30px;
  font-size: 13.5px;
}

.cover-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.cover-frame {
  position: relative;
  display: block;
  width: min(460px, 100%);
  aspect-ratio: 500 / 639;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-cover);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  background: #17171c;
}

.cover-placeholder {
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0) 75%),
    linear-gradient(155deg, #1b1b21 0%, #121216 100%);
  background-size: 220% 100%, 100% 100%;
  animation: coverShimmer 1.8s ease-in-out infinite;
  transition: opacity 0.65s var(--ease-out);
  pointer-events: none;
}

@keyframes coverShimmer {
  from { background-position: 120% 0, 0 0; }
  to { background-position: -120% 0, 0 0; }
}

.cover-frame img {
  position: relative;
  z-index: 2;
}

.cover-frame img.cover-img-hq {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transform: none;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}

.cover-frame img.cover-img-hq.is-visible {
  opacity: 1;
}

.cover-sheen {
  z-index: 3;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.cover-frame:hover .cover-sheen {
  opacity: 0.75;
}

.cover-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 4;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sequenced Hero Entrance */
html.hero-anim .hero :is(.hero-eyebrow, .hero-title, .hero-issue-meta, .hero-actions, .cover-stage) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.75s var(--ease-out);
}

html.hero-anim .hero .hero-eyebrow { transition-delay: 0.05s; }
html.hero-anim .hero .hero-title { transform: translateY(22px); transition-delay: 0.14s; }
html.hero-anim .hero .cover-stage { transform: translateY(18px); transition-delay: 0.18s; }
html.hero-anim .hero .hero-issue-meta { transition-delay: 0.25s; }
html.hero-anim .hero .hero-actions { transition-delay: 0.34s; }

html.hero-anim .hero.hero-text-in :is(.hero-eyebrow, .hero-title, .hero-issue-meta, .hero-actions, .cover-stage) {
  opacity: 1;
  transform: translateY(0);
}

html.hero-anim .hero-bg {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.95s var(--ease-out), transform 1.15s var(--ease-out);
}

html.hero-anim .cover-frame img:not(.cover-img-hq) {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.75s var(--ease-out), transform 0.85s var(--ease-out);
}

html.hero-anim .cover-frame :is(.cover-badge, .cover-sheen) {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

html.hero-anim :is(.hero-bg.is-loaded, .cover-frame.is-loaded img:not(.cover-img-hq)) {
  opacity: 1;
  transform: scale(1);
}

html.hero-anim .cover-frame.is-loaded .cover-placeholder { opacity: 0; animation: none; }
html.hero-anim .cover-frame.is-loaded .cover-badge { opacity: 1; }
html.hero-anim .cover-frame.is-loaded .cover-sheen { opacity: 0.4; }
html.hero-anim .cover-frame.is-loaded:hover .cover-sheen { opacity: 0.75; }

/* Portrait Strip & Wavy Marquee */
.students-band {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.portrait-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.portrait-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.6;
  background: #1c1c20;
}

.portrait-panel img {
  object-position: center top;
  transition: transform 0.7s var(--ease-out);
}

.portrait-panel:hover img {
  transform: scale(1.04);
}

.portrait-panel::after {
  content: '';
  background: linear-gradient(to top, rgba(18, 18, 18, 0.55) 0%, transparent 35%, rgba(18, 18, 18, 0.18) 100%);
  pointer-events: none;
}

.wavy-marquee-wrap {
  position: absolute;
  inset: 52% 0 auto 0;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.wavy-marquee-svg {
  width: 100%;
  height: clamp(130px, 18vw, 240px);
  display: block;
}

.wavy-marquee-text {
  font: 700 98px/1 var(--font-serif);
  fill: var(--orchid);
  letter-spacing: 0.04em;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.photo-credit {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(18, 18, 18, 0.74);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--orchid-hover);
  font: 14px/1.3 var(--font-serif);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Manifesto Band */
.manifesto {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 10vw, 124px) 0;
  text-align: center;
  position: relative;
}

.manifesto-title {
  margin: 0 0 18px;
  font: 600 clamp(58px, 10vw, 120px)/0.96 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--paper);
}

.manifesto-sub {
  margin: 0 0 24px;
  font: italic clamp(22px, 3vw, 32px)/1.2 var(--font-serif);
  color: var(--orchid);
}

.manifesto-copy {
  margin: 0 auto 36px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(247, 245, 240, 0.8);
}

/* Editorial Stories Feed */
.section-pad {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cobalt);
}

.section-heading {
  margin: 0;
  font: 700 clamp(36px, 5vw, 56px)/1.05 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-heading .accent {
  color: var(--cobalt);
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.story-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.2s ease;
}

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

.story-card:hover {
  border-color: rgba(70, 105, 246, 0.35);
}

.story-card.featured {
  grid-column: 1 / -1;
}

.story-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
}

.story-card.featured .story-media {
  max-height: 260px;
}

.story-media img {
  transition: transform 0.55s var(--ease-out);
}

.story-card.featured .story-media img {
  position: absolute;
  inset: 0;
  object-position: center 22%;
}

.story-card:hover .story-media img {
  transform: scale(1.04);
}

.story-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-card.featured .story-body {
  padding: 28px 34px;
  justify-content: center;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.1em;
  background: rgba(70, 105, 246, 0.11);
  color: var(--cobalt-dark);
}

.badge-orchid {
  background: rgba(218, 139, 190, 0.24);
  color: #6f2a57;
}

.badge-dark {
  background: var(--ink);
  color: var(--white);
}

.story-time {
  color: var(--ink-muted);
  font-weight: 500;
}

.story-title {
  margin: 0 0 10px;
  font: 700 24px/1.2 var(--font-serif);
  color: var(--ink);
}

.story-card.featured .story-title {
  font-size: clamp(28px, 3.2vw, 38px);
}

.story-excerpt {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--ink-muted);
  flex: 1;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
}

.story-author {
  font-weight: 600;
  color: var(--ink-soft);
}

.story-read {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cobalt);
}

/* Get Involved Full-Page Carousel */
.involved-carousel {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 540px;
  max-height: 920px;
  overflow: hidden;
  background: #0d0d11;
  color: var(--white);
  outline: none;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s var(--ease-out);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-media {
  z-index: 0;
}

.carousel-media img {
  max-width: none;
  transform: scale(1.04);
  transition: transform 6.5s ease-out;
}

.carousel-slide.is-active .carousel-media img {
  transform: scale(1);
}

.carousel-slide::after {
  content: '';
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 14, 0.84) 0%, rgba(10, 10, 14, 0.56) 46%, rgba(10, 10, 14, 0.16) 100%),
    linear-gradient(to top, rgba(10, 10, 14, 0.72) 0%, transparent 44%);
}

.carousel-inner {
  position: relative;
  z-index: 2;
  padding-inline: 20px;
  padding-bottom: 64px;
}

.carousel-copy {
  max-width: 520px;
}

.carousel-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orchid);
}

.carousel-copy h2 {
  margin: 0 0 16px;
  font: 700 clamp(42px, 5.8vw, 72px)/1.02 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--white);
}

.carousel-copy p {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255, 255, 255, 0.9);
}

.carousel-arrow {
  position: absolute;
  bottom: 64px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 14, 18, 0.48);
  backdrop-filter: blur(10px);
  color: var(--white);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.carousel-arrow:hover {
  background: rgba(14, 14, 18, 0.78);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.06);
}

.carousel-prev { right: 68px; }
.carousel-next { right: 20px; }

.carousel-bars {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3.5vw, 36px);
  transform: translateX(-50%);
  z-index: 4;
  width: min(var(--container), calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.carousel-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.carousel-bar:is(:hover, .is-active) {
  color: var(--white);
}

.carousel-bar-label {
  display: none;
  letter-spacing: 0.14em;
}

.carousel-bar-track {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.carousel-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orchid);
  border-radius: var(--radius-pill);
  transition: width 0.4s var(--ease-out);
}

.carousel-bar.is-active .carousel-bar-fill {
  width: 100%;
}

/* Inner Page Banners */
.page-hero {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 7vw, 80px);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.page-hero.has-bg::before {
  content: '';
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.55), rgba(18, 18, 18, 0.88));
  z-index: 1;
}

.page-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orchid);
}

.page-hero-title {
  margin: 0;
  font: 700 clamp(46px, 8vw, 96px)/0.96 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-hero-title .cobalt { color: var(--cobalt); }
.page-hero-title .italic { font-style: italic; font-weight: 500; }

.page-hero-lead {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(247, 245, 240, 0.82);
}

/* Filter Toolbar & Search Inputs */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

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

.filter-pill:is(.active, [aria-pressed='true']) {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.search-input {
  width: min(320px, 100%);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--white);
  font-size: 14px;
  color: var(--ink);
}

.search-input:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(70, 105, 246, 0.15);
}

/* Issues & Archive */
.issues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.issue-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

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

.issue-cover-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 3 / 3.9;
  box-shadow: 0 12px 24px rgba(18, 18, 18, 0.16);
}

.issue-cover-wrap img {
  transition: transform 0.5s var(--ease-out);
}

.issue-card:hover .issue-cover-wrap img {
  transform: scale(1.03);
}

.issue-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.issue-card-title {
  margin: 0;
  font: 400 36px/1 var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.issue-card-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cobalt);
}

.issue-card-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  flex: 1;
}

.archive-volume {
  margin-bottom: 44px;
}

.archive-volume-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.archive-volume-title {
  margin: 0;
  font: 700 clamp(26px, 3.5vw, 36px)/1.1 var(--font-serif);
}

.archive-volume-count {
  font-size: 12px;
  color: var(--cobalt);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.archive-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.archive-item:hover {
  border-color: var(--cobalt);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(70, 105, 246, 0.1);
}

.archive-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-muted);
}

.archive-item-title {
  margin: 6px 0 0;
  font: 700 22px/1.15 var(--font-serif);
  color: var(--ink);
}

.archive-item-date {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.archive-item-cta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cobalt);
}

/* Article Reader */
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cobalt), var(--orchid));
  z-index: 99;
  transition: width 0.08s linear;
}

.reader-shell {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.reader-shell[data-theme='sepia'] {
  background: #f3ecd9;
  color: #2b2318;
}

.reader-shell[data-theme='dark'] {
  background: #141418;
  color: #e9e6df;
}

.reader-shell[data-theme='dark'] :is(.reader-meta-bar, .reader-controls) {
  border-color: var(--border-dark);
}

.reader-shell[data-theme='dark'] .reader-prose {
  color: #dedbd3;
}

.reader-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 20px 28px;
}

.reader-title {
  margin: 14px 0 18px;
  font: 700 clamp(34px, 5vw, 56px)/1.08 var(--font-serif);
  letter-spacing: -0.015em;
}

.reader-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-block: 1px solid var(--border-light);
  font-size: 14px;
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-btn {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.reader-btn:is(:hover, .active) {
  opacity: 1;
}

.reader-hero-img {
  max-width: 920px;
  margin: 0 auto 36px;
  padding: 0 20px;
}

.reader-hero-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.reader-prose {
  max-width: 68ch;
  margin: 0 auto;
  padding: 0 20px 72px;
  font: var(--reader-size, 21px)/1.75 var(--font-serif);
  color: var(--ink-soft);
}

.reader-prose p {
  margin: 0 0 1.25em;
}

.reader-prose p:first-of-type::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  font-weight: 700;
  color: var(--cobalt);
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.team-photo {
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: var(--paper-deep);
}

.team-photo img {
  object-position: center 20%;
}

.team-info {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-role {
  letter-spacing: 0.14em;
  color: var(--cobalt);
  margin-bottom: 4px;
}

.team-name {
  margin: 0 0 10px;
  font: 700 26px/1.15 var(--font-serif);
}

.team-bio {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Declassifieds Zine Wall */
.declass-grid {
  columns: 1;
  column-gap: 18px;
}

.declass-note {
  break-inside: avoid;
  margin-bottom: 18px;
  padding: 20px 22px;
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius-md);
  font: 20px/1.45 var(--font-serif);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(18, 18, 18, 0.04);
}

.declass-note:nth-child(3n + 2) {
  border-left-color: var(--orchid);
  background: #fffafd;
}

.declass-note:nth-child(5n) {
  border-left-color: var(--ink);
  background: #f5f3eb;
}

.declass-note-issue {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  color: var(--ink-muted);
}

/* Job Cards */
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.job-card {
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card.highlight {
  border-color: var(--cobalt);
  box-shadow: 0 10px 30px rgba(70, 105, 246, 0.12);
  background: linear-gradient(180deg, rgba(70, 105, 246, 0.04), var(--white) 45%);
}

.job-card h3 {
  margin: 0;
  font: 700 26px/1.15 var(--font-serif);
}

.job-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.job-card li + li {
  margin-top: 6px;
}

/* Forms & Callouts */
.form-panel {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-card);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.field :is(input, textarea, select) {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(18, 18, 18, 0.2);
  background: var(--paper);
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field :is(input, textarea, select):focus {
  outline: none;
  border-color: var(--cobalt);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(70, 105, 246, 0.14);
}

.demo-notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(70, 105, 246, 0.08);
  border: 1px solid rgba(70, 105, 246, 0.24);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.callout-box {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
}

.callout-box h3 {
  margin: 0 0 10px;
  font: 700 28px/1.15 var(--font-serif);
}

/* Revamp Audit */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.metric-card {
  border-radius: var(--radius-md);
  padding: 22px;
}

.metric-label {
  color: var(--ink-muted);
}

.metric-value {
  margin: 8px 0 4px;
  font: 400 44px/1 var(--font-display);
  color: var(--cobalt);
}

.metric-sub {
  font-size: 13px;
  color: var(--ink-muted);
}

.audit-list {
  display: grid;
  gap: 12px;
}

.audit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.audit-before { font-size: 14px; color: #8c2626; }
.audit-after { font-size: 14px; color: #165e36; }

/* Footer & Toast */
.site-footer {
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--border-light);
  padding: clamp(48px, 6vw, 76px) 0 32px;
}

.footer-masthead {
  margin: 0 0 36px;
  font: 700 clamp(36px, 7.6vw, 108px)/0.94 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--cobalt);
  text-transform: uppercase;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
}

.footer-col h4 {
  margin: 0 0 12px;
  font: 700 21px/1.2 var(--font-serif);
  color: var(--ink);
}

.footer-col :is(p, li) {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--cobalt);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-btn {
  width: 42px;
  height: 42px;
  background: var(--paper);
  border: 1px solid var(--border-light);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--ink-muted);
}

.revamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(70, 105, 246, 0.1);
  color: var(--cobalt-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease;
}

.revamp-pill:hover {
  background: rgba(70, 105, 246, 0.18);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
  .declass-grid { columns: 2; }
  .carousel-bar-label { display: block; }
  .carousel-inner { padding-inline: clamp(32px, 6vw, 76px); padding-bottom: 56px; }
  .carousel-arrow { width: 48px; height: 48px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .carousel-arrow:hover { transform: translateY(-50%) scale(1.06); }
  .carousel-prev { left: clamp(12px, 2.5vw, 32px); right: auto; }
  .carousel-next { right: clamp(12px, 2.5vw, 32px); }
}

@media (min-width: 768px) {
  .portrait-strip { grid-template-columns: repeat(4, 1fr); }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-row { grid-template-columns: 170px 1fr 1fr; gap: 20px; align-items: start; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

@media (min-width: 860px) {
  .issues-grid { grid-template-columns: repeat(3, 1fr); }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .hero-bg img { object-position: center; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; }
  .story-card.featured { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .story-card.featured .story-media { aspect-ratio: auto; height: 100%; min-height: 320px; max-height: none; }
}

@media (min-width: 1024px) {
  .brand-wordmark { display: inline-block; }
  .declass-grid { columns: 3; }
  .stories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.hero-anim .hero :is(.hero-eyebrow, .hero-title, .hero-issue-meta, .hero-actions, .cover-stage, .hero-bg, .cover-frame img, .cover-frame .cover-badge) {
    opacity: 1;
    transform: none;
  }

  .carousel-media img {
    transform: none;
  }

  .cover-placeholder {
    opacity: 0;
    animation: none;
  }
}
