/* ============================================================================
   ARUM — Components
   Order matches the page: header · hero · about · services · contact ·
   philosophy · footer.
   Single breakpoint at 820px, expressed in em (51.25em) so it moves with the
   reader's font-size setting rather than fighting it.
   ========================================================================= */

/* ==========================================================================
   1. Header (fixed)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  /* Declared per spec. Inert while the bar is fully opaque; it becomes real
     the moment the plum is given alpha. */
  backdrop-filter: blur(14px);
  transition: box-shadow var(--dur-header) ease;
}
.site-header.is-scrolled { box-shadow: var(--header-shadow); }

.header-bar {
  position: relative;
  z-index: 2;                 /* the drawer slides out from behind this */
  background: var(--plum);
}

.header-inner {
  max-width: var(--measure-header);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: var(--track-logo);
  /* Balances the trailing letter-space so the word stays optically centred. */
  text-indent: var(--track-logo);
  color: var(--hanji);
}
.wordmark-sm:hover { color: var(--hanji); }

.nav-desktop { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  font-family: var(--font-body);
  font-size: var(--size-nav);
  font-weight: 400;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  line-height: 1;
  color: var(--hanji);
  transition: color .25s ease;
}
.nav-link--quiet { font-weight: 300; }
.nav-link:hover { color: var(--accent); }

/* The spec paints this pill plum on a plum bar, which renders it invisible.
   A white hairline keeps the specified fill and shape while making the CTA
   findable; it fills accent on hover. See README → Deviations. */
.nav-link--cta {
  padding: .5625rem 1.125rem;
  border-radius: var(--radius);
  background: var(--plum);
  border: 1px solid rgba(255, 255, 255, .34);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.nav-link--cta:hover {
  color: var(--hanji);
  background: var(--accent);
  border-color: var(--accent);
}

/* ---- Hamburger --------------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--hanji);
  transition: width .3s var(--ease-reveal), transform var(--dur-press) ease-out;
}
.nav-toggle span:nth-child(1) { width: 1.5rem; }
.nav-toggle span:nth-child(2) { width: 1rem; }
/* Hint in the direction of the gesture: on open the short rule grows to meet
   the long one, telegraphing the panel about to arrive. */
.nav-toggle[aria-expanded="true"] span:nth-child(2) { width: 1.5rem; }
.nav-toggle:active span { transform: scaleX(.9); }

/* ---- Drawer ------------------------------------------------------------
   Position is owned by JS (a spring, in px). CSS only describes the surface.
   ---------------------------------------------------------------------- */
.nav-drawer {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: .5rem var(--page-pad) 1.5rem;
  background: var(--shell);
  border-top: 1px solid rgba(71, 42, 62, .1);
  touch-action: none;         /* we own the vertical drag */
  will-change: transform;
}
.nav-drawer[hidden] { display: none; }

.nav-drawer a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--plum);
  padding: .625rem 0;
}
.nav-drawer a:last-child { color: var(--accent); }
.nav-drawer a:active { opacity: .6; transition: opacity var(--dur-press) ease-out; }

.nav-grabber {
  align-self: center;
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(71, 42, 62, .18);
  margin-bottom: .25rem;
}

.nav-scrim {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 0;
  background: rgba(46, 32, 40, .28);
  opacity: 0;
  border: none;
  padding: 0;
  cursor: default;
  will-change: opacity;
}
.nav-scrim[hidden] { display: none; }

@media (max-width: 51.25em) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8.75rem var(--page-pad) 5rem;
  position: relative;
  color: var(--on-plum);
  /* Plum at the top dissolving into the About section's surface at the
     bottom, so the seam between hero and page is invisible. */
  background: var(--hero-gradient);
}

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--size-hero);
  line-height: .95;
  letter-spacing: var(--track-wordmark);
  margin-left: var(--track-wordmark); /* offsets the trailing letter-space */
  color: var(--on-plum-strong);
  will-change: opacity, transform;
}

