/* ==========================================================================
   lavanenabhojyam.in — Design System & Stylesheet
   Pixel-perfect, accessible, semantic, responsive meme site.
   ========================================================================== */

:root {
  /* Color Palette - Light Theme */
  --bg-page: #f5f2eb;
  --bg-page-alt: #ece8df;
  --bg-header: rgba(246, 243, 236, 0.94);
  --border-subtle: rgba(22, 24, 27, 0.08);
  --text-main: #16181b;
  --text-lede: #202226;
  --text-muted: #5e6268;
  --yellow: #f4bd22;
  --yellow-hover: #e2ab15;
  --yellow-glow: rgba(244, 189, 34, 0.38);
  --night-bg: #131417;
  --night-card: #1c1e22;
  --night-text: #f4f1ea;
  --paper-card: #faf8f3;
  --shadow-card: 0 14px 28px rgba(32, 28, 20, 0.12), 0 3px 8px rgba(32, 28, 20, 0.06);
  --footer-bg: #f8f5ee;
  --red-heart: #ef333a;

  /* Fonts */
  --font-display: 'Permanent Marker', Impact, sans-serif;
  --font-script: 'Caveat', 'Kalam', cursive;
  --font-devanagari: 'Noto Sans Devanagari', 'Kalam', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-page: #15161a;
  --bg-page-alt: #1a1c21;
  --bg-header: rgba(19, 20, 24, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --text-main: #edeae3;
  --text-lede: #ffffff;
  --text-muted: #9fa4ac;
  --paper-card: #1f2127;
  --shadow-card: 0 16px 32px rgba(0, 0, 0, 0.45);
  --footer-bg: #0f1013;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--transition-theme);
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

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

/* Skip link for keyboard users */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--text-main);
  color: var(--bg-page);
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-snappy);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--yellow);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition-theme);
}

.header-inner {
  max-width: 1340px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand-dot {
  color: var(--yellow);
}

.brand-tagline {
  font-size: 12px;
  letter-spacing: -0.015em;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 44px);
  margin-left: auto;
  margin-right: clamp(16px, 3vw, 40px);
  height: 100%;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-snappy);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  font-weight: 700;
}

/* Theme Toggle Button */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-main);
  background: transparent;
  transition: background 0.2s ease, transform 0.2s var(--ease-snappy);
}

.theme-toggle:hover {
  background: rgba(244, 189, 34, 0.14);
  transform: rotate(15deg);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.icon-sun, .icon-moon {
  transition: transform 0.3s var(--ease-snappy), opacity 0.3s ease;
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: max(680px, 92svh);
  min-height: 600px;
  margin-top: 72px;
  overflow: hidden;
  background-color: #5a4133;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(14, 12, 11, 0.25) 0%, rgba(14, 12, 11, 0.05) 45%, rgba(9, 8, 7, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.35) 0%, transparent 40%);
  pointer-events: none;
}

/* Top Left Title Lockup */
.hero-copy {
  position: absolute;
  z-index: 10;
  top: 24%;
  left: 6.2vw;
  transform: rotate(-2deg);
  pointer-events: auto;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(52px, 7.8vw, 118px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  color: var(--yellow);
  text-transform: uppercase;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.8);
  user-select: text;
}

.title-word {
  display: block;
}

.brush-stroke-hero {
  display: block;
  width: min(340px, 32vw);
  height: 14px;
  margin-top: 6px;
  margin-left: 4px;
  filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.4));
}

.hero-translation {
  margin-top: 18px;
  margin-left: 8px;
  font-family: var(--font-script);
  font-size: clamp(26px, 2.9vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.8);
  user-select: text;
}

/* Top Right Aside Note */
.hero-aside {
  position: absolute;
  z-index: 10;
  top: 27%;
  right: 6.8vw;
  font-family: var(--font-script);
  font-size: clamp(19px, 2vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
  transform: rotate(-6.5deg);
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.85);
  user-select: text;
}

.aside-underline {
  display: block;
  width: 75px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  margin-top: 12px;
  margin-left: 24px;
  transform: rotate(-8deg);
  border-radius: 1px;
}

/* Center Subtitle Pill */
.caption-lockup {
  position: absolute;
  z-index: 12;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  width: max-content;
  max-width: 90vw;
}

