/* Vacuumed Cache — rebuilt from the original Framer site */
:root {
  --black: #000;
  --ink: rgb(35, 31, 32);
  --white: #fff;
  --grey: #858585;
  --card: 228px;
  --font-ui: "Inter", "Inter Placeholder", sans-serif;
  --font-flex: "Roboto Flex", sans-serif;
  --font-mono: "Roboto Mono", monospace;
  --font-serif: "Roboto Serif", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
/* iOS Safari tints unstyled <button> text system-blue — inherit the ink instead */
button { color: inherit; -webkit-tap-highlight-color: transparent; }

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

/* ---------- gradient ball cursor (library / search / statistics) ---------- */
.cursor-ball {
  position: fixed;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(rgba(118, 178, 222, 0.23) 0%, rgb(133, 133, 133) 117%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  left: -100px;
  top: -100px;
  opacity: 0.85;
}

/* icon cursor follower (home) */
.cursor-icon {
  position: fixed;
  width: 63px;
  height: 45px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-30%, -30%);
  left: -100px;
  top: -100px;
}
body.icon-cursor { cursor: none; }
body.icon-cursor a, body.icon-cursor button { cursor: none; }

/* ---------- hamburger menu ---------- */
.menu-btn {
  position: fixed;
  /* icon stays a 28px block at (14,14); 8px padding on every side lifts the
     invisible touch target to 44×44 (WCAG 2.5.5 / Apple HIG), so top/left pull
     back by 8px to keep the icon exactly where it was */
  top: 6px;
  left: 6px;
  z-index: 1001;
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.menu-btn span {
  display: block;
  height: 1.5px;
  width: 26px;
  background: var(--grey);
  transition: transform 0.25s, opacity 0.25s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

.menu-panel {
  position: fixed;
  top: 56px;
  left: 0;
  z-index: 1000;
  padding: 8px 18px;
  display: none;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
}
.menu-panel.open { display: flex; }
.menu-panel a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}
.menu-panel a:hover { opacity: 0.55; }
.menu-panel a.current { color: #b0b0b0; pointer-events: none; }

/* ---------- side nav: brand + right-aligned items against a rule ---------- */
.side-nav {
  position: fixed;
  top: 64px; /* the rule starts level with the first card row */
  left: 52px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
  padding-right: 18px;
  border-right: 1px solid var(--black);
}
.side-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
}
.side-nav .brand {
  align-self: flex-start;
  font-size: 15px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.side-nav a:last-child { margin-top: 26px; }
.side-nav a:hover { opacity: 0.55; }
.side-nav a.current { color: #b0b0b0; pointer-events: none; }

/* desktop: side nav only / mobile: hamburger only */
@media (min-width: 901px) {
  .menu-btn, .menu-panel, .menu-panel.open { display: none; }
}
@media (max-width: 900px) {
  .side-nav { display: none; }
}

/* ---------- HOME (horizontal cover, no nav) ---------- */
.home {
  min-height: 100vh;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 72px;
  display: flex;
  align-items: center;
  text-align: left;
}
.home .kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--grey);
  margin-bottom: 40px;
}
.home-left .icon-row { margin-top: 64px; }
/* all three columns share one vertical centre */
.home-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr 0.7fr;
  column-gap: 90px;
  align-items: center;
}
.home h1 {
  font-family: var(--font-flex);
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.08;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 48px;
  max-width: 420px;
}
.home .tagline {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.4;
  max-width: 380px;
  margin: 0;
}
.home-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 44px;
}
@media (max-width: 1000px) {
  .home { padding: 40px 28px 70px; min-height: 0; display: block; }
  .home-grid {
    grid-template-columns: 1fr;
    row-gap: 64px;
    align-items: start;
    margin-top: 56px;
  }
  .home h1 { margin-bottom: 28px; }
}
.icon-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.icon-row svg { width: 40px; height: 36px; }
/* icon loop animations (values lifted from the original Framer build) */
@keyframes vc-spin { to { transform: rotate(360deg); } }
@keyframes vc-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.8); } }
@keyframes vc-swing { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(30deg); } }
@keyframes vc-flip {
  0%, 15% { transform: rotate(0deg); }
  40%, 65% { transform: rotate(180deg); }
  90%, 100% { transform: rotate(360deg); }
}
.icon-row svg:nth-child(1) { animation: vc-spin 7s linear infinite; }
.icon-row svg:nth-child(2) { animation: vc-pulse 3.5s ease-in-out infinite; }
.icon-row svg:nth-child(3) { animation: vc-swing 5s ease-in-out infinite; transform-origin: 50% 20%; }
.icon-row svg:nth-child(4) { animation: vc-flip 10s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .icon-row svg { animation: none !important; }
}
.home .serif {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 36px;
}
.home .serif:last-child { margin-bottom: 0; }
.start-link {
  display: inline-block;
  font-family: var(--font-flex);
  font-size: 18px;
  padding: 15px 40px;
  border: 1px solid var(--black);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.start-link::after { content: " →"; }
.start-link:hover,
.start-link:focus-visible {
  background: var(--black);
  color: var(--white);
}

.dedication {
  font-size: 11px;
  color: var(--grey);
  text-align: center;
  padding: 80px 0 40px;
}

/* ---------- LIBRARY (fluid grid — cards grow with the window) ---------- */
.library {
  margin: 0 auto;
  padding: 64px 64px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 36px;
  row-gap: 28px;
  position: relative;
}
/* five columns only on genuinely large monitors */
@media (min-width: 1900px) {
  .library { grid-template-columns: repeat(5, 1fr); max-width: 2100px; }
}
@media (max-width: 1180px) {
  .library { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .library {
    padding: 64px 20px 40px;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 18px;
    row-gap: 18px;
  }
}
.card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  position: relative;
  background-color: transparent;
  background-image: var(--grad, none);
  background-size: 100% 100%;
  transition: opacity 0.35s;
}
/* gradient painted on ::before — always faintly visible, full on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--grad, none);
  background-size: 100% 100%;
  opacity: 0.18;
  transition: opacity 0.4s ease;
}
.card { background-image: none; }
.card:hover::before,
.card:focus-visible::before { opacity: 1; }
.card:focus-visible { outline: 1.5px solid var(--black); outline-offset: 3px; }
/* request number = "this one opens" affordance */
.card .card-num {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--grey);
  z-index: 1;
}
.card .memory-text,
.card .memory-name {
  font-size: 14px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}
