/* The Winternitz Family — Israel 2027
   Ground: warm ivory. Ink: midnight navy. Accent: champagne gold (fills on navy; deep gold for text on ivory).
   Type: Erode (display), Public Sans (interface). One radius for panels (4px), round buttons. */

@font-face { font-family: 'Erode'; src: url('/fonts/erode-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Erode'; src: url('/fonts/erode-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Erode'; src: url('/fonts/erode-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Erode'; src: url('/fonts/erode-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/fonts/publicsans-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ground: #f6f1e7;
  --surface: #fbf8f2;
  --step: #eee6d6;
  --line: #e2d8c5;
  --ink: #0f1a2e;
  --ink-soft: #4b5568;
  --navy: #0f1a2e;
  --navy-2: #1a2a47;
  --navy-3: #26385a;
  --on-navy: #f4eddf;
  --on-navy-soft: #b8b2a4;
  --gold: #cdae72;
  --gold-deep: #85652c;
  --gold-pale: #efe2c4;
  --ok: #2f6b4f;
  --ok-pale: #dcebdf;
  --warn: #9a4a24;
  --warn-pale: #f5e1d5;

  --display: 'Erode', 'Iowan Old Style', Georgia, serif;
  --text: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.75rem, 1rem + 6.4vw, 7.25rem);

  --margin: clamp(16px, 3.2vw, 48px);
  --maxw: 1360px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --bar-h: 64px;
  --tab-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 0;
  min-height: 100svh;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--gold-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .navy :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
.lead { font-size: var(--step-lead); line-height: 1.4; font-family: var(--display); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step-small); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--bar-h);
  background: var(--ground); transition: background-color .3s var(--ease-out), color .3s;
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.wordmark { font-family: var(--display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--gold-deep); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.9375rem; color: var(--ink-soft);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--step); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--step); font-weight: 600; }
.topbar.over-hero { background: transparent; color: var(--on-navy); position: fixed; left: 0; right: 0; }
.topbar.over-hero .nav a { color: var(--on-navy); }
.topbar.over-hero .nav a:hover, .topbar.over-hero .nav a[aria-current='page'] { background: rgba(244, 237, 223, .16); }
.topbar.over-hero .wordmark span { color: var(--gold); }
.topbar.scrolled { background: var(--ground); color: var(--ink); }
.topbar.scrolled .nav a { color: var(--ink-soft); }
.topbar.scrolled .nav a[aria-current='page'] { color: var(--ink); background: var(--step); }
.topbar.scrolled .wordmark span { color: var(--gold-deep); }
.menu-btn { display: none; }

/* ---------- bottom tabs (phone) ---------- */
.tabs { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border-radius: 999px; border: 0; background: transparent; font-weight: 600; cursor: pointer;
  }
  .tabs {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); box-shadow: 0 -1px 0 var(--line);
  }
  .tabs a, .tabs button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 0.75rem; text-decoration: none; color: var(--ink-soft); background: none; border: 0; cursor: pointer; min-height: 44px;
  }
  .tabs svg { width: 22px; height: 22px; }
  .tabs [aria-current='page'] { color: var(--ink); font-weight: 600; }
  .tabs [aria-current='page'] svg { color: var(--gold-deep); }
  main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px); }
}

