:root {
  --bg: #11100e;
  --panel: #1c1915;
  --panel-soft: #252018;
  --text: #f8f2e8;
  --muted: #cbbfae;
  --accent: #f2c879;
  --accent-soft: #ffe6b0;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --deep-shadow: 0 34px 110px rgba(0, 0, 0, 0.52);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  background:
    linear-gradient(115deg, rgba(242, 200, 121, 0.12), transparent 32rem),
    linear-gradient(245deg, rgba(72, 88, 82, 0.16), transparent 36rem),
    linear-gradient(180deg, #11100e 0%, #17130f 38%, #0d0c0b 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px, 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.38) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 4px);
  opacity: 0.62;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 22px rgba(242, 200, 121, 0.55);
}

body.gate-active {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.section-pad {
  position: relative;
  padding: 4.75rem 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 240ms ease;
}

.site-shell[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.private-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(242, 200, 121, 0.18), transparent 28rem),
    radial-gradient(ellipse at 50% 15%, rgba(242, 200, 121, 0.22), transparent 22rem),
    rgba(17, 16, 14, 0.98);
}

.private-gate.is-hidden {
  display: none;
}

.gate-panel {
  width: min(100%, 520px);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 230, 176, 0.06), transparent 38%),
    rgba(28, 25, 21, 0.95);
  box-shadow: var(--deep-shadow);
}

.gate-panel h1,
.hero h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.02;
  letter-spacing: 0;
}

.gate-panel h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.8rem, 12vw, 5rem);
}

.gate-panel p,
.section-heading p,
.section-intro p,
.panel p,
.mission-card p,
.quote-card p,
.message-card p,
.sources-section p {
  color: var(--muted);
}

.gate-form {
  margin-top: 1.75rem;
}

.gate-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-soft);
  font-weight: 700;
}

.gate-row {
  display: grid;
  gap: 0.75rem;
}

.gate-row input {
  min-height: 3.25rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #14120f;
  color: var(--text);
  padding: 0.8rem 1rem;
}

.gate-row button,
.button,
.mission-card button {
  min-height: 3.25rem;
  border: 0;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  background: var(--accent);
  color: #1b1308;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gate-error {
  min-height: 1.5rem;
  margin: 0.65rem 0 0;
  color: #ffd5c7;
}

.privacy-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.94), rgba(28, 25, 21, 0.86)),
    rgba(17, 16, 14, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 24px rgba(242, 200, 121, 0.28);
  animation: markPulse 4.8s ease-in-out infinite;
}

.site-nav {
  display: none;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.96) 0%, rgba(17, 16, 14, 0.72) 44%, rgba(17, 16, 14, 0.24) 100%),
    linear-gradient(180deg, transparent 0%, rgba(242, 200, 121, 0.08) 48%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -12rem;
  bottom: -8rem;
  z-index: -1;
  width: min(80vw, 54rem);
  height: min(80vw, 54rem);
  border: 1px solid rgba(242, 200, 121, 0.16);
  transform: rotate(18deg);
  opacity: 0.46;
}

.hero-grid,
.split-section,
.feature-grid {
  display: grid;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  /* max-width: 12ch; */
  margin-top: 0.6rem;
  font-size: clamp(4.1rem, 18vw, 6.5rem);
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  max-width: 42rem;
  color: var(--accent-soft);
  font-size: clamp(1.25rem, 5vw, 2rem);
  line-height: 1.35;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button.primary:hover,
.gate-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(242, 200, 121, 0.22);
}

.button,
.gate-row button {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button::before,
.gate-row button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-110%);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transition: transform 520ms ease;
}

.button:hover::before,
.gate-row button:hover::before {
  transform: translateX(110%);
}

.music-control {
  margin-top: 1rem;
}

.music-button {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(242, 200, 121, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 230, 176, 0.09), rgba(28, 25, 21, 0.42)),
    rgba(17, 16, 14, 0.42);
  color: var(--accent-soft);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.65rem 1rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.music-button:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 200, 121, 0.52);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.music-button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.music-button[aria-pressed="true"] .music-icon {
  animation: musicPulse 1.8s ease-in-out infinite;
}

.music-button.is-hidden {
  display: none;
}

