/* =========================================================
   ООО «Стройтрест Алабуга» — открытка ко Дню строителя
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  --navy: #0D2C54;
  --navy-deep: #081c36;
  --navy-soft: #143a6b;
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --white: #f5f7fa;
  --black: #060b12;
  --gray-100: #e8edf3;
  --gray-300: #a8b3c2;
  --gray-500: #6b7a8d;
  --gray-700: #3a4656;

  --bg: var(--navy-deep);
  --bg-elevated: rgba(13, 44, 84, 0.72);
  --text: var(--white);
  --text-muted: var(--gray-300);
  --border: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --glow: rgba(212, 175, 55, 0.18);
  --wave: var(--navy);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "IBM Plex Serif", "Times New Roman", serif;

  --container: min(1120px, calc(100% - 3rem));
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-space: 1.5rem;
}

html[data-theme="light"] {
  --bg: #f3f6fa;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --text: #0d1b2a;
  --text-muted: #4a5a6a;
  --border: rgba(13, 44, 84, 0.1);
  --card: rgba(13, 44, 84, 0.03);
  --card-hover: rgba(13, 44, 84, 0.06);
  --glow: rgba(212, 175, 55, 0.22);
  --wave: #dfe7f1;
  --shadow: 0 20px 50px rgba(13, 44, 84, 0.12);
  --navy-deep: #e9eef5;
  --navy: #0D2C54;
}

/* ---------- 2. Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  z-index: 1;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 54ch;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* ---------- 3. Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

html[data-theme="light"] .ambient__grid {
  background-image:
    linear-gradient(rgba(13, 44, 84, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 44, 84, 0.06) 1px, transparent 1px);
}

.ambient__blueprint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(212, 175, 55, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 70%, rgba(13, 44, 84, 0.5), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300' fill='none'%3E%3Cpath d='M40 220 V80 H120 V220 M120 120 H200 V220 M200 160 H280 V220 M80 80 L160 40 L240 80' stroke='%23ffffff' stroke-opacity='.04' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10% 20%, 90% 80%, 70% 30%;
  background-size: auto, auto, min(520px, 70vw);
  opacity: 0.9;
}

.ambient__particles,
.ambient__sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- 4. Intro logo draw ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--navy-deep);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__inner {
  text-align: center;
  padding: 2rem;
  max-width: 90vw;
}

.intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
}

.intro__line {
  display: block;
  width: min(280px, 60vw);
  height: 1px;
  margin: 1.25rem auto 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
}

.intro__caption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
  opacity: 0;
}

/* ---------- 5. Controls ---------- */
.controls {
  position: fixed;
  top: var(--header-space);
  right: var(--header-space);
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.controls.is-visible {
  opacity: 1;
  transform: none;
}

.controls__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.controls__btn:hover {
  border-color: var(--gold-soft);
  transform: translateY(-1px);
}

.controls__btn svg {
  width: 18px;
  height: 18px;
}

.controls__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
}

.controls__icon--sun {
  background: radial-gradient(circle at 35% 35%, #fff 0 35%, transparent 36%),
    conic-gradient(from 0deg, var(--gold), transparent, var(--gold));
  box-shadow: 0 0 0 2px var(--gold);
}

.controls__icon--moon {
  box-shadow: inset -4px -2px 0 0 var(--gray-300);
}

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

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), transparent);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), transparent);
}

.btn-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.btn-scroll:hover { color: var(--gold); }

.btn-scroll__arrow {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative;
  animation: scrollPulse 2.2s var(--ease) infinite;
}

.btn-scroll__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.85); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- 7. Wave dividers ---------- */
.wave-divider {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: clamp(40px, 6vw, 80px);
}

.wave-path {
  fill: var(--wave);
  opacity: 0.35;
}

