/* ============================================================
   AU UNFILTERED: SHARE YOUR STORY
   Calm · Modern · Cinematic · Impact
   Light editorial design with AU official brand colors
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Light Palette — warm, calm, editorial */
  --cream: #FAF7F2;
  --warm-white: #FFFFFF;
  --soft-beige: #F0ECE3;
  --sand: #E8E2D6;
  --warm-gray: #B8B0A2;
  --medium-gray: #8A8279;
  --charcoal: #4A4540;
  --deep-brown: #2C2825;
  --near-black: #1A1815;

  /* AU Official Brand Colors */
  --au-red: #E0263C;
  --au-blue: #004FA2;
  --au-suffragist: #3C208C;
  --au-gradient: linear-gradient(-45deg, #E0263C, #3C208C);
  --au-gradient-subtle: linear-gradient(-45deg, rgba(224, 38, 60, 0.08), rgba(60, 32, 140, 0.08));

  /* AU Highlight Colors */
  --au-intern: #182449;
  --au-embassy: #005099;
  --au-botany: #6995DD;
  --au-tenleytown: #C4122E;
  --au-row-house: #961E28;
  --au-indigo: #4918CD;
  --au-mckinley: #00A38D;
  --au-arboretum: #1C7F66;
  --au-district-gray: #D9DCE3;
  --au-metro-silver: #8A95A5;
  --au-talon: #414547;
  --au-beltway: #000000;

  /* Functional colors */
  --au-red-glow: rgba(224, 38, 60, 0.12);
  --au-blue-glow: rgba(0, 79, 162, 0.08);

  /* Typography Scale */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --text-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.75rem, 0.7rem + 0.3vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 7rem);
  --text-hero: clamp(3.5rem, 2rem + 7vw, 10rem);

  /* Spacing */
  --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 2rem);
  --space-lg: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-xl: clamp(3rem, 2rem + 5vw, 8rem);
  --space-2xl: clamp(5rem, 3rem + 8vw, 12rem);

  /* Layout */
  --max-width: 1400px;
  --content-width: 680px;
  --nav-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.8s;
  --duration-slower: 1.2s;
}


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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--au-red);
  color: var(--warm-white);
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--au-red);
  color: var(--warm-white);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  z-index: 10000;
  border-radius: 0 0 4px 4px;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* --- Custom Cursor (Desktop) --- */
.cursor-dot,
.cursor-ring {
  display: none;
}

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--au-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
  }

  .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(224, 38, 60, 0.25);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
  }

  .cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--au-suffragist);
  }

  .cursor-hover .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: rgba(60, 32, 140, 0.2);
  }
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-lg);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--duration-base) var(--ease-out),
              backdrop-filter var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Dark nav variant for story hero pages */
.site-nav.nav-dark .nav-logo { color: rgba(255,255,255,0.6); }
.site-nav.nav-dark .nav-link { color: rgba(255,255,255,0.6); }
.site-nav.nav-dark .nav-link:hover,
.site-nav.nav-dark .nav-link.active { color: #fff; }
.site-nav.nav-dark .nav-toggle span { background: rgba(255,255,255,0.8); }
.site-nav.nav-dark.scrolled {
  background: rgba(26, 24, 21, 0.9);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--medium-gray);
  transition: color var(--duration-fast);
}

.nav-logo:hover {
  color: var(--deep-brown);
}

.nav-logo .logo-accent {
  color: var(--au-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--medium-gray);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--au-red);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--deep-brown);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 247, 242, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.nav-overlay.open {
  display: flex;
  opacity: 1;
}

.nav-overlay .nav-link-mobile {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--deep-brown);
  transition: color var(--duration-fast);
}

.nav-overlay .nav-link-mobile:hover {
  color: var(--au-red);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}


/* ============================================================
   HERO SECTIONS
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-height) var(--space-lg) var(--space-xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg .placeholder-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 247, 242, 0.3) 0%,
    rgba(250, 247, 242, 0.1) 40%,
    rgba(250, 247, 242, 0.5) 80%,
    rgba(250, 247, 242, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

/* Placeholder background for hero */
.placeholder-bg {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(224, 38, 60, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(60, 32, 140, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, var(--soft-beige) 0%, var(--sand) 50%, var(--soft-beige) 100%);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--near-black);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--medium-gray);
  margin-bottom: var(--space-md);
}

