/*
 * Dassie.rocks — "Nature Documentary Gone Wrong"
 * Wes Anderson meets National Geographic — theatrical naturalism
 * Warm sandstone, fynbos green, lichen grey, sunset amber, parchment cream
 */

:root {
  --sandstone: oklch(0.78 0.05 70);
  --sandstone-light: oklch(0.92 0.03 70);
  --fynbos: oklch(0.45 0.08 140);
  --fynbos-light: oklch(0.65 0.06 140);
  --lichen: oklch(0.62 0.03 110);
  --amber: oklch(0.72 0.12 60);
  --amber-light: oklch(0.85 0.08 60);
  --parchment: oklch(0.95 0.02 80);
  --earth: oklch(0.35 0.05 50);
  --earth-light: oklch(0.5 0.04 50);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-handwritten: "Caveat", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--parchment);
  color: var(--earth);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 50;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}

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

.handwritten {
  font-family: var(--font-handwritten);
}

.italic {
  font-style: italic;
}

.t-earth {
  color: var(--earth);
}
.t-fynbos {
  color: var(--fynbos);
}
.t-amber {
  color: var(--amber);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: oklch(0.9 0.02 75);
}
::-webkit-scrollbar-thumb {
  background: oklch(0.65 0.05 70);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: oklch(0.55 0.06 70);
}

::selection {
  background: oklch(0.72 0.12 60 / 0.3);
  color: oklch(0.25 0.04 50);
}

/* ===== Scroll-reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Shared section furniture ===== */
.annotation {
  display: block;
  font-size: 1.5rem;
  color: var(--earth-light);
  transform: rotate(-1deg);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  color: var(--earth);
  margin-bottom: 1rem;
}

.section-sub {
  color: oklch(0.35 0.05 50 / 0.7);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .section-sub {
    font-size: 1.25rem;
  }
}

/* Rock-shaped clip paths */
.rock-shape-1 {
  clip-path: polygon(5% 0%, 95% 3%, 100% 15%, 98% 85%, 93% 100%, 8% 97%, 0% 88%, 2% 12%);
}
.rock-shape-2 {
  clip-path: polygon(3% 5%, 92% 0%, 100% 12%, 97% 90%, 90% 100%, 5% 95%, 0% 80%, 1% 15%);
}
.rock-shape-3 {
  clip-path: polygon(8% 0%, 98% 5%, 95% 92%, 88% 100%, 2% 98%, 0% 10%);
}

