/* =========================================================
   明天快快乐乐 · A little archive of light
   ========================================================= */

:root {
  --ink: #16262d;
  --ink-deep: #0d191f;
  --ink-soft: #34474d;
  --paper: #f4efe4;
  --paper-2: #faf6ed;
  --paper-3: #ede5d5;
  --cream: #f8f1df;
  --coral: #d86c52;
  --coral-deep: #bd5842;
  --peach: #eaa57f;
  --sun: #efbd68;
  --sage: #8fa99b;
  --line: rgba(22, 38, 45, 0.14);
  --line-light: rgba(248, 241, 223, 0.18);
  --muted: #6e7b7c;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
  --shell: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.46'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(64px + env(safe-area-inset-top));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-intro,
body.viewer-open,
body.confirm-open {
  overflow: hidden;
}

body.is-dragging {
  overflow: hidden;
}

::selection {
  color: var(--paper-2);
  background: var(--coral);
}

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

button,
input,
a {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3 {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.shell {
  width: 100%;
  max-width: calc(var(--shell) + 112px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 56px);
}

/* =========================================================
   Intro · particles
   ========================================================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b171d;
  color: var(--cream);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.85s var(--ease), visibility 0.85s;
}

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

.intro__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 52% at 78% 23%, rgba(232, 143, 91, 0.32), transparent 67%),
    radial-gradient(ellipse 55% 48% at 15% 78%, rgba(99, 136, 126, 0.22), transparent 70%),
    radial-gradient(ellipse 44% 34% at 50% 54%, rgba(238, 189, 104, 0.1), transparent 75%),
    linear-gradient(154deg, #0b171d 0%, #12252a 52%, #0c181d 100%);
}

.intro__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 12.5% 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  opacity: 0.36;
}

.intro__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 1.4s var(--ease);
}

.intro.is-settled .intro__canvas {
  opacity: 0.38;
}

.intro.is-replay .intro__eyebrow,
.intro.is-replay .intro__title,
.intro.is-replay .intro__desc,
.intro.is-replay .intro__enter,
.intro.is-replay .intro__bottom {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.intro__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: var(--noise);
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
}

.intro::before {
  width: min(58vw, 780px);
  aspect-ratio: 1;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(248, 241, 223, 0.07);
  box-shadow: 0 0 100px rgba(239, 189, 104, 0.035) inset;
}

.intro::after {
  width: 4px;
  height: 4px;
  top: 18%;
  left: 50%;
  background: var(--sun);
  box-shadow: 0 0 28px 9px rgba(239, 189, 104, 0.2);
  animation: introOrb 4s ease-in-out infinite;
}

.intro__top {
  position: absolute;
  z-index: 4;
  top: max(24px, env(safe-area-inset-top));
  left: clamp(22px, 4.4vw, 58px);
  right: clamp(22px, 4.4vw, 58px);
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(248, 241, 223, 0.6);
}

.intro__monogram {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248, 241, 223, 0.22);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--cream);
}

.intro__tiny {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.intro__visit {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(248, 241, 223, 0.42);
}

.intro__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 1000px);
  padding: 8vh 20px 10vh;
  text-align: center;
  transform: translateY(0);
  transition: transform 1.2s var(--ease), opacity 0.75s var(--ease);
}

.intro.is-leaving .intro__content {
  transform: translateY(-24px) scale(0.985);
  opacity: 0;
}

.intro__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(248, 241, 223, 0.55);
  opacity: 0;
  animation: introFadeUp 0.9s 0.5s var(--ease) forwards;
}

.intro__eyebrow span {
  width: 34px;
  height: 1px;
  background: rgba(248, 241, 223, 0.22);
}

.intro__title {
  margin-top: clamp(26px, 4.2vh, 46px);
  font-family: var(--serif);
  font-size: clamp(3rem, 8.2vw, 7.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  color: var(--cream);
  text-shadow: 0 0 60px rgba(239, 189, 104, 0.12);
  opacity: 0;
  animation: introTitleIn 1.45s 2.15s var(--ease) forwards;
}

.intro__desc {
  margin-top: clamp(18px, 3vh, 30px);
  max-width: 520px;
  color: rgba(248, 241, 223, 0.64);
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.9;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: introFadeUp 1s 2.85s var(--ease) forwards;
}

.intro__enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 54px;
  margin-top: clamp(28px, 5vh, 46px);
  padding: 0 28px;
  border: 1px solid rgba(248, 241, 223, 0.42);
  border-radius: 999px;
  background: rgba(248, 241, 223, 0.025);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: introFadeUp 1s 3.25s var(--ease) forwards;
  transition: color 0.35s, background 0.35s, border-color 0.35s, transform 0.35s;
}

.intro__enter .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.intro__enter:hover {
  color: var(--ink-deep);
  background: var(--cream);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.intro__enter:hover .icon {
  transform: translateX(4px);
}

.intro__bottom {
  position: absolute;
  z-index: 4;
  left: clamp(22px, 4.4vw, 58px);
  right: clamp(22px, 4.4vw, 58px);
  bottom: max(25px, calc(env(safe-area-inset-bottom) + 16px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(248, 241, 223, 0.42);
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0;
  animation: introFadeUp 1s 3.8s var(--ease) forwards;
}

.intro__hint {
  display: flex;
  align-items: center;
  gap: 9px;
}

.intro__hint::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sun);
  animation: introPulse 2.2s ease-in-out infinite;
}

.intro__whisper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 72px;
}

.intro__sun {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 12px rgba(239, 189, 104, 0.6);
}

.intro__skip {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 4.4vw, 58px);
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 9px));
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(248, 241, 223, 0.18);
  background: none;
  color: rgba(248, 241, 223, 0.45);
  font-size: 10px;
  letter-spacing: 0.16em;
  transition: color 0.25s;
}

.intro__skip:hover {
  color: var(--cream);
}

.intro__progress {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(248, 241, 223, 0.08);
}

.intro__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(239, 189, 104, 0.75));
  transform-origin: left;
  animation: introProgress 7.5s 0.25s linear forwards;
}

@keyframes introTitleIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introOrb {
  0%, 100% { transform: translate(-50%, 0) scale(0.8); opacity: 0.5; }
  50% { transform: translate(-50%, -8px) scale(1.2); opacity: 1; }
}

@keyframes introPulse {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 0 0 rgba(239, 189, 104, 0.3); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(239, 189, 104, 0); }
}

@keyframes introProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: calc(84px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-inline: clamp(20px, 4.5vw, 56px);
  transition: height 0.4s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: calc(70px + env(safe-area-inset-top));
  border-bottom-color: rgba(22, 38, 45, 0.08);
  background: rgba(244, 239, 228, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__sun {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #f9d58e, #e59a63 60%, #cf7258);
  box-shadow: 0 0 0 4px rgba(216, 108, 82, 0.09);
}

.brand__sun::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(216, 108, 82, 0.2);
  border-radius: 50%;
}

.brand__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__en {
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: 13px;
}

.site-nav > a {
  position: relative;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  padding: 6px 0;
}

.site-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: background 0.3s, transform 0.3s;
}

.nav-add .icon {
  width: 15px;
  height: 15px;
}

.nav-add:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 12px;
}

.install-btn .icon {
  width: 14px;
  height: 14px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(clamp(120px, 14vh, 160px) + env(safe-area-inset-top)) 0 132px;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.hero__wash {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 54% at 82% 31%, rgba(234, 165, 127, 0.32), transparent 72%),
    radial-gradient(ellipse 40% 45% at 14% 66%, rgba(143, 169, 155, 0.13), transparent 76%),
    linear-gradient(180deg, #f6f1e6 0%, #f4eee2 66%, #f1eadc 100%);
}

.hero__orbit {
  position: absolute;
  z-index: -2;
  top: 4%;
  right: -11%;
  width: min(58vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 38, 45, 0.075);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(255, 255, 255, 0.1),
    0 0 0 calc(7vw + 1px) rgba(22, 38, 45, 0.035);
}

.hero__orbit::before,
.hero__orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero__orbit::before {
  inset: 15%;
  border: 1px dashed rgba(22, 38, 45, 0.08);
}

.hero__orbit::after {
  width: 9px;
  height: 9px;
  top: 23%;
  left: 7%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(216, 108, 82, 0.08);
}

.hero__grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.035;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  min-height: clamp(600px, 72vh, 740px);
}

.hero__copy {
  position: relative;
  z-index: 3;
  padding-top: 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(216, 108, 82, 0.09);
}

.hero__title {
  margin-top: clamp(22px, 3.5vh, 34px);
  font-family: var(--serif);
  font-size: clamp(5rem, 8.6vw, 8rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.hero__title-line {
  display: block;
  width: fit-content;
  white-space: nowrap;
}

.hero__title-line--accent {
  position: relative;
  margin-left: clamp(28px, 4.8vw, 76px);
  margin-top: 0.06em;
  color: var(--coral);
}

.hero__underline {
  position: absolute;
  left: -4%;
  bottom: -0.12em;
  width: 108%;
  height: 0.2em;
  overflow: visible;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.1;
  stroke-linecap: round;
  opacity: 0.38;
}

.hero__lede {
  max-width: 548px;
  margin-top: clamp(26px, 3.6vh, 38px);
  color: #58676a;
  font-size: clamp(14px, 1.24vw, 16px);
  line-height: 1.95;
  letter-spacing: 0.015em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: clamp(28px, 4vh, 40px);
}

.hero__privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  color: #849090;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.hero__privacy .icon {
  width: 13px;
  height: 13px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 12px 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

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

.button:active {
  transform: translateY(0);
}

.button--primary {
  padding-right: 8px;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(22, 38, 45, 0.14);
}

.button--primary:hover {
  background: var(--coral-deep);
  box-shadow: 0 15px 34px rgba(189, 88, 66, 0.2);
}

.button__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(248, 241, 223, 0.12);
}

.button__icon .icon {
  width: 17px;
  height: 17px;
}

.button--text {
  min-height: 42px;
  padding: 0;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
}

.button--text .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.button--text:hover {
  color: var(--coral-deep);
}

.button--text:hover .icon {
  transform: translate(2px, -2px);
}

.button--ink {
  min-height: 44px;
  padding: 0 20px;
  color: var(--cream);
  background: var(--ink);
  font-size: 12px;
}

.button--ink:hover {
  background: var(--coral-deep);
}

.button--ink .icon {
  width: 16px;
  height: 16px;
}

.button--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button--danger {
  color: #fff5ef;
  background: #a33d2d;
}

.button--cream {
  color: var(--ink);
  background: var(--cream);
  padding: 0 23px;
}

.button--cream:hover {
  background: var(--sun);
}

/* Hero artwork */

.hero__visual {
  position: relative;
  min-height: clamp(510px, 62vh, 650px);
}

.memory-stack {
  position: relative;
  width: clamp(300px, 31vw, 410px);
  aspect-ratio: 0.78;
  margin: 0 auto;
  perspective: 1200px;
}

.polaroid {
  position: absolute;
  margin: 0;
  padding: 11px 11px 0;
  border-radius: 4px;
  background: #fcf9f1;
  box-shadow:
    0 2px 4px rgba(31, 43, 41, 0.08),
    0 22px 45px -18px rgba(31, 43, 41, 0.36);
  transform-origin: 50% 90%;
}

.polaroid::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(22, 38, 45, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.polaroid__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper-3);
}

.polaroid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 45px;
  color: #667271;
  font-family: var(--serif);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.polaroid--back {
  z-index: 1;
  width: 78%;
  top: 10%;
  left: -1%;
  transform: rotate(-10deg);
  padding-bottom: 0;
}

.polaroid--back .polaroid__image {
  aspect-ratio: 0.82;
}

.polaroid--middle {
  z-index: 2;
  width: 74%;
  top: 18%;
  right: -2%;
  transform: rotate(8deg);
  padding-bottom: 0;
}

.polaroid--middle .polaroid__image {
  aspect-ratio: 0.86;
}

.polaroid--front {
  z-index: 3;
  width: 82%;
  top: 2%;
  left: 8%;
  transform: rotate(-1.6deg);
  animation: stackFloat 9s ease-in-out infinite;
}

.polaroid--front .polaroid__image {
  aspect-ratio: 0.9;
}

.polaroid__caption {
  height: 61px !important;
  padding-inline: 3px;
  font-family: var(--sans) !important;
  font-style: normal !important;
  color: var(--ink) !important;
  font-size: 10px !important;
}

.polaroid__caption time {
  color: #8d9693;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.polaroid__tape {
  position: absolute;
  z-index: 2;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 28px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(235, 221, 190, 0.82);
  box-shadow: 0 1px 2px rgba(22, 38, 45, 0.08);
  clip-path: polygon(2% 8%, 98% 0, 100% 91%, 0 100%);
  backdrop-filter: blur(2px);
}

.polaroid__image--main {
  background: #d8b58f;
}

.hero-landscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.polaroid--front.has-media .hero-landscape {
  opacity: 0;
  visibility: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media-badge {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(248, 241, 223, 0.86);
  backdrop-filter: blur(8px);
}

.hero__media-badge .icon {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.polaroid__image--night {
  background:
    radial-gradient(circle at 72% 24%, rgba(246, 224, 172, 0.28), transparent 26%),
    linear-gradient(160deg, #314a50, #182a31 64%, #122128);
}

.night-moon {
  position: absolute;
  top: 25%;
  right: 22%;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: #f6e5bd;
  box-shadow: 0 0 30px rgba(246, 229, 189, 0.3);
}

.night-moon::after {
  content: "";
  position: absolute;
  top: -7px;
  left: -11px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #223a41;
}

.night-star {
  position: absolute;
  color: #f6e5bd;
  font-size: 8px;
  opacity: 0.75;
}

.night-star--a { top: 16%; left: 20%; }
.night-star--b { top: 37%; left: 42%; font-size: 15px; }
.night-star--c { top: 52%; right: 17%; font-size: 10px; }

.night-hill {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 55%;
  border-radius: 50% 50% 0 0;
  background: #101e23;
}

.night-hill--one {
  bottom: -9%;
  height: 42%;
  background: #1e353b;
  transform: rotate(-4deg);
}

.night-hill--two {
  left: 18%;
  right: -30%;
  bottom: -20%;
  height: 52%;
  background: #0d191e;
  transform: rotate(6deg);
}

.polaroid__image--sun {
  background: linear-gradient(170deg, #f3d7a6, #e9a777 55%, #c97864);
}

.sun-disc {
  position: absolute;
  top: 21%;
  left: 50%;
  width: 78px;
  height: 78px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fbe6ad;
  box-shadow: 0 0 42px rgba(251, 230, 173, 0.44);
}

.sun-line {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 33%;
  border-radius: 50% 50% 0 0;
  background: rgba(151, 78, 65, 0.34);
}

.sun-line--one {
  bottom: -10%;
}

.sun-line--two {
  bottom: -25%;
  background: rgba(112, 61, 57, 0.26);
}

.memory-stack__stamp {
  position: absolute;
  z-index: 5;
  right: -8%;
  bottom: 1%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 94px;
  height: 94px;
  transform: rotate(11deg);
  border: 1px solid rgba(22, 38, 45, 0.4);
  border-radius: 50%;
  background: rgba(244, 239, 228, 0.72);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(5px);
}

.memory-stack__stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(22, 38, 45, 0.22);
  border-radius: 50%;
}

.memory-stack__stamp strong {
  color: var(--coral);
  font-size: 15px;
  font-weight: 400;
}

.hero__star {
  position: absolute;
  color: var(--coral);
  font-size: 15px;
  animation: twinkle 4s ease-in-out infinite;
}

.hero__star--one {
  top: 11%;
  right: 8%;
}

.hero__star--two {
  bottom: 18%;
  left: 1%;
  color: var(--sun);
  font-size: 10px;
  animation-delay: -2s;
}

.hero__annotation {
  position: absolute;
  color: #899390;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__annotation--top {
  top: 7%;
  left: 0;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left top;
}

.hero__annotation--bottom {
  right: 0;
  bottom: 7%;
  text-align: right;
}

.floating-note {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(22, 38, 45, 0.09);
  border-radius: 999px;
  background: rgba(252, 249, 241, 0.7);
  box-shadow: 0 12px 32px -18px rgba(22, 38, 45, 0.35);
  color: #647170;
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
  animation: noteFloat 7s ease-in-out infinite;
}

.floating-note strong {
  color: var(--ink);
  font-weight: 500;
}

.floating-note--one {
  top: 20%;
  left: 1%;
}

.floating-note--two {
  right: 0;
  bottom: 39%;
  animation-delay: -3.4s;
  padding: 9px 15px;
}

.floating-note__icon {
  color: var(--coral);
  font-size: 16px;
}

.floating-note__line {
  width: 18px;
  height: 1px;
  background: var(--coral);
}

.hero__scroll {
  position: absolute;
  z-index: 4;
  left: clamp(20px, 4.5vw, 56px);
  bottom: 83px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b9490;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.hero__scroll i {
  position: relative;
  width: 1px;
  height: 32px;
  overflow: hidden;
  background: rgba(22, 38, 45, 0.12);
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--coral);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes stackFloat {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  50% { transform: rotate(-0.7deg) translateY(-8px); }
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(20deg); }
}

@keyframes scrollLine {
  0% { transform: translateY(-110%); }
  50%, 100% { transform: translateY(220%); }
}

/* Marquee */

.marquee {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: 13px 0 14px;
  background: var(--ink);
  color: var(--cream);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__track span {
  padding-inline: 26px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  opacity: 0.84;
}

.marquee__track b {
  color: var(--peach);
  font-size: 10px;
  font-weight: 400;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

body.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .hero__copy .reveal:nth-child(2) { transition-delay: 0.08s; }
body.is-ready .hero__copy .reveal:nth-child(3) { transition-delay: 0.17s; }
body.is-ready .hero__copy .reveal:nth-child(4) { transition-delay: 0.25s; }
body.is-ready .hero__copy .reveal:nth-child(5) { transition-delay: 0.32s; }
body.is-ready .hero__visual { transition-delay: 0.18s; }

/* =========================================================
   Gallery
   ========================================================= */

.gallery-section {
  position: relative;
  padding: clamp(82px, 10vw, 128px) 0 clamp(84px, 10vw, 130px);
  background: var(--paper-2);
  overflow: hidden;
}

.gallery-section__shape {
  position: absolute;
  top: -220px;
  right: -190px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(22, 38, 45, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.gallery-section__shape::before {
  content: "";
  position: absolute;
  inset: 80px;
  border: 1px dashed rgba(22, 38, 45, 0.06);
  border-radius: 50%;
}

.section-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-head h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 17px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.4vw, 5.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.07em;
}

.section-head__count {
  margin-top: 0.18em;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
}

.section-head__lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.gallery-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
}

.filters {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 239, 228, 0.55);
}

.filter {
  min-height: 34px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: color 0.25s, background 0.25s;
}

.filter span {
  margin-left: 3px;
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0.62;
}

.filter:hover {
  color: var(--ink);
}

.filter.is-active {
  color: var(--cream);
  background: var(--ink);
}

.filter.is-active span {
  opacity: 0.55;
}

.storage-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  color: #83908f;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.storage-line__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8aa694;
  box-shadow: 0 0 0 4px rgba(138, 166, 148, 0.12);
}

.storage-line__dot.is-warning {
  background: #d3a25f;
  box-shadow: 0 0 0 4px rgba(211, 162, 95, 0.12);
}

.storage-line__dot.is-busy {
  background: var(--coral);
  animation: introPulse 1.8s ease-in-out infinite;
}

.storage-line__sep {
  width: 1px;
  height: 9px;
  margin-inline: 3px;
  background: var(--line);
}

.storage-line__hint {
  opacity: 0.72;
}

/* Empty state */

.empty-state {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
  margin-top: 42px;
  padding: clamp(30px, 4.6vw, 64px);
  border: 1px solid rgba(22, 38, 45, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 70% 90% at 20% 40%, rgba(234, 165, 127, 0.2), transparent 68%),
    #f2ebdd;
  overflow: hidden;
}

.empty-state__art {
  position: relative;
  min-height: 330px;
}

.empty-state__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 270px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(22, 38, 45, 0.11);
  border-radius: 50%;
}

.empty-state__orbit::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px dashed rgba(22, 38, 45, 0.12);
  border-radius: 50%;
}

.empty-state__sun {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fbe8b9, #eeb668 64%, #df8b63);
  box-shadow: 0 20px 45px -14px rgba(207, 114, 88, 0.4);
}

.empty-state__card {
  position: absolute;
  z-index: 1;
  width: 130px;
  height: 164px;
  border: 7px solid #fbf8ef;
  border-bottom-width: 24px;
  border-radius: 3px;
  background: linear-gradient(160deg, #abc0b2, #6b8a7d);
  box-shadow: 0 16px 30px -16px rgba(22, 38, 45, 0.38);
}

.empty-state__card--one {
  top: 16%;
  left: 4%;
  transform: rotate(-12deg);
}

.empty-state__card--two {
  right: 3%;
  bottom: 13%;
  transform: rotate(10deg);
  background: linear-gradient(160deg, #efc89e, #cb7864);
}

.empty-state__spark {
  position: absolute;
  top: 18%;
  right: 13%;
  color: var(--coral);
  font-size: 18px;
  animation: twinkle 4s ease-in-out infinite;
}

.empty-state__kicker {
  color: var(--coral-deep);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.empty-state h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.045em;
}

.empty-state__copy > p:not(.empty-state__kicker, .empty-state__formats) {
  max-width: 440px;
  margin-top: 19px;
  color: #6f7b7a;
  font-size: 13px;
  line-height: 1.85;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 27px;
}

.empty-state__formats {
  margin-top: 18px;
  color: #98a09b;
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* Gallery grid */

.gallery-grid {
  column-count: 3;
  column-gap: 17px;
  margin-top: 34px;
}

.memory-card {
  break-inside: avoid;
  margin-bottom: 17px;
  border: 1px solid rgba(22, 38, 45, 0.09);
  border-radius: 15px;
  background: #fcf9f1;
  padding: 7px 7px 0;
  box-shadow: 0 7px 18px -15px rgba(22, 38, 45, 0.25);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s;
}

.memory-card:hover {
  transform: translateY(-4px) rotate(-0.25deg);
  border-color: rgba(22, 38, 45, 0.18);
  box-shadow: 0 22px 38px -24px rgba(22, 38, 45, 0.42);
}

.memory-card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.memory-card__media {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card-tone, #d9cfbf);
}

.memory-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  animation: imageIn 0.55s ease both;
}

.memory-card:hover .memory-card__media img {
  transform: scale(1.035);
}

.memory-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(248, 241, 223, 0.85);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(155deg, var(--card-tone, #7c9188), #344c50);
}

.memory-card__placeholder .icon {
  width: 26px;
  height: 26px;
  opacity: 0.5;
}

.memory-card__type {
  position: absolute;
  top: 9px;
  left: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(15, 28, 31, 0.38);
  backdrop-filter: blur(7px);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.memory-card__type .icon {
  width: 11px;
  height: 11px;
}

.memory-card__duration {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 3px 6px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(12, 23, 26, 0.58);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(5px);
}

.memory-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(11, 23, 26, 0.28);
  backdrop-filter: blur(7px);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.memory-card__play .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.memory-card:hover .memory-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(216, 108, 82, 0.7);
}

.memory-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 11px;
  color: #7e8987;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.memory-card__meta time {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.memory-card__meta span {
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-card--add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 205px;
  padding: 20px;
  border: 1.5px dashed rgba(22, 38, 45, 0.22);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.memory-card--add:hover {
  transform: translateY(-3px);
  border-color: var(--coral);
  background: rgba(248, 243, 233, 0.6);
  box-shadow: none;
}

.memory-card__add-inner {
  text-align: center;
}

.memory-card__add-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin: 0 auto 15px;
  border: 1px solid rgba(22, 38, 45, 0.16);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(252, 249, 241, 0.8);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.memory-card__add-icon .icon {
  width: 18px;
  height: 18px;
}

.memory-card--add:hover .memory-card__add-icon {
  color: var(--cream);
  background: var(--coral);
  border-color: var(--coral);
}

.memory-card--add p {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.memory-card--add span {
  display: block;
  margin-top: 7px;
  color: #929b96;
  font-size: 9px;
  letter-spacing: 0.03em;
}

@keyframes imageIn {
  from { opacity: 0; filter: blur(10px); transform: scale(1.03); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

.filter-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 80px 20px;
  border: 1px dashed rgba(22, 38, 45, 0.16);
  border-radius: 24px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

.filter-empty__icon {
  color: var(--coral);
  font-size: 18px;
}

.gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #84908d;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.gallery-foot p span {
  margin-right: 7px;
  color: var(--coral);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(22, 38, 45, 0.25);
  background: none;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: color 0.25s, border-color 0.25s;
}

.text-link .icon {
  width: 13px;
  height: 13px;
}

.text-link:hover {
  color: var(--coral-deep);
  border-color: var(--coral);
}

.text-link--light {
  color: var(--cream);
  border-color: rgba(248, 241, 223, 0.3);
}

.text-link--light:hover {
  color: var(--sun);
  border-color: var(--sun);
}

/* =========================================================
   About
   ========================================================= */

.about-section {
  position: relative;
  padding: 10px 0 clamp(70px, 9vw, 112px);
  background: var(--paper-2);
}

.about-card {
  position: relative;
  padding: clamp(30px, 5vw, 68px);
  border-radius: clamp(26px, 3.6vw, 44px);
  background:
    radial-gradient(ellipse 58% 70% at 88% 5%, rgba(216, 108, 82, 0.28), transparent 68%),
    radial-gradient(ellipse 50% 80% at 5% 95%, rgba(112, 146, 132, 0.22), transparent 70%),
    var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.about-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.08;
  mix-blend-mode: soft-light;
}

.about-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  top: -28%;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid rgba(248, 241, 223, 0.09);
  border-radius: 50%;
}

.eyebrow--light {
  color: rgba(248, 241, 223, 0.5);
}

.eyebrow--light .eyebrow__dot {
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(239, 189, 104, 0.09);
}

.about-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.about-card__head h2 {
  margin-top: 21px;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.4vw, 5.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.06em;
}

.about-card__head h2 em {
  color: var(--peach);
  font-style: normal;
}

.about-card__seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  width: 104px;
  height: 104px;
  margin-top: 4px;
  transform: rotate(8deg);
  border: 1px solid rgba(248, 241, 223, 0.25);
  border-radius: 50%;
  color: rgba(248, 241, 223, 0.55);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
}

.about-card__seal::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border: 1px dashed rgba(248, 241, 223, 0.15);
  border-radius: 50%;
}

.about-card__seal strong {
  color: var(--sun);
  font-size: 17px;
  font-weight: 400;
}

.about-card__body {
  margin-top: clamp(42px, 6vw, 78px);
}

.about-card__lede {
  max-width: 720px;
  color: rgba(248, 241, 223, 0.64);
  font-family: var(--serif);
  font-size: clamp(15px, 1.55vw, 19px);
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5.6vw, 66px);
  border-top: 1px solid var(--line-light);
}

.about-point {
  padding: 27px 30px 0;
  border-left: 1px solid var(--line-light);
}

.about-point:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-point__num {
  color: var(--sun);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.about-point h3 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.about-point p {
  margin-top: 11px;
  color: rgba(248, 241, 223, 0.5);
  font-size: 11.5px;
  line-height: 1.85;
}

.about-card__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(36px, 5vw, 56px);
}

.about-card__tip {
  color: rgba(248, 241, 223, 0.42);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.about-card__tip span {
  color: var(--sun);
}

.about-card__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  color: rgba(248, 241, 223, 0.31);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.about-card__line {
  flex: 1;
  height: 1px;
  background: var(--line-light);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  position: relative;
  padding: 35px 0 calc(30px + env(safe-area-inset-bottom));
  background: var(--ink-deep);
  color: var(--cream);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 68% at 82% 8%, rgba(216, 108, 82, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 12% 100%, rgba(112, 146, 132, 0.1), transparent 70%);
  pointer-events: none;
}

.site-footer .shell {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(248, 241, 223, 0.12);
  color: rgba(248, 241, 223, 0.48);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-footer__toplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-size: 10px;
}

.site-footer__toplink .icon {
  width: 13px;
  height: 13px;
}

.site-footer__note {
  text-align: center;
}

.site-footer__word {
  display: flex;
  align-items: baseline;
  gap: 0.14em;
  margin: clamp(48px, 8vw, 96px) 0 clamp(38px, 6vw, 70px);
  font-family: var(--serif);
  font-size: clamp(5.2rem, 13.1vw, 12.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.085em;
  white-space: nowrap;
}

.site-footer__word span:first-child {
  color: rgba(248, 241, 223, 0.38);
}

.site-footer__word span:last-child {
  color: var(--cream);
}

.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(248, 241, 223, 0.12);
  color: rgba(248, 241, 223, 0.34);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.site-footer__made b {
  margin-inline: 5px;
  color: var(--sun);
  font-weight: 400;
}

.site-footer__local {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-footer__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

/* =========================================================
   Viewer
   ========================================================= */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 3vw, 38px) max(18px, env(safe-area-inset-bottom));
  color: var(--cream);
  background: #081216;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.viewer.is-open {
  opacity: 1;
}

.viewer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--noise);
  opacity: 0.045;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.viewer__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.viewer__kicker {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.viewer__date {
  margin-top: 4px;
  color: rgba(248, 241, 223, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.viewer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid rgba(248, 241, 223, 0.16);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(248, 241, 223, 0.04);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.icon-button:hover {
  background: rgba(248, 241, 223, 0.12);
  border-color: rgba(248, 241, 223, 0.3);
  transform: translateY(-1px);
}

.icon-button--danger:hover {
  color: #ffc9bb;
  background: rgba(163, 61, 45, 0.32);
}

.viewer__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 14px 58px;
}

.viewer__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.viewer__media img,
.viewer__media video {
  max-width: min(100%, 1100px);
  max-height: max(300px, calc(100vh - 190px));
  max-height: max(300px, calc(100svh - 190px));
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  background: #071014;
}

.viewer__media img {
  width: auto;
  height: auto;
}

.viewer__fallback {
  max-width: 420px;
  padding: 26px;
  border: 1px solid rgba(248, 241, 223, 0.16);
  border-radius: 12px;
  color: rgba(248, 241, 223, 0.65);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  background: rgba(248, 241, 223, 0.05);
}

.viewer__nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  transform: translateY(-50%);
  border: 1px solid rgba(248, 241, 223, 0.18);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(248, 241, 223, 0.05);
  backdrop-filter: blur(7px);
  transition: background 0.25s, opacity 0.25s;
}

.viewer__nav:hover {
  background: rgba(248, 241, 223, 0.15);
}

.viewer__nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.viewer__nav--prev {
  left: clamp(10px, 2vw, 24px);
}

.viewer__nav--next {
  right: clamp(10px, 2vw, 24px);
}

.viewer__bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  color: rgba(248, 241, 223, 0.48);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.viewer__info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.viewer__kind {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--sun);
  background: rgba(239, 189, 104, 0.09);
  font-size: 8px;
}

.viewer__sep {
  width: 1px;
  height: 9px;
  background: rgba(248, 241, 223, 0.18);
}

.viewer__counter {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Delete confirmation */

.confirm {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: 20px;
}

.confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 15, 0.7);
  backdrop-filter: blur(8px);
}

.confirm__card {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  padding: 34px;
  border: 1px solid rgba(22, 38, 45, 0.1);
  border-radius: 24px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  text-align: center;
  animation: confirmIn 0.4s var(--ease);
}

.confirm__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--coral-deep);
  background: rgba(216, 108, 82, 0.1);
}

.confirm__icon .icon {
  width: 19px;
  height: 19px;
}

.confirm__card h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.confirm__card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.confirm__actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.confirm__actions .button {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  font-size: 12px;
}

@keyframes confirmIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   Drop / Busy / Toast
   ========================================================= */

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 23, 27, 0.76);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

