:root {
  --bg: #0e1714;
  --bg-2: #15251f;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.13);
  --surface-solid: #fbf2e4;
  --text: #fff7ea;
  --text-dark: #17231e;
  --muted: rgba(255, 247, 234, 0.72);
  --muted-dark: #66736d;
  --line: rgba(255, 255, 255, 0.16);
  --earth: #c06c42;
  --gold: #f3c979;
  --sage: #8fad8d;
  --forest: #1d3c31;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

html[data-theme="light"] {
  --bg: #fbf2e4;
  --bg-2: #f6ead7;
  --surface: rgba(29, 60, 49, 0.08);
  --surface-2: rgba(29, 60, 49, 0.12);
  --surface-solid: #ffffff;
  --text: #17231e;
  --text-dark: #17231e;
  --muted: #63736b;
  --line: rgba(29, 60, 49, 0.16);
  --shadow: 0 30px 100px rgba(29, 60, 49, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(192,108,66,0.22), transparent 34rem),
    radial-gradient(circle at 90% 15%, rgba(143,173,141,0.18), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 38%, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.nav-menu a:focus-visible,
.btn:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.map-pin:focus-visible,
.hotspot:focus-visible,
.gallery-item:focus-visible {
  box-shadow: 0 0 0 5px rgba(243, 201, 121, 0.18);
}

::selection {
  background: rgba(243, 201, 121, 0.35);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 1;
  background-image: url("../assets/noise.svg");
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,201,121,0.18), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--earth), var(--sage));
  z-index: 999;
  box-shadow: 0 0 24px rgba(243,201,121,0.55);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 14px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--gold);
  color: #17231e;
  border-radius: 999px;
  font-weight: 900;
}

.skip-link:focus {
  left: 14px;
}

.site-header {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
}

.nav-shell {
  position: fixed;
  top: 18px;
  left: 50%;
  width: min(var(--container), calc(100% - 28px));
  transform: translateX(-50%);
  z-index: 900;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 23, 20, 0.56);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

html[data-theme="light"] .nav-shell {
  background: rgba(255,255,255,0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.7), transparent 22%),
    linear-gradient(135deg, var(--earth), var(--gold));
  color: #17231e;
  font-weight: 1000;
  font-size: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.nav-menu {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--surface-2);
  color: var(--text);
}

.theme-toggle,
.nav-toggle {
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.theme-icon {
  font-size: 1.15rem;
}

.nav-toggle {
  display: none;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: currentColor;
  display: block;
  margin: 3px auto;
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.hero {
  min-height: 100svh;
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  padding: 150px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  position: relative;
}

.mist-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.52;
  filter: blur(0.1px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 950;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  max-width: 920px;
}

.hero-title {
  max-width: 980px;
}

.hero-title-main {
  display: block;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-title-sub,
h1 span {
  display: block;
  font-size: clamp(1.45rem, 3.1vw, 3.15rem);
  color: var(--muted);
  margin-top: 14px;
  max-width: 760px;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.2rem, 5.3vw, 5rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--earth));
  color: #17231e;
  box-shadow: 0 18px 40px rgba(192,108,66,0.24);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-soft {
  background: var(--surface-2);
  color: var(--text);
}

.live-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
}

.live-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(20px);
}

.live-strip span,
.live-strip strong {
  display: block;
}

.live-strip span {
  color: var(--muted);
  font-size: 0.86rem;
}

.live-strip strong {
  margin-top: 5px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 46px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-topbar {
  height: 38px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 18px;
}

.phone-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-2);
}

.interactive-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 590px;
  background: #192821;
}

.interactive-card img {
  height: 590px;
  width: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.card-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(14, 23, 20, 0.62);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  color: #fff7ea;
}

.card-overlay p {
  margin: 0 0 4px;
  color: rgba(255,255,255,0.7);
}

.card-overlay h2 {
  font-size: 2.3rem;
}

.hotspot {
  position: absolute;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(243,201,121,0.25);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hotspot span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(243,201,121,0.2), 0 0 30px var(--gold);
  animation: pulse 1.8s infinite;
}

.hotspot::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  background: rgba(14, 23, 20, 0.86);
  color: #fff7ea;
  border-radius: 10px;
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transition: 0.2s ease;
}