/* ---------- sheet (phone menu) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(15, 26, 46, .45); animation: fade .25s var(--ease-out); }
.sheet-panel {
  position: relative; background: var(--surface); border-radius: 14px 14px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  animation: rise .35s var(--ease-out); box-shadow: 0 -12px 40px rgba(15, 26, 46, .18);
}
.sheet-panel .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet-panel a, .sheet-panel button.link {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-size: 1.125rem; text-decoration: none;
  border: 0; background: none; width: 100%; text-align: left; cursor: pointer; font-family: var(--display);
}
.sheet-panel a + a, .sheet-panel a + button { box-shadow: 0 -1px 0 var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 0; background: var(--navy); color: var(--on-navy); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; cursor: pointer; transition: transform .16s var(--ease-out), background-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { background: var(--navy-3); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #d8bc86; }
.btn.quiet { background: var(--step); color: var(--ink); }
.btn.quiet:hover { background: #e6dcc8; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.ghost:hover { background: rgba(127, 127, 127, .1); }
.btn.danger { background: var(--warn-pale); color: var(--warn); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--gold-deep); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.on-navy .linkbtn, .navy .linkbtn { color: var(--gold); }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent;
  cursor: pointer; color: inherit; transition: background-color .2s, transform .16s var(--ease-out);
}
.iconbtn:hover { background: rgba(127, 127, 127, .14); }
.iconbtn:active { transform: scale(0.94); }
.iconbtn svg { width: 20px; height: 20px; }

label.field { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea, input.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid #d6cab2;
  background: #fffdf8; font-size: 1rem; font-weight: 400; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea, textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(205, 174, 114, .35); }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.form-actions .left { margin-right: auto; }
.error-text { color: var(--warn); font-size: var(--step-small); font-weight: 600; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--step); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; }
.seg button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: 0.875rem;
  color: var(--ink-soft); font-weight: 500; transition: background-color .2s, color .2s;
}
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 26, 46, .08); }
.navy .seg { background: var(--navy-2); }
.navy .seg button { color: var(--on-navy-soft); }
.navy .seg button[aria-pressed='true'] { background: var(--navy-3); color: var(--on-navy); }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--step); color: var(--ink-soft); white-space: nowrap; }
.pill.gold { background: var(--gold-pale); color: var(--gold-deep); }
.pill.ok { background: var(--ok-pale); color: var(--ok); }
.pill.warn { background: var(--warn-pale); color: var(--warn); }

/* ---------- page heads ---------- */
.page { padding-top: clamp(28px, 5vw, 64px); }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: var(--step-head); }
.page-head p { margin-top: 12px; max-width: 60ch; color: var(--ink-soft); }
.section { margin-top: clamp(56px, 9vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }

.panel { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); }
.navy { background: var(--navy); color: var(--on-navy); }
.navy .muted { color: var(--on-navy-soft); }

