/* ALFRED — Full page pinned + glass/neumorphic UI */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== LOADING STATE ===== */

body.loading {
  background: #f5f5f0;  /* Match hero background - no black flash */
}

body.loading .hero,
body.loading .hero h1,
body.loading .hero__desc,
body.loading .hero__by,
body.loading .hero__scroll {
  opacity: 0;
}

:root {
  /* ===== COLOR SYSTEM ===== */

  /* Blacks - The Deepest Shadows */
  --black: #0a0a0a;
  --black-pure: #0a0a0a;
  --black-warm: #0f0e0e;
  --black-soft: #1a1918;

  /* Warm Neutrals - The Paper */
  --white: #f5f5f0;
  --white-pure: #f5f5f0;
  --white-warm: #f5f0e8;

  /* Grays - Intentional Steps */
  --gray: #666;
  --gray-100: #e8e4dc;
  --gray-300: #bbb;
  --gray-500: #999;
  --gray-600: #666;
  --gray-700: #555;
  --gray-800: #444;
  --gray-900: #1a1a1a;

  /* Accent - Earned Warmth */
  --accent: #A67C5B;
  --accent-muted: #8B6B4A;

  /* ===== SHADOWS ===== */
  --shadow-warm: 30, 20, 10;
  --shadow-cool: 0, 0, 0;

  /* Elevation */
  --shadow-sm: 0 4px 16px rgba(30, 20, 10, 0.08);
  --shadow-md: 0 8px 32px rgba(30, 20, 10, 0.12);
  --shadow-lg: 0 16px 48px rgba(30, 20, 10, 0.16);

  /* Neumorphic */
  --neu-light: #ffffff;
  --neu-dark: #c8c4bc;

  /* Text Glow (on dark backgrounds) */
  --glow-soft: 0 0 40px rgba(245, 240, 232, 0.12);
  --glow-medium: 0 0 60px rgba(245, 240, 232, 0.18);
  --glow-bright: 0 0 80px rgba(245, 240, 232, 0.25);

  /* ===== SPACING (8px grid) ===== */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-12: 6rem;     /* 96px */
  --space-16: 8rem;     /* 128px */
  --space-20: 10rem;    /* 160px */

  /* ===== TYPOGRAPHY ===== */

  /* Line Heights */
  --leading-tight: 0.85;
  --leading-normal: 1.25;
  --leading-reading: 1.4;
  --leading-loose: 1.6;

  /* Letter Spacing */
  --tracking-condensed: -0.025em;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-open: 0.05em;
  --tracking-wide: 0.1em;
  --tracking-wider: 0.2em;
}

html, body {
  overflow-x: hidden;
}

/* ===== FILM GRAIN OVERLAY ===== */

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(1%, 1%); }
  30% { transform: translate(-1%, 1%); }
  40% { transform: translate(1%, -1%); }
  50% { transform: translate(-1%, 0%); }
  60% { transform: translate(1%, 0%); }
  70% { transform: translate(0%, 1%); }
  80% { transform: translate(0%, -1%); }
  90% { transform: translate(1%, 1%); }
}

body::before {
  content: '';
  position: fixed;
  inset: -5%;
  width: 110%;
  height: 110%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(8) infinite;
  animation-play-state: var(--grain-state, running);
  will-change: transform;
  transition: opacity 0.8s ease;
}

/* ===== WARM COLOR TINT OVERLAY ===== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: linear-gradient(180deg,
    rgba(166, 124, 91, 0.03) 0%,
    rgba(139, 107, 74, 0.02) 100%
  );
  mix-blend-mode: multiply;
}

/* ===== LETTERBOX EFFECT ===== */

html::before,
html::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  height: 2.5vh;
  pointer-events: none;
  z-index: 9997;
}

html::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(10,8,5,0.1), transparent);
}

html::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.35), transparent);
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  background: var(--white);
  position: relative;
}

.hero h1 {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.82;
  margin-bottom: 1rem;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: var(--leading-reading);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
  max-width: 32ch;
}

.hero__by {
  font-size: 0.7rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-500);
  font-family: system-ui, sans-serif;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-8);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gray-700);
  font-family: system-ui, -apple-system, sans-serif;
}