/* long texts must not overflow the box — clamp so flex centring stays true */
.card .memory-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
  overflow: hidden;
}
.card .memory-name {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgb(51, 51, 51);
  opacity: 0;
  padding: 20px;
}
.card .memory-name .who { font-size: 11px; opacity: 0.75; }
.card:hover .memory-text,
.card:focus-visible .memory-text { opacity: 0; }
.card:hover .memory-name,
.card:focus-visible .memory-name { opacity: 1; }
.card.cta .memory-text { font-weight: 700; }
.card.cta:hover .memory-text { opacity: 1; }
/* touch devices have no hover — the name signs the card instead, in the same
   mono caption voice as the request number above it (and "— name" in search) */
@media (max-width: 900px), (pointer: coarse) {
  .card .memory-name {
    display: block;
    inset: auto 12px 10px;
    opacity: 1;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--grey) !important; /* beats the per-card inline colour meant for the hover overlay */
  }
  /* keep the memory text visible — there is no hover swap to reveal it again */
  .card:hover .memory-text,
  .card:focus-visible .memory-text { opacity: 1; }
  .card { padding: 24px 14px 30px; }
}

.lib-arrow {
  position: fixed;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  z-index: 500;
}
.lib-arrow svg { width: 30px; height: 30px; }

/* ---------- MEMORY DETAIL ---------- */
.memory-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 130px 64px 80px;
  text-align: left;
}
.mem-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  column-gap: 90px;
  align-items: start;
  min-height: 420px;
}
/* right column starts level with the title, not the REQUEST # line:
   req = 12px × 1.4 line-height + 24px margin ≈ 41px */