.hero__cta { background: var(--hero-cta-bg); margin-top: 2.875rem; }

.scroll-hint {
  position: absolute;
  bottom: 2.125rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 2.875rem;
  background: linear-gradient(to bottom, rgba(243, 233, 236, .05), rgba(243, 233, 236, .4));
}

/* ==========================================================================
   3. About
   ========================================================================== */
.about__title { max-width: var(--measure-prose); margin-bottom: clamp(2.875rem, 6vw, 4.375rem); }

.about__grid {
  grid-template-columns: 1.05fr .95fr;
  gap: var(--gap-about);
}

.about__prose { display: flex; flex-direction: column; gap: 1.875rem; }

.about__accent-line {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.35;
  color: var(--accent);
  margin-top: .5rem;
}

.about__aside { display: flex; flex-direction: column; gap: 1.25rem; }

.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--hairline-faint);
  background: var(--shell);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Photo credit — hidden until the image is hovered (or the link is focused). */
.about__credit {
  position: absolute;
  left: .5rem;
  bottom: .5rem;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--dur-hover) ease, transform var(--dur-hover) ease;
}
.about__photo:hover .about__credit,
.about__photo:focus-within .about__credit {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.about__credit a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .04em;
  color: var(--on-plum-strong);
  background: rgba(46, 32, 40, .72);
  padding: .3rem .5rem;
  border-radius: var(--radius);
}
.about__credit a:hover { color: var(--on-plum-strong); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .about__credit { transform: none; transition: opacity .2s ease; }
}

.about__note { border-left: 2px solid var(--sage); padding: .375rem 0 .375rem 1.25rem; }
.about__note-word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--plum);
  margin-bottom: .375rem;
}
.about__note-body { font-size: .84375rem; line-height: 1.9; color: var(--muted); }

/* ==========================================================================
   4. Services
   ========================================================================== */
.services__intro {
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gap-services);
  align-items: end;
  margin-bottom: clamp(3.125rem, 7vw, 5rem);
}

.services__list { border-top: 1px solid var(--hairline); }

.service-row {
  grid-template-columns: 5rem 1fr 1.4fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3.6vw, 2.625rem) 0;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--dur-row) ease;
}
.service-row:hover { background: var(--jade-wash); }

.service-row__no {
  font-family: var(--font-display);
  font-size: .875rem;
  line-height: 1.6;
  letter-spacing: var(--track-number);
  color: var(--plum);
}
.service-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--size-h3-service);
  line-height: 1.25;
  color: var(--plum);
  text-wrap: pretty;
}
.service-row__body {
  font-size: var(--size-body-service);
  line-height: 2;
  color: var(--muted);
  text-wrap: pretty;
}

.services__closing { text-align: center; margin-top: clamp(3.75rem, 8vw, 5.625rem); }
.services__closing .quote { margin-bottom: 2.5rem; }

/* ==========================================================================
   5. Contact
   ========================================================================== */
.contact__grid {
  grid-template-columns: 1fr 1.15fr;
  gap: var(--gap-contact);
}

.contact__title { font-size: var(--size-h2-contact); margin-bottom: 1.75rem; }
.contact__lede { margin-bottom: 2.75rem; }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  border-top: 1px solid var(--hairline-contact);
  padding-top: 2rem;
}
.contact__details .micro-label { margin-bottom: .4375rem; }
.contact__email {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--plum);
}
.contact__email:hover { color: var(--accent); }
.contact__detail-body { font-size: .90625rem; line-height: 1.9; color: var(--muted); }

