@font-face {
  font-family: "Gogol";
  src: url("GogolRegular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #111111;
  --white: #ffffff;
  --paper: #f7fbfb;
  --mint: #77b9a9;
  --mint-dark: #4f9a89;
  --acid: #e7f135;
  --aqua: #e7f6f4;
  --yellow: #e7f135;
  --muted: #5d6567;
  --line: #d7dddc;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --script: "Gogol", "Caveat", cursive;
  --body: "Inter", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.55;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
}

::selection {
  color: var(--black);
  background: var(--acid);
}

.marker-highlight {
  display: inline;
  padding: 0 0.08em 0.04em;
  background:
    linear-gradient(transparent 14%, var(--acid) 14%, var(--acid) 88%, transparent 88%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.is-hidden-section[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 92px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
}

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.site-nav a,
.header-actions a,
.music-toggle {
  position: relative;
  transition: color 260ms ease;
}

.site-nav a::after,
.header-actions > a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.site-nav a:hover::after,
.header-actions > a:hover::after {
  transform: scaleX(1);
}

.brand-mark {
  width: 32px;
  color: var(--black);
  transform-origin: center bottom;
  animation: lighthousePulse 4.5s ease-in-out infinite;
}

.brand-mark svg {
  width: 32px;
  height: 64px;
  fill: currentColor;
}

.brand-lines {
  fill: none;
  stroke: var(--white);
  stroke-width: 5;
}

.header-actions {
  justify-content: flex-end;
  gap: 24px;
}

.divider {
  width: 1px;
  height: 32px;
  background: rgba(17, 17, 17, 0.22);
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--black);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.music-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.music-bars {
  width: 16px;
  height: 18px;
  background:
    linear-gradient(var(--black), var(--black)) 0 50% / 2px 13px no-repeat,
    linear-gradient(var(--black), var(--black)) 7px 50% / 2px 18px no-repeat,
    linear-gradient(var(--black), var(--black)) 14px 50% / 2px 10px no-repeat;
  animation: bars 900ms steps(2, end) infinite;
}

.music-state {
  color: var(--mint-dark);
}

.music-toggle[aria-pressed="false"] .music-bars {
  animation: none;
  opacity: 0.35;
}

.section-snap {
  scroll-margin-top: 92px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 100px 8vw 64px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 252, 252, 0.98), rgba(239, 249, 248, 0.7) 44%, rgba(239, 249, 248, 0) 72%),
    linear-gradient(115deg, #f7fcfc 0%, #e1f2f2 44%, #d1e8ea 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 252, 252, 0.76) 0%, rgba(247, 252, 252, 0.42) 31%, rgba(247, 252, 252, 0.12) 51%, rgba(247, 252, 252, 0) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 42%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.035);
  transform-origin: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-label {
  margin: 0 0 26px;
  color: #253035;
  font-size: 18px;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 148px;
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: 0;
}

.script-note {
  display: inline-block;
  margin: 0;
  color: #3f8f7e;
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.58;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
  transform-origin: left center;
}

.hero-note {
  position: absolute;
  top: 226px;
  left: clamp(430px, 43vw, 610px);
  font-size: 62px;
  transform: rotate(-7deg) scaleX(0.66);
  white-space: nowrap;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-top: 48px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 268px;
  min-height: 76px;
  padding: 22px 30px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  transition:
    transform 240ms var(--ease),
    box-shadow 240ms var(--ease);
}

.primary-button:hover {
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.16);
  transform: translateY(-4px);
}

.memory-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 58px;
  margin-top: 6px;
  padding: 18px 26px;
  color: var(--black);
  background: var(--yellow);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transition:
    box-shadow 240ms var(--ease),
    transform 240ms var(--ease);
}

.memory-button:hover {
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.14);
  transform: translateY(-3px);
}