.caption-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px 7px;
  background: rgba(10, 11, 13, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s var(--ease-snappy), border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.caption-badge:hover {
  transform: scale(1.05);
  border-color: var(--yellow);
  box-shadow: 0 6px 20px var(--yellow-glow);
}

.devanagari-heading {
  font-family: var(--font-devanagari);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.caption-text {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  user-select: text;
}

/* Video Controls Toolbar */
.video-controls {
  position: absolute;
  z-index: 15;
  bottom: 24px;
  left: 3.5vw;
  right: 3.5vw;
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 17, 21, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.control-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  transition: color 0.15s ease, transform 0.15s ease;
}

.control-button:hover {
  color: var(--yellow);
  transform: scale(1.12);
}

.control-button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Play / Pause Toggle State */
.play-toggle .icon-pause { display: none; }
.play-toggle .icon-play { display: block; }
.play-toggle.is-playing .icon-play { display: none; }
.play-toggle.is-playing .icon-pause { display: block; }

/* Mute Toggle State */
.mute-toggle .icon-volume-muted { display: none; }
.mute-toggle .icon-volume-high { display: block; }
.mute-toggle.is-muted .icon-volume-high { display: none; }
.mute-toggle.is-muted .icon-volume-muted { display: block; }

.progress-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 24px;
}

.progress-bar {
  position: absolute;
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.progress-bar::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  border: none;
  cursor: pointer;
}

.progress-fill {
  position: absolute;
  left: 0;
  height: 5px;
  background: var(--yellow);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

.time-readout {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

/* ==========================================================================
   Section: The Line (Parchment Paper Section)
   ========================================================================== */
.paper-section {
  position: relative;
  background-color: var(--bg-page);
  padding: clamp(96px, 10vw, 160px) 0 clamp(96px, 10vw, 160px);
  transition: var(--transition-theme);
}

/* Torn Paper Edge Divider */
.torn-paper-edge {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 18px;
  background-color: var(--bg-page);
  clip-path: polygon(
    0% 40%, 3% 65%, 6% 35%, 10% 70%, 14% 30%, 19% 75%, 24% 25%, 
    29% 70%, 35% 35%, 41% 75%, 48% 30%, 54% 80%, 61% 35%, 67% 70%, 
    73% 30%, 80% 75%, 86% 35%, 92% 70%, 96% 40%, 100% 65%, 100% 100%, 0% 100%
  );
  z-index: 5;
  transition: background-color 0.3s ease;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.line-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
}

/* Left Column: Copy */
.line-header {
  margin-bottom: 28px;
}

.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(52px, 6.8vw, 96px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--text-main);
  user-select: text;
}

.heading-swoop {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 108%;
  height: 14px;
}

.line-copy .lede {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-lede);
  margin-bottom: 22px;
}

.line-copy .lede strong {
  font-weight: 800;
  color: var(--text-main);
}

.devanagari-inline {
  font-family: var(--font-devanagari);
  font-size: 1.05em;
  font-weight: 600;
}

.line-copy p:not(.lede) {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.meme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--yellow);
  color: #15171a;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px var(--yellow-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.meme-btn:hover {
  transform: translateY(-2px);
  background: var(--yellow-hover);
  box-shadow: 0 8px 20px var(--yellow-glow);
}

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

.meme-btn--secondary {
  background: rgba(244, 189, 34, 0.14);
  color: var(--text-main);
  box-shadow: none;
  border: 1px solid rgba(244, 189, 34, 0.35);
}

.meme-btn--secondary:hover {
  background: rgba(244, 189, 34, 0.24);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-icon {
  font-size: 16px;
}

/* Right Column: Editorial Collage */
.line-art {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: clamp(110px, 15vw, 170px);
}

/* Quote Card — cream paper, bold yellow left stripe, counter-rotated */
.quote-card {
  position: absolute;
  bottom: clamp(44px, 9%, 88px);
  left: 0;
  z-index: 10;
  width: clamp(200px, 22vw, 252px);
  padding: 22px 20px 18px;
  background: var(--paper-card);
  border-left: 6px solid var(--yellow);
  border-radius: 4px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: rotate(-2.5deg);
  transition: transform 0.3s var(--ease-snappy), box-shadow 0.3s ease;
  user-select: none;
}

.quote-card:hover {
  transform: rotate(-0.5deg) scale(1.04);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

.quote-card:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1;
  color: var(--yellow);
  opacity: 1;
  font-weight: 900;
}

.quote-mark--start {
  display: block;
  margin-bottom: 6px;
}

.quote-mark--end {
  display: block;
  text-align: right;
  margin-top: -4px;
}

.quote-text {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 2px 0 12px;
  letter-spacing: -0.01em;
}

.quote-author {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Portrait Card — clockwise tilt, rounded, deep shadow */
.portrait-card {
  position: relative;
  z-index: 5;
  width: 78%;
  max-width: 390px;
  transform: rotate(2deg);
  transform-origin: center bottom;
  transition: transform 0.35s var(--ease-snappy);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.14), 0 6px 20px rgba(0, 0, 0, 0.06);
}

.portrait-card:hover {
  transform: rotate(0.5deg) scale(1.015);
}

.thug-life-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s var(--ease-snappy);
}

