:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --tertiary: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: #eaf4ff;
  --glass-ink: #0a0a0b;
  --glass-muted: #343437;
  --line: rgba(29, 29, 31, 0.12);
  --line-strong: rgba(29, 29, 31, 0.2);
  --glass: rgba(250, 250, 252, 0.76);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.12);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shell: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
}

body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

#mainContent:focus { outline: none; }

button,
input,
select { font: inherit; }

button { color: inherit; }

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus { transform: none; }

.section-shell {
  width: min(calc(100% - 56px), var(--shell));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.brand-button {
  padding: 0;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand-mark-dynamic { overflow: hidden; }
.brand-mark-dynamic img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.brand-copy { display: grid; gap: 1px; text-align: left; }
.brand-copy strong { color: var(--glass-ink); font-size: 13px; font-weight: 650; letter-spacing: -0.02em; }
.brand-copy small { color: var(--glass-muted); font-size: 9px; letter-spacing: 0.08em; }

.primary-button,
.text-button,
.quiet-button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.primary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 23px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.2);
}

.primary-button:hover { background: var(--blue-hover); transform: translateY(-1px); }
.primary-button:active { transform: scale(0.98); }
.primary-button:disabled { cursor: wait; opacity: 0.55; transform: none; }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}

.text-button:hover { color: var(--blue-hover); }
.text-button:hover span { transform: translateX(2px); }
.text-button span { transition: transform 180ms ease; }

.quiet-button {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.quiet-button:hover { background: rgba(29, 29, 31, 0.1); color: var(--ink); }

/* Login */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  overflow: auto;
  background: var(--page);
}

.login-ambient {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.login-ambient-one {
  top: -22vw;
  left: -10vw;
  width: 56vw;
  height: 56vw;
  background: radial-gradient(circle, rgba(70, 119, 255, 0.52), rgba(70, 119, 255, 0));
}

.login-ambient-two {
  right: 30%;
  bottom: -32vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(191, 88, 255, 0.34), rgba(255, 142, 80, 0.14) 42%, transparent 70%);
}

.login-story,
.login-panel { position: relative; z-index: 1; min-height: 100svh; }

.login-story {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 72% 28%, rgba(92, 132, 255, 0.42), transparent 28%),
    radial-gradient(circle at 24% 80%, rgba(208, 96, 255, 0.25), transparent 32%),
    linear-gradient(145deg, #050506 0%, #16171a 58%, #050506 100%);
  color: #fff;
}

.login-story::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
  content: "";
  transform: translateX(-100%);
  animation: loginSheen 9s ease-in-out infinite;
  pointer-events: none;
}