.hero-meta {
  margin: 0;
  color: #263135;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.memory {
  position: relative;
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) repeat(3, minmax(210px, 1fr));
  min-height: 560px;
  overflow: hidden;
  background: var(--white);
  border-top: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
}

.memory-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 5vw, 76px) clamp(42px, 4.4vw, 64px);
}

.memory h2,
.history h2,
.details h2,
.pocket-gallery h2,
.authors h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.memory h2 {
  max-width: 390px;
  font-size: clamp(42px, 3.55vw, 60px);
  line-height: 0.94;
}

.wave-mark {
  display: block;
  width: 92px;
  height: 34px;
  margin: 34px 0 30px;
  background: var(--mint-dark);
  mask: url("волны/Group 8.svg") center / contain no-repeat;
  -webkit-mask: url("волны/Group 8.svg") center / contain no-repeat;
}

.memory-copy p {
  max-width: 430px;
  margin: 0 0 22px;
  color: #2d3436;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.56;
}

.memory-copy p:last-of-type {
  margin-bottom: 28px;
}

.memory-photo {
  position: relative;
  z-index: 1;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-left: 2px solid var(--white);
}

.memory-photo img,
.details-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.memory-photo:nth-of-type(2) img {
  object-position: 52% 42%;
}

.memory-photo:nth-of-type(3) img {
  object-position: 50% 34%;
}

.memory-photo:hover img,
.details-photo:hover img {
  transform: scale(1.055);
}

.history {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 2.2fr);
  gap: clamp(60px, 5vw, 78px);
  padding: clamp(88px, 8vw, 126px) clamp(40px, 4vw, 72px) clamp(82px, 8vw, 118px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, #edfafa 0%, #f6fcfb 58%, #e2f4f2 100%);
}

.history-heading {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 430px;
}

.history h2 {
  font-size: clamp(82px, 6.4vw, 104px);
  line-height: 0.86;
}

.history-heading .script-note {
  display: block;
  margin-top: 24px;
  font-size: clamp(50px, 4vw, 66px);
  line-height: 0.64;
  transform: rotate(-6deg) scaleX(0.66);
  white-space: nowrap;
}

.compass {
  position: absolute;
  bottom: -2px;
  left: 10px;
  width: 102px;
  height: 102px;
  opacity: 0.88;
}

.wind-rose {
  object-fit: contain;
}

.timeline {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 3.1vw, 52px);
}

.timeline-card {
  --timeline-title-size: clamp(44px, 3.7vw, 58px);
  --timeline-line-top: calc(var(--timeline-title-size) * 0.86 + 22px);
  --pin-size: 20px;
  position: relative;
  min-width: 0;
  padding-left: 0;
}

.timeline-card::before {
  position: absolute;
  top: var(--timeline-line-top);
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 2px;
  content: "";
  background: var(--black);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 980ms var(--ease) 260ms;
}

.timeline-card.is-visible::before {
  transform: scaleY(1);
}

.timeline-card h3 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: var(--timeline-title-size);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0;
}

.pin {
  position: absolute;
  top: calc(var(--timeline-line-top) - var(--pin-size) / 2);
  left: calc(var(--pin-size) / -2);
  z-index: 3;
  width: var(--pin-size);
  height: var(--pin-size);
  background: var(--aqua);
  border: 2px solid var(--black);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity 420ms ease 320ms,
    transform 620ms var(--ease) 320ms;
}

.timeline-card.is-visible .pin {
  opacity: 1;
  transform: scale(1);
}

.timeline-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  filter: grayscale(1) contrast(0.82) brightness(1.08);
  opacity: 0;
  transform: translateX(-14px) scale(0.985);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 700ms ease 420ms,
    transform 840ms var(--ease) 420ms,
    clip-path 900ms var(--ease) 420ms;
}

.timeline-card.is-visible img {
  opacity: 1;
  transform: translateX(0) scale(1);
  clip-path: inset(0);
}

