/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --paper: #F6F3EC;
  --paper-2: #ECE7DC;
  --paper-3: #E3DDCF;
  --ink: #222221;
  --ink-2: rgba(34, 33, 33, 0.62);
  --ink-3: rgba(34, 33, 33, 0.42);
  --red: #D12D35;
  --red-deep: #B4252C;
  --wine: #8E2F4C;
  --on-photo: #FFF8EE;
  --on-photo-2: rgba(255, 248, 238, 0.78);

  --display: "Albertus", "Albertus MT", "Trajan Pro", Georgia, serif;
  --text: "Lato", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 12.5px;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-l: 20px;
  --track: -0.035em;

  --r-card: 28px;
  --r-tile: 20px;
  --r-pill: 999px;
  --r-sheet: 32px;

  --col: 600px;
  --gutter: 20px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --shadow-card: 0 20px 40px -24px rgba(34, 33, 33, 0.45), 0 2px 6px -2px rgba(34, 33, 33, 0.08);
  --shadow-sheet: 0 -8px 24px -8px rgba(34, 33, 33, 0.25), 0 -24px 60px -12px rgba(34, 33, 33, 0.18);
  --glass-bg: linear-gradient(180deg, rgba(255, 253, 248, 0.62), rgba(255, 253, 248, 0.34));
  --glass-ring: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0.7));
  --glass-dark-bg: linear-gradient(180deg, rgba(38, 32, 28, 0.42), rgba(38, 32, 28, 0.3));
  --glass-dark-ring: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.45));
  --glass-dark-line: rgba(255, 255, 255, 0.22);

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

@font-face {
  font-family: "Albertus";
  src: url("fonts/albertus-light.woff2") format("woff2");
  font-weight: 300 400;
  font-display: swap;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  color-scheme: light;
}
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--fs-m);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.display {
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: var(--track);
  line-height: 0.94;
}

/* ───────────────────────── Shell ───────────────────────── */
.app {
  height: 100dvh;
  max-width: var(--col);
  margin: 0 auto;
  position: relative;
}
.views { position: absolute; inset: 0; }
.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter) calc(var(--tabbar-h) + 40px + var(--safe-b));
  visibility: hidden;
  pointer-events: none;
}
.view.is-active { visibility: visible; pointer-events: auto; }
.app.has-sheet .view { overflow: hidden; }

/* Floating glass tab bar */
.tabbar {
  position: fixed;
  left: 50%;
  translate: -50% 0;
  width: min(100% - 28px, var(--col) - 28px);
  bottom: calc(12px + var(--safe-b));
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  gap: 2px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(36px) saturate(1.9) brightness(1.04);
  backdrop-filter: blur(36px) saturate(1.9) brightness(1.04);
  box-shadow:
    inset 0 -1px 1px rgba(34, 33, 33, 0.06),
    0 24px 48px -20px rgba(34, 33, 33, 0.5),
    0 2px 6px -2px rgba(34, 33, 33, 0.1);
  z-index: 10;
}
.pill-glass, .btn-glass, .label-meet { position: relative; }
.tabbar::before, .pill-glass::before, .btn-glass::before, .label-meet::before, .sheet-close::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.pill-glass::before, .btn-glass::before, .label-meet::before, .sheet-close::before { background: var(--glass-dark-ring); }
.pill-glass > *, .btn-glass > *, .label-meet > *, .sheet-close > * { position: relative; z-index: 1; }
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11.5px;
  line-height: 1;
  color: var(--ink-3);
  border-radius: var(--r-pill);
  transition: color 150ms ease-out, background-color 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.tab svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tab .tab-fill { fill: currentColor; stroke: none; opacity: 0; transition: opacity 150ms ease-out; }
.tab.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  box-shadow: 0 6px 14px -8px rgba(34, 33, 33, 0.35), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(34, 33, 33, 0.04);
}
.tab { z-index: 1; }
.tab.is-active .tab-fill { opacity: 1; }
.tab:active { scale: 0.96; transition-duration: 100ms; }