.mem-right { padding-top: 41px; }
.mem-left h1 { margin-bottom: 18px; }
.mem-left .for { margin-bottom: 44px; }
.mark-row {
  display: flex;
  align-items: center;
  gap: 26px;
}
.memory-hero {
  width: 84px;
  height: 84px;
  flex: none; /* never let flex squeeze the colour block */
  border: 1px solid var(--black);
}
.memory-icon { flex: none; }
.music-note { flex: none; }
.memory-icon svg { width: auto; height: 62px; display: block; }
/* hovering the marks lets the memory "breathe" and the icon play its loop.
   the .anim-on class is managed in JS so the stop can ease back instead of snapping */
@keyframes vc-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.memory-icon.anim-2 svg { transform-origin: 50% 20%; }
.mark-row.anim-on .memory-hero { animation: vc-breathe 3s ease-in-out infinite; }
.mark-row.anim-on .memory-icon.anim-0 svg { animation: vc-spin 7s linear infinite; }
.mark-row.anim-on .memory-icon.anim-1 svg { animation: vc-pulse 3.5s ease-in-out infinite; }
.mark-row.anim-on .memory-icon.anim-2 svg { animation: vc-swing 5s ease-in-out infinite; }
.mark-row.anim-on .memory-icon.anim-3 svg { animation: vc-flip 10s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .mark-row.anim-on .memory-hero,
  .mark-row.anim-on .memory-icon svg { animation: none !important; }
}
/* memories that carry a sound */
.mark-row.has-music { cursor: pointer; }
.music-note {
  font-size: 14px;
  color: var(--grey);
  transition: color 0.3s;
}
.mark-row.playing .music-note { color: var(--black); }
/* the composer's name appears under the marks while the memory sounds */
.music-credit {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mark-row:hover + .music-credit,
.mark-row.playing + .music-credit { opacity: 1; }
.music-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -10px;
  bottom: -10px;
  border: 0;
  opacity: 0.01;
  pointer-events: none;
}
.mem-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 90px 0 28px;
}
@media (max-width: 900px) {
  .memory-page {
    max-width: 600px;
    /* extra bottom padding so content clears the fixed prev/next bar */
    padding: 110px 24px 84px;
  }
  .mem-grid {
    grid-template-columns: 1fr;
    row-gap: 44px;
    min-height: 0;
  }
  .mem-right { padding-top: 0; }
  .mem-actions { margin-top: 56px; flex-wrap: wrap; gap: 14px; }
  /* prev/next becomes a bar pinned to the bottom of the viewport */
  .mem-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 13px 24px;
    padding-bottom: calc(13px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--black);
  }
  .mem-nav a {
    position: static;
    transform: none;
    background: none;
    padding: 4px 2px;
  }
}
.back-link {
  position: fixed;
  top: 24px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  z-index: 1001;
}
.back-link svg { width: 24px; height: 17px; display: block; }
.back-link:hover { opacity: 0.55; }
.mem-nav a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--black);
}
.mem-nav a:hover { opacity: 0.55; }
/* desktop: prev/next float at the vertical centre, one on each side.
   scoped to desktop so the mobile bottom-bar rules can't be overridden by source order */