.timeline-card p {
  max-width: 38ch;
  margin: 22px 0 0 18px;
  color: #242b2d;
  font-size: 16px;
  line-height: 1.48;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms ease 620ms,
    transform 760ms var(--ease) 620ms;
}

.timeline-card.is-visible p {
  opacity: 1;
  transform: translateY(0);
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr);
  min-height: 640px;
  background: var(--white);
}

.details-photo {
  min-height: 640px;
  margin: 0;
  overflow: hidden;
}

.details-photo img {
  object-position: 40% 54%;
}

.details-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(62px, 7vw, 94px) clamp(54px, 7vw, 82px);
}

.details h2 {
  max-width: 760px;
  font-size: 58px;
  line-height: 0.94;
}

.small-star {
  position: absolute;
  top: 100px;
  right: 88px;
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--black);
  stroke-width: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 56px;
  margin-top: 68px;
}

.feature {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: center;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--mint-dark);
  border: 2px solid currentColor;
  border-radius: 50%;
}

.feature:nth-child(2) .feature-icon,
.feature:nth-child(4) .feature-icon {
  border-color: transparent;
}

.feature-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature p {
  margin: 0;
  color: #263033;
  font-size: 15px;
  line-height: 1.5;
}

.feature b {
  display: block;
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 70px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stats div {
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats dt {
  font-family: var(--display);
  font-size: 54px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

.stats dt span {
  font-size: 0.45em;
}

.stats dd {
  margin: 9px 0 0;
  color: #303638;
  font-size: 13px;
}

.pocket-gallery {
  position: relative;
  padding: clamp(82px, 8vw, 124px) 0 clamp(84px, 8vw, 126px);
  overflow: hidden;
  background: #ffffff;
}

.gallery-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(24px, 7vw, 112px);
}

.gallery-head p {
  margin: 0 0 18px;
  color: #2d3436;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.pocket-gallery h2 {
  max-width: 860px;
  font-size: clamp(62px, 7vw, 116px);
  line-height: 0.9;
}

.pocket-gallery .marker-highlight {
  white-space: nowrap;
}

.gallery-controls {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

.gallery-control {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--black);
  background: var(--acid);
  border: 0;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.gallery-control:hover {
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.14);
  transform: translateY(-3px);
}

.gallery-carousel {
  position: relative;
  z-index: 1;
  margin-top: clamp(34px, 4.2vw, 64px);
}

.gallery-track {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 1.5vw, 24px);
  padding: 0 clamp(24px, 7vw, 112px) 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: clamp(24px, 7vw, 112px);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--acid) rgba(17, 17, 17, 0.12);
}

.gallery-track::-webkit-scrollbar {
  height: 10px;
}

.gallery-track::-webkit-scrollbar-track {
  background: rgba(17, 17, 17, 0.08);
}

.gallery-track::-webkit-scrollbar-thumb {
  background: var(--acid);
  border-radius: 999px;
}

.gallery-slide {
  flex: 0 0 auto;
  width: clamp(330px, 27vw, 460px);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  scroll-snap-align: center;
  transition:
    filter 320ms ease,
    transform 320ms var(--ease);
}

.gallery-slide.landscape {
  width: clamp(560px, 45vw, 820px);
  aspect-ratio: 4 / 3;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
  transition:
    filter 520ms var(--ease),
    transform 760ms var(--ease);
}

.gallery-slide:hover {
  z-index: 2;
  filter: drop-shadow(0 18px 38px rgba(17, 17, 17, 0.14));
  transform: translateY(-5px);
}

.gallery-slide:hover img {
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.018);
}

.authors {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(170px, 0.8fr)) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 58px 8vw 56px;
  overflow: hidden;
  background: var(--white);
}

.authors > * {
  position: relative;
  z-index: 1;
}

.authors h2 {
  font-size: 64px;
}

.author p {
  margin: 0 0 8px;
  color: #242b2d;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.author a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.author a span {
  font-family: var(--body);
  font-size: 22px;
  transition: transform 240ms var(--ease);
}