/* ---------- hero (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--navy); color: var(--on-navy); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 17, 31, .82) 0%, rgba(10, 17, 31, .35) 38%, rgba(10, 17, 31, 0) 60%), linear-gradient(to bottom, rgba(10, 17, 31, .5), rgba(10, 17, 31, 0) 22%); } /* taste-skill-ignore: neutral scrim under text on a photograph */
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(28px, 5vh, 56px); }
.hero-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero h1 { font-size: clamp(2.75rem, 1rem + 5.6vw, 6.5rem); line-height: .95; letter-spacing: -0.03em; max-width: 12.5em; }
.hero .sub { margin-top: 20px; font-family: var(--display); font-size: var(--step-lead); color: #e9dfca; max-width: 44ch; }
.hero.shutter .hero-media { animation: shutter 1.2s var(--ease-in-out) both; }
.hero.shutter .hero-media img { animation: settle 1.6s var(--ease-out) both; }
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

/* the one glass panel: the countdown over the photograph */
.glass {
  background: rgba(15, 26, 46, .42); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(244, 237, 223, .18); border-radius: 10px; /* taste-skill-ignore: the one glass panel Avi asked for, over the hero photo */
}
.countdown { padding: 18px 22px 16px; min-width: 0; }
.countdown .label { font-size: 0.875rem; color: #e2d7c0; margin-bottom: 8px; }
.countdown .units { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 18px; }
.countdown .n { font-family: var(--display); font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; color: #fff8ea; }
.countdown .u { font-size: 0.8125rem; color: #d4c9b2; }
.countdown .tick { display: inline-block; }
.countdown .tick.flip { animation: tick .45s var(--ease-out); }
@keyframes tick { from { transform: translateY(-30%); opacity: 0; } }

@media (max-width: 760px) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-body { position: relative; padding-top: 50svh; }
  .hero-body .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: 11ch; }
  .countdown .units { gap: 2px 14px; }
}

/* ---------- route band with the airplane ---------- */
.route { padding-block: clamp(48px, 7vw, 96px); }
.route-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.route svg.arc { width: 100%; height: auto; overflow: visible; }
.route .city { font-family: var(--display); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1; }
.route .clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.route .clock-time { font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-variant-numeric: tabular-nums; line-height: 1.05; }
.route h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.route .flight-line { margin-top: 18px; color: var(--on-navy-soft); }
.route .flight-line strong { color: var(--on-navy); font-weight: 600; }
.plane-path { fill: none; stroke: rgba(205, 174, 114, .55); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.plane-trail { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.dot-city { fill: var(--gold); }
.dot-ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
.plane { fill: var(--on-navy); }
.arc-label { fill: var(--on-navy-soft); font: 500 13px var(--text); }
.arc-label.big { fill: var(--on-navy); font: 500 20px var(--display); }
@media (max-width: 860px) { .route-grid { grid-template-columns: 1fr; } }

/* ---------- home ---------- */
.welcome-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.welcome-grid .greet { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); }
.welcome-grid .msg { margin-top: 20px; max-width: 46ch; font-size: 1.125rem; }
.family-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 16 / 10; }
.family-strip > * { overflow: hidden; border-radius: var(--radius); background: var(--step); }
.family-strip > :first-child { grid-row: 1 / 3; }
.family-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.family-strip a:hover img { transform: scale(1.04); }
.family-strip.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.family-strip.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.family-strip.n2 > :first-child, .family-strip.n1 > :first-child { grid-row: auto; }
.family-strip.n3 { grid-template-columns: 1.3fr 1fr; }
.family-strip.n4 { grid-template-columns: 1.3fr 1fr 1fr; }
.family-strip.n4 > :nth-child(4) { grid-column: 2 / 4; }
.strip-empty { display: grid; place-items: center; text-align: center; padding: 32px; background: var(--step); border-radius: var(--radius); aspect-ratio: 16 / 10; }
.strip-empty p { max-width: 32ch; margin: 0 auto 16px; }
@media (max-width: 860px) { .welcome-grid { grid-template-columns: 1fr; } }

.glance { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 12px; }
.glance > * { min-width: 0; }
.glance > :first-child { grid-row: 1 / 3; }
.glance > :first-child > .panel { height: 100%; }
.glance > :last-child > .panel { height: 100%; }
@media (max-width: 860px) { .glance { grid-template-columns: 1fr; } .glance > :first-child { grid-row: auto; } }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.card-title h3 { font-size: 1.25rem; }
.card-title a { font-size: 0.875rem; color: var(--ink-soft); }
.navy .card-title a { color: var(--on-navy-soft); }

.big-figure { font-family: var(--display); font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.progress { height: 10px; border-radius: 99px; background: var(--step); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold); border-radius: 99px; transform-origin: left; transition: width .9s var(--ease-out); }
.navy .progress { background: var(--navy-3); }
.list-progress { display: grid; gap: 10px; margin-top: 20px; }
.list-progress .row { display: grid; grid-template-columns: 7.5em 1fr 3.2em; align-items: center; gap: 12px; font-size: 0.875rem; }
.list-progress .row .tnum { text-align: right; color: var(--ink-soft); }
.list-progress .progress { height: 6px; }

.next-task .title { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; margin-top: 4px; }
.next-task .meta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.index { margin-top: 12px; }
.index a {
  display: grid; grid-template-columns: 1fr auto 120px; align-items: center; gap: 24px; padding: 18px 0; text-decoration: none;
  box-shadow: 0 -1px 0 var(--line); transition: padding .3s var(--ease-out);
}
.index a:last-child { box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.index a .name { font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; transition: transform .35s var(--ease-out), color .2s; }
.index a .what { color: var(--ink-soft); font-size: 0.9375rem; text-align: right; }
.index a .thumb { width: 120px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.index a .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.index a:hover .name { transform: translateX(10px); color: var(--gold-deep); }
.index a:hover .thumb img { transform: scale(1.08); }
@media (max-width: 640px) {
  .index a { grid-template-columns: 1fr 88px; gap: 4px 16px; }
  .index a .what { grid-column: 1; grid-row: 2; text-align: left; }
  .index a .thumb { grid-column: 2; grid-row: 1 / 3; width: 88px; }
}

/* ---------- weather ---------- */
.wx-card { position: relative; overflow: hidden; }
.wx-now { display: flex; align-items: center; gap: 18px; }
.wx-now .temp { font-family: var(--display); font-size: clamp(3.25rem, 2.4rem + 3vw, 5rem); line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.wx-now .cond { font-family: var(--display); font-size: 1.375rem; }
.wx-icon { width: 72px; height: 72px; flex: none; }
.wx-icon.sm { width: 32px; height: 32px; }
.wx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px 20px; margin-top: 22px; }
.wx-facts dt { font-size: 0.8125rem; color: var(--on-navy-soft); }
.wx-facts dd { margin: 2px 0 0; font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wx-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 6px; overflow-x: auto; margin-top: 22px; padding-bottom: 4px; scrollbar-width: thin; }
.wx-day { text-align: center; padding: 12px 6px; border-radius: var(--radius); background: var(--navy-2); font-size: 0.875rem; }
.wx-day .d { color: var(--on-navy-soft); }
.wx-day .hi { font-weight: 600; font-variant-numeric: tabular-nums; }
.wx-day .lo { color: var(--on-navy-soft); font-variant-numeric: tabular-nums; }
.wx-day .rain { font-size: 0.75rem; color: #9fc3e6; font-variant-numeric: tabular-nums; }
.wx-day.trip { background: var(--gold); color: var(--navy); }
.wx-day.trip .d, .wx-day.trip .lo { color: #4a3a18; }
.wx-day.trip .rain { color: #1d3d66; }
.wx-day svg { width: 30px; height: 30px; margin: 6px auto; }
.wx-source { margin-top: 16px; font-size: 0.8125rem; color: var(--on-navy-soft); }
.wx-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wx-fx i { position: absolute; top: -20px; width: 1.5px; height: 14px; background: rgba(159, 195, 230, .55); border-radius: 2px; animation: rain linear infinite; }
@keyframes rain { to { transform: translateY(560px); } }
.wx-fx .flake { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .7); animation-name: snow; }
@keyframes snow { to { transform: translate(30px, 560px); } }
.sun-rays { transform-origin: 32px 32px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cloud-drift { animation: drift 7s var(--ease-in-out) infinite alternate; }
@keyframes drift { to { transform: translateX(3px); } }
.drop { animation: dropfall 1.4s linear infinite; }
.drop:nth-of-type(2) { animation-delay: .45s; }
.drop:nth-of-type(3) { animation-delay: .9s; }
@keyframes dropfall { from { transform: translateY(-3px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(6px); opacity: 0; } }

/* ---------- tasks ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.toolbar .grow { flex: 1; }
.add-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 12px; }
.add-task input { min-height: 52px; font-size: 1.0625rem; }
.add-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
@media (max-width: 760px) { .add-more { grid-template-columns: 1fr 1fr; } }

.task-groups { display: grid; gap: 36px; }
.task-group h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.375rem; margin-bottom: 8px; }
.task-group h3 .count { font-family: var(--text); font-size: 0.875rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0; }
.task-group.all-done h3::after { content: 'All done'; font: 600 0.75rem var(--text); color: var(--gold-deep); background: var(--gold-pale); padding: 3px 9px; border-radius: 999px; letter-spacing: 0; animation: pop .5s var(--ease-out); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.tasks { list-style: none; margin: 0; padding: 0; }
.task {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 8px 0;
  box-shadow: 0 1px 0 var(--line); transition: opacity .3s, background-color .6s;
}
.task.flash { background: var(--gold-pale); }
.task .body { cursor: pointer; padding: 4px 0; min-width: 0; }
.task .t { font-size: 1.0625rem; line-height: 1.35; position: relative; display: inline; background-image: linear-gradient(var(--ink-soft), var(--ink-soft)); background-size: 0 1.5px; background-position: 0 58%; background-repeat: no-repeat; transition: background-size .45s var(--ease-out), color .3s; } /* taste-skill-ignore: a flat 1.5px line drawn as a background so the strike-through can animate */
.task.done .t { background-size: 100% 1.5px; color: var(--ink-soft); }
.task .m { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 0.8125rem; color: var(--ink-soft); align-items: center; }
.task .m .overdue { color: var(--warn); font-weight: 600; }
.task .note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 2px; }

.check {
  appearance: none; -webkit-appearance: none; width: 44px; height: 44px; margin: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; position: relative;
}
.check::before {
  content: ''; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b3a688; transition: box-shadow .25s, background-color .25s, transform .2s var(--ease-out);
}
.check:hover::before { box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.check:active::before { transform: scale(.88); }
.check:checked::before { background: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); animation: checkpop .45s var(--ease-out); }
.check::after {
  content: ''; position: absolute; width: 11px; height: 6px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translate(0, -2px) rotate(-45deg) scale(.5); opacity: 0; transition: transform .3s var(--ease-out) .05s, opacity .2s .05s;
}
.check:checked::after { transform: translate(0, -2px) rotate(-45deg) scale(1); opacity: 1; }
@keyframes checkpop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.burst { position: absolute; left: 22px; top: 22px; pointer-events: none; }
.burst i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: burst .6s var(--ease-out) forwards; }
@keyframes burst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }

.who { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; background: var(--step); color: var(--ink); }
.who.avigdor { background: #dde4f0; color: #1d3358; }
.who.mimi { background: var(--gold-pale); color: #6b4f1d; }

.empty { padding: 28px; border-radius: var(--radius); background: var(--step); color: var(--ink-soft); text-align: center; }

/* ---------- dialogs ---------- */
dialog {
  border: 0; padding: 0; border-radius: 12px; background: var(--surface); color: var(--ink); width: min(620px, calc(100vw - 24px));
  max-height: calc(100svh - 40px); box-shadow: 0 24px 80px rgba(15, 26, 46, .35);
}
dialog::backdrop { background: rgba(15, 26, 46, .5); }
dialog[open] { animation: dlg .3s var(--ease-out); }
@keyframes dlg { from { transform: translateY(16px) scale(.98); opacity: 0; } }
dialog form { padding: clamp(20px, 3vw, 32px); }
dialog h2 { font-size: 1.75rem; margin-bottom: 20px; }
@media (max-width: 640px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 14px 14px 0 0; max-height: 92svh; }
  dialog[open] { animation: rise .35s var(--ease-out); }
}

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
@media (max-width: 860px) { .toasts { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); } }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--navy); color: var(--on-navy); font-size: 0.9375rem; box-shadow: 0 10px 30px rgba(15, 26, 46, .3); animation: rise .3s var(--ease-out); }
.toast.error { background: #5b2412; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }

/* ---------- photos ---------- */
.albums { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.albums::-webkit-scrollbar { display: none; }
.albums a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  background: var(--step); font-size: 0.9375rem; transition: background-color .2s;
}
.albums a:hover { background: #e6dcc8; }
.albums a[aria-current='true'] { background: var(--navy); color: var(--on-navy); }
.albums a .c { font-size: 0.8125rem; opacity: .7; font-variant-numeric: tabular-nums; }

.drop-zone {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; margin: 20px 0 32px;
  border-radius: var(--radius); background: var(--surface); outline: 2px dashed transparent; outline-offset: -2px; transition: outline-color .2s, background-color .2s;
}
.drop-zone.over { outline-color: var(--gold-deep); background: var(--gold-pale); }
.drop-zone svg { width: 36px; height: 36px; color: var(--gold-deep); }
.drop-zone .t { font-family: var(--display); font-size: 1.375rem; line-height: 1.2; }
.drop-zone .controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.drop-zone .controls .input { min-height: 44px; width: auto; }
@media (max-width: 760px) { .drop-zone { grid-template-columns: 1fr; } .drop-zone > svg { display: none; } .drop-zone .controls { justify-content: stretch; } .drop-zone .controls > * { flex: 1 1 100%; } }

.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: -12px 0 32px; }
.queue .q { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--step); }
.queue .q img { width: 100%; height: 100%; object-fit: cover; }
.queue .q .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.queue .q .bar span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .2s; }
.queue .q.done .bar span { background: var(--ok); }
.queue .q .err { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; font-size: 0.75rem; text-align: center; background: rgba(91, 36, 18, .86); color: #fff; }

.gallery { columns: 4 260px; column-gap: 10px; }
.gallery .ph { break-inside: avoid; margin: 0 0 10px; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--step); cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; }
.gallery .ph img { width: 100%; height: auto; transition: transform .7s var(--ease-out), opacity .5s; opacity: 0; }
.gallery .ph img.loaded { opacity: 1; }
.gallery .ph:hover img { transform: scale(1.03); }
.gallery .ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; text-align: left; color: #fff; font-size: 0.875rem; background: linear-gradient(to top, rgba(10, 17, 31, .7), transparent); opacity: 0; transition: opacity .3s; } /* taste-skill-ignore: neutral scrim under text on a photograph */
.gallery .ph:hover .cap, .gallery .ph:focus-visible .cap { opacity: 1; }
.gallery .ph .star { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 26, 46, .55); color: var(--gold); }
.gallery .ph .star svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .gallery { columns: 2; column-gap: 6px; } .gallery .ph { margin-bottom: 6px; } .gallery .ph .cap { opacity: 1; font-size: 0.75rem; padding: 20px 8px 6px; } }