.music-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 200, 121, 0.16);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.hero-art {
  position: relative;
  min-height: 23rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 230, 176, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 230, 176, 0.16), rgba(28, 25, 21, 0.74) 58%, rgba(17, 16, 14, 0.96)),
    var(--panel);
  overflow: hidden;
  box-shadow: var(--deep-shadow);
  --hero-drift: 0px;
  transform: translateY(var(--hero-drift));
}

.hero-art::before,
.portrait-frame::before,
.placeholder-image::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 48%);
}

.has-uploaded-image::before {
  opacity: 0;
}

.has-uploaded-image {
  background-position: center;
  background-size: cover;
}

.hero-art.has-uploaded-image .moon-glow,
.hero-art.has-uploaded-image .ice-cream {
  opacity: 0;
}

.editable-image-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform-origin: center;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 230, 176, 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.hero-art p {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.moon-glow {
  position: absolute;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  background: rgba(255, 230, 176, 0.14);
  filter: blur(3px);
  animation: slowGlow 7s ease-in-out infinite;
}

.ice-cream {
  position: relative;
  width: 11rem;
  height: 18rem;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.38));
  animation: gentleFloat 6s ease-in-out infinite;
}

.scoop {
  position: absolute;
  left: 50%;
  width: 7.1rem;
  height: 7.1rem;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.scoop-one {
  top: 0.5rem;
  background: #ffe6b0;
  animation: scoopBreath 5.2s ease-in-out infinite;
}

.scoop-two {
  top: 3.9rem;
  margin-left: -2.4rem;
  background: #f2c879;
  animation: scoopBreath 5.2s ease-in-out 0.4s infinite;
}

.scoop-three {
  top: 3.9rem;
  margin-left: 2.4rem;
  background: #f8f2e8;
  animation: scoopBreath 5.2s ease-in-out 0.8s infinite;
}

.cone {
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  width: 8rem;
  height: 9rem;
  transform: translateX(-50%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background:
    linear-gradient(35deg, transparent 45%, rgba(80, 45, 18, 0.25) 46%, rgba(80, 45, 18, 0.25) 52%, transparent 53%),
    linear-gradient(-35deg, transparent 45%, rgba(80, 45, 18, 0.2) 46%, rgba(80, 45, 18, 0.2) 52%, transparent 53%),
    #c88945;
}

h2 {
  margin-top: 0.6rem;
  font-size: clamp(2.5rem, 11vw, 5rem);
}

h3 {
  font-size: 1.7rem;
}

.large-copy {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 7vw, 3.35rem);
  line-height: 1.18;
  position: relative;
  padding-left: clamp(1rem, 4vw, 2rem);
}

.large-copy::before {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.16em;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  box-shadow: 0 0 24px rgba(242, 200, 121, 0.35);
}

.panel,
.event-card,
.timeline-card,
.quote-card,
.mission-card,
.person-card,
.message-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 230, 176, 0.06), transparent 42%),
    rgba(28, 25, 21, 0.78);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.timeline-card:hover,
.quote-card:hover,
.mission-card:hover,
.person-card:hover,
.message-card:hover,
.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 200, 121, 0.34);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.panel {
  padding: 1.5rem;
}

.message-placeholder {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px dashed rgba(242, 200, 121, 0.55);
  border-radius: 8px;
  background: rgba(242, 200, 121, 0.06);
}

.message-placeholder span,
.event-card span,
.timeline-card span,
.message-card span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-frame {
  position: relative;
  min-height: 24rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(242, 200, 121, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.42)),
    linear-gradient(135deg, rgba(242, 200, 121, 0.18), rgba(255, 230, 176, 0.05)),
    var(--panel);
  color: var(--accent-soft);
  font-weight: 800;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.editable-list {
  padding-left: 1.15rem;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.45rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(242, 200, 121, 0.62), transparent);
  box-shadow: 0 0 20px rgba(242, 200, 121, 0.24);
}

.timeline-card {
  position: relative;
  margin-left: 1.65rem;
  padding: 1.35rem;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: -1.55rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(242, 200, 121, 0.12);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.timeline-card:hover::before {
  transform: scale(1.18);
  box-shadow: 0 0 0 9px rgba(242, 200, 121, 0.16), 0 0 22px rgba(242, 200, 121, 0.44);
}

.card-grid,
.message-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.quote-card,
.mission-card,
.person-card,
.message-card {
  padding: 1.35rem;
}

.quote-card {
  min-height: 12rem;
}

.person-card {
  min-height: 14rem;
}

.person-card p {
  color: var(--muted);
}

.mission-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mission-card button {
  margin-top: auto;
}

.mission-card button:disabled {
  cursor: not-allowed;
  background: rgba(242, 200, 121, 0.34);
  color: rgba(248, 242, 232, 0.72);
}

.event-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.event-card div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.event-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.event-card strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 1.2rem;
}