.author a:hover span {
  transform: translate(4px, -4px);
}

.author small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-lighthouse {
  width: 116px;
  height: 96px;
  fill: none;
  stroke: var(--black);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  padding: 0 8vw;
  color: var(--white);
  background: var(--black);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-of-type(2) {
  text-align: center;
}

.site-footer p:nth-of-type(3) {
  text-align: right;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.to-top {
  position: fixed;
  right: 34px;
  bottom: 26px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--black);
  background: var(--yellow);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 260ms ease,
    transform 260ms var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.to-top span {
  font-size: 24px;
  line-height: 1;
}

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 42px, 0) scale(0.985);
  will-change: opacity, filter, transform;
  transition:
    opacity 820ms var(--ease),
    filter 900ms var(--ease),
    transform 900ms var(--ease);
}

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

@keyframes lighthousePulse {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(-1deg);
  }
}

@keyframes bars {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.72);
  }
}

@keyframes galleryFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1260px) {
  .history {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .history-heading {
    min-height: 260px;
  }

  .compass {
    right: 24px;
    bottom: 8px;
    left: auto;
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 1120px) {
  .site-header {
    height: 80px;
    padding: 0 28px;
  }

  .site-nav {
    gap: 22px;
  }

  .header-actions {
    gap: 16px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 104px;
  }

  .hero h1 {
    font-size: 118px;
  }

  .hero-note {
    top: 196px;
    left: clamp(380px, 48vw, 520px);
    font-size: 52px;
    transform: rotate(-7deg) scaleX(0.66);
  }

  .memory {
    grid-template-columns: minmax(340px, 0.9fr) repeat(3, minmax(150px, 1fr));
  }

  .memory-copy {
    grid-column: auto;
    min-height: 560px;
  }

  .history,
  .details {
    grid-template-columns: 1fr;
  }

  .history-heading {
    min-height: 240px;
  }

  .compass {
    right: 24px;
    bottom: 8px;
    left: auto;
    width: 92px;
    height: 92px;
  }

  .details-photo {
    min-height: 520px;
  }

  .small-star {
    top: 66px;
  }

  .memory h2 {
    font-size: 42px;
  }

  .history h2 {
    font-size: 86px;
  }

  .history-heading .script-note {
    font-size: 58px;
  }

  .timeline-card {
    --timeline-title-size: 54px;
  }

  .details h2 {
    font-size: 56px;
  }

  .authors h2 {
    font-size: 58px;
  }

  .authors {
    grid-template-columns: 1fr 1fr;
  }

  .pocket-gallery {
    padding-top: 76px;
  }

  .gallery-head {
    align-items: start;
  }

  .gallery-slide {
    width: clamp(300px, 34vw, 380px);
  }

  .gallery-slide.landscape {
    width: clamp(460px, 54vw, 640px);
  }
}

@media (max-width: 920px) {
  .memory {
    grid-template-columns: 1fr;
  }

  .memory-copy {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 72px;
    padding: 14px 18px;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    gap: 10px;
    font-size: 13px;
  }

  .brand-mark {
    justify-self: start;
    width: 24px;
  }

  .brand-mark svg {
    width: 24px;
    height: 48px;
  }

  .header-actions {
    gap: 12px;
    font-size: 13px;
  }

  .header-actions > a,
  .divider {
    display: none;
  }

  .music-toggle svg,
  .music-bars {
    display: none;
  }

  .section-snap {
    scroll-margin-top: 118px;
  }

  .hero {
    min-height: 100svh;
    padding: 174px 22px 64px;
  }

  .hero::after {
    background: none;
  }

  .hero-media {
    object-position: 68% 50%;
  }

  .hero-label {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    text-shadow: 0 2px 12px rgba(17, 17, 17, 0.42);
  }

  .hero h1 {
    color: var(--white);
    font-size: 58px;
    text-shadow: 0 3px 18px rgba(10, 15, 18, 0.62);
  }

  .hero-note {
    position: static;
    margin-top: 18px;
    color: rgba(246, 255, 252, 0.96);
    font-size: 50px;
    transform: rotate(-6deg) scaleX(0.66);
    text-shadow: 0 3px 18px rgba(10, 15, 18, 0.58);
  }

  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 34px;
  }

  .primary-button {
    width: min(100%, 288px);
    min-height: 64px;
    font-size: 17px;
  }

  .hero-meta {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 14px rgba(10, 15, 18, 0.5);
  }

  .memory {
    grid-template-columns: 1fr;
  }

  .memory-copy {
    min-height: auto;
    padding: 64px 24px;
  }

  .memory h2 {
    font-size: 30px;
    line-height: 1.02;
  }

  .memory-photo {
    min-height: 420px;
    border-top: 2px solid var(--white);
    border-left: 0;
  }

  .wave-mark {
    margin: 34px 0;
  }

  .history {
    gap: 36px;
    padding: 70px 24px;
  }

  .history-heading {
    min-height: 230px;
  }

  .history h2 {
    display: inline-block;
    font-size: 64px;
    transform: none;
  }

  .history-heading .script-note {
    font-size: 50px;
  }

  .compass {
    right: auto;
    bottom: 0;
    left: 24px;
    width: 78px;
    height: 78px;
  }

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

  .timeline-card {
    --timeline-title-size: 52px;
    --timeline-line-top: calc(var(--timeline-title-size) * 0.86 + 28px);
    padding-left: 0;
  }

  .timeline-card::before {
    bottom: 30px;
  }

  .timeline-card img {
    max-width: none;
  }

  .timeline-card h3 {
    margin-bottom: 28px;
  }

  .details-photo {
    min-height: 480px;
  }

  .details-copy {
    padding: 62px 24px 70px;
  }

  .details h2 {
    font-size: 42px;
  }

  .small-star {
    top: 32px;
    right: 24px;
    width: 42px;
    height: 42px;
  }

  .feature-grid,
  .stats,
  .authors,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 28px;
    margin-top: 44px;
  }

  .feature {
    grid-template-columns: 58px 1fr;
    gap: 18px;
  }

  .feature-icon {
    width: 58px;
    height: 58px;
  }

  .feature-icon svg {
    width: 36px;
    height: 36px;
  }

  .stats {
    gap: 24px;
    margin-top: 48px;
  }

  .stats dt {
    font-size: 42px;
  }

  .authors h2 {
    font-size: 44px;
  }

  .stats div {
    padding-bottom: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .pocket-gallery {
    padding: 62px 0 78px;
  }

  .gallery-head {
    display: block;
    padding: 0 24px;
  }

  .gallery-head p {
    font-size: 14px;
  }

  .pocket-gallery h2 {
    max-width: 340px;
    font-size: 54px;
  }

  .gallery-controls {
    margin-top: 24px;
  }

  .gallery-control {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .gallery-carousel {
    margin-top: 30px;
  }

  .gallery-track {
    gap: 14px;
    padding: 0 24px 14px;
    scroll-padding-inline: 24px;
  }

  .gallery-slide,
  .gallery-slide.landscape {
    width: min(82vw, 330px);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .gallery-slide.landscape {
    width: min(88vw, 430px);
    aspect-ratio: 4 / 3;
  }

  .authors {
    gap: 32px;
    padding: 54px 24px;
  }

  .footer-lighthouse {
    width: 96px;
  }

  .site-footer {
    gap: 12px;
    justify-items: start;
    padding: 26px 24px;
  }

  .site-footer p:nth-of-type(2),
  .site-footer p:nth-of-type(3) {
    text-align: left;
  }

  .site-footer span {
    display: none;
  }

  .to-top {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }
}

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

  .hero-media {
    transform: none;
  }
}