.lightbox { position: fixed; inset: 0; z-index: 80; background: #0a111f; color: var(--on-navy); display: grid; grid-template-rows: auto 1fr auto; animation: fade .25s; }
.lightbox .lb-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.lightbox .lb-top .count { margin-right: auto; padding-left: 8px; font-size: 0.875rem; color: var(--on-navy-soft); font-variant-numeric: tabular-nums; }
.lightbox { height: 100svh; }
.lightbox .lb-stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lightbox .lb-stage img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .3s, transform .35s var(--ease-out); }
.lightbox .lb-stage img.leaving { opacity: 0; }
.lightbox .nav-prev, .lightbox .nav-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15, 26, 46, .5); color: #fff; }
.lightbox .nav-prev { left: 12px; } .lightbox .nav-next { right: 12px; }
.lightbox .lb-info { padding: 14px var(--margin) calc(16px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; background: #0f1a2e; }
.lightbox .lb-info .cap { font-family: var(--display); font-size: 1.25rem; }
.lightbox .lb-info .meta { font-size: 0.8125rem; color: var(--on-navy-soft); margin-top: 2px; }
.lightbox .lb-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lightbox .lb-edit { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 10px; }
.lightbox .lb-edit .input { background: var(--navy-2); color: var(--on-navy); border-color: var(--navy-3); }
@media (max-width: 760px) { .lightbox .lb-info { grid-template-columns: 1fr; } .lightbox .lb-actions { justify-content: flex-start; } .lightbox .lb-edit { grid-template-columns: 1fr; } .lightbox .nav-prev, .lightbox .nav-next { display: none; } }

/* ---------- itinerary ---------- */
.days { display: grid; gap: 0; }
.day { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 22px 0; box-shadow: 0 -1px 0 var(--line); }
.day.today { box-shadow: inset 4px 0 0 var(--gold), 0 -1px 0 var(--line); padding-left: 16px; }
.day .dh .dow { font-size: 0.875rem; color: var(--ink-soft); }
.day .dh .dn { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; }
.day .dh .tag { margin-top: 6px; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plan { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); }
.plan .tm { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9375rem; padding-top: 2px; }
.plan .tt { font-weight: 600; }
.plan .ad { font-size: 0.875rem; color: var(--ink-soft); margin-top: 2px; }
.plan .links { display: flex; gap: 14px; margin-top: 6px; font-size: 0.875rem; }
.plan .links a { color: var(--gold-deep); font-weight: 600; }
.plan .nt { font-size: 0.875rem; margin-top: 4px; white-space: pre-wrap; }
.day .add-plan { justify-self: start; margin-top: 6px; }
@media (max-width: 640px) { .day { grid-template-columns: 1fr; gap: 10px; } .plan { grid-template-columns: 56px minmax(0, 1fr) auto; } }

/* ---------- flight ---------- */
.flight-hero { padding-block: clamp(40px, 6vw, 88px); }
.flight-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; margin-top: 32px; }
.flight-board .code { font-family: var(--display); font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem); line-height: .9; letter-spacing: -0.03em; }
.flight-board .right { text-align: right; }
.flight-board .mid { align-self: center; color: var(--gold); }
.flight-board .mid svg { width: clamp(48px, 6vw, 88px); height: auto; }
.flight-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 28px; margin-top: 40px; padding-top: 24px; box-shadow: 0 -1px 0 var(--navy-3); }
.flight-facts dt { font-size: 0.8125rem; color: var(--on-navy-soft); }
.flight-facts dd { margin: 4px 0 0; font-size: 1.125rem; font-weight: 600; }