/* ===== Dassie figure with hover thought bubble ===== */
.dassie-figure {
  position: relative;
  transition: transform 0.3s ease;
}
.dassie-figure:hover {
  transform: scale(1.02);
}
.dassie-img {
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.dassie-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.dassie-figure:hover .dassie-img img {
  transform: scale(1.1);
}
.dassie-figure figcaption {
  font-size: 1.25rem;
  color: var(--earth-light);
  margin-top: 0.75rem;
  text-align: center;
}

.thought {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: var(--parchment);
  border: 2px solid var(--sandstone);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
  z-index: 20;
  max-width: 240px;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}
.dassie-figure:hover .thought,
.dassie-figure:focus-within .thought {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.thought p {
  font-size: 1.125rem;
  color: var(--earth);
  font-style: italic;
  line-height: 1.3;
}
.thought::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 2rem;
  width: 1rem;
  height: 1rem;
  background: var(--parchment);
  border-bottom: 2px solid var(--sandstone);
  border-right: 2px solid var(--sandstone);
  transform: rotate(45deg);
}
@media (min-width: 640px) {
  .thought {
    right: 1rem;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  scale: 1.1;
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--parchment), oklch(0.95 0.02 80 / 0.2), transparent);
}
.hero-gradient-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.35 0.05 50 / 0.4),
    oklch(0.35 0.05 50 / 0.1),
    transparent
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 4rem;
  animation: hero-rise 0.8s ease 0.3s backwards;
}
@media (min-width: 640px) {
  .hero-content {
    padding: 0 3rem 6rem;
  }
}
@media (min-width: 1024px) {
  .hero-content {
    padding: 0 5rem 6rem;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

.hero-kicker {
  font-size: 1.5rem;
  color: var(--parchment);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(60, 40, 20, 0.7);
}
@media (min-width: 640px) {
  .hero-kicker {
    font-size: 1.875rem;
  }
}

.hero-title {
  font-size: clamp(3.75rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px oklch(0.95 0.02 80 / 0.3);
}

.hero-sub {
  font-size: 1.125rem;
  color: oklch(0.95 0.02 80 / 0.9);
  margin-top: 1rem;
  max-width: 36rem;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(60, 40, 20, 0.6);
}
@media (min-width: 640px) {
  .hero-sub {
    font-size: 1.25rem;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation:
    fade-in 0.8s ease 1.5s backwards,
    bob 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 1.125rem;
  color: oklch(0.95 0.02 80 / 0.7);
  text-shadow: 0 1px 4px rgba(60, 40, 20, 0.5);
}
.scroll-indicator svg {
  color: oklch(0.95 0.02 80 / 0.5);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== Rocky divider ===== */
.rocky-divider {
  margin-top: -1px;
  position: relative;
  z-index: 5;
}
.rocky-divider svg {
  display: block;
  width: 100%;
}
.rocky-divider path {
  fill: var(--parchment);
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  padding: 1rem 0;
  background: oklch(0.45 0.08 140 / 0.05);
  border-top: 1px solid oklch(0.78 0.05 70 / 0.2);
  border-bottom: 1px solid oklch(0.78 0.05 70 / 0.2);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: oklch(0.35 0.05 50 / 0.3);
  font-weight: 700;
  letter-spacing: 0.1em;
}
@media (min-width: 640px) {
  .marquee-track span {
    font-size: 1.25rem;
  }
}
.marquee-track i {
  font-style: normal;
  color: oklch(0.72 0.12 60 / 0.4);
  margin: 0 0.5rem;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ===== Introduction ===== */
.intro {
  padding: 4rem 1.5rem;
  background: var(--parchment);
}
@media (min-width: 640px) {
  .intro {
    padding: 6rem 3rem;
  }
}
.intro-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}
.intro-heading {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--earth);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.intro-copy p {
  color: oklch(0.35 0.05 50 / 0.8);
  font-size: 1.125rem;
  line-height: 1.6;
}
.intro-copy p + p {
  margin-top: 1rem;
}
.intro-figure {
  position: relative;
}
.intro-glow {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 10rem;
  height: 10rem;
  background: oklch(0.72 0.12 60 / 0.08);
  border-radius: 50%;
  z-index: -1;
  filter: blur(24px);
  animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* ===== Counter ===== */
.counter-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(
    to bottom,
    var(--parchment),
    oklch(0.92 0.03 70 / 0.5),
    var(--parchment)
  );
}
@media (min-width: 640px) {
  .counter-section {
    padding: 6rem 3rem;
  }
}
.counter {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.counter-number {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--amber);
}
.counter-zeros {
  font-size: 0.6em;
  color: oklch(0.35 0.05 50 / 0.5);
}
.counter-label {
  font-size: 1.5rem;
  color: var(--earth-light);
  margin-top: 0.5rem;
}
@media (min-width: 640px) {
  .counter-label {
    font-size: 1.875rem;
  }
}

/* ===== Judgement Zone ===== */
.judgement {
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .judgement {
    padding: 8rem 3rem;
  }
}
.judgement-bg {
  position: absolute;
  inset: 0;
}
.judgement-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.judgement-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--parchment),
    oklch(0.92 0.03 70 / 0.85),
    var(--parchment)
  );
}
.judgement-inner {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}
.judgement-inner .section-sub {
  margin-bottom: 4rem;
}
.judgement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .judgement-grid {
    grid-template-columns: 1fr 1fr;
  }
  .judgement-grid .offset-down {
    margin-top: 4rem;
  }
}
@media (min-width: 1024px) {
  .judgement-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Rock Reviews ===== */
.reviews {
  padding: 5rem 1.5rem;
  background: var(--parchment);
}
@media (min-width: 640px) {
  .reviews {
    padding: 7rem 3rem;
  }
}
.reviews-layout {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .reviews-layout {
    flex-direction: row;
    gap: 5rem;
  }
  .reviews-sidebar {
    width: 40%;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
  .reviews-list {
    width: 60%;
  }
}
.reviews-heading {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--earth);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.reviews-blurb {
  color: oklch(0.35 0.05 50 / 0.7);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.reviews-critic {
  max-width: 24rem;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  position: relative;
  background: oklch(0.92 0.03 70 / 0.6);
  border: 1px solid oklch(0.78 0.05 70 / 0.4);
  border-radius: 2px 12px 4px 16px;
  padding: 1.5rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .review-card {
    padding: 2rem;
  }
}
.review-card:nth-child(odd) {
  transform: rotate(-0.5deg);
}
.review-card:nth-child(even) {
  transform: rotate(0.5deg);
}
.review-card.reveal {
  transform: translateY(40px);
}
.review-card.reveal.in:nth-child(odd) {
  transform: rotate(-0.5deg);
}
.review-card.reveal.in:nth-child(even) {
  transform: rotate(0.5deg);
}
.review-emoji {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.875rem;
  opacity: 0.3;
}
.review-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}
.review-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--earth);
}
@media (min-width: 640px) {
  .review-card h4 {
    font-size: 1.5rem;
  }
}
.review-rating {
  font-size: 1.5rem;
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .review-rating {
    font-size: 1.875rem;
  }
}
.review-texture {
  color: var(--earth-light);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}
.review-card > p:last-child {
  color: oklch(0.35 0.05 50 / 0.9);
  line-height: 1.6;
}
.review-card::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  width: 3rem;
  height: 3rem;
  background: oklch(0.78 0.05 70 / 0.1);
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}
.reviews-disclaimer {
  text-align: center;
  padding-top: 1rem;
  font-size: 1.25rem;
  color: oklch(0.35 0.05 50 / 0.4);
  font-style: italic;
}