.hotspot:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hotspot-1 { top: 40%; left: 48%; }
.hotspot-2 { top: 52%; left: 33%; }
.hotspot-3 { top: 26%; left: 68%; }

@keyframes pulse {
  50% { transform: scale(1.18); }
}

.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.scroll-cue span {
  width: 24px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--gold);
  animation: wheel 1.4s infinite;
}

@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

.clock-widget {
  margin: 0;
  font-weight: 850;
}

.section {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
  position: relative;
}

.section-title {
  max-width: 920px;
  margin-bottom: 38px;
}

.section-title.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title p:not(.eyebrow) {
  color: var(--muted);
  max-width: 740px;
  margin: 18px auto 0;
  font-size: 1.08rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.stat-card {
  min-height: 186px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  display: grid;
  align-content: end;
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -50% -30%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(243,201,121,0.16), transparent 70%);
}

.stat-number {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.08em;
  color: var(--gold);
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

.identity-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 22px;
}

.glass-panel,
.tilt-card,
.timeline-shell,
.place-panel,
.planner-card,
.memory-board,
.source-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.glass-panel {
  padding: clamp(24px, 4vw, 44px);
}

.glass-panel p,
.tilt-card p,
.place-panel p,
.source-card p {
  color: var(--muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.tag-cloud span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
}

.tilt-card {
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.12s ease;
}

.tilt-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.tilt-card div {
  padding: 28px;
}

.story-section {
  width: 100%;
  max-width: none;
  padding-left: max(14px, calc((100% - var(--container)) / 2));
  padding-right: max(14px, calc((100% - var(--container)) / 2));
  background:
    linear-gradient(180deg, transparent, rgba(192,108,66,0.08), transparent);
}

.timeline-shell {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 18px;
}

.quick-facts {
  width: min(var(--container), 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-facts article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 16px 38px rgba(0,0,0,0.14);
}

.quick-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.quick-facts strong {
  display: block;
  line-height: 1.25;
}

.timeline-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.timeline-dot {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
}

.timeline-dot.active {
  color: #17231e;
  background: linear-gradient(135deg, var(--gold), var(--earth));
}

.timeline-card {
  min-height: 270px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(243,201,121,0.18), transparent 22rem),
    rgba(0,0,0,0.12);
}

.timeline-year {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 950;
  margin: 0 0 12px;
}

.timeline-card p:last-child {
  color: var(--muted);
  max-width: 850px;
  font-size: 1.12rem;
}

.history-card-grid {
  width: min(var(--container), 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.history-card-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
  padding: 20px;
  box-shadow: 0 16px 38px rgba(0,0,0,0.14);
}

.history-card-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
}

.history-card-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: stretch;
}

.map-stage {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-stage img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(14,23,20,0.52);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.map-pin span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-solid);
  color: var(--text-dark);
  font-weight: 1000;
}

.map-pin.active {
  box-shadow: 0 0 0 14px rgba(243,201,121,0.15);
}

.map-pin.active span {
  background: linear-gradient(135deg, var(--gold), var(--earth));
}

.place-panel {
  padding: 30px;
}

.place-panel ul {
  padding-left: 19px;
  color: var(--muted);
}

.season-tabs,
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.season-tab,
.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.season-tab.active,
.filter.active {
  background: linear-gradient(135deg, var(--gold), var(--earth));
  color: #17231e;
}

.season-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.season-card > div {
  padding: clamp(18px, 4vw, 42px);
}

.season-card p:not(.eyebrow) {
  color: var(--muted);
}

.season-card img {
  border-radius: 28px;
  min-height: 350px;
  width: 100%;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  border: 0;
  overflow: hidden;
  border-radius: 26px;
  cursor: pointer;
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,0.72));
  z-index: 1;
}

.gallery-item span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  right: 18px;
  text-align: left;
  color: #fff7ea;
  font-weight: 950;
  font-size: 1.05rem;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.planner-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.planner-controls {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(0,0,0,0.13);
}

.planner-controls label,
.memory-form label {
  display: grid;
  gap: 8px;
  font-weight: 950;
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

select option {
  background: var(--bg-2);
  color: var(--text);
}

select:focus,
textarea:focus,
input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(243,201,121,0.13);
}

