/* FrontDesk JA brand: black and white, lime accent. Dashboard is deliberately plain —
   this is an internal/client utility screen, not a marketing surface. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --line: #e2e2e2;
  --muted: #6b6b6b;
  --lime: #c8ff00;
  --coral: #ff6b5e;
  --soft: #f2f2f3;      /* chat bubbles, quiet fills */
  --online: #1fb35a;    /* the phone's "Online" dot */
  /* Type, from the official Assistant UI (design/assistant-office-ui.png) */
  --font-ui: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-chat: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Motion curves from the FrontDesk JA website (frontdeskja: assets/css/styles.css) */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* Header height; the stage's sections start below it */
  --head-h: clamp(72px, 6.5vw, 108px);
}
@media (max-width: 760px) { :root { --head-h: 64px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
}

.bar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.linklike {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

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

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: grid;
  gap: 20px;
}

/* Grid children default to min-width:auto, which lets a wide table push the page sideways. */
.wrap > * { min-width: 0; }

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

h1 { margin: 0 0 6px; font-size: 1.4rem; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }

.muted { color: var(--muted); font-size: 0.95rem; }
.small { font-size: 0.85rem; }

#lookupForm, #createForm {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

#lookupForm { grid-template-columns: 1fr auto; }

label { display: grid; gap: 4px; font-size: 0.9rem; }

input, select, textarea { font-family: inherit; }

input, select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}

button {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #222; }

a { color: var(--ink); }
a:hover { color: var(--lime); }

.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
}

.meta dt { color: var(--muted); font-size: 0.85rem; }
.meta dd { margin: 0; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; word-break: break-all; }

.entries {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.entries th, .entries td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}

.result {
  margin-top: 12px;
  padding: 10px;
  background: #fafafa;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: pre-wrap;
}