/* ===== The Sacred Pile ===== */
.pile {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom, var(--parchment), var(--sandstone-light), var(--parchment));
}
@media (min-width: 640px) {
  .pile {
    padding: 7rem 3rem;
  }
}
.pile-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}
.pile-inner .section-sub {
  margin-bottom: 3rem;
}
.pile-figure {
  position: relative;
  text-align: left;
}
.pile-img {
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
.pile-quote {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: oklch(0.95 0.02 80 / 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid oklch(0.78 0.05 70 / 0.5);
  border-radius: 4px 16px 4px 12px;
  padding: 1rem 1.5rem;
  max-width: 20rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
@media (min-width: 640px) {
  .pile-quote {
    bottom: 2rem;
    right: 2rem;
  }
}
.pile-quote .handwritten {
  font-size: 1.25rem;
  color: var(--earth);
  font-style: italic;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .pile-quote .handwritten {
    font-size: 1.5rem;
  }
}
.pile-quote-source {
  color: oklch(0.35 0.05 50 / 0.5);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.pile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.pile-tags span {
  font-size: 1.125rem;
  background: oklch(0.92 0.03 70 / 0.5);
  color: var(--earth);
  padding: 0.375rem 1rem;
  border: 1px solid oklch(0.78 0.05 70 / 0.3);
  border-radius: 2px 8px 4px 6px;
  transition: background 0.2s ease;
}
@media (min-width: 640px) {
  .pile-tags span {
    font-size: 1.25rem;
  }
}
.pile-tags span:hover {
  background: oklch(0.92 0.03 70 / 0.8);
}

/* ===== The Council ===== */
.council {
  padding: 5rem 1.5rem;
  background: var(--parchment);
}
@media (min-width: 640px) {
  .council {
    padding: 7rem 3rem;
  }
}
.council-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.council-header {
  text-align: center;
  margin-bottom: 3rem;
}
.council-header .section-sub {
  margin-bottom: 0;
}
.council-photo {
  border-radius: 4px 20px 8px 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}
.council-photo img {
  width: 100%;
}
.verdict-banner {
  margin-top: 2.5rem;
  text-align: center;
  padding: 1.5rem 1rem;
  background: oklch(0.92 0.03 70 / 0.4);
  border-top: 1px solid oklch(0.78 0.05 70 / 0.3);
  border-bottom: 1px solid oklch(0.78 0.05 70 / 0.3);
  overflow: hidden;
}
.verdict-banner p {
  font-size: 1.5rem;
  color: var(--earth);
  font-style: italic;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
@media (min-width: 640px) {
  .verdict-banner p {
    font-size: 2.25rem;
  }
}
.verdict-banner p.verdict-out {
  opacity: 0;
  transform: translateY(-20px);
}

/* ===== Dassie Facts ===== */
.facts {
  padding: 5rem 1.5rem;
  background: linear-gradient(
    to bottom,
    var(--parchment),
    oklch(0.45 0.08 140 / 0.05),
    var(--parchment)
  );
}
@media (min-width: 640px) {
  .facts {
    padding: 7rem 3rem;
  }
}
.facts-inner {
  max-width: 56rem;
  margin: 0 auto;
}
.facts-header {
  text-align: center;
  margin-bottom: 3rem;
}
.facts-header .section-sub {
  max-width: 36rem;
  margin-bottom: 0;
}
.facts-card {
  background: oklch(0.95 0.02 80 / 0.8);
  border: 1px solid oklch(0.78 0.05 70 / 0.3);
  border-radius: 4px 16px 8px 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
@media (min-width: 640px) {
  .facts-card {
    padding: 2.5rem;
  }
}
.fact {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid oklch(0.78 0.05 70 / 0.3);
}
@media (min-width: 640px) {
  .fact {
    gap: 1.5rem;
  }
}
.fact:last-child {
  border-bottom: none;
}
.fact-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: oklch(0.45 0.08 140 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--fynbos);
  font-weight: 700;
  font-size: 1.125rem;
}
@media (min-width: 640px) {
  .fact-number {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}
.fact-text {
  color: var(--earth);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
@media (min-width: 640px) {
  .fact-text {
    font-size: 1.125rem;
  }
}
.fact-annotation {
  font-size: 1.125rem;
  color: var(--amber);
}
@media (min-width: 640px) {
  .fact-annotation {
    font-size: 1.25rem;
  }
}

/* ===== Gallery ===== */
.gallery {
  padding: 5rem 1.5rem;
  background: var(--parchment);
  overflow: hidden;
}
@media (min-width: 640px) {
  .gallery {
    padding: 7rem 3rem;
  }
}
.gallery-inner {
  max-width: 80rem;
  margin: 0 auto;
}
.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}
.gallery-header .section-sub {
  margin-bottom: 0;
}
.gallery-masonry {
  columns: 1;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .gallery-masonry {
    columns: 2;
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .gallery-masonry {
    columns: 3;
  }
}
.gallery-item {
  position: relative;
  break-inside: avoid;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 4px 12px 6px 10px;
}
@media (min-width: 640px) {
  .gallery-item {
    margin-bottom: 2rem;
  }
}
.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-size: 1.25rem;
  color: var(--parchment);
  background: linear-gradient(to top, oklch(0.35 0.05 50 / 0.8), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.4);
}
@media (min-width: 640px) {
  .gallery-item figcaption {
    padding: 1.5rem;
    font-size: 1.5rem;
  }
}
.gallery-item:hover figcaption {
  opacity: 1;
}

/* ===== Closing ===== */
.closing {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .closing {
    padding: 9rem 3rem;
  }
}
.closing-bg {
  position: absolute;
  inset: 0;
}
.closing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.closing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.35 0.05 50 / 0.9),
    oklch(0.35 0.05 50 / 0.7),
    oklch(0.35 0.05 50 / 0.5)
  );
}
.closing-inner {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.closing-heading {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  color: var(--parchment);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.closing-sub {
  color: oklch(0.95 0.02 80 / 0.7);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .closing-sub {
    font-size: 1.25rem;
  }
}
.closing-est {
  font-size: 1.5rem;
  color: oklch(0.72 0.12 60 / 0.8);
}
@media (min-width: 640px) {
  .closing-est {
    font-size: 1.875rem;
  }
}

/* ===== Footer ===== */
footer {
  background: var(--earth);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-line {
  color: oklch(0.95 0.02 80 / 0.5);
  font-size: 0.875rem;
}
.footer-joke {
  font-size: 1.125rem;
  color: oklch(0.95 0.02 80 / 0.3);
  margin-top: 0.5rem;
}
.footer-society {
  color: oklch(0.95 0.02 80 / 0.2);
  font-size: 0.75rem;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}