.hero-line {
  width: 60px;
  height: 2px;
  background: var(--au-gradient);
  margin: 0 auto var(--space-md);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--au-red);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}


/* ============================================================
   TEXT HERO (for About page, etc.)
   ============================================================ */

.hero-text {
  min-height: 70vh;
  background: var(--cream);
  padding-top: calc(var(--nav-height) + var(--space-xl));
}

.hero-text .hero-content {
  max-width: 800px;
}

.hero-text .hero-title {
  font-size: var(--text-4xl);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}


/* ============================================================
   SECTIONS — General
   ============================================================ */

.section {
  padding: var(--space-xl) var(--space-lg);
}

.section-dark {
  background: var(--soft-beige);
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--medium-gray);
  max-width: 600px;
  line-height: 1.6;
}

/* Year Badge */
.year-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--au-red);
  border: 1px solid rgba(224, 38, 60, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

/* Intro Text Block */
.intro-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.intro-block p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--charcoal);
}


/* ============================================================
   FEATURED STORIES (Home Page)
   ============================================================ */

.featured-stories {
  padding: var(--space-xl) var(--space-lg);
}

.featured-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-md);
  min-height: 70vh;
}

.story-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  border-radius: 6px;
}

.story-card:first-child {
  grid-row: 1 / 3;
}

.story-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out),
              filter var(--duration-base) var(--ease-out);
  filter: grayscale(10%) contrast(1.02);
}

.story-card .placeholder-card {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-slow) var(--ease-out);
}

.story-card:nth-child(1) .placeholder-card {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(224, 38, 60, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, var(--soft-beige) 0%, var(--sand) 50%, var(--soft-beige) 100%);
}

.story-card:nth-child(2) .placeholder-card {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(60, 32, 140, 0.05) 0%, transparent 60%),
    linear-gradient(200deg, var(--sand) 0%, var(--soft-beige) 50%, var(--sand) 100%);
}

.story-card:nth-child(3) .placeholder-card {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0, 79, 162, 0.04) 0%, transparent 60%),
    linear-gradient(140deg, var(--soft-beige) 0%, var(--sand) 50%, var(--soft-beige) 100%);
}

.story-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 36, 73, 0.8) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: background var(--duration-base);
}

.story-card:hover .story-card-image,
.story-card:hover .placeholder-card {
  transform: scale(1.03);
}

.story-card:hover .story-card-overlay {
  background: linear-gradient(to top, rgba(24, 36, 73, 0.9) 0%, rgba(24, 36, 73, 0.1) 65%);
}

.story-card-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: var(--space-xs);
}

.story-card-quote {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 400px;
  opacity: 0.7;
  transition: opacity var(--duration-base);
}

.story-card:hover .story-card-quote {
  opacity: 1;
}

.story-card-detail {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
}

/* "Explore All" Link */
.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: var(--space-lg);
  position: relative;
  padding-bottom: 2px;
}

.explore-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--au-red);
  transition: width var(--duration-base) var(--ease-out);
}

.explore-link:hover::after {
  width: 100%;
}

.explore-link:hover {
  color: var(--au-red);
}

.explore-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-base) var(--ease-out);
}

.explore-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .story-card:first-child {
    grid-row: auto;
  }

  .story-card .placeholder-card {
    min-height: 250px;
  }
}


/* ============================================================
   IMPACT STATS
   ============================================================ */

.impact-strip {
  position: relative;
  background: var(--warm-white);
  padding: var(--space-xl) var(--space-lg);
  overflow: hidden;
}

.impact-strip::before,
.impact-strip::after {
  content: '';
  position: absolute;
  left: var(--space-lg);
  right: var(--space-lg);
  height: 1px;
}

.impact-strip::before {
  top: 0;
  background: var(--sand);
}

.impact-strip::after {
  bottom: 0;
  background: var(--sand);
}

.impact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.impact-stat {
  padding: var(--space-md);
}

.impact-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--near-black);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.impact-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

@media (max-width: 640px) {
  .impact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}


/* ============================================================
   MISSION / CTA SECTION (Home Page)
   ============================================================ */

.mission-section {
  padding: var(--space-xl) var(--space-lg);
  background: var(--warm-white);
}

.mission-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--charcoal);
  max-width: 680px;
  margin: 0 auto;
}