.event-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.gallery-item {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 200, 121, 0.36);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.36);
}

.gallery-item:focus-visible,
.button:focus-visible,
.gate-row button:focus-visible,
.gate-row input:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.placeholder-image,
.modal-image {
  position: relative;
  min-height: 15rem;
  background:
    linear-gradient(135deg, rgba(242, 200, 121, 0.28), rgba(255, 230, 176, 0.05)),
    var(--panel-soft);
  overflow: hidden;
}

.placeholder-image {
  transition: transform 700ms ease, filter 700ms ease;
}

.gallery-item:hover .placeholder-image {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.05);
}

.gallery-item > span:last-child {
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.gallery-actions [hidden] {
  display: none;
}

.gallery-upload-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-basis: 100%;
  min-height: 3.4rem;
  margin: 0;
  color: var(--muted);
  text-align: center;
  white-space: pre-line;
}

.gallery-upload-status.is-loading::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(242, 200, 121, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gallery-upload-spin 800ms linear infinite;
}

@keyframes gallery-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.image-one {
  background: linear-gradient(135deg, rgba(242, 200, 121, 0.32), rgba(108, 64, 38, 0.3)), var(--panel-soft);
}

.image-two {
  background: linear-gradient(135deg, rgba(255, 230, 176, 0.34), rgba(55, 82, 87, 0.32)), var(--panel-soft);
}

.image-three {
  background: linear-gradient(135deg, rgba(242, 200, 121, 0.24), rgba(94, 63, 91, 0.32)), var(--panel-soft);
}

.image-four {
  background: linear-gradient(135deg, rgba(255, 230, 176, 0.24), rgba(62, 86, 55, 0.34)), var(--panel-soft);
}

.image-five {
  background: linear-gradient(135deg, rgba(242, 200, 121, 0.42), rgba(160, 78, 56, 0.28)), var(--panel-soft);
}

.image-six {
  background: linear-gradient(135deg, rgba(255, 230, 176, 0.28), rgba(49, 67, 92, 0.35)), var(--panel-soft);
}

.source-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.source-list a[aria-disabled="true"] {
  cursor: default;
}

.closing {
  text-align: center;
  background:
    linear-gradient(180deg, transparent, rgba(242, 200, 121, 0.08)),
    linear-gradient(90deg, transparent, rgba(255, 230, 176, 0.06), transparent);
}

.closing h2 {
  margin-bottom: 4rem;
}

.closing p {
  color: var(--accent-soft);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 8vw, 3.7rem);
}

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-inner a {
  color: var(--accent-soft);
  font-weight: 800;
  text-decoration: none;
}

.edit-warning {
  position: fixed;
  left: 50%;
  top: 0.35rem;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(calc(100% - 2rem), 44rem);
  transform: translateX(-50%);
  padding: 0.3rem 0.65rem;
  border: 2px solid #ffe600;
  border-radius: 8px;
  background: #fff200;
  color: #211600;
  text-align: center;
  box-shadow: var(--shadow);
}

.edit-warning[hidden] {
  display: none;
}

.edit-warning p {
  margin: 0;
  font-weight: 900;
}

.edit-warning button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: #5f2500;
  cursor: pointer;
  font: 900 1rem/1 var(--sans);
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
}

.editable-text-block {
  min-height: 1.25em;
}

.preserve-text-format {
  white-space: pre-wrap;
}

.editable-text-positioned {
  position: relative;
}

.text-edit-button,
.image-edit-button {
  position: absolute;
  z-index: 5;
  display: none;
  width: 1.75rem;
  height: 1.45rem;
  min-height: 0;
  border: 1px solid rgba(242, 200, 121, 0.7);
  border-radius: 6px;
  background: rgba(255, 230, 176, 0.96);
  color: #211600;
  cursor: pointer;
  font: 900 0.85rem/1 var(--sans);
  letter-spacing: 0;
  padding: 0 0 0.15rem;
}