.thug-life-image:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   FAQ Section (SEO Content)
   ========================================================================== */
.faq-section {
  background-color: var(--bg-page-alt);
  padding: clamp(72px, 8vw, 120px) 0;
  transition: var(--transition-theme);
  border-top: 1px solid var(--border-subtle);
}

.faq-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  color: var(--text-main);
  margin-bottom: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
}

.faq-list {
  display: grid;
  gap: 28px;
}

.faq-item {
  background: var(--paper-card);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: var(--transition-theme);
}

.faq-item dt {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.faq-item dd {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.faq-item dd strong {
  color: var(--text-main);
  font-weight: 700;
}

.faq-item dd em {
  color: var(--yellow-hover);
  font-style: italic;
}

/* ==========================================================================
   Closing Dark Banner Section
   ========================================================================== */
.closing-section {
  position: relative;
  background-color: var(--night-bg);
  color: var(--night-text);
  padding: clamp(56px, 7vw, 92px) 0;
  overflow: hidden;
}

.closing-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr minmax(140px, 175px);
  align-items: center;
  gap: clamp(20px, 3.5vw, 54px);
}

/* Modi Portrait */
.closing-portrait-wrap {
  width: 100%;
  max-width: 260px;
}

.closing-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: contrast(1.08) brightness(0.92);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  mask-image: linear-gradient(to right, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
}

/* Center Quote */
.closing-copy {
  text-align: center;
  padding: 0 10px;
}

.closing-quote {
  font-family: var(--font-script);
  font-size: clamp(23px, 2.7vw, 39px);
  font-weight: 600;
  line-height: 1.25;
  color: #f7f4ee;
  user-select: text;
}

.highlight-meme {
  position: relative;
  white-space: nowrap;
}

.brush-stroke-closing {
  display: block;
  width: min(250px, 45%);
  height: 12px;
  margin: 12px auto 0;
}

/* Sticky Note */
.sticky-note {
  position: relative;
  background: var(--yellow);
  color: #141619;
  padding: 22px 18px 18px;
  font-family: var(--font-script);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transform: rotate(-6deg);
  transition: transform 0.25s var(--ease-snappy);
  user-select: text;
}

.sticky-note:hover {
  transform: rotate(0deg) scale(1.05);
}

.pin-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #332b21;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 34px 0;
  transition: var(--transition-theme);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.footer-disclaimer {
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-muted);
  text-align: center;
}

.footer-made {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.heart {
  color: var(--red-heart);
  font-size: 16px;
  vertical-align: -1px;
}

/* ==========================================================================
   Salt Sprinkle Animation Effect
   ========================================================================== */
.salt-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.salt-grain {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 2px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  animation: salt-fall linear forwards;
}

@keyframes salt-fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--text-main);
  color: var(--bg-page);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s var(--ease-snappy), opacity 0.3s ease;
  pointer-events: none;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-copy {
    top: 22%;
    left: 5vw;
  }
  
  .hero-aside {
    top: 24%;
    right: 5vw;
  }

  .line-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .line-art {
    justify-content: center;
    min-height: 420px;
  }

  .quote-card {
    left: 0;
  }

  .portrait-card {
    width: 68%;
  }

  .closing-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .closing-portrait-wrap {
    margin: 0 auto;
    max-width: 180px;
  }

  .closing-portrait-img {
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  }

  .sticky-note {
    margin: 0 auto;
    max-width: 200px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-made {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
  }

  .site-nav {
    gap: 16px;
    margin-right: 12px;
  }

  .nav-link {
    font-size: 13px;
  }

  .hero {
    height: max(580px, 86svh);
    margin-top: 64px;
  }

  .hero-aside {
    display: none;
  }

  .hero-copy {
    top: 18%;
    left: 6vw;
  }

  .hero-title {
    font-size: clamp(44px, 14vw, 72px);
  }

  .caption-lockup {
    bottom: 84px;
  }

  .video-controls {
    bottom: 16px;
    left: 14px;
    right: 14px;
    height: 44px;
    gap: 10px;
    padding: 0 12px;
  }

  .time-readout {
    font-size: 11px;
  }

  .line-art {
    flex-direction: column;
    min-height: auto;
    align-items: center;
    gap: 20px;
  }

  .quote-card {
    position: relative;
    top: auto;
    left: auto;
    transform: rotate(0deg);
    width: 100%;
    max-width: 300px;
  }

  .portrait-card {
    width: 100%;
  }

  .portrait-card {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