.mission-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--au-red);
  padding: 0.85rem 2rem;
  border-radius: 3px;
  margin-top: var(--space-lg);
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.mission-cta:hover {
  background: var(--au-tenleytown);
  transform: translateY(-1px);
}

.mission-cta svg {
  width: 16px;
  height: 16px;
}


/* ============================================================
   STORIES GALLERY — Mosaic Grid
   ============================================================ */

.stories-page-header {
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-lg);
  text-align: center;
}

.stories-page-header .section-title {
  font-size: var(--text-4xl);
}

.stories-page-header .section-subtitle {
  margin: 0 auto;
}

/* Year Divider */
.year-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.year-divider-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--au-red);
  white-space: nowrap;
}

.year-divider-line {
  flex: 1;
  height: 1px;
  background: var(--sand);
}

.stories-mosaic {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: var(--space-sm);
}

/* Mosaic layout — varying spans */
.mosaic-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic-card:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.mosaic-card:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.mosaic-card:nth-child(4) { grid-column: span 1; grid-row: span 2; }
.mosaic-card:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.mosaic-card:nth-child(6) { grid-column: span 2; grid-row: span 1; }
.mosaic-card:nth-child(7) { grid-column: span 1; grid-row: span 1; }
.mosaic-card:nth-child(8) { grid-column: span 2; grid-row: span 1; }
.mosaic-card:nth-child(9) { grid-column: span 2; grid-row: span 1; }

.mosaic-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  border-radius: 6px;
}

.mosaic-card .placeholder-card {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-slow) var(--ease-out),
              filter var(--duration-base) var(--ease-out);
}

.mosaic-card:nth-child(odd) .placeholder-card {
  background: radial-gradient(ellipse at 50% 50%, rgba(224, 38, 60, 0.04) 0%, transparent 60%),
    linear-gradient(145deg, var(--soft-beige), var(--sand), var(--soft-beige));
}
.mosaic-card:nth-child(even) .placeholder-card {
  background: radial-gradient(ellipse at 50% 50%, rgba(60, 32, 140, 0.03) 0%, transparent 60%),
    linear-gradient(200deg, var(--sand), var(--soft-beige), var(--sand));
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.02);
  transition: transform var(--duration-slow) var(--ease-out),
              filter var(--duration-base) var(--ease-out);
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 36, 73, 0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  transition: background var(--duration-base);
}

.mosaic-card:hover img,
.mosaic-card:hover .placeholder-card {
  transform: scale(1.04);
}

.mosaic-card:hover .mosaic-overlay {
  background: linear-gradient(to top, rgba(24, 36, 73, 0.85) 0%, rgba(24, 36, 73, 0.08) 60%);
}

.mosaic-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 0.25rem;
}

.mosaic-quote {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  max-width: 300px;
}

.mosaic-card:hover .mosaic-quote {
  opacity: 1;
  transform: translateY(0);
}

.mosaic-detail {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

@media (max-width: 1024px) {
  .stories-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(250px, auto);
  }
  .mosaic-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic-card:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .mosaic-card:nth-child(6) { grid-column: span 1; grid-row: span 1; }
  .mosaic-card:nth-child(8) { grid-column: span 1; grid-row: span 1; }
  .mosaic-card:nth-child(9) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 640px) {
  .stories-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(300px, auto);
  }
  .mosaic-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
}


/* ============================================================
   INDIVIDUAL STORY PAGE
   ============================================================ */

.story-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg) var(--space-xl);
}

.story-hero .hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(24, 36, 73, 0.1) 0%,
    rgba(24, 36, 73, 0.05) 30%,
    rgba(24, 36, 73, 0.5) 70%,
    rgba(26, 24, 21, 0.92) 100%
  );
}

.story-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.story-name {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.story-meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.story-meta .meta-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--au-red);
  flex-shrink: 0;
}

/* Story Narrative */
.story-narrative {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
}

.story-pullquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 400;
  color: var(--deep-brown);
  line-height: 1.4;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-md);
  border-left: 3px solid var(--au-red);
}

.story-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--charcoal);
}

.story-text p {
  margin-bottom: var(--space-md);
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* Full-width image breakout */
.story-image-break {
  max-width: 1000px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.story-image-break .placeholder-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at 50% 50%, rgba(224, 38, 60, 0.03) 0%, transparent 60%),
    linear-gradient(135deg, var(--soft-beige), var(--sand), var(--soft-beige));
  border-radius: 6px;
}