@media (min-width: 901px) {
  .mem-nav a {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 800;
    background: var(--white);
    padding: 6px 4px;
  }
  .mem-nav .prev { left: 70px; } /* clear of the vertical side nav column */
  .mem-nav .next { right: 26px; }
}
.memory-page .req {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 24px;
}
.memory-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 22px;
  text-wrap: balance;
}
.memory-page .for {
  font-size: 16px;
  font-weight: 500;
  color: #4a4a4a;
  margin-bottom: 52px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  color: #333;
  transition: opacity 0.2s;
}
.share-btn .share-label {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.share-btn:hover .share-label { border-color: var(--black); }
.share-ic {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.share-ic svg { width: 14px; height: 14px; display: block; }
.share-ic svg path { stroke: #333; }
.mem-detail {
  max-width: 520px;
  margin-bottom: 72px;
  text-align: left;
}
.mem-detail .q {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--grey);
  margin: 36px 0 8px;
}
.mem-detail .q:first-child { margin-top: 0; }
/* bilingual blocks: EN and KR occupy the same cell — no layout shift on hover */
.has-kr { display: grid; cursor: help; }
.has-kr .t-en,
.has-kr .t-kr {
  grid-area: 1 / 1;
  transition: opacity 0.3s ease;
}
.has-kr .t-kr {
  opacity: 0;
  font-style: normal; /* Hangul has no true italic — keep it upright */
}
.has-kr:hover .t-en,
.has-kr.revealed .t-en { opacity: 0; }
.has-kr:hover .t-kr,
.has-kr.revealed .t-kr { opacity: 1; }
.mem-detail .a {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
}
.mem-comments {
  padding-top: 44px;
  border-top: 1px solid var(--black);
  margin-bottom: 40px;
}
.mem-comments > *, #comment-form { max-width: 540px; }
.comments-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
}
#comment-list { margin-bottom: 44px; }
.comment-empty {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  color: var(--grey);
  padding: 8px 0;
}
.comment {
  padding: 18px 0;
  border-bottom: 1px solid #e6e6e6;
}
.comment:first-child { border-top: 1px solid #e6e6e6; }
.comment-body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
}
.comment-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey);
  margin-top: 6px;
}
.comment-actions { margin-top: 8px; display: flex; gap: 14px; }
.comment-actions button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey);
  border-bottom: 1px solid transparent;
}
.comment-actions button:hover { color: var(--black); border-color: var(--black); }
.comments-sub {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  color: #4a4a4a;
  margin-bottom: 18px;
}
#comment-form textarea {
  width: 100%;
  border: 1px solid var(--black);
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  resize: vertical;
  outline: none;
  background: none;
  color: var(--black);
}
#comment-form textarea:focus { box-shadow: 2px 2px 0 var(--black); }
.comment-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
#comment-country {
  display: block;
  width: 220px;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--grey);
  /* strip the native OS dropdown chrome; draw our own thin caret instead */
  -webkit-appearance: none;
  appearance: none;
  background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.6 3.4 5 6.8l3.4-3.4' fill='none' stroke='%23858585' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  padding: 4px 20px 4px 2px;
  margin-bottom: 16px;
  outline: none;
  cursor: pointer;
}
#comment-country:focus { border-bottom-color: var(--black); }
.comment-send {
  background: none;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 7px 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.comment-send:hover { background: var(--black); color: var(--white); }
.add-note {
  display: inline-block;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.add-note:hover { border-color: var(--black); }

/* ---------- password gate ---------- */
.lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lock-box {
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--black);
  padding: 44px 36px 36px;
  text-align: center;
}
.lock-grad {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border: 1px solid var(--black);
  background-size: 100% 100% !important;
}
.lock-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}
.lock-text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.lock-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--black);
  outline: none;
  padding: 6px 2px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.3em;
  text-align: center;
  background: none;
  color: var(--black);
}
.lock-error {
  font-size: 12px;
  color: #b3261e;
  min-height: 18px;
  margin: 10px 0 18px;
}
.lock-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lock-back {
  font-size: 13px;
  color: var(--grey);
}
.lock-back:hover { color: var(--black); }
.lock-open {
  background: none;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 7px 22px;
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lock-open:hover { background: var(--black); color: var(--white); }

/* ---------- SEARCH ---------- */
.search-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 78px 20px 0;
  text-align: center;
}
.search-page .icon-row { justify-content: center; }
.search-page .icon-row svg { width: 46px; height: 42px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--black);
  padding: 10px 2px;
  margin-top: 8px;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--black);
}
.search-box input::placeholder { color: var(--grey); }
.search-box svg { width: 18px; height: 18px; flex: none; }
.search-results {
  margin-top: 8px;
  display: none;
  text-align: left;
}
.search-results.show { display: block; }
.search-results .empty {
  color: var(--grey);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  padding: 18px 2px;
}
.search-results a {
  display: block;
  font-size: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid #e6e6e6;
}
.search-results a:hover { padding-left: 8px; transition: padding 0.15s; }
.search-results .who {
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: 8px;
}