.plan-output {
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(143,173,141,0.22), transparent 17rem),
    rgba(255,255,255,0.06);
}

.plan-output ol {
  padding-left: 21px;
  color: var(--muted);
}

.memory-board {
  padding: 20px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.memory-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(0,0,0,0.13);
}

.memory-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.memory-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
}

.memory-notes article {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(243,201,121,0.18), rgba(255,255,255,0.06));
  border: 1px solid var(--line);
}

.memory-notes span {
  display: inline-block;
  color: var(--gold);
  font-weight: 1000;
  margin-bottom: 12px;
}

.memory-notes p {
  margin: 0;
  color: var(--muted);
}

.source-card {
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.source-links {
  display: grid;
  gap: 12px;
}

.source-links a {
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  text-decoration: none;
  font-weight: 950;
  color: var(--text);
}

.footer {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.footer p {
  margin: 4px 0 0;
}

.footer-actions {
  display: flex;
  gap: 10px;
}

.footer-actions a {
  text-decoration: none;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface);
}

.modal {
  max-width: min(900px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 0;
  background: var(--bg-2);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}

.modal img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: rgba(0,0,0,0.15);
}

.modal h3 {
  padding: 22px 26px 26px;
}

.text-modal {
  padding: 34px;
}

.text-modal p:not(.eyebrow) {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 1020px) {
  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .nav-toggle {
    display: grid;
    order: 3;
  }

  .theme-toggle {
    order: 2;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(14, 23, 20, 0.92);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
  }

  html[data-theme="light"] .nav-menu {
    background: rgba(255,255,255,0.94);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 14px;
  }

  .hero,
  .identity-layout,
  .explore-layout,
  .season-card,
  .planner-card,
  .memory-board,
  .source-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-bottom {
    position: relative;
    bottom: auto;
    margin-top: 36px;
  }

  .phone-frame {
    transform: none;
  }

  .stat-grid,
  .quick-facts,
  .history-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 210px;
  }
}

@media (max-width: 640px) {
  .brand-text small {
    display: none;
  }

  .brand-badge,
  .theme-toggle,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 116px;
  }

  h1,
  .hero-title-main {
    font-size: clamp(2.45rem, 11vw, 4.4rem);
  }

  .hero-title-sub,
  h1 span {
    font-size: clamp(1.15rem, 6vw, 2rem);
  }

  .hero-actions,
  .live-strip,
  .stat-grid,
  .quick-facts,
  .timeline-controls,
  .gallery-grid,
  .memory-notes,
  .history-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .live-strip {
    display: grid;
  }

  .timeline-controls {
    display: grid;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .interactive-card {
    min-height: 460px;
  }

  .interactive-card img {
    height: 460px;
  }

  .map-stage,
  .map-stage img {
    min-height: 430px;
  }

  .planner-card,
  .memory-board {
    padding: 14px;
  }

  .source-links a,
  .footer-actions a {
    width: 100%;
  }

  .footer-actions {
    width: 100%;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}

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

  .cursor-glow,
  .mist-canvas {
    display: none;
  }
}


/* Real-photo upgrade */
.interactive-card img,
.tilt-card img,
.season-card img,
.gallery-item img {
  filter: saturate(1.03) contrast(1.02);
}

.phone-frame {
  transform: rotate(1.2deg);
}

.gallery-grid {
  grid-auto-rows: 240px;
}

.gallery-item img {
  background: #17231e;
}

@media (max-width: 1020px) {
  .gallery-grid {
    grid-auto-rows: 220px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-auto-rows: 260px;
  }
}

/* Final hardening fixes */
@media (max-width: 1020px) {
  .phone-frame {
    transform: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

@media (max-width: 420px) {
  .nav-shell {
    width: calc(100% - 18px);
    top: 10px;
    padding: 8px;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .section,
  .hero,
  .footer {
    width: calc(100% - 22px);
  }
}


/* Pogoniani content polish */
.hero-copy {
  min-width: 0;
}

@media (max-width: 640px) {
  .hero-lead {
    font-size: 1rem;
  }
}