.story-image-break img {
  width: 100%;
  filter: grayscale(10%) contrast(1.02);
  border-radius: 6px;
}

.story-image-break figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--warm-gray);
  margin-top: var(--space-sm);
  letter-spacing: 0.05em;
}

/* Inline quote highlight */
.highlight-quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--near-black);
  text-align: center;
  max-width: var(--content-width);
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-lg);
  position: relative;
  line-height: 1.4;
}

.highlight-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--au-gradient);
}

/* Story Navigation */
.story-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--sand);
}

.story-nav-link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--medium-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--duration-fast);
}

.story-nav-link:hover {
  color: var(--au-red);
}

.story-nav-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-base) var(--ease-out);
}

.story-nav-link:hover svg {
  transform: translateX(-3px);
}

.story-nav-link.next:hover svg {
  transform: translateX(3px);
}

.story-nav-center {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: color var(--duration-fast);
}

.story-nav-center:hover {
  color: var(--charcoal);
}


/* ============================================================
   ABOUT PAGE — Editorial Layout
   ============================================================ */

.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.about-section + .about-section {
  border-top: 1px solid var(--sand);
}

.about-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--au-red);
  margin-bottom: var(--space-sm);
}

.about-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.about-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--charcoal);
}

.about-text p {
  margin-bottom: var(--space-md);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-pullquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  color: var(--deep-brown);
  line-height: 1.5;
  padding-left: var(--space-md);
  border-left: 3px solid var(--au-red);
  margin: var(--space-lg) 0;
}

/* Creator bio section */
.creator-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: start;
}

.creator-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
}

.creator-photo img,
.creator-photo .placeholder-card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.02);
}

.creator-photo .placeholder-card {
  background: radial-gradient(ellipse at 50% 30%, rgba(224, 38, 60, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--soft-beige), var(--sand));
}

.creator-philosophy {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--au-red);
  margin-top: var(--space-md);
  opacity: 0.9;
}

/* CTRL Tribute Card */
.tribute-card {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.tribute-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--au-gradient);
}

.tribute-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: var(--space-sm);
}

.tribute-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: var(--space-sm);
}

.tribute-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--charcoal);
}

@media (max-width: 768px) {
  .creator-section {
    grid-template-columns: 1fr;
  }
  .creator-photo {
    max-width: 400px;
  }
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--sand);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: var(--warm-white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: start;
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--warm-gray);
  line-height: 1.8;
}

.footer-credit strong {
  color: var(--charcoal);
  font-weight: 600;
}

.footer-au-link {
  color: var(--au-blue);
  transition: color var(--duration-fast);
}

.footer-au-link:hover {
  color: var(--au-red);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: color var(--duration-fast);
}

.footer-link:hover {
  color: var(--au-red);
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.35s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.45s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.5s; }
.reveal-stagger.revealed > *:nth-child(9) { transition-delay: 0.55s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Image clip reveal */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--duration-slower) var(--ease-out);
}

.clip-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

/* Hero entrance */
.hero-enter {
  opacity: 0;
  transform: translateY(40px);
  animation: heroEntrance var(--duration-slower) var(--ease-out) forwards;
}

.hero-enter:nth-child(1) { animation-delay: 0.2s; }
.hero-enter:nth-child(2) { animation-delay: 0.4s; }
.hero-enter:nth-child(3) { animation-delay: 0.6s; }
.hero-enter:nth-child(4) { animation-delay: 0.8s; }
.hero-enter:nth-child(5) { animation-delay: 1s; }

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle grain overlay — very light for texture on light bg */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  mix-blend-mode: multiply;
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@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;
  }

  .reveal,
  .reveal-stagger > *,
  .clip-reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .hero-enter {
    opacity: 1;
    transform: none;
  }

  .parallax-element {
    transform: none !important;
  }
}


/* ============================================================
   FOCUS STYLES (Accessibility)
   ============================================================ */

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--au-red);
  outline-offset: 3px;
}


/* ============================================================
   LOADING SCREEN
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out);
}

.loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-bar {
  width: 60px;
  height: 2px;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--au-red);
  animation: loaderSlide 1s var(--ease-in-out) infinite;
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