/* ---------- wedding ---------- */
.photo-head { position: relative; min-height: clamp(380px, 62svh, 640px); display: flex; align-items: flex-end; color: var(--on-navy); background: var(--navy); overflow: hidden; }
.photo-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-head .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 17, 31, .85), rgba(10, 17, 31, .1) 65%); } /* taste-skill-ignore: neutral scrim under text on a photograph */
.photo-head .wrap { position: relative; padding-bottom: clamp(28px, 5vw, 56px); }
.photo-head h1 { font-size: var(--step-head); }
.photo-head p { margin-top: 14px; font-size: 1.125rem; max-width: 52ch; color: #e9dfca; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: 9em 1fr; gap: 14px 20px; margin: 0; }
.facts dt { color: var(--ink-soft); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 600; }
.facts dd.unset { font-weight: 400; color: var(--ink-soft); font-style: italic; font-family: var(--display); }
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; padding: 12px 0; box-shadow: 0 1px 0 var(--line); }
.schedule .tm { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Yiddy ---------- */
.baby-head { background: #f3e6cf; padding-block: clamp(40px, 6vw, 80px); overflow: hidden; }
.baby-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); gap: 32px; align-items: center; }
.baby-head h1 { font-size: var(--step-head); }
.baby-head p { margin-top: 14px; max-width: 46ch; font-size: 1.125rem; }
.baby-art { width: 100%; height: auto; }
.baby-art .float { animation: bob 4s var(--ease-in-out) infinite alternate; }
.baby-art .float.b { animation-delay: -2s; }
@keyframes bob { to { transform: translateY(-8px); } }
@media (max-width: 760px) { .baby-head .wrap { grid-template-columns: 1fr; } .baby-art { max-width: 260px; } }
.baby .check:checked::before { background: #e8c98d; }
.baby .task-group h3 { color: #3a2c12; }

/* ---------- travel day / stages ---------- */
.stage-banner { padding-block: clamp(48px, 7vw, 96px); text-align: left; }
.stage-banner h1 { font-size: var(--step-hero); line-height: .95; }
.memory-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 14vw, 200px); gap: 8px; }
.memory-mosaic a { overflow: hidden; border-radius: var(--radius); }
.memory-mosaic a:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.memory-mosaic a:nth-child(2), .memory-mosaic a:nth-child(3) { grid-column: span 3; }
.memory-mosaic a:nth-child(n+4) { grid-column: span 2; }
.memory-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.memory-mosaic a:hover img { transform: scale(1.04); }