body.editing-mode .text-edit-button,
body.editing-mode .image-edit-button {
  display: inline-grid;
  place-items: center;
}

.editable-text-block[data-edit-multiline="false"] > .text-edit-button {
  top: 50%;
  right: -2.15rem;
  transform: translateY(-50%);
}

.editable-text-block[data-edit-multiline="true"] > .text-edit-button {
  right: 0.35rem;
  bottom: 0.35rem;
}

.text-edit-overlay {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  min-width: 8rem;
  border: 1px solid rgba(242, 200, 121, 0.9);
  border-radius: 8px;
  background: rgba(17, 16, 14, 0.98);
  box-shadow: var(--shadow);
  padding: 0.3rem;
}

.text-edit-field {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #120f0c;
  color: var(--text);
  font: inherit;
  line-height: inherit;
  padding: 0.25rem 0.35rem;
}

textarea.text-edit-field {
  resize: none;
}

.text-edit-actions {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.text-edit-actions button {
  width: 1.55rem;
  height: 1.55rem;
  min-height: 0;
  border: 1px solid rgba(242, 200, 121, 0.7);
  border-radius: 6px;
  background: var(--accent);
  color: #20140a;
  cursor: pointer;
  font: 900 1rem/1 var(--sans);
  padding: 0;
}

.text-edit-cancel {
  background: transparent;
  color: var(--accent-soft);
}

.editable-image-positioned {
  position: relative;
}

.image-edit-button {
  right: 0.35rem;
  bottom: 0.35rem;
}

.image-edit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.image-position-controls {
  position: absolute;
  right: 0.35rem;
  bottom: 2.05rem;
  z-index: 7;
  display: grid;
  grid-template-columns: auto minmax(7rem, 1fr);
  gap: 0.3rem 0.45rem;
  width: min(15rem, calc(100% - 0.7rem));
  padding: 0.5rem;
  border: 1px solid rgba(242, 200, 121, 0.72);
  border-radius: 8px;
  background: rgba(17, 16, 14, 0.94);
  box-shadow: var(--shadow);
}

.image-position-controls label {
  color: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.image-position-controls input {
  width: 100%;
}

.image-position-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
}

.image-position-actions button {
  min-height: 1.55rem;
  border: 1px solid rgba(242, 200, 121, 0.7);
  border-radius: 6px;
  background: var(--accent);
  color: #20140a;
  cursor: pointer;
  font: 900 0.82rem/1 var(--sans);
  padding: 0.25rem 0.45rem;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 16, 14, 0.86);
}

.auth-modal[hidden] {
  display: none;
}

.auth-card {
  position: relative;
  width: min(100%, 28rem);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--deep-shadow);
}

.auth-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 8vw, 2.5rem);
}

.auth-card p {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.auth-form label {
  color: var(--accent-soft);
  font-weight: 800;
}

.auth-form input {
  min-height: 2.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #120f0c;
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.grecaptcha-badge {
  visibility: hidden;
}

#recaptcha-container {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-form button,
.dialog-actions button,
.auth-close {
  min-height: 2.75rem;
  border: 1px solid rgba(242, 200, 121, 0.45);
  border-radius: 8px;
  background: var(--accent);
  color: #20140a;
  cursor: pointer;
  font-weight: 900;
  padding: 0.65rem 0.9rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  min-height: 2.25rem;
  background: transparent;
  color: var(--accent-soft);
}

.auth-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
}

.auth-status.error {
  color: #ffb4a6;
}

@media (max-width: 620px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-content: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 16, 14, 0.86);
}

.gallery-modal[hidden] {
  display: none;
}

.modal-card {
  grid-row: 2;
  width: min(calc(100vw - 2rem), 820px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-image {
  min-height: min(60vh, 34rem);
}

.modal-caption-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-card p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  color: var(--muted);
}

.gallery-modal.is-uploading .modal-nav,
.gallery-modal.is-uploading .modal-caption-row {
  display: none;
}

.gallery-modal.is-uploading .modal-image {
  cursor: grab;
  touch-action: none;
}

.gallery-modal.is-uploading .modal-card {
  position: relative;
}

.gallery-modal.is-uploading .modal-image.is-dragging {
  cursor: grabbing;
}

.gallery-upload-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.gallery-upload-panel[hidden] {
  display: none;
}

.gallery-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-right: 1rem;
}