/* ---- Inquiry form ------------------------------------------------------ */
.inquiry {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--surface);
}
.inquiry__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.875rem, 1fr));
  gap: 1.375rem;
}
.field { display: flex; flex-direction: column; gap: .5625rem; }

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--field-line);
  border-radius: 0;
  padding: .5625rem 0;
  font-size: .9375rem;
  line-height: 1.8;
  outline: none;
  transition: border-color .25s ease;
}
.field textarea { resize: vertical; font-family: var(--font-body); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
/* Underlined fields have no box to outline — give keyboard focus a visible
   ring of its own rather than relying on the accent underline alone. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-bottom-color: var(--danger); }

.field__error {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--danger);
}
.field__error:empty { display: none; }

.inquiry__submit { align-self: flex-start; margin-top: .375rem; }

.inquiry__note {
  font-size: .8125rem;
  line-height: 1.8;
  color: var(--micro);
  max-width: 34rem;
}

.inquiry__status {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--plum);
}
.inquiry__status:empty { display: none; }
.inquiry__status[data-tone="error"] { color: var(--danger); font-family: var(--font-body); font-size: .9375rem; }

/* ==========================================================================
   6. Philosophy
   ========================================================================== */
.philosophy { padding-block: var(--section-y-philosophy); }
.philosophy__intro { max-width: var(--measure-prose); margin-inline: auto; text-align: center; }
.philosophy__intro .eyebrow { margin-bottom: 1.875rem; }
.philosophy__title { font-size: var(--size-h2-philosophy); line-height: 1.15; margin-bottom: 2.25rem; }
.philosophy__lede { font-size: var(--size-body-intro); line-height: 2.1; }

/* gap:1px over a tinted background — the gap itself is the hairline. */
.pillars {
  max-width: var(--measure-pillars);
  margin: clamp(4.375rem, 9vw, 6.875rem) auto 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline-soft);
}
.pillar {
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2.125rem, 5vw, 3.25rem) clamp(.25rem, 2vw, 1.875rem);
  background: var(--surface);
}
.pillar__eyebrow {
  font-size: var(--size-micro);
  letter-spacing: var(--track-eyebrow);
  text-transform: capitalize;
  line-height: 1.6;
  color: var(--accent);
  margin-bottom: .75rem;
}
.pillar__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-h3-pillar);
  line-height: 1.2;
  color: var(--plum);
  text-wrap: pretty;
}
.pillar__body { align-self: center; }

.philosophy__quote {
  font-family: var(--font-display);
  font-size: var(--size-quote-sm);
  line-height: 1.25;
  color: var(--accent);
  text-align: center;
  max-width: var(--measure-prose);
  margin: clamp(3.75rem, 8vw, 5.625rem) auto 0;
  text-wrap: pretty;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background: var(--plum);
  color: var(--on-plum);
  padding: clamp(4.375rem, 9vw, 6.875rem) var(--page-pad) 2.5rem;
}
.site-footer__grid {
  max-width: var(--measure);
  margin-inline: auto;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-about);
}
.wordmark-lg {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--size-footer-mark);
  line-height: 1.1;
  letter-spacing: var(--track-footer-mark);
  color: var(--on-plum-strong);
}
.site-footer__tagline {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.4;
  color: rgba(251, 246, 243, .75);
  margin-top: .875rem;
}
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
  gap: 1.875rem;
  align-content: start;
}
.link-group { display: flex; flex-direction: column; gap: .8125rem; }
.link-group .micro-label { color: var(--on-plum-faint); margin-bottom: .1875rem; }
.link-group a { font-size: .875rem; line-height: 1.5; color: var(--on-plum-soft); }
.link-group a:hover { color: var(--on-plum-link-hover); }
.link-group p { font-size: .875rem; line-height: 1.5; color: var(--on-plum-quiet); }

.site-footer__bottom {
  max-width: var(--measure);
  margin: clamp(3.125rem, 7vw, 5rem) auto 0;
  padding-top: 1.625rem;
  border-top: 1px solid var(--footer-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--size-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--on-plum-faint);
}
.site-footer__bottom a { color: inherit; }
.site-footer__bottom a:hover { color: var(--on-plum-link-hover); }

/* ==========================================================================
   Responsive — one breakpoint
   ========================================================================== */
@media (max-width: 51.25em) {
  .split { grid-template-columns: 1fr !important; }
  .service-row { gap: .75rem; }
  .services__intro { align-items: start; }
}