.wave-divider--flip svg {
  transform: scaleY(-1);
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__rays {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    conic-gradient(from 210deg at 50% 0%, transparent 0deg, rgba(212, 175, 55, 0.08) 18deg, transparent 36deg),
    conic-gradient(from 230deg at 48% 0%, transparent 0deg, rgba(255, 255, 255, 0.04) 12deg, transparent 28deg),
    conic-gradient(from 190deg at 52% 0%, transparent 0deg, rgba(212, 175, 55, 0.05) 14deg, transparent 30deg);
  filter: blur(2px);
  opacity: 0.85;
  animation: raysDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes raysDrift {
  from { transform: translateX(-3%) rotate(-2deg); }
  to { transform: translateX(3%) rotate(2deg); }
}

.hero__cranes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  color: rgba(245, 247, 250, 0.12);
}

html[data-theme="light"] .hero__cranes {
  color: rgba(13, 44, 84, 0.12);
}

.crane {
  position: absolute;
  bottom: 0;
  height: min(62vh, 520px);
  width: auto;
}

.crane--left { left: 2%; }
.crane--right { right: 2%; opacity: 0.75; }

.hero__buildings {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  background:
    linear-gradient(to top, var(--bg), transparent),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,0.04) 28px 29px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='200' fill='none'%3E%3Cpath d='M0 200 V90 H60 V200 M60 120 H140 V200 M140 70 H220 V200 M220 100 H300 V200 M300 50 H390 V200 M390 110 H470 V200 M470 80 H560 V200 M560 95 H650 V200 M650 60 H740 V200 M740 105 H820 V200 M820 75 H900 V200' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E") bottom / cover no-repeat;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  max-width: 920px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero__title-line {
  background: linear-gradient(180deg, #fff 20%, rgba(245, 247, 250, 0.78));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .hero__title-line {
  background: linear-gradient(180deg, #0D2C54 10%, #1a3f6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__company {
  margin-top: 1.35rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- 9. Greeting ---------- */
.greeting__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.quote {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 55%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote__mark {
  position: absolute;
  top: -0.35rem;
  left: 0.85rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.45;
}

.quote p {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.greeting__p + .greeting__p {
  margin-top: 1.1rem;
}

.greeting__p {
  color: var(--text-muted);
}

/* ---------- 10. SMU cards ---------- */
.smu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.smu-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  height: 100%;
  align-self: stretch;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(8px);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    background 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
  --mx: 50%;
  --my: 50%;
}

.smu-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.smu-card:hover,
.smu-card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.35);
  background: var(--card-hover);
  box-shadow: var(--shadow), 0 0 40px rgba(212, 175, 55, 0.08);
  outline: none;
}

.smu-card:hover .smu-card__glow,
.smu-card:focus-visible .smu-card__glow {
  opacity: 1;
}

.smu-card__num {
  position: relative;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.smu-card__icon {
  position: relative;
  width: 44px;
  height: 44px;
  color: var(--text);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.smu-card__icon svg {
  width: 100%;
  height: 100%;
}

.smu-card__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ---------- 11. Thanks ---------- */
.thanks {
  min-height: 80vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.thanks__silhouette {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background:
    linear-gradient(to top, var(--bg) 8%, transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' fill='none'%3E%3Cpath d='M0 400 V220 H80 V400 M80 180 H180 V400 M180 140 H280 V400 M280 200 H360 V400 M360 100 H470 V400 M470 160 H560 V400 M560 120 H670 V400 M670 190 H760 V400 M760 90 H880 V400 M880 150 H980 V400 M980 110 H1100 V400 M1100 170 H1200 V400' stroke='%23D4AF37' stroke-opacity='.12' stroke-width='1.2'/%3E%3Cpath d='M420 100 V40 H440 V100 M900 90 V20 H920 M40 50 H60 V90' stroke='%23ffffff' stroke-opacity='.08'/%3E%3C/svg%3E") bottom center / cover no-repeat;
  pointer-events: none;
  opacity: 0.9;
}

.thanks__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.thanks__line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-muted);
}

.thanks__emphasis {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.thanks__closing {
  margin-top: 2rem;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.thanks__victory {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #e3262e;
  text-shadow: 0 0 24px rgba(227, 38, 46, 0.18);
}


/* ---------- 12. Timeline ---------- */
.timeline-track {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-track__line {
  position: absolute;
  left: 0.45rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

html[data-theme="light"] .timeline-track__line {
  background: rgba(13, 44, 84, 0.1);
}

.timeline-track__progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, 0.2));
  transform-origin: top;
}

.timeline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1rem;
  align-items: start;
  opacity: 0.45;
  transform: translateX(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.timeline-step.is-active {
  opacity: 1;
  transform: none;
}

.timeline-step__dot {
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  margin-left: -0.05rem;
  border-radius: 50%;
  border: 2px solid var(--gray-500);
  background: var(--bg);
  box-shadow: 0 0 0 4px transparent;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.timeline-step.is-active .timeline-step__dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.timeline-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.timeline-step p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- 13. Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  --mx: 50%;
  --my: 50%;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), var(--glow), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.stat-card:hover::before { opacity: 1; }

.stat-card__value {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-card__suffix {
  color: var(--gold);
  font-size: 0.7em;
}

.stat-card__text {
  font-size: 0.85em;
}

.stat-card__label {
  position: relative;
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Elapsed time ---------- */
.elapsed {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
}
.elapsed__card {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1), transparent 58%), var(--card);
  text-align: center;
  box-shadow: var(--shadow);
}
.elapsed__title {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.15;
}
.elapsed__timer {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.elapsed__unit {
  padding: 1rem 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}
.elapsed__unit strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.elapsed__unit span {
  display: block;
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.elapsed__caption {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 14. Everyone ---------- */
.everyone {
  text-align: center;
}

.everyone__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.everyone__text {
  max-width: 34em;
  margin-inline: auto;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-muted);
}

 .everyone__text p + p {
  margin-top: 0.85rem;
}

.everyone__photo {
  max-width: 900px;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--border);
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
  background: linear-gradient(145deg, var(--card), rgba(255, 255, 255, 0.02));
}

.everyone__photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  color: var(--text-muted);
  text-align: center;
}

.everyone__photo-placeholder span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.everyone__photo-placeholder small {
  font-size: 0.9rem;
}



/* ---------- 15. Gift / Books ---------- */
.gift__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--gold);
}

.gift__icon svg {
  width: 100%;
  height: 100%;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.book-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--card);
 
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my), var(--glow), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow);
}

.book-card:hover::before { opacity: 1; }

.book-card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.book-card:hover .book-card__cover img {
  transform: scale(1.04);
}

.book-card__body {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.book-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.book-card__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.book-card__body .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

/* ---------- 16. Finale ---------- */
.finale {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.finale__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.finale__content {
  position: relative;
  z-index: 1;
}

.finale__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.finale__closing {
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--gold);
  font-weight: 600;
}

.finale__meta {
  margin-top: 3rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.finale__year {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1100px) {
  .smu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .greeting__grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .crane--right { display: none; }
  .crane--left { opacity: 0.55; height: 48vh; }
}

@media (max-width: 700px) {
  :root { --container: min(100% - 2rem, 1120px); }
  .smu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { top: 0.85rem; right: 0.85rem; }
  .controls__btn { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .smu-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

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


@media (max-width: 760px) {
  .elapsed__timer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .elapsed__timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