.gallery-modal-actions[hidden] {
  display: none;
}

.gallery-upload-panel label {
  display: none;
}

.gallery-upload-panel input {
  min-height: 3rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #14120f;
  color: var(--text);
  padding: 0.75rem 0.9rem;
}

.gallery-upload-panel input::placeholder {
  color: rgba(203, 191, 174, 0.62);
}

.gallery-upload-tools {
  display: flex;
  gap: 0.75rem;
}

.gallery-modal.is-uploading .gallery-upload-tools {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  gap: 0.4rem;
}

.gallery-auto-fit {
  display: none;
}

.gallery-modal.is-uploading .gallery-auto-fit {
  display: inline-flex;
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
}

.gallery-upload-tools button,
.gallery-auto-fit,
.gallery-upload-panel .dialog-actions button,
.gallery-modal-actions button {
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0.55rem 1rem;
}

.modal-close {
  grid-row: 1;
  justify-self: end;
  margin-bottom: 0.5rem;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
}

@media (max-width: 620px) {
  .gallery-modal {
    align-content: start;
    overflow-y: auto;
    padding: 0.75rem;
  }

  .gallery-modal .modal-card {
    margin-top: 0.75rem;
    width: min(calc(100vw - 1.5rem), calc((100vh - 10rem) * 1.5));
  }

  .gallery-modal .modal-image {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .gallery-modal .modal-nav {
    top: min(calc(33.333vw + 1rem), calc(50vh - 3.5rem));
  }
}

.modal-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(28, 25, 21, 0.88);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.modal-prev {
  left: max(1rem, calc((100vw - 920px) / 2));
}

.modal-next {
  right: max(1rem, calc((100vw - 920px) / 2));
}

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  filter: blur(7px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 900ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-art.reveal.is-visible {
  transform: translateY(var(--hero-drift));
}

.card-grid .reveal:nth-child(2),
.gallery-grid .reveal:nth-child(2),
.message-grid .reveal:nth-child(2),
.timeline .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.card-grid .reveal:nth-child(3),
.gallery-grid .reveal:nth-child(3),
.message-grid .reveal:nth-child(3),
.timeline .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.card-grid .reveal:nth-child(4),
.gallery-grid .reveal:nth-child(4),
.timeline .reveal:nth-child(4) {
  transition-delay: 270ms;
}

.gallery-grid .reveal:nth-child(5),
.timeline .reveal:nth-child(5) {
  transition-delay: 360ms;
}

.gallery-grid .reveal:nth-child(6),
.timeline .reveal:nth-child(6) {
  transition-delay: 450ms;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1.2deg);
  }
}

@keyframes slowGlow {
  0%, 100% {
    opacity: 0.58;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.06);
  }
}

@keyframes scoopBreath {
  0%, 100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.08);
  }
}

@keyframes markPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(242, 200, 121, 0.24);
  }

  50% {
    box-shadow: 0 0 34px rgba(242, 200, 121, 0.44);
  }
}

@keyframes musicPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(242, 200, 121, 0.2);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(242, 200, 121, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .button.primary:hover,
  .gate-row button:hover {
    transform: none;
  }

  .brand-mark,
  .ice-cream,
  .moon-glow,
  .scoop-one,
  .scoop-two,
  .scoop-three,
  .music-button[aria-pressed="true"] .music-icon {
    animation: none;
  }
}

@media (min-width: 640px) {
  .gate-row {
    grid-template-columns: 1fr auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .site-nav {
    display: flex;
  }

  .split-section,
  .feature-grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    align-items: center;
  }

  .card-grid.two,
  .message-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .section-pad {
    padding: 6.5rem 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
    align-items: center;
    gap: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 4rem;
  }

  .timeline::before {
    left: 50%;
  }

  .timeline-card {
    width: 100%;
    margin-left: 0;
  }

  .timeline-card:nth-child(odd) {
    grid-column: 1;
  }

  .timeline-card:nth-child(even) {
    grid-column: 2;
    transform: translateY(4rem);
  }

  .timeline-card:nth-child(odd)::before {
    left: auto;
    right: -2.45rem;
  }

  .timeline-card:nth-child(even)::before {
    left: -2.35rem;
  }
}