/* ---- Shared settings fields (Welcome Desk + Assistant Office) ---- */
textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.fields { display: grid; gap: 14px; }
.fields label > span, .radios legend { font-weight: 600; }
.hint { color: var(--muted); font-size: 0.8rem; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.radios { border: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.radios legend { padding: 0; margin-bottom: 8px; font-size: 0.9rem; }
.note { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; font-size: 0.9rem; }
.checklist { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
button.ghost, .button.ghost { background: var(--paper); color: var(--ink); }
button.ghost:hover, .button.ghost:hover { background: #f2f2f2; }
.button {
  display: inline-block;
  font-size: 0.85rem;
  line-height: normal;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
button:disabled { opacity: 0.5; cursor: default; }
.snippet {
  margin: 0;
  padding: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---- Assistant Office ---- */
.office-head h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
.paused { margin: 12px 0 0; padding: 10px 12px; background: var(--ink); color: var(--paper); border-radius: 8px; font-weight: 600; }
details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: 10px; }
.entries-wrap, #entriesCard { overflow-x: auto; }

/* ---- Welcome Desk: black and white, one question per screen ---- */
body.welcome .wrap { max-width: 640px; padding-top: 32px; }
.wd-screen { display: grid; gap: 18px; }
.wd-progress { display: grid; gap: 8px; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wd-bar { height: 2px; background: var(--line); }
.wd-bar i { display: block; height: 100%; background: var(--ink); transition: width 0.3s; }
.wd-headline {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.wd-sub { margin: 0; font-size: clamp(1rem, 3.5vw, 1.15rem); color: var(--muted); }
.wd-form { display: grid; gap: 14px; }
.wd-big { font-size: clamp(1.4rem, 6vw, 2rem); padding: 12px 0; border: none; border-bottom: 2px solid var(--ink); border-radius: 0; }
.wd-big:focus { outline: none; }
.wd-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.wd-nav button, .wd-nav .button { min-width: 120px; }
.wd-go { font-size: 1.1rem; padding: 14px 28px; }
.wd-status { margin: 0; min-height: 1.2em; font-size: 0.85rem; color: var(--muted); }
.wd-chatlog { border: 1px solid var(--ink); border-radius: 12px; padding: 12px; min-height: 200px; max-height: 340px; overflow-y: auto; display: grid; align-content: start; gap: 8px; }
.wd-chatlog p { margin: 0; padding: 8px 12px; border-radius: 12px; max-width: 85%; font-size: 0.92rem; }
.wd-chatlog .me { justify-self: end; background: var(--ink); color: var(--paper); }
.wd-chatlog .them { justify-self: start; border: 1px solid var(--line); }
.wd-chat { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

@media (max-width: 520px) {
  .wrap { padding: 16px 16px 48px; }
  .wd-nav button, .wd-nav .button { flex: 1; text-align: center; }
}
.button.ghost:hover, body.welcome a:hover { color: var(--ink); }

/* ---- Site header (official Assistant UI) ---- */
.site-head {
  display: flex;
  align-items: center;
  gap: 16px 40px;
  padding: 0 clamp(16px, 4.8vw, 80px);
  min-height: clamp(72px, 6.5vw, 108px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.site-brand { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 28px); margin-right: auto; min-width: 0; }
.site-logo { height: clamp(26px, 3.35vw, 56px); width: auto; display: block; }
.site-divider { width: 1px; height: clamp(22px, 2vw, 30px); background: #bdbdbd; }
.site-product { font-weight: 500; font-size: clamp(0.8rem, 1vw, 1rem); letter-spacing: 0.42em; text-transform: uppercase; white-space: nowrap; }
.site-account { position: relative; }
.account-btn {
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--paper); color: var(--ink);
}
.account-btn:hover { background: var(--soft); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 240px; padding: 16px;
  display: grid; gap: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.account-menu a { margin-top: 8px; font-weight: 600; }
body.welcome .site-head { border-bottom-color: transparent; }

@media (max-width: 760px) {
  .site-head { min-height: 64px; gap: 10px 12px; }
}
@media (max-width: 420px) {
  .site-divider, .site-product { display: none; }
}

/* ---- Assistant Office hero ----
   Wide screens: the photo fills the hero and the copy sits over its empty left side,
   everything scaled with the viewport so it composes like the mockup at any width.
   Narrower: copy first, then the photo cropped around the phone. */
.office { display: block; }
.hero { position: relative; overflow: hidden; background: #f7f7f7; aspect-ratio: 1672 / 833; max-height: calc(100vh - clamp(72px, 6.5vw, 108px)); min-height: 520px; }
.hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.hero-stage > img { display: block; width: 100%; height: 100%; max-width: none; }
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 47vw;
  padding: 7.1vw 0 0 4.8vw;
  display: grid;
  justify-items: start;
}
.hero-eyebrow {
  margin: 0;
  display: flex; align-items: center; gap: 1vw;
  font-size: clamp(0.72rem, 0.9vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero-eyebrow::before { content: ''; width: 3.1vw; height: 2px; background: var(--ink); }
.hero-title {
  margin: 2.4vw 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5.15vw;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 9.2em;
}
.hero-lede {
  margin: 2.1vw 0 0;
  max-width: 30em;
  font-size: clamp(0.95rem, 1.27vw, 1.35rem);
  line-height: 1.52;
  color: #2b2b2b;
}
.hero-cta {
  margin-top: 2.5vw;
  display: inline-flex; align-items: center; gap: 0.9em;
  padding: 1.05em 2.1em;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: clamp(0.95rem, 1.08vw, 1.15rem);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta .arrow { font-size: 1.25em; line-height: 1; transition: transform 0.2s; }
.hero-cta:hover { background: #262626; color: var(--paper); }
.hero-cta:hover .arrow { transform: translateX(4px); }
.hero-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.office > .wrap { padding-top: 32px; }
.table-scroll { overflow-x: auto; }

@media (max-width: 1099px) {
  .hero { aspect-ratio: auto; max-height: none; min-height: 0; display: flex; flex-direction: column-reverse; background: var(--paper); }
  .hero-art { position: relative; inset: auto; height: clamp(360px, 62vw, 560px); }
  .hero-copy { max-width: 640px; padding: 36px 16px 28px; }
  .hero-eyebrow::before { width: 40px; }
  .hero-eyebrow { gap: 14px; }
  .hero-title { font-size: clamp(2.4rem, 8.6vw, 4.2rem); margin-top: 18px; }
  .hero-lede { margin-top: 16px; }
  .hero-cta { margin-top: 22px; }
}

/* ---- The phone screen inside the hero photo (dashboard/assets/phone-chat.js) ----
   Drawn at 330×716 (the mockup's on-screen scale) and mapped onto the photo's screen by matrix3d. */
.ps {
  position: absolute; left: 0; top: 0;
  width: 330px; height: 716px;
  transform-origin: 0 0;
  border-radius: 46px;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-family: var(--font-chat);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.ps-status { position: relative; height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 24px 0 34px; }
.ps-time { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.ps-island { position: absolute; left: 50%; top: 10px; width: 100px; height: 30px; margin-left: -50px; border-radius: 16px; background: #050505; }
.ps-icons { display: flex; align-items: center; gap: 6px; fill: currentColor; }
.ps-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 20px 12px; border-bottom: 1px solid #ececec; background: #fafafa; }
.ps-head img { height: 28px; width: auto; }
.ps-head strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.ps-presence { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #444; }
.ps-presence i { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(31, 179, 90, 0.5); animation: ps-pulse 2.4s infinite; }
.ps-presence.is-paused i { background: #a3a3a3; animation: none; }
.ps-log { position: relative; flex: 1; overflow: hidden; background: #fafafa; -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.ps-track {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px 14px;
  transition: transform 0.42s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.4s;
}
.ps-track.is-clearing { opacity: 0; }
.ps-msg { display: grid; gap: 5px; max-width: 84%; animation: ps-in 0.42s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
.ps-msg p { margin: 0; padding: 12px 16px; font-size: 16px; line-height: 1.36; border-radius: 22px; }
.ps-msg time { font-size: 12px; color: #8a8a8a; padding: 0 6px; }
.ps-msg.them { justify-self: start; align-self: flex-start; transform-origin: 0 100%; }
.ps-msg.them p { background: #ececee; border-bottom-left-radius: 8px; }
.ps-msg.me { align-self: flex-end; justify-items: end; transform-origin: 100% 100%; }
.ps-msg.me p { background: #0b0b0b; color: #fff; border-bottom-right-radius: 8px; }
.ps-typing p { display: flex; gap: 6px; padding: 18px 20px; }
.ps-typing i { width: 9px; height: 9px; border-radius: 50%; background: #8d8d92; animation: ps-dot 1.1s infinite ease-in-out; }
.ps-typing i:nth-child(2) { animation-delay: 0.15s; }
.ps-typing i:nth-child(3) { animation-delay: 0.3s; }
.ps-chips { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; transition: opacity 0.22s, transform 0.22s; }
.ps-chip {
  padding: 11px 18px; border-radius: 999px;
  border: 1.5px solid #0b0b0b; background: #fff;
  font-size: 15px; font-weight: 600;
  animation: ps-in 0.42s cubic-bezier(0.22, 0.8, 0.24, 1) both;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.ps-chip:nth-child(2) { animation-delay: 0.12s; }
.ps-chip.solid { background: #0b0b0b; color: #fff; }
.ps-chip.is-pressed { transform: scale(0.93); background: #333; color: #fff; }
.ps-chips.is-leaving { opacity: 0; transform: translateY(6px); }
.ps-confirm {
  display: flex; align-items: center; gap: 12px;
  align-self: stretch;
  padding: 14px 16px; border-radius: 18px;
  background: #fff; border: 1px solid #e3e3e3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  animation: ps-in 0.5s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.ps-confirm-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0b0b0b; color: #fff; }
.ps-confirm strong { display: block; font-size: 16px; }
.ps-confirm span { font-size: 14px; color: #666; }
.ps-input { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px 28px; background: #fafafa; }
.ps-clip { color: #333; display: flex; }
.ps-field {
  flex: 1; min-width: 0;
  height: 48px; padding: 0 16px;
  display: flex; align-items: center;
  border: 1.5px solid #e4e4e6; border-radius: 999px; background: #fff;
  font-size: 16px; color: #a0a0a5;
  white-space: nowrap; overflow: hidden;
}
.ps-field.is-typing { color: var(--ink); justify-content: flex-end; }
.ps-field.is-typing::after { content: ''; flex: none; width: 2px; height: 20px; margin-left: 1px; background: #0b84ff; animation: ps-caret 1s steps(1) infinite; }
.ps-send { display: flex; fill: #0b0b0b; transition: transform 0.15s; }
.ps-send.is-pressed { transform: scale(0.8) translateX(3px); }

.ps.is-still * { animation: none !important; }
.ps.is-paused .ps-track { opacity: 0.4; }

@keyframes ps-in { from { opacity: 0; transform: translateY(14px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes ps-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-6px); opacity: 1; } }
@keyframes ps-caret { 50% { opacity: 0; } }
@keyframes ps-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 179, 90, 0.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(31, 179, 90, 0); } }

@media (prefers-reduced-motion: reduce) {
  .ps *, .ps-track, .hero-cta, .hero-cta .arrow { animation: none !important; transition: none !important; }
}

/* ---- Admin (same branding as the client app) ---- */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; border: 1px solid var(--ink); white-space: nowrap; }
.pill.active { background: var(--ink); color: var(--paper); }
.pill.paused { border-style: dashed; }
.account-menu button { margin-top: 8px; justify-self: start; }
.login-form { margin-top: 2.5vw; display: grid; gap: 14px; width: min(100%, 380px); }
.login-form label > span { font-weight: 600; }
.login-form input { padding: 14px 16px; border-radius: 12px; border-color: #cfcfcf; background: rgba(255, 255, 255, 0.9); }
.login-form .hero-cta { margin-top: 0; border: none; justify-self: start; cursor: pointer; font-family: inherit; }
.login-error { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: #b42318; }
@media (max-width: 1099px) { .login-form { margin-top: 22px; } }

/* ---- Admin settings ---- */
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.pill.warn { background: #fff4e5; border-color: #b45309; color: #7a3a00; }
.settings-toc { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-block: 14px; }
.settings-toc a { font-size: 0.88rem; font-weight: 500; color: #4a4a4a; text-decoration: none; }
.settings-toc a:hover { color: var(--ink); text-decoration: underline; }
.card.settings > .muted.small { margin: -4px 0 14px; }
.card.danger { border-color: #e7b9b2; }
.card.danger h2 { color: #8a1c0f; }
input[type="color"] { width: 64px; height: 40px; padding: 4px; }
select:disabled, input:disabled { opacity: 0.55; }
.settings-page .card[id] { scroll-margin-top: 16px; }
/* Keep long option text (e.g. model names with prices) from widening the page. */
.fields, .fields label { grid-template-columns: minmax(0, 1fr); }
select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }

/* ---- Client sign-in ---- */
.login-form .linklike { justify-self: start; font-size: 0.9rem; text-decoration: underline; color: #4a4a4a; }
.login-error.ok { color: #1d6b3a; }

.result { overflow-wrap: anywhere; }
#profilesBody .linklike { text-align: left; text-decoration: underline; font-size: 0.8rem; }

/* ==========================================================================
   Section stage (dashboard/assets/stage.js), shared by Admin and the Assistant Office.
   Same model as the FrontDesk JA website: each section is a full-screen page; moving
   between them is a cut, the outgoing page lifting away on top while the next builds
   in underneath. Here the page scrolls natively with scroll-snap between invisible
   full-screen rails; the visible pages are fixed layers that switch as rails arrive.
   ========================================================================== */
html.staged { scroll-snap-type: y mandatory; scroll-behavior: auto; overscroll-behavior-y: none; }
html.staged.menu-open { overflow: hidden; }
html.staged .site-head { position: fixed; inset: 0 0 auto 0; z-index: 60; min-height: var(--head-h); transition: box-shadow .4s var(--ease-out); }
html.staged .site-head.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, .25); }
.stage { display: block; margin: 0; padding: 0; }

/* The rails: invisible, one full screen each. One gesture moves one section. They use
   the large viewport height, which stays put while a phone's toolbar shows and hides:
   with the dynamic height, every snap point moved by (section number × toolbar height)
   in the middle of a swipe, and the page got stuck on a section. (The visible pages
   below still use the dynamic height, so the toolbar never covers one.) */
.stop {
  position: relative;
  height: 100vh; height: 100lvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* The pages: fixed full-screen layers (website: .staged [data-stop]) */
.stop__layer {
  position: fixed; left: 0; right: 0; top: 0;
  height: 100vh; height: 100dvh;
  visibility: hidden; z-index: 1;
  overflow: hidden;
}
.stop__layer.is-current { visibility: visible; z-index: 2; }
.stop__layer.is-leaving { visibility: visible; z-index: 3; pointer-events: none; }
.no-anim, .no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }

/* Long sections scroll inside their own page. At the end of that scroll, the page
   carries on to the next section (scroll chaining is left on: nobody gets trapped). */
.stop__scroll { height: 100%; overflow: hidden; outline: none; }
.stop__scroll.can-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.stop__inner {
  min-height: 100%;
  max-width: 960px; margin: 0 auto;
  padding: calc(var(--head-h) + clamp(28px, 7vh, 72px)) 16px clamp(40px, 8vh, 80px);
  display: grid; align-content: center; gap: 14px;
}
.stop__inner > * { min-width: 0; }
.stop__body { margin-top: clamp(8px, 2vh, 20px); }
.stack { display: grid; gap: 20px; }
.stack > * { min-width: 0; }

/* Section headings, in the website's style */
.stop__inner .eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
}
.stop__inner .eyebrow::before { content: ""; width: 42px; height: 1.4px; background: currentColor; flex: none; transform-origin: left; }
.stop__inner .headline {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em;
  text-wrap: balance;
}
.headline .w { display: inline-block; }
.card h3 { margin: 0 0 12px; font-size: 1.1rem; }

/* Home: the hero fills its page, below the header */
.stop__hero { min-height: 100%; padding-top: var(--head-h); display: flex; flex-direction: column; }
.stop__hero > .hero { flex: 1 1 auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; }
@media (max-width: 1099px) {
  .stop__hero > .hero-art, .stop__layer--hero .hero-art { flex: 1 1 auto; height: auto; min-height: 220px; }
}

/* The website's scroll cue: on Home, pointing to the next section; hidden on smaller screens */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 26px; height: 42px;
  border: 1.4px solid var(--ink); border-radius: 999px; transform: translateX(-50%);
  background: rgba(255, 255, 255, .6);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
@media (max-width: 899px) { .scroll-cue { display: none; } }

/* Header: the current section's name and the hamburger (website: .burger) */
.stage-current {
  margin: 0; min-width: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* No room beside the logo on a phone; the menu shows the current section there. */
@media (max-width: 760px) { .stage-current { display: none; } }
.burger {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  display: grid; place-content: center; gap: 6px; border-radius: 50%; flex: none;
  transition: background .25s;
}
.burger:hover { background: var(--soft); }
.burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.burger span { display: block; width: 22px; height: 1.6px; background: var(--ink); transition: transform .5s var(--ease-out), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* The full-screen menu (website: .menu), same at every screen size */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--paper);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--head-h) + 32px) clamp(16px, 5vw, 104px) 40px;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list > li { border-top: 1px solid var(--line); padding: 14px 0; }
.menu__list > li:last-child { border-bottom: 1px solid var(--line); }
.menu__link {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 5.2vw, 64px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  text-decoration-thickness: .14em; text-underline-offset: .12em;
}
.menu__link:hover, .menu__link:focus-visible { text-decoration-line: underline; text-decoration-color: #9a9a9a; outline: none; }
/* The section on screen: underlined in solid black */
.menu__link[aria-current="page"] { text-decoration-line: underline; text-decoration-color: var(--ink); }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; }
.menu__foot p { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) .menu__list > li, .menu:not([hidden]) .menu__foot { animation: menu-in .7s var(--ease-out) both; }
  .menu .menu__list > li:nth-child(2) { animation-delay: .05s; }
  .menu .menu__list > li:nth-child(3) { animation-delay: .1s; }
  .menu .menu__list > li:nth-child(4) { animation-delay: .15s; }
  .menu .menu__list > li:nth-child(5) { animation-delay: .2s; }
  .menu .menu__list > li:nth-child(6) { animation-delay: .25s; }
  .menu .menu__list > li:nth-child(7) { animation-delay: .3s; }
  .menu .menu__foot { animation-delay: .25s; }

  /* Entrance (website): headline words sharpen from blur on their own beat... */
  .stop__layer .headline .w {
    opacity: 0; filter: blur(14px); transform: translateY(.06em);
    transition: opacity .8s var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: calc(var(--i) * 110ms + 260ms);
  }
  .stop__layer.is-in .headline .w { opacity: 1; filter: blur(0); transform: none; }
  .stop__layer.is-idle .headline .w { filter: none; }

  /* ...supporting parts rise and fade in a beat behind... */
  .stop__layer .eyebrow, .stop__layer .r { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
  .stop__layer .eyebrow::before { transform: scaleX(0); transition: transform 1s var(--ease-out) .1s; }
  .stop__layer.is-in .eyebrow, .stop__layer.is-in .r { opacity: 1; transform: none; }
  .stop__layer.is-in .eyebrow::before { transform: none; }
  .stop__layer.is-in .headline ~ .r { transition-delay: .55s; }
  .stop__layer.is-in .scroll-cue { transition-delay: 1.2s; }
  .stop__layer .scroll-cue { transform: translateX(-50%) translateY(10px); }
  .stop__layer.is-in .scroll-cue { transform: translateX(-50%); }
  .scroll-cue span { animation: cue 1.8s var(--ease-io) infinite; }
  @keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

  /* ...and on Home, the photo settles in, then the copy follows. */
  .stop__layer--hero .hero-art { opacity: 0; transform: translateY(28px) scale(1.04); transition: opacity 1s var(--ease-out) .12s, transform 1.8s var(--ease-out) .12s; }
  .stop__layer--hero.is-in .hero-art { opacity: 1; transform: none; }
  .stop__layer--hero .hero-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
  .stop__layer--hero.is-in .hero-copy > * { opacity: 1; transform: none; }
  .stop__layer--hero.is-in .hero-copy > :nth-child(2) { transition-delay: .26s; }
  .stop__layer--hero.is-in .hero-copy > :nth-child(3) { transition-delay: .55s; }
  .stop__layer--hero.is-in .hero-copy > :nth-child(4) { transition-delay: .78s; }

  /* Exit (website): lift, fade and recede as the next page enters underneath */
  .stop__inner { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
  .stop__layer.is-leaving .stop__inner { opacity: 0; transform: translateY(-36px); transition: opacity .35s var(--ease-out), transform .7s var(--ease-io); }
  .stop__layer--hero .hero-copy { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
  .stop__layer--hero.is-leaving .hero-copy { opacity: 0; transform: translateY(-36px); transition: opacity .35s var(--ease-out), transform .7s var(--ease-io); }
  .stop__layer--hero.is-leaving .hero-art { opacity: 0; transform: translateY(-8%) scale(.96); transition: opacity .5s var(--ease-out), transform .9s var(--ease-io); }
  .stop__layer--hero.is-leaving .scroll-cue { opacity: 0; transition: opacity .35s var(--ease-out); }
}