/* ==========================================================================
   v2 — multi-page additions
   ========================================================================== */

/* ---- No-JS fallback nav (only rendered inside <noscript>) -------------- */
.nav-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0 var(--page-pad);
  height: var(--header-h);
  align-items: center;
  background: var(--plum);
}
.nav-fallback a {
  color: var(--hanji);
  font-size: var(--size-nav);
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
}

/* ---- Active nav state -------------------------------------------------- */
.nav-link.is-current { color: var(--accent); }
.nav-link--cta.is-current { color: var(--hanji); border-color: rgba(255, 255, 255, .55); }
.nav-drawer a.is-current { color: var(--accent); }
.link-group a.is-current { color: var(--on-plum-link-hover); }

/* ==========================================================================
   Interior page masthead
   ========================================================================== */
.page-hero {
  background: var(--surface);
  padding: calc(var(--header-h) + clamp(3.25rem, 8vw, 5.5rem)) var(--page-pad) clamp(2.5rem, 5vw, 3.75rem);
}
.page-hero__title { margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); max-width: 20ch; }
.page-hero__lede { max-width: var(--measure-prose); }

/* A section that sits directly under the masthead shouldn't double its top gap. */
.section--flush { padding-top: 0; }

/* A standalone section that is the first thing under the fixed header. */
.section--page-top { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)); }

.shell--prose { max-width: 50rem; }

/* ==========================================================================
   Feature card — How It Works / Sample Itinerary modal triggers
   Set apart from the plain category list so they read as "open me", not
   as another item. Press feedback is immediate (§1); the arrow leads toward
   the outcome on hover (§8).
   ========================================================================== */
.feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.375rem, 3vw, 2.25rem);
  background: var(--plum);
  color: var(--on-plum-strong);
  transition: transform var(--dur-hover) ease, box-shadow var(--dur-hover) ease, background var(--dur-hover) ease;
}
.feature-card + .cat-list { margin-top: clamp(2.5rem, 5vw, 4rem); }
.cat-list + .feature-card { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

.feature-card__text { display: flex; flex-direction: column; gap: .5rem; }
.feature-card .micro-label { color: rgba(251, 246, 243, .6); }
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  text-wrap: pretty;
}
.feature-card__hint {
  font-size: var(--size-nav);
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  color: var(--on-plum-link-hover);
}
.feature-card__arrow {
  font-size: 1.5rem;
  flex: none;
  transition: transform var(--dur-hover) ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(46, 32, 40, .22); }
.feature-card:hover .feature-card__arrow { transform: translateX(4px); }
.feature-card:active { transform: scale(.99); transition: transform var(--dur-press) ease-out; }

/* Quiet variant — a light surface, never light-on-light with the page. */
.feature-card--quiet {
  background: var(--surface);
  color: var(--plum);
  border: 1px solid var(--hairline);
}
.feature-card--quiet .micro-label { color: var(--micro); }
.feature-card--quiet .feature-card__hint { color: var(--accent); }
.feature-card--quiet .feature-card__arrow { color: var(--accent); }
.feature-card--quiet:hover { background: var(--jade-wash); box-shadow: none; }

/* ==========================================================================
   Service categories
   ========================================================================== */
.cat-list { border-top: 1px solid var(--hairline); }
.cat {
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.cat__no {
  display: block;
  font-family: var(--font-display);
  font-size: .875rem;
  letter-spacing: var(--track-number);
  color: var(--plum);
  margin-bottom: .75rem;
}
.cat__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--size-h3-service);
  line-height: 1.2;
  color: var(--plum);
  text-wrap: pretty;
}
.cat__body .lede { margin-bottom: clamp(1.25rem, 3vw, 1.75rem); }

.cat__placeholder {
  list-style: none;
  margin: 0;
  padding: .75rem 0 0;
  border-top: 1px dashed var(--field-line);
  color: var(--micro);
  font-size: .875rem;
  letter-spacing: .04em;
}