/* ───────────────────────── Page chrome ───────────────────────── */
.masthead { padding: 22px 0 0; }
.masthead svg { width: 100%; height: auto; fill: var(--ink); display: block; }
.masthead-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(34, 33, 33, 0.22);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 6px;
  min-height: 56px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand svg { height: 15px; width: auto; fill: var(--ink); position: relative; top: 1px; }
.brand-dates, .page-head-meta { font-size: var(--fs-s); color: var(--ink-2); font-style: italic; white-space: nowrap; }
.page-title { font-size: 34px; }

.date-line {
  margin-top: 30px;
  font-size: var(--fs-s);
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.day-title { font-size: clamp(48px, 14.6vw, 88px); margin-top: 8px; letter-spacing: -0.045em; line-height: 0.9; }
/* Day header: vertical date along a rule, title on the right */
.day-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 30px;
}
.day-side { display: flex; align-items: center; padding-right: 16px; border-right: 1.5px solid var(--ink); }
.day-side-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  line-height: 1;
}
.ds-date { font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 6.4vw, 30px); letter-spacing: -0.01em; line-height: 1.02; }
.ds-day { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; color: var(--ink); align-self: flex-end; }
.day-title { font-size: clamp(40px, 12.4vw, 76px); letter-spacing: -0.045em; line-height: 0.9; align-self: center; }
/* Day header: "DAY TWO" with a calendar tile on the same line */
.day-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}
.dk-day { font-size: clamp(36px, 10.6vw, 48px); letter-spacing: -0.03em; line-height: 1; }
.cal {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: 50px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 6px 14px -8px rgba(34, 33, 33, 0.35), 0 0 0 1px rgba(34, 33, 33, 0.08);
  text-align: center;
  flex: none;
}
.cal-wd { background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1; padding: 5px 0 4px; }
.cal-n { font-family: var(--display); font-size: 24px; line-height: 1; padding: 6px 0 5px; color: var(--ink); letter-spacing: -0.02em; }
.day-title { font-size: clamp(48px, 14.6vw, 88px); margin-top: 8px; letter-spacing: -0.045em; line-height: 0.9; }
/* Day header: "Day two · Monday, October 12" */
.day-intro { margin-top: 14px; font-size: var(--fs-m); line-height: 1.55; max-width: 34em; color: var(--ink-2); }

.section-title {
  font-family: var(--text);
  font-style: normal;
  font-weight: 400;
  font-size: var(--fs-s);
  color: var(--ink-2);
  margin: 30px 0 10px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  font-size: var(--fs-s);
  transition: background-color 150ms ease-out, scale 150ms ease-out;
}
.text-link:active { scale: 0.96; }