/* ===== FLOATING CTA BUTTON - Pixel-Perfect Adaptive ===== */

.hero__cta {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  padding: 0.85rem;
  font-size: 0;
  text-decoration: none;
  z-index: 100;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);

  /* Raised neumorphic button - sticks up off the page */
  background: linear-gradient(180deg, #ffffff 0%, #e8e7e0 100%);
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.08);
}

.hero__cta::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero__cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #f0efe8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03),
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.08);
}

.hero__cta:active {
  transform: translateY(0);
  background: linear-gradient(180deg, #f5f4ed 0%, #e5e4dd 100%);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ===== DARK BACKGROUNDS (Glassmorphic) ===== */

/* Very dark: 6am (#1a1918), 6:35am (#252322), 9pm (#0f0e0e), statement (#0a0a0a) */
.hero__cta[data-theme="dark"] {
  color: var(--gray-100);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.hero__cta[data-theme="dark"]:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero__cta[data-theme="dark"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e4dc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Medium dark: 9am (#5a564f), 6pm (#4a4745) */
.hero__cta[data-theme="dark-mid"] {
  color: var(--white-warm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero__cta[data-theme="dark-mid"]:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero__cta[data-theme="dark-mid"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f0e8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Light background glassmorphic with dark icon: 12pm (#c8c2b8) */
.hero__cta[data-theme="glass-dark-icon"] {
  color: var(--gray-900);
  background: rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero__cta[data-theme="glass-dark-icon"]:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero__cta[data-theme="glass-dark-icon"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* ===== LIGHT BACKGROUNDS (Neumorphic) ===== */

/* Warm white: hero, triptych, day-intro, philosophy, security, manifesto, cta */
/* Already default styles above */

/* Light warm gray: 12pm (#c8c2b8) */
.hero__cta[data-theme="light-warm"] {
  color: var(--gray-900);
  background: linear-gradient(180deg, #d4cec4 0%, #c2bcb2 100%);
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero__cta[data-theme="light-warm"]:hover {
  background: linear-gradient(180deg, #dbd5cb 0%, #cac4ba 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Medium gray: 3pm (#9a948a) */
.hero__cta[data-theme="light-mid"] {
  color: var(--gray-900);
  background: linear-gradient(180deg, #a6a096 0%, #94908a 100%);
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.12);
}

.hero__cta[data-theme="light-mid"]:hover {
  background: linear-gradient(180deg, #aea89e 0%, #9c9892 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.14),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

/* ===== DAY INTRO ===== */

.day-intro {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.day-intro p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--gray);
  letter-spacing: 0.05em;
}

/* ===== DAY PAGES WRAPPER ===== */

.day-pages {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ===== PAGE (Full screen) ===== */

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem;
  text-align: center;
  /* Stack shadow - BELOW the card to show depth */
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.page__content {
  max-width: 700px;
}

.page__time {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  font-family: system-ui, -apple-system, sans-serif;
  opacity: 0.5;
}

.page__quote {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: var(--leading-reading);
  font-style: italic;
  letter-spacing: var(--tracking-tight);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

/* User voice - their words, not Alfred's */
.page__voice {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: var(--leading-reading);
  opacity: 0.6;
  margin-bottom: var(--space-3);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.page__photo {
  display: none; /* Hidden until real photos added */
}

/* Vignette effect on pages - variable intensity */
.page::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(30,20,10,0.35) 100%);
  z-index: 3;
  transition: opacity 0.8s ease;
}

/* Stronger vignette at dawn/night */
.page[data-time="6am"]::after,
.page[data-time="6:35am"]::after,
.page[data-time="9pm"]::after {
  background: radial-gradient(ellipse at center, transparent 20%, rgba(10,8,5,0.55) 100%);
}

/* Lighter vignette at noon */
.page[data-time="12pm"]::after,
.page[data-time="3pm"]::after {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(30,20,10,0.2) 100%);
}

/* Light leak effect - warm gradient bleeds at corners */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at top right, rgba(166,124,91,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(139,107,74,0.04) 0%, transparent 35%);
}

/* NEW LIGHTING: Dark dawn → Bright noon → Dark night */

/* 6:30 AM - Pre-dawn (very dark) */
.page[data-time="6am"] {
  background: var(--black-soft);
}
.page[data-time="6am"] .page__time,
.page[data-time="6am"] .page__quote,
.page[data-time="6am"] .page__voice { color: var(--gray-100); }
.page[data-time="6am"] .page__quote { text-shadow: var(--glow-soft); }

/* 6:35 AM - Still pre-dawn */
.page[data-time="6:35am"] {
  background: #252322;
}
.page[data-time="6:35am"] .page__time,
.page[data-time="6:35am"] .page__quote,
.page[data-time="6:35am"] .page__voice { color: var(--gray-100); }
.page[data-time="6:35am"] .page__quote { text-shadow: var(--glow-soft); }

/* 9:00 AM - Morning light */
.page[data-time="9am"] {
  background: #5a564f;
}
.page[data-time="9am"] .page__time,
.page[data-time="9am"] .page__quote,
.page[data-time="9am"] .page__voice { color: var(--white-warm); }
.page[data-time="9am"] .page__quote { text-shadow: var(--glow-soft); }

/* 12:00 PM - Peak brightness (noon) */
.page[data-time="12pm"] {
  background: #c8c2b8;
}
.page[data-time="12pm"] .page__time,
.page[data-time="12pm"] .page__quote { color: var(--gray-900); }

/* 3:00 PM - Afternoon */
.page[data-time="3pm"] {
  background: #9a948a;
}
.page[data-time="3pm"] .page__time,
.page[data-time="3pm"] .page__quote { color: var(--gray-900); }

/* 6:00 PM - Golden hour */
.page[data-time="6pm"] {
  background: #4a4745;
}
.page[data-time="6pm"] .page__time,
.page[data-time="6pm"] .page__quote { color: var(--white-warm); }
.page[data-time="6pm"] .page__quote { text-shadow: var(--glow-soft); }

/* 9:00 PM - Night (very dark) */
.page[data-time="9pm"] {
  background: var(--black-warm);
}
.page[data-time="9pm"] .page__time,
.page[data-time="9pm"] .page__quote { color: var(--gray-100); }
.page[data-time="9pm"] .page__quote { text-shadow: var(--glow-medium); }

/* ===== STATEMENT ===== */

.statement {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--black-pure);
  color: var(--white);
}

/* First beat: The name */
.statement__name {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 500;
  text-align: center;
  letter-spacing: var(--tracking-open);
  text-shadow: var(--glow-medium);
  margin-bottom: var(--space-2);
}

/* Second beat: The command */
.statement__tagline {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: var(--tracking-wide);
  text-shadow: var(--glow-soft);
  opacity: 0.85;
}

/* Statement bloom effect */
@keyframes statementBloom {
  0% { text-shadow: var(--glow-soft); transform: scale(1); }
  50% { text-shadow: var(--glow-bright), 0 0 120px rgba(166,124,91,0.1); transform: scale(1.002); }
  100% { text-shadow: var(--glow-medium); transform: scale(1); }
}

.statement__name .word.revealed {
  animation: statementBloom 3s ease-in-out forwards;
}

.statement__tagline .word.revealed {
  animation: statementBloom 2s ease-in-out forwards;
}

/* ===== PHILOSOPHY ===== */

.philosophy {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}

/* Paper texture overlay */
.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.philosophy__img {
  display: none; /* Hidden until real photos added */
}

.philosophy__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem;
  max-width: 600px;
}

.philosophy__content p {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.philosophy__photo {
  display: none; /* Hidden until real photos added */
}

/* ===== TRIPTYCH ===== */

.triptych {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
}

/* Paper texture overlay */
.triptych::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.triptych__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 35vh;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.triptych__panel:last-child {
  border-right: none;
}

.triptych__img {
  display: none; /* Hidden until real photos added */
}

.triptych__text {
  padding: 3rem 2rem;
  text-align: center;
}

.triptych__word {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.triptych__desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray);
}

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

  .triptych__panel {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
}

/* ===== SECURITY ===== */

.security {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  background: var(--white);
  color: var(--gray-900);
  text-align: center;
}

.security__content {
  max-width: 600px;
}

.security__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  opacity: 0.5;
  font-family: system-ui, -apple-system, sans-serif;
}

.security__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-condensed);
}

.security__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.6;
  max-width: 35ch;
  margin: 0 auto;
}

/* ===== MANIFESTO ===== */

.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  padding-top: var(--space-20);
  background: var(--white);
  color: var(--gray-900);
}

.manifesto__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-left: -20px;
}

.manifesto__line {
  text-align: center;
  margin-bottom: var(--space-2);
  width: 100%;
}

.manifesto__lines p {
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: var(--leading-loose);
  letter-spacing: var(--tracking-normal);
  text-shadow: var(--glow-soft);
}

.manifesto__break {
  height: var(--space-4);
}

/* ===== CTA ===== */

.cta {
  position: relative;
  padding: var(--space-20) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white-pure);
  text-align: center;
  margin-top: -2px; /* Eliminate subpixel gap with statement */
}

/* Paper texture overlay */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cta__pre {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: var(--leading-reading);
  margin-bottom: var(--space-6);
  max-width: 20ch;
  color: var(--gray-800);
}

/* Neumorphic button */
.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-6);
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--black);
  background: var(--white-pure);
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s;
  border: none;
  box-shadow:
    14px 14px 28px var(--neu-dark),
    -14px -14px 28px var(--neu-light),
    inset 0 0 0 1px rgba(255,255,255,0.5);
}

.cta__btn:hover {
  box-shadow:
    10px 10px 20px var(--neu-dark),
    -10px -10px 20px var(--neu-light),
    inset 0 0 0 1px rgba(255,255,255,0.8);
  transform: translateY(-3px);
}

.cta__btn:active {
  box-shadow:
    inset 8px 8px 16px var(--neu-dark),
    inset -8px -8px 16px var(--neu-light);
  transform: translateY(0);
}

.cta__btn svg {
  width: 22px;
  height: 22px;
}

.cta__note {
  margin-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Testimonial */
.cta__testimonial {
  margin-top: var(--space-8);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  color: var(--gray-600);
  max-width: 28ch;
  line-height: var(--leading-reading);
}

/* Email capture for non-Mac users */
.cta__notify {
  display: none; /* Hidden by default, shown via JS for non-Mac */
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.cta__notify-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  letter-spacing: var(--tracking-open);
}

.cta__form {
  display: flex;
  gap: var(--space-1);
}

.cta__input {
  padding: var(--space-1) var(--space-2);
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  width: 180px;
  transition: border-color 0.2s;
}

.cta__input:focus {
  outline: none;
  border-color: var(--accent);
}

.cta__input::placeholder {
  color: var(--gray-500);
  font-style: italic;
}

.cta__submit {
  padding: var(--space-1) var(--space-2);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cta__submit:hover {
  opacity: 0.8;
}

/* Platform-specific visibility */
.cta.is-non-mac .cta__btn--mac,
.cta.is-non-mac .cta__note--mac {
  display: none;
}

.cta.is-non-mac .cta__notify {
  display: flex;
}

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

.footer {
  padding: var(--space-8);
  text-align: center;
  background: var(--white-pure);
}

.footer__logo {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gray-500);
  font-family: system-ui, sans-serif;
  transition: opacity 0.3s ease;
}

.footer__logo:hover {
  opacity: 0.6;
}

.footer__tagline {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.65rem;
  letter-spacing: var(--tracking-wide);
  text-transform: lowercase;
  color: var(--gray-300);
  font-family: system-ui, sans-serif;
  font-style: italic;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer__links a {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-500);
  font-family: system-ui, sans-serif;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--gray-700);
}

/* ===== STAGGERED TEXT REVEAL ===== */

/* Page words - GSAP handles animation via scroll-tied timeline */
.page__quote .word,
.page__voice .word {
  display: inline-block;
  /* Initial state - GSAP animates from here */
}

/* Statement title card animation */
.statement__name .word,
.statement__tagline .word {
  --random: 0;
  display: inline-block;
  opacity: 0;
  transform: scale(0.95) rotate(calc(var(--random) * 0.3deg));
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.statement__name .word.revealed,
.statement__tagline .word.revealed {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Manifesto expandable lines */
.manifesto__line {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  cursor: pointer;
}

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

.manifesto__main {
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: var(--leading-loose);
  letter-spacing: var(--tracking-normal);
  transition: opacity 0.3s ease;
  text-align: center;
  margin: 0 auto;
}

.manifesto__expand {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 300;
  line-height: var(--leading-reading);
  color: var(--gray-500);
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
  text-align: center;
}

.manifesto__expand > span {
  overflow: hidden;
}

.manifesto__line.expanded .manifesto__expand {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: var(--space-1);
}

/* Subtle dim on others */
.manifesto__lines:has(.manifesto__line.expanded) .manifesto__line:not(.expanded) {
  opacity: 0.4;
}

.manifesto__anchor {
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: var(--leading-loose);
  letter-spacing: var(--tracking-normal);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  margin-top: var(--space-2);
}

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

/* ===== MICRO-INTERACTIONS ===== */

/* Time stamps - letter-spacing expand on hover with warm accent */
.page__time {
  transition: letter-spacing 0.3s ease, opacity 0.3s ease, color 0.3s ease;
  cursor: default;
}

.page__time:hover {
  letter-spacing: 0.35em;
  opacity: 0.8;
  color: var(--accent);
}

/* Manifesto lines - dim siblings, highlight hovered (moved to staggered section) */

/* Triptych panels - subtle lift */
.triptych__panel {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.triptych__panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(30,20,10,0.12);
}

/* Philosophy text - gentle shadow with warmth */
.philosophy__content p {
  transition: text-shadow 0.4s ease, transform 0.6s ease;
}

.philosophy__content:hover p {
  text-shadow: 0 4px 30px rgba(30,20,10,0.15);
  transform: scale(1.005);
}

/* Triptych words - warmth on hover */
.triptych__word {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.triptych__panel:hover .triptych__word {
  color: var(--accent-muted);
  text-shadow: 0 2px 20px rgba(166,124,91,0.1);
}

/* Scroll indicator - gentle breathing */
@keyframes scrollBreathe {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(4px); }
}

.hero__scroll {
  animation: scrollBreathe 2.5s ease-in-out infinite;
}

.hero__scroll:hover {
  animation-play-state: paused;
  opacity: 1;
}

/* Selection styling moved to accessibility section */

/* ===== PAGE PHOTOS ===== */

.page__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.02);
  opacity: 0.35;
}

/* Ensure content stays readable over photos */
.page__content {
  position: relative;
  z-index: 2;
}

/* ===== PHILOSOPHY IMAGE ===== */

.philosophy__img {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.philosophy__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  opacity: 0.25;
}

/* ===== TRIPTYCH IMAGES ===== */

.triptych__img {
  display: none;
  height: 35vh;
  overflow: hidden;
}

.triptych__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.triptych__panel:hover .triptych__img img {
  transform: scale(1.02);
  filter: grayscale(30%) contrast(1.05);
}

/* ===== STICKY - Glassmorphic ===== */

.sticky {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: none;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s;

  /* Glassmorphic */
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sticky.visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky:hover {
  background: rgba(10, 10, 10, 0.8);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ===== ACCESSIBILITY ===== */

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

/* Focus states */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero__cta:focus-visible,
.cta__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Selection color unification */
::selection {
  background: rgba(166, 124, 91, 0.2);
  color: inherit;
}

/* Dark section selection */
.statement ::selection,
.manifesto ::selection,
.security ::selection,
.page[data-time="6am"] ::selection,
.page[data-time="6:35am"] ::selection,
.page[data-time="9am"] ::selection,
.page[data-time="6pm"] ::selection,
.page[data-time="9pm"] ::selection {
  background: rgba(166, 124, 91, 0.2);
}

/* ===== 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;
  }

  /* Hide film grain for reduced motion */
  body::before {
    display: none;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  .hero {
    padding: 3rem 2rem;
  }

  .hero__cta {
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }

  .page__content {
    padding: 3rem 2rem;
  }

  .page__photo,
  .philosophy__photo {
    display: none;
  }

  .cta {
    padding: 6rem 2rem;
  }

  .sticky {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.8rem 1.5rem;
  }
}