/* A finalised list of offerings — two tidy columns, hairline-separated. */
.cat__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}
.cat__items li {
  padding: .7rem 0;
  border-top: 1px solid var(--hairline);
  font-size: var(--size-body-service);
  line-height: 1.5;
  color: var(--ink);
}

.exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}
.exp__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--plum);
  margin-bottom: .35rem;
}
.exp__body { font-size: var(--size-body-service); line-height: 1.95; color: var(--muted); text-wrap: pretty; }

/* ==========================================================================
   Modal — origin-aware dialog
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.modal[hidden] { display: none; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(46, 32, 40, .45);
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity var(--dur-hover) ease;
}
.modal.is-open .modal__scrim { opacity: 1; }

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  max-height: min(90vh, 52rem);
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--surface);
  border-radius: var(--radius);
  /* A large floating surface reads as thicker — a deeper shadow than a chip. */
  box-shadow: 0 30px 80px rgba(46, 32, 40, .38);
  opacity: 0;
  transform: scale(.96);
  /* Scale and opacity together = the surface materialises, not just fades. */
  transition: opacity var(--dur-hover) ease, transform .4s var(--ease-reveal);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color .2s ease;
}
.modal__close:hover { color: var(--plum); }
.modal .eyebrow { margin-bottom: .75rem; }
.modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--plum);
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  padding-right: 2.5rem;
  text-wrap: pretty;
}
.modal__placeholder { margin-top: 1rem; color: var(--micro); font-size: .9375rem; letter-spacing: .04em; }

/* ---- How It Works steps ------------------------------------------------ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 1.75rem); align-items: start; }
.step__no {
  font-family: var(--font-display);
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-top: .4rem;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--plum);
  margin-bottom: .5rem;
}
.step__body { font-size: 1rem; line-height: 1.9; color: var(--muted); text-wrap: pretty; }
.step__note { color: var(--micro); font-size: .875rem; }

@media (max-width: 34em) {
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .step__no { padding-top: 0; }
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.accordion { border-top: 1px solid var(--hairline); }
.accordion__item { border-bottom: 1px solid var(--hairline); }
.accordion__heading { margin: 0; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.3;
  color: var(--plum);
  transition: color .2s ease;
}
.accordion__trigger:hover { color: var(--accent); }

.accordion__icon { position: relative; width: 16px; height: 16px; flex: none; color: var(--accent); }
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.accordion__icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.accordion__icon::after {
  left: 50%; top: 0; bottom: 0; width: 1.5px;
  transform: translateX(-50%);
  transition: transform var(--dur-hover) ease, opacity var(--dur-hover) ease;
}
.accordion__item.is-open .accordion__icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease-reveal);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner { overflow: hidden; }
.accordion__panel-inner p {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: 1rem;
  line-height: 2;
  color: var(--muted);
  max-width: var(--measure-prose);
  text-wrap: pretty;
}
.accordion__panel-inner em { color: var(--micro); font-style: italic; }

/* ==========================================================================
   Reduced motion — collapse the v2 transitions to instant / opacity-only
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .feature-card__arrow { transition: none; }
  .feature-card:hover { transform: none; }
  .feature-card:active { transform: none; opacity: .85; }

  .modal__panel { transform: none; transition: opacity .2s ease; }
  .modal.is-open .modal__panel { transform: none; }
  .modal__scrim { transition: opacity .2s ease; }

  .accordion__panel { transition: none; }
  .accordion__icon::after { transition: none; }
}

/* ==========================================================================
   How It Works — connected step timeline (replaces the earlier modal)
   Horizontal connected stepper on desktop; a vertical spine on mobile.
   Each step is data-reveal, so they rise in sequence as the row scrolls in —
   the motion telegraphs the 1 → 4 order (§8).
   ========================================================================== */