/* ───────────────────────── Buttons & pills ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: var(--fs-s);
  line-height: 1;
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { scale: 0.96; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(209, 45, 53, 0.7); }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { background: var(--paper-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-3); }
.btn-glass {
  color: var(--on-photo);
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.1);
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.1);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5);
}
.btn-glass:hover { background: linear-gradient(180deg, rgba(38, 32, 28, 0.52), rgba(38, 32, 28, 0.4)); }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pill-glass {
  color: var(--on-photo);
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.6) brightness(1.1);
  backdrop-filter: blur(20px) saturate(1.6) brightness(1.1);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pill-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.5); }
.pill-soft { background: var(--paper-2); color: var(--ink-2); font-style: italic; }
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ───────────────────────── Plates & photo cards ───────────────────────── */
.plate {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: var(--r-card);
}
.plate-mark {
  font-family: var(--display);
  font-size: 34cqi;
  line-height: 1;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  opacity: 0.92;
}
.plate-mark.is-word { font-family: var(--text); font-style: italic; font-size: 18cqi; text-transform: none; letter-spacing: 0; }
.plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.photo-card, .sheet-panel { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.sheet-body { -webkit-user-select: text; user-select: text; }
.tone-paper { background: linear-gradient(160deg, #EFE9DC, #D9D1BF); color: var(--ink); }
.tone-ink { background: linear-gradient(160deg, #3A3633, #1C1A18); color: var(--paper); }
.tone-red { background: linear-gradient(160deg, #DD4A50, #B4252C); color: var(--paper); }
.tone-wine { background: linear-gradient(160deg, #A2415F, #6F2239); color: var(--paper); }

/* A photo card: the plate fills the card, text sits on a gradient at the bottom. */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
  color: var(--on-photo);
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.photo-card > .plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  z-index: 0;
  place-items: start center;
  padding-top: 14%;
}
.photo-card > .plate .plate-mark { font-size: 26cqi; }
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.34) 0%, rgba(20, 16, 12, 0) 32%, rgba(20, 16, 12, 0.22) 52%, rgba(20, 16, 12, 0.88) 100%);
}
.photo-card > *:not(.plate) { z-index: 2; }
.photo-card > .pill, .photo-card > .seal, .label-kicker, .label-time { position: absolute !important; }
.photo-card .card-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.photo-card .card-text { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.photo-card .card-title { font-size: 32px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.photo-card .card-sub { font-size: var(--fs-s); margin-top: 6px; color: var(--on-photo); opacity: 0.92; line-height: 1.35; }
.photo-card .card-place { font-size: var(--fs-s); font-style: italic; color: var(--on-photo-2); margin-top: 2px; }

/* ───────────────────────── The hero card (Today) ───────────────────────── */
.label {
  margin-top: 22px;
  aspect-ratio: 4 / 5;
  width: 100%;
  cursor: pointer;
  transition: scale 200ms var(--ease-out);
  display: block;
}
.label:active { scale: 0.985; }
.label .card-text { bottom: 16px; }
.label-kicker { position: absolute; top: 16px; left: 16px; }
.label-time { position: absolute; top: 16px; right: 16px; }
.label-title { font-size: clamp(38px, 11.4vw, 60px); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); letter-spacing: -0.04em; }
.label-sub { margin-top: 8px; font-size: var(--fs-m); }
.label-place { font-style: italic; color: var(--on-photo-2); font-size: var(--fs-s); margin-top: 2px; }
.label-meet {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-tile);
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.1);
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.1);
  font-size: var(--fs-s);
  line-height: 1.4;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.label-meet span { font-style: italic; color: var(--on-photo-2); white-space: nowrap; }
.label-meet .pin-ico { width: 16px; height: 16px; flex: none; stroke: var(--on-photo); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; position: relative; top: 2px; margin-right: -4px; }
.label-meet .pin-ico .tab-fill { fill: var(--on-photo); stroke: none; }
.full-program { margin-top: 14px; min-height: 54px; font-size: var(--fs-m); }
.map-row { grid-template-columns: 30px 1fr; }
.label-actions { display: flex; gap: 10px; margin-top: 12px; }
.label-actions .btn { flex: 1 1 0; }
.label-actions .btn-glass:only-child { min-height: 52px; }
.label-grip {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--on-photo);
  opacity: 0.55;
  margin: 12px auto 0;
  touch-action: none;
  position: relative;
}
.label-grip::after { content: ""; position: absolute; inset: -20px -40px; }
.seal {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.label .seal { position: absolute; top: 16px; left: 50%; translate: -50% 0; }
.label.is-wrap { aspect-ratio: auto; min-height: 300px; }
.label.is-wrap .card-text { position: relative; left: 0; right: 0; bottom: 0; padding: 86px 18px 18px; }

/* Rows under the hero */
.mini-list { display: grid; gap: 8px; }
.mini-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  width: 100%;
  border-radius: var(--r-tile);
  background: var(--paper-2);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 120ms ease-out, scale 150ms ease-out;
}
.mini-row:active { scale: 0.985; background: var(--paper-3); }
.mini-row .t { font-family: var(--display); font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mini-row .t.is-word { font-family: var(--text); font-style: italic; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.2; }
.mini-row .n { font-size: var(--fs-m); line-height: 1.3; }
.mini-row .p { font-size: var(--fs-s); font-style: italic; color: var(--ink-2); }

/* ───────────────────────── Day bar ───────────────────────── */
.daybar {
  --n: 5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  margin-top: 26px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(34, 33, 33, 0.07), rgba(34, 33, 33, 0.045));
  border-radius: var(--r-pill);
  box-shadow: inset 0 1px 1px rgba(34, 33, 33, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.daybar-ind {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n));
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 8px 18px -10px rgba(34, 33, 33, 0.45),
    0 1px 2px rgba(34, 33, 33, 0.08),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(34, 33, 33, 0.04);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.daychip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  transition: color 200ms ease-out, scale 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.daychip:active { scale: 0.96; }
.daychip .dc-wd { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1; }
.daychip .dc-n { font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.daychip[aria-selected="true"] { color: var(--ink); }
.daychip.is-today .dc-wd::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-left: 4px; position: relative; top: -1px; }
.daychip.is-all .dc-n { font-family: var(--text); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* ───────────────────────── Timeline: photo cards ───────────────────────── */
.timeline { margin-top: 20px; display: grid; gap: 14px; }
.stop {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: block;
  transition: scale 200ms var(--ease-out), opacity 200ms ease-out;
}
.stop:active { scale: 0.985; }
.stop.is-past { opacity: 0.6; }
.stop .card-title { font-size: clamp(28px, 8.4vw, 42px); }
.stop-period { font-style: italic; }

/* ───────────────────────── Sheet ───────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 30; pointer-events: none; visibility: hidden; }
.sheet.is-visible { visibility: visible; }
.sheet.is-visible .sheet-backdrop, .sheet.is-visible .sheet-panel { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(34, 33, 33, 0.5); opacity: 0; }
.sheet-panel {
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: var(--col);
  top: max(44px, env(safe-area-inset-top, 0px) + 36px);
  bottom: 0;
  background: var(--paper);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  transform: translateY(100%);
  will-change: transform;
  touch-action: pan-y;
}
.sheet-panel.is-dragging, .sheet-panel.is-dragging * { user-select: none; -webkit-user-select: none; }
.sheet-handle { position: absolute; left: 0; right: 0; top: 0; height: 30px; z-index: 3; touch-action: none; cursor: grab; }
.sheet-handle::before {
  content: "";
  position: absolute;
  left: 50%; top: 10px;
  width: 40px; height: 4px;
  margin-left: -20px;
  border-radius: 2px;
  background: var(--on-photo);
  opacity: 0.7;
}
.sheet-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--on-photo);
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.1);
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.1);
  display: grid;
  place-items: center;
  transition: scale 150ms ease-out, opacity 150ms ease-out;
}
.sheet-close::after { content: ""; position: absolute; inset: -4px; }
.sheet-close:active { scale: 0.96; }
.sheet-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.sheet-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + var(--safe-b));
}
.sheet-hero { transform-origin: 0 0; will-change: transform, clip-path; }
.sheet-hero .photo-card { border-radius: 0; box-shadow: none; aspect-ratio: 1; }
.sheet-hero .photo-card::after { background: linear-gradient(180deg, rgba(20, 16, 12, 0.12) 0%, rgba(20, 16, 12, 0) 30%, rgba(20, 16, 12, 0.2) 55%, rgba(20, 16, 12, 0.85) 100%); }
.sheet-hero .card-text { left: var(--gutter); right: var(--gutter); bottom: 20px; }
.sheet-kicker { font-style: italic; color: var(--on-photo-2); font-size: var(--fs-s); }
.sheet-title { font-size: clamp(40px, 12vw, 64px); margin-top: 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); letter-spacing: -0.04em; }
.sheet-place { font-style: italic; color: var(--on-photo-2); margin-top: 6px; }

.sheet-body { padding: 18px var(--gutter) 8px; will-change: opacity; }
.facts { display: grid; gap: 8px; }
.facts > div {
  padding: 14px 16px;
  border-radius: var(--r-tile);
  background: var(--paper-2);
}
.facts dt { font-style: italic; color: var(--ink-2); font-size: var(--fs-xs); }
.facts dd { font-size: var(--fs-s); line-height: 1.45; margin-top: 3px; }
.facts dd small { display: block; color: var(--ink-2); font-size: var(--fs-xs); }
.facts .person { display: block; }
.facts .person + .person { margin-top: 6px; }
.sub-title {
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
  margin-top: 26px;
}
.plan { margin-top: 10px; display: grid; gap: 6px; }
.plan li {
  position: relative;
  padding: 11px 14px 11px 34px;
  font-size: var(--fs-s);
  line-height: 1.45;
  border-radius: 16px;
  background: var(--paper-2);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 15px; top: 18px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.about { margin-top: 10px; font-size: var(--fs-m); line-height: 1.55; }
.lineup { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.lineup li {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: var(--fs-s);
  letter-spacing: 0.03em;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
}
.sheet-cta { margin-top: 26px; }
.sheet-cta .btn { min-height: 54px; font-size: var(--fs-m); }
.sheet-cta p { margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-2); text-align: center; font-style: italic; }

/* ───────────────────────── Map ───────────────────────── */
.map-wrap { margin: 10px -8px 0; position: relative; }
.map-svg .region {
  font-family: var(--display); text-transform: uppercase; font-size: 9px; letter-spacing: 0.26em;
  fill: var(--ink); fill-opacity: 0.6; text-anchor: middle;
}
.map-svg { width: 100%; height: auto; display: block; }
.map-svg .leader { fill: none; stroke: var(--ink); stroke-width: 0.8; stroke-opacity: 0.55; stroke-linejoin: round; }
.map-svg .pin { cursor: pointer; }
.map-svg .pin circle { fill: var(--red); stroke: var(--paper); stroke-width: 1.5; }
.map-svg .pin text { font-family: var(--display); font-style: normal; font-size: 10.5px; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.map-svg .pin.is-home circle { fill: var(--ink); }
.map-svg .pin.is-home text { fill: var(--paper); }
.map-svg .pin:hover circle, .map-svg .pin:focus-visible circle { stroke: var(--ink); }
.map-svg .pin text.pin-label {
  font-family: var(--text); font-weight: 700; font-size: 10px; letter-spacing: 0.01em;
  fill: var(--ink); text-anchor: start; dominant-baseline: central;
  paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round;
}
.map-svg .pin text.pin-label.is-left { text-anchor: end; }
.map-caption { margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-2); font-style: italic; text-align: center; }
.map-list { margin-top: 12px; display: grid; gap: 8px; }
.map-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 10px 10px 14px;
  border-radius: var(--r-tile);
  background: var(--paper-2);
}
.map-row .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--display); font-size: 13px;
  display: grid; place-items: center;
}
.map-row .num.is-home { background: var(--ink); color: var(--paper); }
.map-row .name { font-size: var(--fs-m); line-height: 1.3; }
.map-row .vil { font-size: var(--fs-s); font-style: italic; color: var(--ink-2); }
.map-row .btn { min-height: 40px; padding: 0 14px; font-size: var(--fs-xs); background: var(--paper); }
.map-row.is-tbc .btn { display: none; }
.map-row .open { width: 100%; padding: 6px 0; -webkit-tap-highlight-color: transparent; }

/* ───────────────────────── Practical ───────────────────────── */
.info-section { margin-top: 30px; }
.info-section:first-of-type { margin-top: 26px; }
.info-title { font-size: clamp(32px, 9.6vw, 48px); margin-bottom: 12px; }
.info-section p { font-size: var(--fs-m); line-height: 1.5; }
.info-section .muted { color: var(--ink-2); font-style: italic; font-size: var(--fs-s); margin-top: 6px; }
.info-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.info-actions .btn { min-height: 46px; }

.hotel-card { aspect-ratio: 4 / 3; display: block; }
.hotel-card .card-title { font-size: 32px; }
.hotel-card .card-text { bottom: 16px; }
.hotel-card .label-actions { margin-top: 14px; }
.hotel-card > .plate .plate-mark { font-size: 16cqi; opacity: 0.4; }
.hotel-card > .plate { place-items: start end; padding: 12px 18px 0 0; }

.tile {
  padding: 16px;
  border-radius: var(--r-tile);
  background: var(--paper-2);
}
.departures { display: grid; gap: 8px; }
.dep {
  display: grid;
  grid-template-columns: 52px 88px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: var(--r-tile);
  background: var(--paper-2);
}
.dep .d { font-style: italic; color: var(--ink-2); font-size: var(--fs-s); }
.dep .t { font-family: var(--display); font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.dep .w { font-size: var(--fs-s); line-height: 1.35; }

.concierge {
  margin-top: 30px;
  padding: 24px 20px 20px;
  border-radius: var(--r-card);
  background: linear-gradient(160deg, #35302B, #1E1B19);
  color: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.concierge .seal { margin: 0 auto 12px; }
.concierge h2 { font-size: 32px; }
.concierge p { margin-top: 6px; font-size: var(--fs-s); color: rgba(246, 243, 236, 0.7); font-style: italic; }
.concierge .btn { margin-top: 18px; min-height: 54px; }
.concierge .btn svg { width: 20px; height: 20px; fill: currentColor; }

.contacts { display: grid; gap: 8px; }
.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px 12px 16px;
  border-radius: var(--r-tile);
  background: var(--paper-2);
}
.contact-name { font-size: var(--fs-m); }
.contact-phone { font-size: var(--fs-s); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.contact-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--ink);
  transition: scale 150ms ease-out, background-color 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: #fff; }
.icon-btn:active { scale: 0.96; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.emergencies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.emergency {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-radius: var(--r-tile);
  background: var(--paper-2);
  text-align: center;
  min-height: 44px;
}
.emergency .num { font-family: var(--display); font-size: 28px; line-height: 1; }
.emergency span { font-size: var(--fs-xs); color: var(--ink-2); font-style: italic; line-height: 1.25; }

.colophon { margin-top: 40px; font-size: var(--fs-xs); color: var(--ink-3); font-style: italic; text-align: center; }

/* ───────────────────────── Page-load moment (hero only) ───────────────────────── */
.view-today .enter {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  animation: enter 520ms var(--ease-out) forwards;
}
.view-today .enter:nth-child(1) { animation-delay: 0ms; }
.view-today .enter:nth-child(2) { animation-delay: 90ms; }
.view-today .enter:nth-child(3) { animation-delay: 180ms; }
.view-today .enter:nth-child(4) { animation-delay: 300ms; }
.view-today .enter:nth-child(5) { animation-delay: 380ms; }
.view-today.no-enter .enter { animation: none; opacity: 1; transform: none; filter: none; }
@keyframes enter { to { opacity: 1; transform: none; filter: blur(0); } }

/* ───────────────────────── Wider screens ───────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .app { box-shadow: 0 0 0 1px var(--paper-2); }
  .sheet-panel { top: 48px; border-radius: var(--r-sheet); bottom: 24px; }
  .tabbar { width: calc(var(--col) - 48px); }
  .label { aspect-ratio: 1; }
  .stop { aspect-ratio: 16 / 9; }
}
@media (hover: hover) {
  .mini-row:hover, .map-row:hover { background: var(--paper-3); }
  .photo-card:hover { box-shadow: 0 26px 48px -24px rgba(34, 33, 33, 0.55), 0 2px 6px -2px rgba(34, 33, 33, 0.1); }
}

/* ───────────────────────── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .view-today .enter { animation: none; opacity: 1; transform: none; filter: none; }
}

/* ───────────────────────── Splash ───────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: 0 28px;
}
.splash.is-done { animation: splash-out 600ms var(--ease-out) forwards; }
.splash-logo { position: relative; width: min(100%, 420px); aspect-ratio: 568.05 / 141.73; }
.splash-logo .sl { position: absolute; inset: 0; width: 100%; height: 100%; }
.sl-outline { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0.28; }
.sl-fill { clip-path: inset(100% 0 0 0); animation: fill-up 1300ms cubic-bezier(0.65, 0, 0.3, 1) 150ms forwards; }
.sl-fill-1 { fill: var(--red); }
.sl-fill-2 { fill: #E8646A; opacity: 0.75; animation-delay: 70ms; animation-duration: 1250ms; }
.splash.is-done .sl-fill-1 { animation: none; clip-path: inset(0); fill: var(--ink); transition: fill 420ms ease-out; }
.splash.is-done .sl-fill-2 { animation: none; clip-path: inset(0); opacity: 0; transition: opacity 300ms ease-out; }
.splash.is-done .sl-outline { opacity: 0; transition: opacity 300ms ease-out; }
@keyframes fill-up { to { clip-path: inset(0 0 0 0); } }
@keyframes splash-out { 60% { opacity: 1; } to { opacity: 0; transform: scale(1.03); visibility: hidden; } }
body.has-splash .view-today .enter { animation-play-state: paused; }
