/* Consulting room in blue ink.
   cream = ground, ink blue = drawings, headings, rules (secondary),
   saffron = booking only (buttons and links that lead to the calendar). */
:root {
  --cream: #F3EBDC;
  --cream-deep: #EADFCA;
  --paper: #F8F2E7;
  --ink: #1F3A5F;
  --ink-soft: #4B6488;
  --ink-wash: rgba(31, 58, 95, 0.08);
  --text: #23272F;
  --muted: #555A63;
  --rule: rgba(31, 58, 95, 0.22);
  --saffron: #CB9028;
  --saffron-deep: #A87418;
  --saffron-wash: rgba(203, 144, 40, 0.16);
  --error: #A33B2B;

  --f-display: "Piazzolla", Georgia, serif;
  --f-body: "Commissioner", system-ui, sans-serif;
  --f-hand: "Mansalva", cursive;

  --r-panel: 14px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--cream); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1.1; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }
.ph { font-size: 1.15em; line-height: 1; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 12px; }

/* ink drawing primitives */
.ink path { stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ink .thin { stroke-width: 1.4; }
.ink .glass { fill: var(--ink-wash); stroke: none; }
.room, .direct__sketch { filter: url(#rough); overflow: visible; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 0.98rem/1 var(--f-body); letter-spacing: 0.01em;
  padding: 0.95em 1.5em; border-radius: var(--r-pill);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--book { background: var(--saffron); color: #1E2127; box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 6px 14px -8px rgba(31, 58, 95, 0.45); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn--sm { padding: 0.72em 1.15em; font-size: 0.92rem; }
.btn--lg { padding: 1.05em 1.8em; width: 100%; font-size: 1.02rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn--book:hover { background: #D69C33; }
  .btn--ink:hover { background: #26466F; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
}

/* header */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.bar.is-scrolled { border-bottom-color: var(--rule); }
.bar__in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; min-height: 68px; }
.mark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.mark__name { font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.mark__role { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-size: 0.95rem; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1.5px no-repeat; transition: background-size 250ms var(--ease-out); }
.nav a:hover, .nav a:focus-visible { background-size: 100% 1.5px; }

/* hero */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) 24px;
  display: grid; grid-template-columns: 1fr 1.05fr; column-gap: clamp(24px, 5vw, 72px); align-items: center;
}
.hero__text { max-width: 30rem; }
.portrait { position: relative; width: 148px; height: 148px; margin-bottom: 26px; }
.portrait img, .portrait__mono { width: 148px; height: 148px; border-radius: 50%; }
.portrait img { object-fit: cover; filter: saturate(0.85) sepia(0.08); }
.portrait__mono { display: grid; place-items: center; background: var(--paper); font-family: var(--f-display); font-size: 2.3rem; color: var(--ink); letter-spacing: 0.02em; }
.portrait__ring { position: absolute; inset: -16px; width: 180px; height: 180px; overflow: visible; filter: url(#rough); }
.portrait__ring path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero__role { margin-top: 10px; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.hero__lede { margin-top: 18px; font-size: 1.14rem; max-width: 28rem; }
.tags { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
  font-size: 0.93rem; font-weight: 500; padding: 9px 16px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--rule); transition: box-shadow 200ms ease, background-color 200ms ease;
}
.tags a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.hero__room { margin: 0; }
.room { width: 100%; height: auto; }
.hero__book { grid-column: 1 / -1; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; color: var(--muted); font-size: 0.95rem; }
.link-book { font-weight: 600; color: var(--text); text-decoration: none; background: linear-gradient(var(--saffron), var(--saffron)) left 92% / 100% 6px no-repeat; padding: 0 2px; transition: background-size 200ms var(--ease-out); }
.link-book::after { content: " \2192"; }
.link-book:hover { background-size: 100% 40%; }

/* draw-in on load: the one authored moment */
@media (prefers-reduced-motion: no-preference) {
  .room path, .portrait__ring path { stroke-dasharray: 1400; stroke-dashoffset: 0; animation: draw 1.9s var(--ease-out) both; }
  .room .glass { animation: fade 1.2s 0.9s ease both; stroke-dasharray: none; }
  .portrait__ring path { stroke-dasharray: 1; animation-duration: 1.4s; animation-name: draw-unit; animation-delay: 0.2s; }
  .room g.ink > path:nth-child(4n+1) { animation-delay: 0.05s; }
  .room g.ink > path:nth-child(4n+2) { animation-delay: 0.18s; }
  .room g.ink > path:nth-child(4n+3) { animation-delay: 0.3s; }
  .room g.ink > path:nth-child(4n) { animation-delay: 0.42s; }
  @keyframes draw { from { stroke-dashoffset: 1400; } }
  @keyframes draw-unit { from { stroke-dashoffset: 1; } }
  @keyframes fade { from { opacity: 0; } }
}

/* the thread: one ink line from the room down to the calendar (path built in app.js) */
body { position: relative; }
.thread { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2; filter: url(#rough); }
.thread path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: 0.5; }
main, .foot { position: relative; z-index: 1; }
.hero, .sec, .booking__in { position: relative; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .thread path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: thread-draw linear both; animation-timeline: scroll(root); animation-range: 0% 80%; }
    @keyframes thread-draw { to { stroke-dashoffset: 0; } }
  }
}

/* sections */
.sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.sec__intro { margin-top: 12px; color: var(--muted); }

/* approach */
.approach { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.approach__main { max-width: 38rem; }
.approach__main p { margin-top: 18px; }
.approach .big { font-family: var(--f-display); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); line-height: 1.5; color: var(--text); margin-top: 22px; }
.note { font-family: var(--f-hand); color: var(--ink-soft); font-size: 1.35rem; line-height: 1.2; margin-top: 28px !important; display: flex; align-items: flex-end; gap: 10px; transform: rotate(-1.5deg); transform-origin: left; }
.note svg { width: 70px; flex: none; filter: url(#rough); transform: scaleY(-1) translateY(-6px); }
.note path { fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts { position: relative; margin: 14px 0 0; padding: 6px 0 6px 40px; }
.facts__brace { position: absolute; left: 0; top: 0; width: 24px; height: 100%; overflow: visible; filter: url(#rough); }
.facts__brace path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.facts > div + div { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--rule); }
.facts dt { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.facts dd { margin: 4px 0 0 30px; color: var(--muted); font-size: 0.97rem; }

/* services */
.services__grid { margin-top: 36px; display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; gap: clamp(16px, 2.4vw, 32px); }
.services__divider svg { width: 20px; height: 100%; filter: url(#rough); }
.services__divider path { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: 0.6; }
.svc { padding: 6px 0 0; }
.svc__meta { margin-top: 6px; font-family: var(--f-display); font-style: italic; color: var(--ink-soft); font-size: 1.08rem; }
.svc h3 { margin-top: 0; font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.6rem); max-width: 20ch; }
.svc > p:not(.svc__meta) { margin-top: 14px; max-width: 34rem; }
.svc__list { list-style: none; padding: 0; margin: 20px 0 0; }
.svc__list li { position: relative; padding-left: 26px; margin-top: 8px; color: var(--text); }
.svc__list li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 12px; height: 2px; border-radius: 2px; background: var(--ink-soft); transform: rotate(-4deg); }

/* bubbles */
.bubbles { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; }
.bubble {
  --wob: 58% 42% 55% 45% / 52% 48% 52% 48%;
  font: 500 1rem/1.2 var(--f-body); color: var(--ink); background: transparent; cursor: pointer;
  border: 1.6px solid var(--ink); border-radius: var(--wob);
  padding: 0.85em 1.35em; min-height: 48px;
  transition: transform 220ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.bubble:nth-of-type(3n+2) { --wob: 45% 55% 42% 58% / 55% 45% 55% 45%; font-size: 1.12rem; padding: 1em 1.6em; }
.bubble:nth-of-type(4n+3) { --wob: 52% 48% 60% 40% / 45% 58% 42% 55%; font-size: 0.95rem; }
.bubble:nth-of-type(5n) { font-family: var(--f-display); font-size: 1.2rem; }
.bubble:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bubble:hover { transform: translateY(-2px) rotate(-1deg); background: var(--paper); } }
.bubble[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bubble-note { margin-top: 26px; max-width: 40rem; padding: 18px 22px; border-radius: var(--r-panel); background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
.bubble-note__title { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); }
.bubble-note p + p { margin-top: 6px; color: var(--text); }
.bubble-note.is-swapping p { animation: swap 260ms var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(4px); filter: blur(2px); } }

/* CV */
.cv__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cv__cols { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.cv__group h3 { font-size: 1.15rem; font-family: var(--f-body); font-weight: 600; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.cv__group h3:not(:first-child) { margin-top: 36px; }
.cv__list { list-style: none; padding: 0; margin: 0; }
.cv__list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 14px; padding: 14px 0 0; }
.yr { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.93rem; padding-top: 2px; }
.cv__list small { display: block; color: var(--muted); font-size: 0.93rem; margin-top: 2px; }
.cv__lede { margin-top: 12px; max-width: 40rem; color: var(--muted); }

/* booking */
.booking { margin-top: clamp(72px, 10vw, 130px); background: var(--cream-deep); position: relative; }
.booking::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 14px; background: var(--cream); -webkit-mask: radial-gradient(12px 8px at 50% 0, #000 98%, transparent) 0 0 / 28px 14px repeat-x; mask: radial-gradient(12px 8px at 50% 0, #000 98%, transparent) 0 0 / 28px 14px repeat-x; }
.booking__in { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.booking__head p { margin-top: 12px; max-width: 36rem; color: var(--muted); }
.booking__grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.cal-embed { background: var(--paper); border-radius: var(--r-panel); box-shadow: 0 1px 0 var(--rule), 0 24px 50px -36px rgba(31, 58, 95, 0.5); min-height: 520px; overflow: hidden; }
.cal-embed.is-ready { min-height: 0; }
.cal-embed iframe { display: block; width: 100% !important; }
.cal-embed__wait { min-height: 520px; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: var(--muted); padding: 24px; }
.cal-embed__wait .ph { font-size: 2rem; color: var(--ink-soft); }
.cal-embed.is-ready .cal-embed__wait { display: none; }
.cal-embed__alt { margin-top: 14px; font-size: 0.93rem; color: var(--muted); }

/* fields */
.field { display: grid; gap: 6px; }
.field label, .check span { font-size: 0.93rem; font-weight: 500; color: var(--text); }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
  font: 400 1rem/1.4 var(--f-body); color: var(--text); width: 100%;
  background: #FFFCF6; border: 1.5px solid var(--rule); border-radius: 10px; padding: 12px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease; caret-color: var(--ink);
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-wash); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.err { display: none; color: var(--error); font-size: 0.87rem; }
.is-invalid > .err, .err.show { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.check span { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.ts:empty { display: none; }
.form-msg { font-size: 0.95rem; min-height: 1.2em; }
.form-msg.ok { color: var(--ink); font-weight: 500; }
.form-msg.bad { color: var(--error); }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-left: 0.6em; vertical-align: -0.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* direct contact */
.direct { padding: clamp(8px, 2vw, 16px) 0 0; }
.direct > p { margin-top: 10px; color: var(--muted); }
.direct__line { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-panel); text-decoration: none; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rule); transition: box-shadow 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out); font-size: 1.08rem; font-weight: 500; word-break: break-word; }
.direct__line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.direct__line:active { transform: scale(0.98); }
.direct__line .ph { font-size: 1.5rem; color: var(--ink); }
.direct__line small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.direct__hours { margin-top: 18px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.93rem; }
.direct__sketch { width: 190px; margin-top: 28px; opacity: 0.9; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 6vw, 88px); padding-bottom: clamp(64px, 9vw, 110px); align-items: start; }
.contact__intro p { margin-top: 14px; color: var(--muted); max-width: 26rem; }
.contact__form { display: grid; gap: 16px; }
.contact__form .btn { justify-self: start; }

/* footer */
.foot { border-top: 1px solid var(--rule); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 40px; display: grid; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.foot__urgent { color: var(--text); }
.foot__urgent .ph { margin-right: 8px; vertical-align: -0.15em; color: var(--ink); }
.foot__urgent a { font-weight: 600; }

/* responsive */
@media (max-width: 960px) {
  .bar__in { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; }
  .hero__room { order: -1; max-width: 460px; margin: 0 auto 8px; width: 100%; }
  .hero__text { max-width: none; }
  .approach, .contact, .booking__grid, .cv__cols { grid-template-columns: minmax(0, 1fr); }
  .services__grid .svc + .services__divider { margin: 8px 0; }
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .services__divider { height: 20px; }
  .services__divider svg { width: 100%; height: 20px; transform: rotate(90deg) scaleX(0.05); transform-origin: center; display: none; }
  .services__divider { border-top: 1.5px dashed var(--rule); height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .mark__role { display: none; }
  .hero__room { max-width: 340px; }
  .portrait { width: 124px; height: 124px; margin-bottom: 22px; }
  .portrait img, .portrait__mono { width: 124px; height: 124px; }
  .portrait__mono { font-size: 1.8rem; }
  .portrait__ring { inset: -14px; width: 152px; height: 152px; }
  .row2 { grid-template-columns: 1fr; }
  .cv__list li { grid-template-columns: 4.4rem 1fr; }
  .booking__in { padding-left: 10px; padding-right: 10px; }
  .booking__head, .cal-embed__alt, .direct { padding-left: 6px; padding-right: 6px; }
  .bar .btn--sm { padding: 0.8em 1.1em; }
  .foot__urgent a { display: inline-block; padding: 8px 6px; margin: -8px -2px; }
  .contact__form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* privacy policy and other text pages */
.legal { max-width: 44rem; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 110px); }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); line-height: 1.08; }
.legal__date { margin-top: 10px; color: var(--muted); font-size: 0.93rem; }
.legal h2 { font-size: 1.45rem; margin-top: 40px; }
.legal p { margin-top: 14px; }

/* CV: clinical experience and research behind a toggle */
.cv__more { margin-top: 32px; }
.cv__more > summary { list-style: none; width: max-content; }
.cv__more > summary::-webkit-details-marker { display: none; }
.cv__more > summary .ph { transition: transform 220ms var(--ease-out); }
.cv__more[open] > summary .ph { transform: rotate(180deg); }
.cv__more-close, .cv__more[open] .cv__more-open { display: none; }
.cv__more[open] .cv__more-close { display: inline; }
.cv__more > .cv__cols { margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .cv__more[open] > .cv__cols { animation: swap 320ms var(--ease-out); }
}

.direct__note { margin-top: 8px; color: var(--muted); font-size: 0.93rem; font-style: italic; }

/* phones: the explanation opens inside the bubble rows */
@media (max-width: 760px) {
  .bubbles { gap: 10px 8px; }
  .bubble { padding: 0.7em 1.1em; min-height: 44px; }
  .bubbles > .bubble-note { flex-basis: 100%; margin: 2px 0 8px; padding: 16px 18px; }
  .bubble-note__title { font-size: 1.15rem; }
}

/* phone menu: the same four links in a panel under the header */
.menu-btn { display: none; }
@media (max-width: 960px) {
  .bar__in { gap: 10px; }
  .bar .btn--book { margin-left: auto; }
  .menu-btn {
    display: grid; place-items: center; flex: none; width: 46px; height: 46px; margin-right: -6px;
    border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
    font-size: 1.6rem; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease;
  }
  .menu-btn:active { background: var(--ink-wash); }
  .menu-btn .ph-x, .bar.is-open .menu-btn .ph-list { display: none; }
  .bar.is-open .menu-btn .ph-x { display: block; }
  .nav {
    display: flex; flex-direction: column; gap: 0; margin: 0;
    position: absolute; top: 100%; right: var(--gutter); left: auto; width: min(280px, calc(100vw - 2 * var(--gutter)));
    padding: 8px; border-radius: var(--r-panel); background: var(--paper);
    box-shadow: 0 1px 0 var(--rule), 0 18px 40px -18px rgba(31, 58, 95, 0.45);
    opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .bar.is-open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 180ms ease, transform 220ms var(--ease-out); }
  .nav a { padding: 14px 16px; border-radius: 10px; font-size: 1.05rem; background: none; }
  .nav a + a { border-top: 1px solid var(--ink-wash); }
  .nav a:hover, .nav a:focus-visible, .nav a:active { background: var(--cream); }
  .bar.is-open { border-bottom-color: var(--rule); }
}
@media (max-width: 380px) {
  .bar .btn--sm { padding: 0.75em 0.9em; font-size: 0.86rem; }
}
@media (max-width: 380px) {
  .mark__name { font-size: 1.08rem; }
}