.brand-on-login { position: relative; z-index: 1; }
.brand-on-login .brand-mark { background: #fff; color: #111; }
.brand-on-login .brand-copy strong { color: #fff; }
.brand-on-login .brand-copy small { color: rgba(255,255,255,0.5); }

.login-story-copy { position: relative; z-index: 1; max-width: 680px; margin-block: auto; padding-block: 70px; }
.login-story-copy .eyebrow { color: rgba(255,255,255,0.48); }
.login-story-copy h1 {
  margin: 0;
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}
.login-story-copy > p:last-child {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.7;
}

.memory-stamps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.memory-stamps::before { display: none; }
.memory-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.memory-stamp i { width: 5px; height: 5px; border-radius: 50%; background: #78a8ff; }

.login-panel {
  display: grid;
  align-content: center;
  padding: clamp(34px, 6vw, 90px);
  background: rgba(245,245,247,0.84);
}

.privacy-pill {
  position: absolute;
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--glass-ink);
  font-size: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.privacy-pill span { color: #34c759; font-size: 7px; }

.login-card {
  width: min(100%, 430px);
  margin-inline: auto;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 32px;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
}

.login-heading { display: flex; align-items: center; gap: 15px; }
.mini-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #101114, #34363d);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.login-heading .eyebrow { margin-bottom: 5px; }
.login-heading h2 { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -0.045em; }
.login-mode-switch {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid rgba(29,29,31,0.06);
  border-radius: 15px;
  background: rgba(29,29,31,0.055);
}
.login-mode-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.login-mode-switch button.active {
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}
.login-mode-switch button:disabled { cursor: default; opacity: 0.58; }
.login-intro { margin: 16px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.field { display: grid; gap: 8px; margin-top: 17px; }
.field label { color: var(--ink); font-size: 12px; font-weight: 600; }
.field label span { color: var(--tertiary); font-size: 10px; font-weight: 400; }
.field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(245,245,247,0.82);
  color: var(--ink);
  padding-inline: 15px;
  font-size: 14px;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field input::placeholder { color: #a1a1a6; }
.field input:focus { border-color: var(--blue); outline: 0; background: #fff; box-shadow: 0 0 0 4px rgba(0,113,227,0.12); }
.field input:disabled { color: #5e5e63; cursor: default; opacity: 0.78; }
.sms-code-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.sms-code-control input { min-width: 0; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.sms-code-control button {
  min-width: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.72);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.sms-code-control button:disabled { color: var(--tertiary); cursor: default; }
.sms-code-hint { min-height: 16px; margin: 1px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sms-code-hint strong { color: var(--ink); font-weight: 650; }
.change-login-identity {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  cursor: pointer;
}
.login-submit { width: 100%; margin-top: 26px; }
.form-error { min-height: 18px; margin: 10px 0 0; color: #d70015; font-size: 11px; text-align: center; }
.privacy-note { margin: 7px 0 0; color: var(--tertiary); font-size: 10px; text-align: center; }

/* App shell */
.app-shell { min-height: 100svh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 54px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
}

.header-inner {
  display: grid;
  width: min(calc(100% - 40px), var(--shell));
  height: 100%;
  align-items: center;
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(118,118,128,0.08);
}

.nav-link {
  min-width: 66px;
  height: 31px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--glass-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.user-menu { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.user-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #a6c8ff, #d9c5ff);
  color: #152b4f;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.user-avatar:hover { transform: scale(1.04); }
.user-avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(0,122,255,.18); }
.user-copy { display: grid; gap: 1px; min-width: 0; }
.user-copy small { color: var(--glass-muted); font-size: 8px; }
.user-copy strong { overflow: hidden; max-width: 100px; color: var(--glass-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.site-header .quiet-button { color: var(--glass-ink); font-weight: 650; }

.user-profile-menu {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  z-index: 90;
  width: min(292px,calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 70px rgba(0,0,0,.18), 0 4px 14px rgba(0,0,0,.07);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}
.user-profile-menu::before { position: absolute; top: -6px; right: 53px; width: 12px; height: 12px; border-top: 1px solid rgba(255,255,255,.54); border-left: 1px solid rgba(255,255,255,.54); background: rgba(255,255,255,.74); content: ""; transform: rotate(45deg); }
.user-profile-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid rgba(29,29,31,.08); }
.profile-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#a6c8ff,#d9c5ff); color: #152b4f; font-size: 12px; font-weight: 700; }
.user-profile-head > div { display: grid; gap: 2px; }
.user-profile-head small { color: var(--glass-muted); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.user-profile-head strong { font-size: 14px; font-weight: 650; }
.user-profile-menu form { display: grid; margin-top: 15px; }
.user-profile-menu label { color: var(--ink); font-size: 10px; font-weight: 600; }
.user-profile-menu input { width: 100%; height: 42px; margin-top: 7px; padding-inline: 12px; border: 1px solid rgba(29,29,31,.11); border-radius: 13px; outline: 0; background: rgba(245,245,247,.82); color: var(--ink); font-size: 12px; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.user-profile-menu input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.user-profile-menu form p { margin: 8px 1px 13px; color: var(--glass-muted); font-size: 8px; line-height: 1.5; }
.profile-save-button { min-height: 39px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; cursor: pointer; font-size: 10px; font-weight: 600; box-shadow: 0 7px 18px rgba(0,113,227,.2); }
.profile-save-button:hover { background: var(--blue-hover); }
.profile-save-button:disabled { cursor: wait; opacity: .58; }

.page { min-height: calc(100svh - 54px); animation: pageIn 420ms cubic-bezier(.22,1,.36,1) both; }

/* Home hero */
.home-hero {
  position: relative;
  display: grid;
  min-height: min(810px, calc(100svh - 76px));
  align-items: center;
  gap: clamp(34px, 5vw, 84px);
  margin-top: 22px;
  padding: clamp(46px, 6vw, 86px);
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 82% 16%, rgba(119,162,255,0.26), transparent 32%),
    radial-gradient(circle at 18% 84%, rgba(202,173,255,0.22), transparent 32%),
    linear-gradient(145deg, #fff 0%, #f7f8fd 48%, #f4f1ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.home-hero::after {
  position: absolute;
  right: -12%;
  bottom: -36%;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(0,113,227,0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(58px, 5.7vw, 82px);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 1.02;
}
.hero-copy h1 .hero-line { white-space: nowrap; }
.hero-copy h1 em {
  display: inline-block;
  background: linear-gradient(90deg, #0878ed 0%, #7758e8 55%, #bd4dc6 100%);
  background-clip: text;
  color: transparent;
  font-style: normal;
  letter-spacing: 0.045em;
}
.hero-copy h1 em::after { display: none; }
.hero-lede { max-width: 550px; margin: 27px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 31px; }
.hero-stats { display: flex; gap: 36px; margin: 46px 0 0; }
.hero-stats div { display: grid; gap: 5px; }
.hero-stats dt { font-size: 19px; font-weight: 650; letter-spacing: -0.03em; }
.hero-stats dd { margin: 0; color: var(--tertiary); font-size: 10px; }

.hero-visual { position: relative; z-index: 2; min-height: 520px; perspective: 1200px; }
.hero-visual::before {
  position: absolute;
  inset: 8% 3% 10% 10%;
  border-radius: 42% 58% 57% 43% / 44% 43% 57% 56%;
  background: linear-gradient(145deg, rgba(124,165,255,0.6), rgba(224,190,255,0.62) 54%, rgba(255,202,178,0.5));
  content: "";
  filter: blur(1px);
}

.collage-card {
  position: absolute;
  overflow: hidden;
  padding: 0;
  border: 7px solid rgba(255,255,255,0.92);
  border-radius: 30px;
  background: #e8e8ed;
  box-shadow: 0 32px 80px rgba(32,38,58,0.22);
  cursor: pointer;
  transition: transform 520ms cubic-bezier(.2,.8,.2,1), box-shadow 520ms ease;
}
.collage-card img { width: 100%; height: 100%; object-fit: cover; }
.collage-card-main { top: 5%; left: 4%; width: 72%; height: 82%; transform: rotate(-4deg) translateZ(0); }
.collage-card-side { right: 0; bottom: 5%; width: 47%; height: 52%; transform: rotate(5deg) translateZ(30px); }
.collage-card-main:hover { transform: rotate(-2deg) translateY(-8px); box-shadow: 0 38px 96px rgba(32,38,58,0.28); }
.collage-card-side:hover { transform: rotate(2deg) translateY(-8px) translateZ(30px); }
.placeholder-card { display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; }
.collage-caption {
  position: absolute;
  right: 5%;
  bottom: 1%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  color: var(--glass-ink);
  font-size: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
.collage-caption i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,0.14); }

.family-note {
  display: grid;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 32px 38px;
  border-radius: 28px;
  background: linear-gradient(120deg, #e9f3ff, #f1eeff 55%, #fff1eb);
  grid-template-columns: auto 1fr auto;
}
.family-note-mark { color: rgba(0,113,227,0.32); font-size: 56px; font-weight: 700; line-height: 0.7; }
.family-note p { margin: 0; color: #3a3a3c; font-size: clamp(14px,1.35vw,17px); line-height: 1.65; }
.family-note p strong { color: var(--ink); }
.family-note-date { color: var(--tertiary); font-size: 10px; white-space: nowrap; }

.content-section { padding-block: clamp(80px, 9vw, 120px) 0; }
.video-section { padding-bottom: clamp(90px, 10vw, 140px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(34px,4vw,54px); font-weight: 650; letter-spacing: -0.055em; }

/* Media cards */
.photo-strip {
  display: grid;
  grid-auto-rows: 220px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.photo-card,
.gallery-card,
.video-card,
.video-card-grid {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), box-shadow 360ms ease;
}
.photo-card:hover,
.gallery-card:hover,
.video-card:hover,
.video-card-grid:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.photo-card { grid-column: span 3; }
.photo-card:first-child { grid-column: span 6; grid-row: span 2; }
.photo-card:nth-child(4), .photo-card:nth-child(5) { grid-column: span 3; }
.photo-card-media { position: relative; width: 100%; height: 100%; overflow: hidden; }
.photo-card-media img,
.gallery-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.8,.2,1); }
.photo-card:hover img,
.gallery-card:hover img { transform: scale(1.035); }
.card-gradient { position: absolute; inset: 34% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.photo-card-copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: grid; gap: 4px; padding: 20px; color: #fff; }
.photo-card-copy strong { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.photo-card:first-child .photo-card-copy strong { font-size: clamp(20px,2.2vw,30px); }
.photo-card-copy span { color: rgba(255,255,255,0.72); font-size: 10px; }

.video-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.video-card-media,
.video-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #e8e8ed; }
.video-card-media img,
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.8,.2,1); }
.video-card:hover img,
.video-card-grid:hover img { transform: scale(1.035); }
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding-left: 3px;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  background: rgba(255,255,255,0.76);
  color: #111;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transition: transform 220ms ease, background 220ms ease;
}
.video-card:hover .play-button,
.video-card-grid:hover .play-button { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.video-card-copy { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px 20px; }
.video-card-copy div,
.video-card-copy > span:first-child { display: grid; gap: 5px; }
.video-card-copy strong { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.video-card-copy span span { color: var(--tertiary); font-size: 10px; }
.video-card-copy > i { color: var(--blue); font-size: 15px; font-style: normal; }

.media-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg,#eaf3ff,#f0eaff); color: rgba(0,113,227,0.3); font-size: 30px; font-weight: 700; }
.collage-card .media-placeholder { font-size: 42px; }
.collage-card img,
.photo-card img,
.gallery-card img,
.video-card img,
.video-card-grid img { position: relative; z-index: 1; display: block; }
.media-failed img { display: none !important; }

.skeleton-card {
  min-height: 220px;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, #e8e8ed 24%, #f6f6f8 38%, #e8e8ed 52%);
  background-size: 220% 100%;
  animation: skeleton 1.6s infinite linear;
}
.photo-strip .skeleton-card { grid-column: span 3; }
.photo-strip .skeleton-card:first-child { grid-column: span 6; grid-row: span 2; }
.skeleton-wide { aspect-ratio: 16 / 9; }

.empty-state { display: grid; min-height: 260px; grid-column: 1 / -1; place-items: center; border-radius: var(--radius-md); background: #fff; text-align: center; }
.empty-state > div { max-width: 360px; padding: 36px; }
.empty-state-mark { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 15px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.empty-state strong { display: block; font-size: 18px; }
.empty-state p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Archive */
.archive-hero {
  display: flex;
  min-height: 390px;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-top: 22px;
  padding: clamp(50px,7vw,86px);
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(135deg,#fff 0%,#f0f6ff 50%,#f2efff 100%);
}
.archive-hero h1 { margin: 0; font-size: clamp(58px,8vw,104px); font-weight: 650; letter-spacing: -0.075em; line-height: 0.92; }
.archive-hero > div > p:last-child { max-width: 530px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.archive-count { display: grid; min-width: 142px; padding: 22px; border: 1px solid rgba(255,255,255,0.9); border-radius: 24px; background: rgba(255,255,255,0.72); box-shadow: var(--shadow-sm); text-align: center; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.archive-count strong { color: var(--glass-ink); font-size: 38px; font-weight: 650; letter-spacing: -0.05em; }
.archive-count span { color: var(--glass-muted); font-size: 10px; font-weight: 550; }

.archive-toolbar {
  position: sticky;
  top: 66px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 28px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 22px;
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.filter-row { min-width: min(390px, 100%); }
.month-filter {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 24px;
}
.month-filter-copy { display: grid; gap: 3px; padding-left: 5px; }
.month-filter-copy small { color: var(--glass-muted); font-size: 9px; font-weight: 550; letter-spacing: 0.06em; }
.month-filter-copy strong { color: var(--glass-ink); font-size: 12px; font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; }
.month-filter-control { position: relative; min-width: 130px; margin-left: auto; }
.month-filter-trigger {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 0 16px;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 999px;
  background: rgba(118,118,128,0.08);
  color: var(--glass-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.month-filter-trigger:hover { background: rgba(118,118,128,0.12); }
.month-filter-trigger:focus-visible { border-color: rgba(0,113,227,0.34); box-shadow: 0 0 0 4px rgba(0,113,227,0.1); outline: 0; }
.month-filter-chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  transform: translateY(-2px) rotate(45deg);
  border-right: 1.5px solid var(--glass-ink);
  border-bottom: 1.5px solid var(--glass-ink);
  pointer-events: none;
  transition: transform 180ms cubic-bezier(.22,1,.36,1);
}
.month-filter-trigger[aria-expanded="true"] .month-filter-chevron { transform: translateY(2px) rotate(225deg); }
.month-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  width: 194px;
  max-height: min(320px,52vh);
  gap: 3px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(255,255,255,0.58),rgba(221,230,247,0.34));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(255,255,255,0.22), 0 22px 58px rgba(35,47,70,0.2);
  -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(1.06);
  backdrop-filter: blur(30px) saturate(190%) brightness(1.06);
  animation: glassMenuIn 190ms cubic-bezier(.22,1,.36,1) both;
}
.month-filter-option {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--glass-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.month-filter-option:hover, .month-filter-option:focus-visible { background: rgba(255,255,255,0.55); color: var(--ink); outline: 0; }
.month-filter-option:active { transform: scale(0.985); }
.month-filter-option i { color: var(--glass-ink); font-size: 12px; font-style: normal; opacity: 0; }
.month-filter-option[aria-selected="true"] { background: rgba(255,255,255,0.66); color: var(--glass-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.66); }
.month-filter-option[aria-selected="true"] i { opacity: 1; }
.toolbar-hint { margin: 0 7px 0 0; color: var(--glass-muted); font-size: 10px; font-weight: 550; white-space: nowrap; }

.photo-waterfall { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gallery-card { display: grid; }
.gallery-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #e8e8ed; }
.gallery-card:nth-child(7n + 1) .gallery-card-media,
.gallery-card:nth-child(7n + 5) .gallery-card-media { aspect-ratio: 4 / 5; }
.gallery-card-copy { display: grid; gap: 5px; padding: 17px 18px 19px; }
.gallery-card-copy strong { overflow: hidden; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.gallery-card-copy span { color: var(--tertiary); font-size: 10px; }
.video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.video-thumb { aspect-ratio: 16 / 9; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 44px 0 80px; }
.page-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; font-size: 11px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.page-button:hover:not(:disabled), .page-button.active { background: var(--ink); color: #fff; }
.page-button:disabled { cursor: not-allowed; opacity: 0.35; }

/* Footer and mobile navigation */
.site-footer { padding: 0 0 30px; }
.footer-inner { display: grid; align-items: center; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--tertiary); grid-template-columns: minmax(0,1fr) auto; }
.footer-inner p { margin: 0; font-size: 10px; }
.footer-signature, .footer-legal { display: grid; gap: 8px; }
.footer-wish { display: flex; align-items: center; gap: 9px; }
.footer-legal { justify-items: end; }
.footer-records { display: flex; align-items: center; justify-content: flex-end; gap: 8px 18px; flex-wrap: wrap; }
.footer-record { display: inline-flex; min-height: 24px; align-items: center; gap: 6px; border-radius: 8px; color: inherit; font-size: 10px; text-decoration: none; transition: color 160ms ease, background 160ms ease; }
.footer-record:hover { color: var(--ink); }
.footer-record:focus-visible { outline: 2px solid rgba(0,113,227,.34); outline-offset: 3px; }
.footer-record-police img { display: block; width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.footer-copyright { text-align: right; }
.footer-copyright strong { color: var(--muted); font-weight: 600; }
.footer-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 9px; font-weight: 700; }
.mobile-nav { display: none; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.78); -webkit-backdrop-filter: blur(24px) saturate(120%); backdrop-filter: blur(24px) saturate(120%); }
.lightbox { display: grid; place-items: center; padding: 36px 90px; }
.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(40,40,42,0.58);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.lightbox-arrow { position: absolute; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; background: rgba(40,40,42,0.58); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.prev-arrow { left: 24px; }
.next-arrow { right: 24px; }
.lightbox-figure { display: grid; max-width: min(1100px, 86vw); max-height: 88vh; margin: 0; gap: 16px; justify-items: center; }
.lightbox-img { display: block; max-width: 100%; max-height: 76vh; border-radius: 20px; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,0.45); }
.lightbox-figure figcaption { display: grid; gap: 4px; color: #fff; text-align: center; }
.lightbox-figure figcaption strong { font-size: 15px; }
.lightbox-figure figcaption span { color: rgba(255,255,255,0.62); font-size: 10px; }
.video-modal { display: grid; place-items: center; padding: 58px 24px; }
.video-modal-card { width: min(980px, 92vw); overflow: hidden; border-radius: 26px; background: #111; box-shadow: 0 40px 120px rgba(0,0,0,0.5); }
.video-modal-card video { display: block; width: 100%; max-height: 74vh; background: #000; }
.video-modal-copy { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; color: #fff; }
.video-modal-copy strong { font-size: 14px; }
.video-modal-copy span { color: rgba(255,255,255,0.56); font-size: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 300; max-width: min(360px,calc(100vw - 48px)); padding: 13px 18px; border-radius: 999px; background: rgba(29,29,31,0.9); color: #fff; font-size: 12px; box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.toast.error { background: rgba(215,0,21,0.92); }

@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes skeleton { to { background-position-x: -220%; } }
@keyframes loginSheen { 0%,72% { transform: translateX(-100%); } 88%,100% { transform: translateX(100%); } }
@keyframes glassMenuIn { from { opacity: 0; transform: translateY(-7px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1040px) {
  .home-hero { grid-template-columns: 1.08fr 0.92fr; padding: 54px; }
  .hero-visual { min-height: 440px; }
  .photo-strip { grid-auto-rows: 190px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .section-shell { width: min(calc(100% - 32px), var(--shell)); }
  .login-screen { position: absolute; grid-template-columns: 1fr; }
  .login-story { min-height: 620px; padding: 34px 26px; }
  .login-story-copy { padding-block: 90px 60px; }
  .login-story-copy h1 { font-size: clamp(50px,12vw,78px); }
  .login-panel { min-height: 760px; padding: 78px 20px 40px; }
  .privacy-pill { top: 24px; right: 20px; }
  .header-inner { width: 100%; padding-inline: 10px; grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .site-header {
    top: max(8px,env(safe-area-inset-top));
    width: min(calc(100% - 32px),420px);
    height: 52px;
    margin-top: max(8px,env(safe-area-inset-top));
    margin-inline: auto;
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 26px;
    background: rgba(255,255,255,0.07);
    box-shadow: 0 14px 38px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    -webkit-backdrop-filter: blur(2px) saturate(120%) brightness(1.02);
    backdrop-filter: blur(2px) saturate(120%) brightness(1.02);
  }
  .home-hero { min-height: 0; grid-template-columns: 1fr; gap: 35px; padding: 48px 34px 32px; border-radius: 32px; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-lede { margin-inline: auto; }
  .hero-copy h1 { font-size: clamp(52px,12vw,78px); line-height: 1.14; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { width: min(100%,560px); min-height: 500px; margin-inline: auto; }
  .family-note { grid-template-columns: auto 1fr; }
  .family-note-date { display: none; }
  .photo-strip { grid-auto-rows: 180px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-card, .photo-card:nth-child(4), .photo-card:nth-child(5) { grid-column: span 1; }
  .photo-card:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .archive-hero { min-height: 340px; padding: 48px 36px; }
  .archive-toolbar {
    border-color: rgba(255,255,255,0.34);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 14px 38px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    -webkit-backdrop-filter: blur(2px) saturate(120%) brightness(1.02);
    backdrop-filter: blur(2px) saturate(120%) brightness(1.02);
  }
  .month-filter-trigger {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    -webkit-backdrop-filter: blur(4px) saturate(125%) brightness(1.03);
    backdrop-filter: blur(4px) saturate(125%) brightness(1.03);
  }
  .month-filter-trigger:hover { background: rgba(255,255,255,0.22); }
  .month-filter-menu {
    border-color: rgba(255,255,255,0.34);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 14px 38px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    -webkit-backdrop-filter: blur(2px) saturate(120%) brightness(1.02);
    backdrop-filter: blur(2px) saturate(120%) brightness(1.02);
  }
  .month-filter-option:hover, .month-filter-option:focus-visible { background: rgba(255,255,255,0.18); }
  .month-filter-option[aria-selected="true"] { background: rgba(255,255,255,0.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
  .photo-waterfall { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toolbar-hint { display: none; }
  .footer-inner { padding-bottom: 84px; }
  .mobile-nav {
    --liquid-x: 13px;
    --liquid-width: calc((100% - 14px) / 3 - 12px);
    --liquid-stretch: 1;
    --nav-selected: #007aff;
    position: fixed;
    right: 16px;
    bottom: max(14px,env(safe-area-inset-bottom));
    left: 16px;
    z-index: 60;
    display: grid;
    isolation: isolate;
    max-width: 420px;
    height: 52px;
    margin-inline: auto;
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 26px;
    background: rgba(255,255,255,0.07);
    box-shadow: 0 14px 38px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    -webkit-backdrop-filter: blur(2px) saturate(120%) brightness(1.02);
    backdrop-filter: blur(2px) saturate(120%) brightness(1.02);
    grid-template-columns: repeat(3,1fr);
    touch-action: pan-y;
  }
  .mobile-nav-liquid {
    position: absolute;
    top: 5px;
    left: 0;
    z-index: 1;
    width: var(--liquid-width);
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 21px;
    background: rgba(255,255,255,0.18);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    -webkit-backdrop-filter: blur(4px) saturate(125%) brightness(1.03);
    backdrop-filter: blur(4px) saturate(125%) brightness(1.03);
    pointer-events: none;
    transform: translate3d(var(--liquid-x),0,0) scaleX(var(--liquid-stretch));
    transform-origin: center;
    transition: transform 420ms cubic-bezier(.22,1,.36,1), width 360ms cubic-bezier(.22,1,.36,1), border-radius 220ms ease, box-shadow 220ms ease, filter 180ms ease;
    will-change: transform;
  }
  .mobile-nav.is-tracking .mobile-nav-liquid { border-radius: 21px; transform: translate3d(var(--liquid-x),0,0) scaleX(var(--liquid-stretch)) scaleY(.96); transition: none; }
  .mobile-nav.is-pressed .mobile-nav-liquid { box-shadow: 0 7px 18px rgba(0,0,0,0.12); filter: brightness(1.02); }
  .mobile-nav.liquid-immediate .mobile-nav-liquid { transition: none; }
  .mobile-nav-item { position: relative; z-index: 2; display: grid; place-items: center; gap: 1px; border: 0; border-radius: 21px; background: transparent; color: var(--glass-ink); cursor: pointer; text-shadow: 0 1px 1px rgba(255,255,255,0.68); transition: color 220ms ease, transform 180ms cubic-bezier(.22,1,.36,1); }
  .mobile-nav-icon { display: block; width: 18px; height: 18px; background: var(--glass-ink); opacity: .94; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; filter: drop-shadow(0 1px 1px rgba(255,255,255,.72)); transition: opacity 220ms ease, transform 280ms cubic-bezier(.22,1,.36,1), filter 220ms ease; }
  .nav-icon-home { width: 17px; height: 17px; -webkit-mask-image: url('/icons/home-fill.svg'); mask-image: url('/icons/home-fill.svg'); }
  .nav-icon-photos { -webkit-mask-image: url('/icons/images-fill.svg'); mask-image: url('/icons/images-fill.svg'); }
  .nav-icon-videos { -webkit-mask-image: url('/icons/play-circle-fill.svg'); mask-image: url('/icons/play-circle-fill.svg'); }
  .mobile-nav-item small { color: var(--glass-ink); font-size: 8px; font-weight: 650; letter-spacing: .02em; transition: color 220ms ease, opacity 220ms ease; }
  .mobile-nav-item:hover .mobile-nav-icon { opacity: 1; }
  .mobile-nav-item:active { transform: translateY(1px) scale(.94); }
  .mobile-nav-item:focus-visible { outline: 2px solid rgba(0,0,0,0.54); outline-offset: -4px; }
  .mobile-nav-item.active { color: var(--nav-selected); }
  .mobile-nav-item.active .mobile-nav-icon { background: var(--nav-selected); opacity: 1; filter: drop-shadow(0 1px 1px rgba(255,255,255,.72)); transform: translateY(-1px) scale(1.05); }
  .mobile-nav-item.active small { color: var(--nav-selected); }
}

@media (max-width: 560px) {
  .section-shell { width: min(calc(100% - 24px), var(--shell)); }
  .brand-copy small, .user-copy { display: none; }
  .site-header { height: 50px; border-radius: 25px; }
  .mobile-nav { height: 50px; padding: 4px 5px; border-radius: 25px; }
  .mobile-nav-liquid { top: 4px; height: 42px; border-radius: 21px; }
  .mobile-nav.is-tracking .mobile-nav-liquid, .mobile-nav-item { border-radius: 21px; }
  .header-inner { width: 100%; padding-inline: 9px; }
  .home-hero { margin-top: 12px; padding: 42px 20px 22px; border-radius: 28px; }
  .hero-copy h1 { font-size: clamp(42px,12vw,58px); line-height: 1.24; }
  .hero-lede { margin-top: 21px; font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 6px; }
  .hero-actions .primary-button { width: 100%; }
  .hero-stats { gap: 18px; margin-top: 32px; }
  .hero-stats dt { font-size: 15px; }
  .hero-visual { min-height: 360px; }
  .collage-card { border-width: 5px; border-radius: 22px; }
  .collage-card-main { width: 76%; height: 78%; }
  .collage-card-side { width: 50%; height: 48%; }
  .collage-caption { right: 0; bottom: 0; }
  .family-note { gap: 13px; margin-top: 12px; padding: 24px 20px; border-radius: 24px; }
  .family-note-mark { font-size: 42px; }
  .content-section { padding-top: 68px; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 34px; }
  .section-heading .eyebrow { display: none; }
  .section-heading .text-button { font-size: 12px; }
  .photo-strip { grid-auto-rows: 170px; gap: 10px; }
  .photo-card:first-child { grid-row: span 2; }
  .photo-card-copy { padding: 14px; }
  .photo-card-copy strong, .photo-card:first-child .photo-card-copy strong { font-size: 14px; }
  .video-strip, .video-grid { grid-template-columns: 1fr; gap: 14px; }
  .archive-hero { min-height: 310px; flex-direction: column; align-items: flex-start; justify-content: flex-end; margin-top: 12px; padding: 36px 24px; border-radius: 28px; }
  .archive-hero h1 { font-size: 62px; }
  .archive-count { align-self: flex-end; min-width: 110px; padding: 14px; border-radius: 18px; }
  .archive-count strong { font-size: 28px; }
  .archive-toolbar { top: 58px; overflow: visible; margin-top: 12px; margin-bottom: 18px; padding: 9px 10px; border-radius: 20px; }
  .filter-row { width: 100%; min-width: 0; }
  .month-filter { width: 100%; gap: 12px; }
  .month-filter-copy { padding-left: 4px; }
  .month-filter-control { min-width: 124px; }
  .month-filter-menu { position: absolute; top: calc(100% + 10px); right: 0; bottom: auto; z-index: 80; width: min(250px,calc(100vw - 32px)); max-height: min(320px,var(--month-menu-space,280px)); }
  .month-filter-menu[data-placement="top"] { top: auto; bottom: calc(100% + 10px); }
  .month-filter-option { min-height: 42px; }
  .photo-waterfall { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .gallery-card { border-radius: 18px; }
  .gallery-card-copy { padding: 12px; }
  .gallery-card-copy strong { font-size: 12px; }
  .gallery-card-copy span { font-size: 9px; }
  .lightbox { padding: 72px 16px 100px; }
  .lightbox-arrow { top: auto; bottom: 24px; transform: none; }
  .prev-arrow { left: calc(50% - 56px); }
  .next-arrow { right: calc(50% - 56px); }
  .lightbox-figure { max-width: 100%; }
  .toast { right: 12px; bottom: 76px; left: 12px; max-width: none; text-align: center; }
  .site-footer { padding-bottom: 16px; }
  .footer-inner { position: relative; width: calc(100% - 24px); align-items: start; justify-items: center; gap: 16px; padding: 30px 14px 80px; border-top: 0; text-align: center; grid-template-columns: 1fr; }
  .footer-inner::before { position: absolute; top: 0; left: 50%; width: 48px; height: 1px; border-radius: 999px; background: rgba(29,29,31,.13); content: ""; transform: translateX(-50%); }
  .footer-signature { justify-items: center; }
  .footer-wish { justify-content: center; }
  .footer-mark { width: 28px; height: 28px; font-size: 10px; }
  .footer-legal { width: min(100%,310px); justify-items: center; gap: 5px; padding: 10px 14px; border: 1px solid rgba(29,29,31,.045); border-radius: 18px; background: rgba(118,118,128,.045); }
  .footer-records { width: 100%; align-items: center; flex-direction: column; justify-content: center; gap: 1px; }
  .footer-record { min-height: 26px; justify-content: center; font-size: 10px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
  .footer-record-police img { width: 17px; height: 17px; }
  .footer-copyright { color: var(--tertiary); font-size: 10px !important; font-weight: 400; line-height: 1.4; text-align: center; }
}

@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; }
}

@media (prefers-contrast: more) and (max-width: 820px) {
  .mobile-nav { border-color: rgba(0,0,0,.28); background: rgba(255,255,255,.78); }
  .mobile-nav-item small, .mobile-nav-icon { opacity: 1; }
  .mobile-nav-liquid { border-color: rgba(0,0,0,.24); background: rgba(255,255,255,.44); }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-width: 820px) {
    .mobile-nav { background: rgba(255,255,255,.82); }
    .mobile-nav-liquid { background: rgba(255,255,255,.48); }
  }
}