/* search overlay (opened from the nav) */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow-y: auto;
  padding: 120px 24px 60px;
}
.search-overlay-inner {
  max-width: 560px;
  margin: 0 auto;
}
.search-overlay-close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
}
.search-overlay-close:hover { color: var(--black); }

/* ---------- STATISTICS (numbers left, video right) ---------- */
.stats-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 90px 64px 100px 100px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  column-gap: 100px;
  align-items: start;
}
.stats-left { text-align: left; }
.stats-right { text-align: left; }
@media (max-width: 1000px) {
  .stats-page { padding: 80px 24px; }
  .stats-grid { grid-template-columns: 1fr; row-gap: 70px; }
}
.stats-page .soon {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}
.stats-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
}
.stats-page .big {
  font-family: var(--font-ui);
  font-size: clamp(100px, 16vw, 194px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stats-page .sub {
  font-size: 20px;
  margin: 24px 0 44px;
}
.stat-row {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.stat-row .stat {
  border: 1px solid var(--black);
  padding: 12px 22px;
  font-size: 13px;
  color: var(--grey);
}
.stat-row .stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}
.stat-btn { cursor: pointer; background: none; font-family: var(--font-ui); }
.stat-btn:hover { background: #f4f4f2; }
.stat-graph {
  max-width: 480px;
  margin: 0 0 44px;
  text-align: left;
}
.mood-icons {
  display: flex;
  gap: 30px;
  margin-bottom: 44px;
}
.mood-icons button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mood-icons svg { width: 42px; height: 38px; }
.mood-icons .mood-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.mood-icons button:hover .mood-label { color: var(--black); }
.shape-icons {
  display: flex;
  gap: 30px;
  margin-bottom: 44px;
}
.shape-icons button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.shape-swatch {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--black);
}
.shape-icons .mood-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.shape-icons button:hover .mood-label { color: var(--black); }
.bar-line {
  display: grid;
  grid-template-columns: 110px 1fr 30px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track { display: block; }
.bar {
  display: block;
  height: 12px;
  background: var(--black);
  min-width: 2px;
}
.bar-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* creator credit — quiet mono line, sits under the whole Information page */
.stats-credit {
  margin-top: 80px;
  padding-top: 26px;
  border-top: 1px solid #e6e6e6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.stats-credit a {
  color: var(--black);
  border-bottom: 1px solid var(--grey);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.stats-credit a:hover { border-color: var(--black); }
.transcript-wrap { max-width: 640px; margin: 0; text-align: left; }
.transcript-wrap summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 24px;
}
.transcript-wrap summary:hover { color: var(--black); }
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 0 44px;
  aspect-ratio: 16 / 9;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stats-page .transcript {
  text-align: left;
  max-width: 660px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.45;
  color: #1a1a1a;
}
.stats-page .transcript p { margin-bottom: 22px; }

/* ---------- mobile ---------- */
@media (max-width: 620px) {
  .library { padding-top: 70px; }
  .card { padding: 22px 10px 26px; }
  .card .memory-text { font-size: 12px; -webkit-line-clamp: 7; }
  .home h1 { margin: 60px auto 80px; }
  /* search: even side breathing room */
  .search-page { padding: 70px 24px 0; }
  .search-page .icon-row svg { width: 40px; height: 36px; }
}

/* iOS Safari zooms the viewport when a focused field is under 16px and never
   zooms back out — keep every typeable control at 16px on touch layouts */
@media (max-width: 900px) {
  .search-box input,
  .s-input, .s-select, .s-area,
  #comment-form textarea, #comment-country,
  .lock-input {
    font-size: 16px;
  }
}

/* ---------- content clears the fixed nav block (kept last so it wins) ----------
   the offset is added ON TOP of each page's own max-width so columns keep
   their intended proportions */
@media (min-width: 901px) {
  .library { padding-left: 330px; }
  .stats-page { padding-left: 330px; max-width: 1690px; }
  .memory-page { padding-left: 330px; padding-right: 72px; max-width: 1470px; }
  .search-page { margin-left: 330px; }
}

/* ---------- SUBMIT (our own survey) ---------- */
.submit-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 24px 90px;
  text-align: left;
}
.submit-page .req {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
/* the submit page speaks in the site's own voice — serif, but upright
   (italic is reserved for quoting the respondents) */
.submit-page h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 16px;
}
.s-lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  color: #4a4a4a;
  margin-bottom: 56px;
  max-width: 52ch;
}
.s-field { margin-bottom: 40px; }
.s-field .q {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}
.s-help {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 10px;
}
.s-input, .s-select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--black);
  background: none;
  outline: none;
  padding: 8px 2px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--black);
}
.s-select {
  cursor: pointer;
  border-radius: 0;
  /* same custom caret as the comment country select — no native OS dropdown chrome */
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.6 3.4 5 6.8l3.4-3.4' fill='none' stroke='%23231f20' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 10px;
  padding-right: 22px;
}
.s-input::placeholder { color: #b0b0b0; }
.s-area {
  width: 100%;
  border: 1px solid var(--black);
  background: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  resize: vertical;
  color: var(--black);
}
.s-area:focus, .s-input:focus { box-shadow: 2px 2px 0 var(--black); }
.s-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.s-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.s-chip .shape-swatch { width: 18px; height: 18px; }
.s-chip-icon svg { width: 26px; height: 23px; display: block; }
.s-chip:hover { background: #f4f4f2; }
.s-chip.selected { background: var(--black); color: var(--white); }
.s-chip.selected .shape-swatch { border-color: var(--white); }
.s-chip.selected svg * { stroke: #fff; }
.s-chip.selected svg [fill="rgb(35,31,32)"] { fill: #fff; }
.s-error {
  font-size: 12px;
  color: #b3261e;
  min-height: 16px;
  margin-top: 6px;
}
.s-field.s-invalid .s-input,
.s-field.s-invalid .s-select { border-bottom-color: #b3261e; }
.s-field.s-invalid .s-area,
.s-field.s-invalid .s-chips .s-chip { border-color: #b3261e; }
.s-field.s-invalid .s-consent { color: #b3261e; }
.s-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  cursor: pointer;
}
.s-consent input { margin-top: 4px; accent-color: #000; }
.s-send { font-size: 14px; padding: 10px 34px; }
/* sealed screen: video left, words right, top level with the nav's first line */
.submit-page.sealed { max-width: 1160px; }
.s-thanks {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  column-gap: 80px;
  align-items: start;
  margin-top: -36px; /* submit page pads 100px; nav rule starts at 64px */
}
.s-thanks .add-note { margin-top: 30px; display: inline-block; }
@media (max-width: 900px) {
  .s-thanks { grid-template-columns: 1fr; row-gap: 40px; margin-top: 0; }
}
.lang-toggle {
  margin-top: 70px;
  display: flex;
  gap: 18px;
  justify-content: center;
}
.lang-toggle button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  border-bottom: 1px solid transparent;
}
.lang-toggle button:hover { color: var(--black); }
.lang-toggle button.current { color: var(--black); border-color: var(--black); }
@media (min-width: 901px) {
  .submit-page { margin-left: 380px; }
}

/* sealed-confirmation video */
.s-video {
  display: block;
  width: 100%;
}