/* ---------- login ---------- */
.login { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); background: var(--ground); }
.login-photo { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); min-height: 340px; }
.login-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: settle 2s var(--ease-out) both; }
.login-photo .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 17, 31, .8), rgba(10, 17, 31, 0) 55%); } /* taste-skill-ignore: neutral scrim under text on a photograph */
.login-photo .cap { position: absolute; left: var(--margin); right: var(--margin); bottom: clamp(24px, 4vw, 48px); }
.login-photo h1 { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem); line-height: .95; max-width: 11ch; }
.login-photo .sub { margin-top: 14px; font-family: var(--display); font-size: var(--step-lead); color: #e9dfca; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 72px); }
.login-form form { width: 100%; max-width: 400px; display: grid; gap: 18px; }
.login-form h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.login-form .days-left { font-family: var(--display); font-size: 1.25rem; color: var(--gold-deep); }
.login-form .seg { width: 100%; }
.login-form .seg button { flex: 1; min-height: 44px; font-size: 1rem; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; grid-template-rows: 46svh auto; } }

/* ---------- footer ---------- */
.foot { margin-top: clamp(80px, 12vw, 160px); background: var(--navy); color: var(--on-navy); }
.foot .wrap { padding-block: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.foot .name { font-family: var(--display); font-size: clamp(2.25rem, 1rem + 4.6vw, 5.5rem); line-height: .95; letter-spacing: -0.03em; }
.foot .credits { font-size: 0.8125rem; color: var(--on-navy-soft); line-height: 1.6; }
.foot .credits a { color: var(--on-navy-soft); }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: 1fr; } .foot { margin-bottom: 0; } }