body.is-dragging .drop-overlay {
  opacity: 1;
  visibility: visible;
}

.drop-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(100%, 540px);
  padding: 64px 30px;
  border: 1px dashed rgba(248, 241, 223, 0.4);
  border-radius: 26px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 20px;
  text-align: center;
}

.drop-overlay__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--sun);
  background: rgba(248, 241, 223, 0.09);
}

.drop-overlay__icon .icon {
  width: 22px;
  height: 22px;
}

.busy {
  position: fixed;
  z-index: 1900;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  padding: 11px 18px;
  border: 1px solid rgba(248, 241, 223, 0.12);
  border-radius: 999px;
  background: rgba(13, 25, 31, 0.94);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.busy__spinner {
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(248, 241, 223, 0.25);
  border-top-color: var(--sun);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.toast-region {
  position: fixed;
  z-index: 2100;
  left: 50%;
  bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(calc(100% - 32px), 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 11px 17px;
  border: 1px solid rgba(248, 241, 223, 0.13);
  border-radius: 999px;
  background: rgba(13, 25, 31, 0.95);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: toastIn 0.35s var(--ease);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast__icon {
  color: var(--sun);
  font-size: 12px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 3000;
  padding: 15px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
    gap: 20px;
  }

  .hero__title {
    font-size: clamp(4.8rem, 10.6vw, 8rem);
  }

  .memory-stack {
    width: clamp(285px, 31vw, 360px);
  }

  .floating-note--two {
    display: none;
  }

  .memory-stack__stamp {
    right: -4%;
  }

  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .brand__en {
    display: none;
  }

  .site-nav > a {
    display: none;
  }

  .hero {
    padding-top: calc(120px + env(safe-area-inset-top));
    padding-bottom: 112px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
  }

  .hero__copy {
    padding-top: 8px;
  }

  .hero__title {
    font-size: clamp(5rem, 17vw, 8rem);
  }

  .hero__lede {
    max-width: 580px;
  }

  .hero__visual {
    width: min(100%, 570px);
    min-height: 560px;
    margin: 0 auto;
  }

  .memory-stack {
    width: min(72vw, 390px);
  }

  .hero__annotation--top {
    left: 4%;
  }

  .hero__annotation--bottom {
    right: 2%;
  }

  .floating-note--two {
    right: 1%;
  }

  .memory-stack__stamp {
    right: 1%;
  }

  .hero__scroll {
    display: none;
  }

  .gallery-grid {
    column-count: 2;
  }

  .empty-state {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .empty-state__art {
    min-height: 280px;
  }

  .empty-state__orbit {
    width: 220px;
    height: 220px;
  }

  .empty-state__card {
    width: 105px;
    height: 136px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .about-point {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .about-point:first-child {
    padding-top: 24px;
  }

  .about-point:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: calc(58px + env(safe-area-inset-top));
  }

  .shell {
    padding-inline: 20px;
  }

  .site-header {
    height: calc(66px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-inline: 18px;
    gap: 12px;
  }

  .site-header.is-scrolled {
    height: calc(62px + env(safe-area-inset-top));
  }

  .site-header .install-btn {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand__sun {
    width: 21px;
    height: 21px;
  }

  .brand__name {
    font-size: 15px;
  }

  .site-nav {
    gap: 12px;
  }

  .nav-add {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .nav-add span {
    display: none;
  }

  .nav-add .icon {
    width: 17px;
    height: 17px;
  }

  .install-btn {
    font-size: 0;
    gap: 0;
  }

  .install-btn .icon {
    width: 18px;
    height: 18px;
  }

  .hero {
    padding-top: calc(102px + env(safe-area-inset-top));
    padding-bottom: 94px;
  }

  .hero__title {
    margin-top: 20px;
    font-size: clamp(4.25rem, 20vw, 6.2rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
  }

  .hero__title-line--accent {
    margin-left: 0.52em;
  }

  .hero__lede {
    margin-top: 23px;
    font-size: 13.5px;
    line-height: 1.85;
  }

  .hero__lede br {
    display: none;
  }

  .hero__actions {
    gap: 15px;
    margin-top: 25px;
  }

  .button {
    min-height: 49px;
  }

  .hero__actions .button--primary {
    flex: 1;
    min-width: 190px;
  }

  .hero__privacy {
    margin-top: 18px;
    font-size: 9.5px;
  }

  .hero__visual {
    min-height: 480px;
    width: 100%;
  }

  .memory-stack {
    width: min(76vw, 330px);
  }

  .memory-stack__stamp {
    width: 76px;
    height: 76px;
    right: 0;
    bottom: 2%;
    font-size: 5.6px;
  }

  .memory-stack__stamp::before {
    inset: 4px;
  }

  .memory-stack__stamp strong {
    font-size: 12px;
  }

  .polaroid {
    padding: 8px 8px 0;
  }

  .polaroid__caption {
    height: 50px !important;
    font-size: 9px !important;
  }

  .polaroid__tape {
    width: 72px;
    height: 22px;
    top: -10px;
  }

  .floating-note {
    padding: 9px 12px;
    font-size: 7px;
  }

  .floating-note--one {
    top: 11%;
    left: -2%;
  }

  .floating-note--two {
    right: -1%;
    bottom: 15%;
  }

  .floating-note__icon {
    font-size: 13px;
  }

  .hero__annotation {
    display: none;
  }

  .hero__star--one {
    top: 6%;
    right: 0;
  }

  .hero__star--two {
    left: 2%;
    bottom: 6%;
  }

  .marquee {
    padding: 11px 0 12px;
  }

  .marquee__track span {
    padding-inline: 18px;
    font-size: 10px;
  }

  .hero__orbit {
    top: 34%;
    right: -42%;
    width: 94vw;
  }

  .gallery-section {
    padding-top: 72px;
    padding-bottom: 78px;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-top: 14px;
    font-size: clamp(3.1rem, 13vw, 4.3rem);
  }

  .section-head__lede {
    margin-top: 12px;
    font-size: 11.5px;
  }

  .gallery-tools {
    margin-top: 24px;
    padding-bottom: 0;
    width: 100%;
    justify-content: space-between;
  }

  .filters {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 10px;
    white-space: nowrap;
  }

  .gallery-add {
    flex: none;
    min-height: 40px;
    padding: 0 15px;
  }

  .storage-line {
    margin-top: 24px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 9px;
  }

  .storage-line__hint {
    display: none;
  }

  .storage-line__sep {
    display: none;
  }

  .empty-state {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 26px;
    padding: 22px 22px 28px;
    border-radius: 24px;
  }

  .empty-state__art {
    min-height: 210px;
    transform: scale(0.9);
  }

  .empty-state__orbit {
    width: 195px;
    height: 195px;
  }

  .empty-state__sun {
    width: 66px;
    height: 66px;
  }

  .empty-state__card {
    width: 88px;
    height: 114px;
    border-width: 5px;
    border-bottom-width: 18px;
  }

  .empty-state__card--one {
    left: 10%;
  }

  .empty-state__card--two {
    right: 9%;
  }

  .empty-state__copy {
    padding-bottom: 5px;
  }

  .empty-state h3 {
    margin-top: 13px;
    font-size: 1.85rem;
  }

  .empty-state__copy > p:not(.empty-state__kicker, .empty-state__formats) {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.8;
  }

  .empty-state__actions {
    gap: 12px;
    margin-top: 21px;
  }

  .empty-state__actions .button--primary {
    min-width: 0;
    flex: 1;
  }

  .empty-state__formats {
    margin-top: 15px;
    font-size: 8px;
    line-height: 1.7;
  }

  .gallery-grid {
    column-gap: 10px;
    margin-top: 24px;
  }

  .memory-card {
    margin-bottom: 10px;
    padding: 5px 5px 0;
    border-radius: 12px;
  }

  .memory-card__media {
    border-radius: 8px;
  }

  .memory-card__meta {
    padding: 8px 3px 9px;
    font-size: 8px;
  }

  .memory-card__meta time {
    font-size: 7px;
  }

  .memory-card__type {
    top: 7px;
    left: 7px;
    padding: 4px 6px;
    font-size: 7px;
  }

  .memory-card__duration {
    right: 7px;
    bottom: 7px;
    font-size: 7px;
  }

  .memory-card__play {
    width: 40px;
    height: 40px;
  }

  .memory-card--add {
    min-height: 160px;
    padding: 12px;
  }

  .memory-card__add-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 11px;
  }

  .memory-card--add p {
    font-size: 13px;
  }

  .gallery-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-top: 10px;
    font-size: 9px;
  }

  .filter-empty {
    margin-top: 24px;
    padding: 60px 20px;
  }

  .about-section {
    padding-bottom: 52px;
  }

  .about-card {
    padding: 28px 23px;
    border-radius: 28px;
  }

  .about-card__seal {
    display: none;
  }

  .about-card__head h2 {
    margin-top: 16px;
    font-size: 2.75rem;
  }

  .about-card__lede {
    font-size: 14px;
    line-height: 1.9;
  }

  .about-card__body {
    margin-top: 32px;
  }

  .about-points {
    margin-top: 28px;
  }

  .about-point {
    padding: 18px 0;
  }

  .about-point h3 {
    font-size: 18px;
    margin-top: 10px;
  }

  .about-point p {
    font-size: 11px;
  }

  .about-card__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
  }

  .about-card__tip {
    font-size: 8.5px;
  }

  .about-card__bottom {
    margin-top: 36px;
    gap: 10px;
    font-size: 7px;
  }

  .site-footer {
    padding-top: 27px;
  }

  .site-footer__top {
    padding-bottom: 20px;
  }

  .site-footer__note {
    display: none;
  }

  .site-footer__word {
    display: block;
    margin: 46px 0 42px;
    font-size: clamp(4.2rem, 19vw, 6.2rem);
    line-height: 1.04;
    white-space: normal;
  }

  .site-footer__word span {
    display: block;
  }

  .site-footer__word span:last-child {
    margin-left: 0.36em;
  }

  .site-footer__meta {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 7px;
  }

  .site-footer__made {
    display: none;
  }

  .viewer {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .viewer__stage {
    padding: 8px 0;
  }

  .viewer__media img,
  .viewer__media video {
    max-height: calc(100vh - 170px);
    max-height: calc(100svh - 170px);
    max-width: 100%;
    border-radius: 4px;
  }

  .viewer__nav {
    top: auto;
    bottom: 62px;
    width: 40px;
    height: 40px;
    transform: none;
    background: rgba(248, 241, 223, 0.08);
  }

  .viewer__nav--prev {
    left: 14px;
  }

  .viewer__nav--next {
    right: 14px;
  }

  .viewer__bottom {
    align-items: flex-end;
    gap: 10px;
    font-size: 8px;
  }

  .viewer__info {
    flex-wrap: wrap;
    gap: 6px;
    max-width: 76%;
  }

  .viewer__kicker {
    font-size: 13px;
  }

  .viewer__actions {
    gap: 5px;
  }

  .icon-button {
    width: 37px;
    height: 37px;
  }

  .icon-button .icon {
    width: 15px;
    height: 15px;
  }

  .viewer__date {
    font-size: 7px;
  }

  .confirm__card {
    padding: 28px 22px;
  }

  .intro__top {
    top: max(18px, env(safe-area-inset-top));
    left: 20px;
    right: 20px;
    gap: 12px;
  }

  .intro__tiny {
    font-size: 7.5px;
    letter-spacing: 0.16em;
  }

  .intro__visit {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .intro__monogram {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .intro__content {
    padding: 4vh 18px 8vh;
  }

  .intro__eyebrow {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .intro__eyebrow span {
    width: 22px;
  }

  .intro__title {
    margin-top: 28px;
    font-size: clamp(2.7rem, 12.8vw, 4rem);
    letter-spacing: 0.02em;
    text-indent: 0.02em;
  }

  .intro__desc {
    max-width: 260px;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.85;
  }

  .intro__enter {
    min-height: 48px;
    margin-top: 30px;
    padding: 0 22px;
    font-size: 11.5px;
  }

  .intro__bottom {
    left: 20px;
    right: 20px;
    bottom: max(19px, calc(env(safe-area-inset-bottom) + 10px));
    font-size: 8px;
  }

  .intro__whisper {
    display: none;
  }

  .intro__skip {
    right: 20px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 5px));
    font-size: 9px;
  }

  .toast-region {
    bottom: max(74px, calc(env(safe-area-inset-bottom) + 66px));
  }

  .toast {
    border-radius: 16px;
    font-size: 10.5px;
    line-height: 1.5;
  }
}

@media (max-width: 370px) {
  .hero__title {
    font-size: 4rem;
  }

  .hero__title-line--accent {
    margin-left: 0.4em;
  }

  .brand__name {
    font-size: 14px;
  }

  .empty-state__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .empty-state__actions .button {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (min-width: 1380px) {
  .gallery-grid {
    column-count: 4;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .intro__title {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .intro__eyebrow,
  .intro__desc,
  .intro__enter,
  .intro__bottom {
    opacity: 1;
    transform: none;
  }

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