.howto__title { max-width: 22ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.timeline {
  --tl-node: 2.75rem;
  --tl-gap: clamp(1.25rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tl-gap);
}
.timeline__step { position: relative; padding-top: calc(var(--tl-node) + 1.25rem); }

.timeline__node {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: var(--tl-node);
  height: var(--tl-node);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--plum);
  border-radius: 50%;
  background: var(--surface);
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
}

/* Connector runs from this node's edge across the gap to the next node. */
.timeline__step::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: calc(var(--tl-node) / 2);
  left: var(--tl-node);
  right: calc(-1 * var(--tl-gap));
  height: 1px;
  background: var(--hairline);
}
.timeline__step:last-child::after { display: none; }

.timeline__step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--plum);
  margin-bottom: .6rem;
  text-wrap: pretty;
}
.timeline__body {
  font-size: var(--size-body-service);
  line-height: 1.9;
  color: var(--muted);
  text-wrap: pretty;
}

@media (max-width: 51.25em) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__step {
    display: grid;
    grid-template-columns: var(--tl-node) 1fr;
    column-gap: 1.25rem;
    padding-top: 0;
    padding-bottom: clamp(1.75rem, 5vw, 2.5rem);
  }
  .timeline__step:last-child { padding-bottom: 0; }
  .timeline__node { position: static; }
  /* Spine drops from below this node to the next one. */
  .timeline__step::after {
    top: var(--tl-node);
    bottom: 0;
    left: calc(var(--tl-node) / 2);
    right: auto;
    width: 1px;
    height: auto;
    transform: translateX(-.5px);
  }
}

/* ==========================================================================
   Team / leadership — headshot reveals a bio on hover, focus, or tap
   The bio overlay materialises (fade + rise) over the headshot. Hover is
   pointer-only, so the same reveal is bound to :focus-visible (keyboard) and
   [aria-expanded="true"] (tap-pinned) — see js/team.js.
   ========================================================================== */
.team-grid {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.member__card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--hairline-faint);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow var(--dur-hover) ease, transform var(--dur-hover) ease;
}
.member__card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(46, 32, 40, .18); }
.member__card:active { transform: scale(.99); transition: transform var(--dur-press) ease-out; }

.member__photo {
  position: absolute;
  inset: 0;
  background: var(--shell);
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.member__bio {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* short bios settle at the bottom */
  overflow-y: auto;            /* a long one scrolls rather than clipping */
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-align: left;
  color: var(--on-plum-strong);
  background: linear-gradient(to top, rgba(71, 42, 62, .97) 55%, rgba(71, 42, 62, .78));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-hover) ease, transform .4s var(--ease-reveal);
}
.member__bio-inner { font-size: .85rem; line-height: 1.65; }

.member__card:hover .member__bio,
.member__card:focus-visible .member__bio,
.member__card[aria-expanded="true"] .member__bio { opacity: 1; transform: none; }

.member__meta { margin-top: 1rem; }
.member__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--plum);
}
.member__role { font-size: .875rem; letter-spacing: .02em; color: var(--muted); margin-top: .3rem; }
.member__hint {
  display: inline-block;
  margin-top: .6rem;
  font-size: var(--size-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--micro);
}
.member.is-open .member__hint { opacity: .4; }

@media (max-width: 51.25em) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34em) { .team-grid { grid-template-columns: 1fr; gap: 2rem; } }

@media (prefers-reduced-motion: reduce) {
  .member__card:hover,
  .member__card:active { transform: none; }
  .member__bio { transform: none; transition: opacity .2s ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .member__bio { background: var(--plum); }
}

/* ==========================================================================
   Legal / policy pages (privacy)
   ========================================================================== */
.legal__updated {
  font-size: var(--size-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--micro);
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: var(--plum);
  margin: clamp(2rem, 4vw, 2.75rem) 0 .75rem;
  text-wrap: pretty;
}
.legal > p:first-child { font-size: 1.0625rem; }
.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  text-wrap: pretty;
}
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--plum); }
.legal strong { color: var(--ink); }