/* ---------- loading ---------- */
.skeleton { background: var(--step); border-radius: var(--radius); animation: pulse 1.4s var(--ease-in-out) infinite alternate; }
@keyframes pulse { to { opacity: .55; } } }
.boot { min-height: 100svh; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; color: var(--ink-soft); }

/* ---------- entrances ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.view-enter { animation: viewin .45s var(--ease-out); }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .wx-fx { display: none; }
}

/* ---------- all trips + world map ---------- */
.trips-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 56px); }
.trips-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(16px, 3vw, 32px); }
.trips-head h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem); line-height: .98; letter-spacing: -0.03em; max-width: 14em; }
.trips-head .sub { margin-top: 14px; font-family: var(--display); font-size: var(--step-lead); color: #e9dfca; }
.world { position: relative; }
.world-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.world-scroll::-webkit-scrollbar { display: none; }
.world svg { display: block; width: 100%; min-width: 760px; height: auto; }
.skeleton-map { aspect-ratio: 1000 / 460; background: var(--navy-2); border-radius: var(--radius); animation: pulse 1.4s var(--ease-in-out) infinite alternate; }
.land { fill: #22345a; stroke: var(--navy); stroke-width: .6; transition: fill .25s; }
.land.visited { fill: #8c7448; cursor: pointer; }
.land.upcoming { fill: #33466c; stroke: var(--gold); stroke-width: .8; cursor: pointer; }
.land.visited:hover, .land.visited:focus-visible { fill: var(--gold); outline: none; }
.land.upcoming:hover, .land.upcoming:focus-visible { fill: #40557f; outline: none; }
.route { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-out) forwards; animation-delay: calc(var(--i) * 180ms + 300ms); opacity: .85; }
.route.upcoming { stroke-dasharray: .006 .012; stroke-dashoffset: 0; animation: march 30s linear infinite; opacity: .9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes march { to { stroke-dashoffset: -1; } }
.home-pin circle { fill: var(--on-navy); }
.home-pin text, .pin text { fill: var(--on-navy); font: 600 11px var(--text); paint-order: stroke; stroke: var(--navy); stroke-width: 3px; }
.pin { cursor: pointer; }
.pin .hit { fill: transparent; }
.pin .dot { fill: var(--gold); transition: r .2s var(--ease-out); }
.pin .ring { fill: none; stroke: var(--gold); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ring 2.6s var(--ease-out) infinite; }
.pin.upcoming .dot { fill: var(--navy); stroke: var(--gold); stroke-width: 1.6; }
.pin:hover .dot, .pin:focus-visible .dot { r: 5.5; }
.pin:focus-visible { outline: none; }
.pin:focus-visible .hit { stroke: var(--gold); stroke-width: 1.5; }
.map-plane path { fill: var(--on-navy); }
.world-pop { position: absolute; z-index: 5; width: 300px; max-width: calc(100% - 16px); padding: 16px 16px 14px; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); animation: dlg .25s var(--ease-out); }
.world-pop .close { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; font-size: 1.4rem; }
.pop-trip + .pop-trip { margin-top: 14px; padding-top: 14px; box-shadow: 0 -1px 0 var(--line); }
.pop-name { font-family: var(--display); font-size: 1.375rem; line-height: 1.15; padding-right: 28px; }
.pop-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.legend { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; padding: 0; margin: 14px 0 0; font-size: 0.8125rem; color: var(--on-navy-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .k.visited { background: #8c7448; }
.legend .k.upcoming { background: #33466c; box-shadow: inset 0 0 0 1.5px var(--gold); }
.legend .k.home { background: var(--on-navy); border-radius: 50%; }
.trip-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px 24px; margin: 28px 0 0; padding-top: 22px; box-shadow: 0 -1px 0 var(--navy-3); }
.trip-stats dt { font-size: 0.8125rem; color: var(--on-navy-soft); }
.trip-stats dd { margin: 4px 0 0; font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 1000px) { .trip-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trip-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trip-stats > :last-child { grid-column: 1 / -1; } }

.trip-list { display: grid; }
.trip-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 20px 0; text-decoration: none; box-shadow: 0 -1px 0 var(--line); }
.trip-row:last-child { box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.trip-cover { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--navy); display: grid; place-items: center; }
.trip-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.cover-name { font-family: var(--display); color: var(--gold); font-size: 1.5rem; padding: 12px; text-align: center; }
.trip-text { display: grid; gap: 4px; min-width: 0; }
.trip-name { font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.02em; transition: color .2s, transform .35s var(--ease-out); }
.trip-where { color: var(--ink-soft); }
.trip-when { font-size: 0.9375rem; }
.trip-rel { display: grid; gap: 4px; text-align: right; }
.trip-rel .rel { font-family: var(--display); font-size: 1.5rem; color: var(--gold-deep); }
.trip-row:hover .trip-name { color: var(--gold-deep); transform: translateX(8px); }
.trip-row:hover .trip-cover img { transform: scale(1.05); }
.trip-row.big { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
.trip-row.big .trip-cover { aspect-ratio: 16 / 9; }
.trip-row.big .trip-name { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); }
@media (max-width: 760px) {
  .trip-row, .trip-row.big { grid-template-columns: 1fr; gap: 12px; }
  .trip-rel { text-align: left; }
}

.hero-place { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(4rem, 2rem + 12vw, 14rem); color: #1d2d4c; letter-spacing: -0.04em; }
.place-field { position: relative; }
.place-results { display: grid; gap: 4px; margin-top: 6px; }
.place-results button { text-align: left; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--radius); background: var(--step); cursor: pointer; font-weight: 600; color: var(--ink); }
.place-results button span { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--ink-soft); }
.place-results button:hover, .place-results button:focus-visible { background: var(--gold-pale); }
.check-line { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 0.9375rem; cursor: pointer; }
.check-line input { width: 20px; height: 20px; accent-color: var(--navy); }
.trip-switch { font-size: 0.875rem; color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.trip-switch:hover { background: var(--step); color: var(--ink); }
.topbar.over-hero .trip-switch { color: var(--on-navy); }
.topbar.over-hero.scrolled .trip-switch { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .route { stroke-dashoffset: 0; } }
