@font-face {
  font-family: "Urbanist";
  src: url("assets/fonts/Urbanist.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --purple: #6528A6;
  --purple-deep: #54208C;
  --purple-lit: #7436BB;
  --sun: #F8C828;
  --cream: #F8F0E8;
  --paper: #FBF8F4;
  --grape: #2A0F4D;
  --lilac: #EFE6FB;
  --sun-tint: #FFF3C9;
  --on-purple-soft: #DCCBF3;
  --on-cream-soft: #5B4A78;
  --white: #FFFFFF;
  --danger: #B3261E;
  --line: rgb(42 15 77 / 0.14);
  --r-card: 14px;
  --r-control: 12px;
  --r-chip: 8px;
  --r-tile: clamp(26px, 3.2vw, 40px);
  --gutter: clamp(20px, 5vw, 56px);
  --wide: 1160px;
  --head-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  scrollbar-color: var(--purple) var(--cream);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--grape);
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 500;
  caret-color: var(--purple);
  -webkit-font-smoothing: antialiased;
  /* the coloured ground under the header and the top of the page */
  --ground: var(--purple);
  --on-ground: var(--cream);
  --on-ground-soft: var(--on-purple-soft);
  --ground-line: rgb(248 240 232 / 0.36);
  --ground-accent: var(--sun);
}
body[data-ground="lilac"], body[data-ground="sun"], body[data-ground="cream"] {
  --on-ground: var(--grape);
  --on-ground-soft: var(--on-cream-soft);
  --ground-line: rgb(42 15 77 / 0.22);
  --ground-accent: var(--purple);
}
body[data-ground="lilac"] { --ground: var(--lilac); }
body[data-ground="sun"] { --ground: var(--sun-tint); }
body[data-ground="cream"] { --ground: var(--paper); }

::selection { background: var(--sun); color: var(--grape); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 7.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.15; }

p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-purple :focus-visible, .foot :focus-visible { outline-color: var(--sun); }
.ground :focus-visible { outline-color: var(--ground-accent); }

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--sun); color: var(--grape);
  padding: 10px 14px; border-radius: var(--r-control); font-weight: 700;
  z-index: 30;
}
.skip:focus { top: 12px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.soft { color: var(--on-cream-soft); }
.on-purple { background: var(--purple); color: var(--cream); }
.on-purple .soft { color: var(--on-purple-soft); }

/* ---------- ground: the coloured top of every page, lit from its top leading corner ---------- */

.ground { position: relative; padding-top: var(--head-h); background: var(--ground); color: var(--on-ground); }
.ground .soft { color: var(--on-ground-soft); }
body[data-ground="purple"] .ground { background: radial-gradient(120% 90% at 4% -10%, var(--purple-lit) 0%, var(--purple) 50%, #5B2397 100%); }
body[data-ground="lilac"] .ground { background: radial-gradient(90% 80% at 6% -10%, #F9F4FF 0%, var(--lilac) 62%); }
body[data-ground="sun"] .ground { background: radial-gradient(90% 80% at 6% -10%, #FFFBE8 0%, var(--sun-tint) 62%); }

/* ---------- header ---------- */

.top-mark { position: absolute; top: 0; left: 0; width: 1px; height: 28px; pointer-events: none; }

.head {
  position: sticky; top: 0; z-index: 20;
  height: var(--head-h); margin-bottom: calc(var(--head-h) * -1);
  color: var(--on-ground);
  --head-accent: var(--ground-accent);
  --brand-ink: var(--white);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
/* without scripts it cannot turn solid, so it stays at the top of the page */
html:not(.js) .head { position: absolute; inset: 0 0 auto; margin: 0; }
.head.solid, .head.open {
  background: var(--paper); color: var(--grape);
  box-shadow: 0 1px 0 var(--line);
  --head-accent: var(--purple);
  --ground-line: rgb(42 15 77 / 0.22);
  --brand-ink: #63219C;
}
body[data-ground="lilac"] .head, body[data-ground="sun"] .head, body[data-ground="cream"] .head { --brand-ink: #63219C; }
.head :focus-visible { outline-color: var(--head-accent); }

.head-in { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); height: var(--head-h); }

.brand {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 1.875rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--brand-ink); text-decoration: none;
  transition: color 0.3s;
}
/* the logo: the name takes the colour of the brand link, the sparks keep their own yellow */
.logo { display: block; height: 42px; width: auto; aspect-ratio: 520 / 235; overflow: visible; }
.foot .logo { height: 58px; }

.head-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); margin-left: auto; }
.head-link, .menu-btn { font-weight: 700; font-size: 1rem; text-decoration: none; color: inherit; white-space: nowrap; }
.head-link {
  display: none;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.head-link:hover, .head-link[aria-current="page"] { border-bottom-color: var(--head-accent); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border-radius: var(--r-control);
  box-shadow: inset 0 0 0 1.5px var(--ground-line);
  font-weight: 800; cursor: pointer;
  transition: box-shadow 0.25s, background-color 0.25s;
}
.menu-btn:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.menu-btn .chev { display: none; transition: transform 0.4s var(--ease); }
.burger path { transform-box: fill-box; transform-origin: center; transition: transform 0.4s var(--ease), opacity 0.2s; }
.menu-btn[aria-expanded="true"] .burger path:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger path:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger path:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.when-wide { display: none; }

.btn.head-cta { display: none; min-height: 44px; padding: 10px 18px; font-size: 1rem; }

/* the menu: a sheet under the header on a phone, a card on a wide screen */
.menu {
  position: absolute; inset: 100% 0 auto 0;
  max-height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--grape);
  box-shadow: 0 30px 50px rgb(26 8 50 / 0.25);
  transition: opacity 0.25s, transform 0.4s var(--ease), display 0.4s allow-discrete;
}
.menu[hidden] { display: none; opacity: 0; transform: translateY(-10px); }
@starting-style { .menu:not([hidden]) { opacity: 0; transform: translateY(-10px); } }
.menu-in { display: grid; gap: 22px 28px; padding-block: 18px calc(30px + var(--badge, 0px)); }
.menu-h { margin-bottom: 4px; font-size: 0.9375rem; font-weight: 800; color: var(--on-cream-soft); }
.menu-more .menu-h + ul + .menu-h { margin-top: 18px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px;
  min-height: 58px; padding: 6px 10px; margin-inline: -10px;
  border-radius: var(--r-control);
  text-decoration: none;
  transition: background-color 0.25s;
}
.menu a:hover { background: var(--lilac); }
.menu a img { width: 44px; height: 44px; transition: transform 0.45s var(--ease); }
.menu a:hover img { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.menu a b { display: block; font-weight: 800; line-height: 1.2; }
.menu a small { display: block; font-size: 0.9375rem; line-height: 1.25; color: var(--on-cream-soft); }
.menu-more a { display: flex; min-height: 44px; font-weight: 700; }

@media (min-width: 620px) {
  .menu-in { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  :root { --head-h: 72px; }
  .head .logo { height: 46px; }
  .btn.head-cta { display: inline-flex; }
}
@media (min-width: 1040px) {
  .head-nav { flex: 1; margin-left: clamp(16px, 3vw, 44px); }
  .head-link { display: inline-block; }
  .btn.head-cta { margin-left: auto; }
  .menu-btn { padding: 10px 0; box-shadow: none; font-weight: 700; border-bottom: 2px solid transparent; border-radius: 0; }
  .menu-btn:hover { box-shadow: none; border-bottom-color: var(--head-accent); }
  .menu-btn .burger, .when-narrow { display: none; }
  .menu-btn .chev, .when-wide { display: inline; }
  .menu-btn .chev { display: block; width: 18px; height: 18px; }
  .menu { background: none; box-shadow: none; overflow: visible; max-height: none; pointer-events: none; }
  .menu-in {
    pointer-events: auto;
    grid-template-columns: repeat(4, 1fr) 0.8fr;
    margin-top: 6px; padding: 26px 30px 30px;
    background: var(--white); border-radius: 24px;
    box-shadow: 0 30px 70px rgb(26 8 50 / 0.3), 0 0 0 1px var(--line);
  }
}

/* sparks: the two yellow ticks from the logo */
.nb { white-space: nowrap; position: relative; }
.sparks { position: absolute; left: 100%; top: -0.3em; width: 0.8em; height: 0.8em; margin-left: -0.02em; }
.sparks rect { fill: var(--sun); transform-box: fill-box; transform-origin: 50% 100%; }

.mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--purple); }
.mark svg { width: 60%; height: 60%; }
.mark rect { fill: var(--sun); }

.go { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }

.chip {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  border-radius: var(--r-chip);
  background: var(--sun-tint); color: #4A3305;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0; vertical-align: middle;
}

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 26px;
  border: 0; border-radius: var(--r-control);
  font: inherit; font-weight: 800; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sun { background: var(--sun); color: var(--grape); }
.btn-sun:hover { background: #FFD84D; box-shadow: 0 8px 22px rgb(42 15 77 / 0.28); transform: translateY(-2px); }
.btn-purple { background: var(--purple); color: var(--cream); }
.btn-purple:hover { background: var(--purple-deep); box-shadow: 0 8px 22px rgb(101 40 166 / 0.3); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; }
.text-link .go { width: 22px; height: 22px; }
.text-link:hover .go { transform: translateX(5px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }

/* ---------- home hero + doors ---------- */

.home-hero { padding-bottom: clamp(36px, 6vw, 72px); }
.home-hero .wrap { padding-top: clamp(28px, 6vw, 72px); }
.home-hero h1 { max-width: 13ch; }
.home-hero .lede { margin-top: 22px; font-size: clamp(1.125rem, 2.2vw, 1.375rem); max-width: 34ch; }

.doors { display: grid; gap: 14px; margin-top: clamp(28px, 5vw, 48px); }

.door {
  position: relative;
  border-radius: var(--r-card);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.door strong { display: block; font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.door span { display: block; margin-top: 8px; font-size: 1.0625rem; max-width: 34ch; }
.door:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgb(26 8 50 / 0.35); }

/* photo doors on the home top screen */
.door.photo {
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  min-height: 220px; padding: 22px; color: var(--white);
  box-shadow: 0 14px 30px rgb(26 8 50 / 0.35);
}
.door.photo img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none; margin: 0;
  object-fit: cover; object-position: var(--pos, 50% 30%);
  transition: transform 1.2s var(--ease);
}
.door.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(26 8 50 / 0.9) 0%, rgb(26 8 50 / 0.5) 38%, rgb(26 8 50 / 0) 68%); }
.door.photo span { color: #EFE6FB; }
.door.photo:hover img { transform: scale(1.05); }

/* ---------- partner and driver hero ---------- */

.p-hero { padding-bottom: clamp(40px, 7vw, 88px); }
.p-hero-grid { display: grid; gap: 0; align-items: start; padding-top: clamp(16px, 4vw, 48px); }
.p-hero-grid > div:first-child { display: contents; }
.p-hero-grid .form-card { order: 2; margin-top: 26px; }
.p-hero-grid .hero-art { order: 3; justify-content: flex-end; margin: 22px 0 -96px; position: relative; z-index: 2; }
.p-hero h1 { font-size: clamp(2.375rem, 6vw, 4.25rem); max-width: 12ch; }
.p-hero .lede { margin-top: 18px; font-size: clamp(1.125rem, 2vw, 1.3125rem); max-width: 32ch; }
.hero-art { display: flex; gap: 4px; margin-top: 18px; }
.hero-art img { width: 132px; filter: drop-shadow(0 12px 12px rgb(26 8 50 / 0.35)); }

/* ---------- service hero ---------- */

.svc-hero { padding-bottom: clamp(64px, 9vw, 112px); }
.svc-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; padding-top: clamp(20px, 4vw, 48px); }
.svc-hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.5rem); max-width: 13ch; }
.svc-hero .lede { margin-top: 20px; font-size: clamp(1.125rem, 1.9vw, 1.3125rem); max-width: 36ch; }
.svc-shot { position: relative; margin: 0 0 0 clamp(8px, 4vw, 40px); }
.svc-shot .photo {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: var(--pos, 50% 40%);
  border-radius: var(--r-tile);
  box-shadow: 0 30px 60px rgb(42 15 77 / 0.24);
}
.svc-shot .art {
  position: absolute; left: clamp(-40px, -4vw, -8px); bottom: -15%;
  width: clamp(120px, 36%, 230px);
  filter: drop-shadow(0 18px 18px rgb(42 15 77 / 0.32));
}
.svc-solo .cluster img { width: 36%; max-width: 250px; }
.svc-solo .cluster img:nth-child(2) { width: 46%; max-width: 330px; }

/* ---------- plain page top (safety, about, questions, privacy, not found) ---------- */

.read-hero { padding-bottom: clamp(48px, 7vw, 96px); }
.read-hero .wrap { padding-top: clamp(28px, 5vw, 64px); }
.read-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); max-width: 16ch; }
.read-hero .lede { margin-top: 20px; font-size: clamp(1.125rem, 2vw, 1.375rem); max-width: 44ch; }
.lost { min-height: 72vh; }
.lost .wrap { display: grid; gap: 24px; align-items: center; }
.lost-art { width: clamp(170px, 30vw, 360px); justify-self: center; filter: drop-shadow(0 24px 24px rgb(26 8 50 / 0.4)); }
.js .lost-art { animation: drop 0.9s var(--ease) 0.2s both; }
@media (min-width: 860px) { .lost .wrap { grid-template-columns: 1.2fr 0.8fr; } }

.family { display: flex; flex-wrap: wrap; justify-content: center; margin: clamp(36px, 6vw, 72px) auto 0; max-width: 980px; }
.family img {
  width: clamp(76px, 12vw, 132px); margin: 0 -1.4% -2%;
  filter: drop-shadow(0 12px 12px rgb(42 15 77 / 0.22));
  transition: transform 0.5s var(--ease);
}
.family img:nth-child(odd) { transform: translateY(9%) rotate(-5deg); }
.family img:nth-child(even) { transform: translateY(-7%) rotate(4deg); }
.family img:hover { transform: translateY(-14%) scale(1.1); }

/* ---------- form ---------- */

.form-card {
  background: var(--cream); color: var(--grape);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 24px 48px rgb(26 8 50 / 0.3);
}
.form-card h2 { font-size: 1.625rem; letter-spacing: -0.02em; }
.form-card .note { margin-top: 6px; font-size: 1rem; color: var(--on-cream-soft); }
.form-card :focus-visible { outline-color: var(--purple); }

.fields { display: grid; gap: 14px; margin-top: 18px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 52px;
  padding: 12px 14px;
  border: 2px solid rgb(42 15 77 / 0.22);
  border-radius: var(--r-control);
  background: var(--white); color: var(--grape);
  font: inherit; font-weight: 600;
  transition: border-color 0.2s;
}
.field input::placeholder { color: #6E5A8F; font-weight: 500; }
.field input:hover { border-color: rgb(42 15 77 / 0.45); }
.field input:focus-visible { outline: 3px solid var(--sun); outline-offset: 0; border-color: var(--purple); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { display: none; margin-top: 6px; font-size: 0.9375rem; font-weight: 700; color: var(--danger); }
.field.bad .err { display: block; }

.phone { display: grid; grid-template-columns: auto 1fr; }
.phone span {
  display: flex; align-items: center; padding-inline: 14px;
  background: var(--lilac); border: 2px solid rgb(42 15 77 / 0.22); border-right: 0;
  border-radius: var(--r-control) 0 0 var(--r-control);
  font-weight: 800;
}
.phone input { border-radius: 0 var(--r-control) var(--r-control) 0 !important; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { margin: 0; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px;
  border: 2px solid rgb(42 15 77 / 0.22); border-radius: var(--r-control);
  background: var(--white); font-weight: 700; font-size: 1rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.choices label:hover span { border-color: var(--purple); }
.choices input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--cream); }
.choices input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.form-card .btn { width: 100%; margin-top: 20px; }
.form-card .fine { margin-top: 12px; font-size: 0.9375rem; color: var(--on-cream-soft); }
.hp { position: absolute; left: -9999px; }

.done { display: none; }
.sent form { display: none; }
.sent .done { display: block; animation: rise 0.6s var(--ease) both; }
.done h2 { font-size: 1.875rem; }
.done p { margin-top: 10px; }
.send-fail { display: none; margin-top: 12px; font-weight: 700; color: var(--danger); font-size: 1rem; }
.failed .send-fail { display: block; }

/* the "tell me when it opens" tile */
.notify-tile { position: relative; overflow: hidden; border-radius: var(--r-tile); background: var(--sun-tint); padding: clamp(28px, 5vw, 64px); }
.notify-tile h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); letter-spacing: -0.03em; max-width: 16ch; }
.notify-tile .intro { margin-top: 12px; color: #4A3A68; max-width: 40ch; }
.notify { display: grid; gap: 12px; margin-top: 26px; max-width: 520px; }
.notify .btn { width: 100%; }
.notify-art { display: none; }

/* phone-only button that follows the reader once the form has scrolled away */
/* --badge is the height of anything the host pins to the bottom corner (site.js measures it); it is 0 when there is none */
.stick {
  position: fixed; inset: auto 12px calc(12px + var(--badge, 0px)) 12px; z-index: 10;
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}
.stick .btn { width: 100%; box-shadow: 0 12px 28px rgb(26 8 50 / 0.4); }
.stick.show { transform: none; transition: transform 0.45s var(--ease), bottom 0.3s var(--ease); }

/* ---------- motion ---------- */

@keyframes rise { from { transform: translateY(14px); } }
@keyframes drop {
  0% { transform: translateY(-30px) rotate(-10deg) scale(0.92); }
  60% { transform: translateY(6px) rotate(2deg) scale(1.02); }
  100% { transform: none; }
}
@keyframes spark { 0% { transform: scaleY(0); } 70% { transform: scaleY(1.25); } 100% { transform: scaleY(1); } }

.js .hero-art img, .js .svc-shot .art, .js .svc-solo img { animation: drop 0.9s var(--ease) both; }
.js .hero-art img:nth-child(1), .js .svc-solo img:nth-child(1) { animation-delay: 0.15s; }
.js .hero-art img:nth-child(2), .js .svc-solo img:nth-child(2), .js .svc-shot .art { animation-delay: 0.3s; }
.js .svc-solo img:nth-child(3) { animation-delay: 0.45s; }
.js .sparks rect { animation: spark 0.6s var(--ease) 0.7s both; }
.js .sparks g + g rect { animation-delay: 0.82s; }

/* ---------- sections ---------- */

.sec { padding-top: clamp(72px, 10vw, 136px); }
main > .sec:last-child { padding-bottom: clamp(72px, 10vw, 136px); }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.12; max-width: 20ch; }
.sec-head p { margin-top: 14px; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--on-cream-soft); max-width: 52ch; }
.sec-head.center { text-align: center; }
.sec-head.center h2 { margin-inline: auto; font-size: clamp(2.125rem, 5.4vw, 4rem); line-height: 1.05; max-width: 16ch; }
.sec-head.center p { margin-inline: auto; }
.after-head { margin-top: 18px; }
.after-hero { padding-top: 150px; }

/* ---------- segmented control: the yellow thumb slides to the choice ---------- */

.seg {
  position: relative;
  display: grid; grid-template-columns: repeat(var(--n, 3), 1fr);
  max-width: 760px;
  margin-top: clamp(24px, 4vw, 40px); padding: 6px;
  border-radius: 18px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.seg-4 { --n: 4; max-width: 640px; }
.seg button {
  position: relative; z-index: 1;
  min-height: 52px; padding: 8px 6px;
  border: 0; border-radius: var(--r-control); background: none;
  font: inherit; font-weight: 800; font-size: clamp(0.875rem, 1.7vw, 1.0625rem); line-height: 1.15;
  color: var(--on-cream-soft); cursor: pointer; text-wrap: balance;
  transition: color 0.25s;
}
.seg button:hover, .seg [aria-selected="true"], .seg [aria-pressed="true"] { color: var(--grape); }
.seg-thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px) / var(--n, 3));
  border-radius: var(--r-control);
  background: var(--sun); box-shadow: 0 6px 14px rgb(42 15 77 / 0.18);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.5s var(--ease);
}
html:not(.js) .seg { display: none; }

/* ---------- directory: a family name on the left, its rows on the right ---------- */

.dir { margin-top: clamp(20px, 3vw, 36px); }
.js .dir.off { display: none; }
.dir-title { margin-top: 40px; font-size: 1.5rem; font-weight: 800; }
.js .dir-title { display: none; }
.dir-cta { margin-top: 26px; }

.dir-group { display: grid; gap: 6px 40px; padding-block: clamp(22px, 3vw, 36px) clamp(10px, 1.6vw, 18px); border-top: 1px solid var(--line); }
.dir-group > h3, .dir-group > h2, .lead h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); letter-spacing: -0.03em; line-height: 1.1; }

.dir-rows { list-style: none; margin: 0; padding: 0; }
.dir-rows li + li { border-top: 1px solid var(--line); }
.dir-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 2vw, 24px);
  padding: 14px clamp(8px, 1.2vw, 16px); margin-inline: calc(clamp(8px, 1.2vw, 16px) * -1);
  border-radius: 16px;
  text-decoration: none;
  transition: background-color 0.3s var(--ease);
}
.dir-row img {
  width: clamp(60px, 7vw, 84px);
  filter: drop-shadow(0 8px 8px rgb(42 15 77 / 0.18));
  transition: transform 0.5s var(--ease);
}
.dir-row b { display: block; font-size: clamp(1.1875rem, 1.8vw, 1.375rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.dir-text > span { display: block; margin-top: 3px; font-size: 1.0625rem; line-height: 1.35; color: var(--on-cream-soft); }
.dir-row:hover { background: var(--lilac); }
.dir-row:hover img { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.dir-row:hover .go { transform: translateX(5px); }

.dir-rows.two { margin-top: clamp(22px, 3.5vw, 40px); border-block: 1px solid var(--line); }

.lead img { width: clamp(96px, 12vw, 150px); margin-top: 18px; filter: drop-shadow(0 14px 14px rgb(42 15 77 / 0.2)); }
.checks { list-style: none; margin: 0; padding: 6px 0 14px; display: grid; gap: 16px; align-content: start; }
.checks li, .safe li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; font-size: clamp(1.0625rem, 1.7vw, 1.1875rem); font-weight: 600; line-height: 1.4; }
.checks li span, .safe li span { padding-top: 4px; max-width: 46ch; }

.questions .qa { margin: 0; max-width: none; padding-bottom: 14px; align-content: start; }

@media (min-width: 860px) {
  .dir-group { grid-template-columns: minmax(220px, 0.36fr) 1fr; }
  .dir-group > h3, .dir-group > h2, .lead { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; padding-top: 14px; }
  .dir-rows.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .dir-rows.two li:nth-child(2) { border-top: 0; }
}

/* ---------- steps along a route ---------- */

.flow { position: relative; list-style: none; margin: clamp(28px, 4.5vw, 56px) 0 0; padding: 0; display: grid; gap: 30px; }
.flow::before {
  content: ""; position: absolute; left: 20px; top: 20px; bottom: 20px;
  border-left: 3px dashed rgb(101 40 166 / 0.4);
}
.flow-step { position: relative; min-width: 0; padding-left: 62px; }
.flow-n {
  position: absolute; left: 0; top: -6px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple); color: var(--cream);
  font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--paper);
}
.flow-step h3 { font-size: clamp(1.25rem, 2vw, 1.4375rem); }
.flow-step p { margin-top: 6px; font-size: 1.0625rem; color: var(--on-cream-soft); max-width: 36ch; }

.flow-shot { display: flex; margin-top: 16px; padding: 14px 14px 0; border-radius: 20px; background: var(--lilac); overflow: hidden; max-width: 340px; }
.flow-step:nth-child(even) .flow-shot { background: var(--sun-tint); }
.flow-shot .screen { margin: 0; max-width: none; min-height: 168px; border-width: 6px; border-radius: 22px 22px 0 0; padding: 12px 10px 14px; font-size: 0.875rem; }
.flow-shot .screen header { font-size: 0.9375rem; }
.flow-shot .screen li { padding: 9px 10px; }
.screen.off { display: none; }
.picked .screen li { animation: rise 0.45s var(--ease) both; }
.picked .screen li:nth-child(2) { animation-delay: 0.06s; }
.picked .screen li:nth-child(3) { animation-delay: 0.12s; }

.pin { display: flex; gap: 6px; margin: 0; }
.pin i {
  display: grid; place-items: center; width: 26px; height: 32px;
  border-radius: var(--r-chip);
  background: var(--purple); color: var(--sun);
  font-style: normal; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums;
}
.screen li .pin { margin-top: 6px; }
.screen .pin i { color: var(--sun); font-weight: 800; }
.pin.big { gap: clamp(8px, 1.2vw, 12px); margin-top: 20px; }
.pin.big i { width: clamp(52px, 6vw, 68px); height: clamp(64px, 7.4vw, 84px); border-radius: 16px; font-size: clamp(1.75rem, 3.4vw, 2.5rem); box-shadow: 0 14px 22px rgb(42 15 77 / 0.2); }

@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(var(--cols), 1fr); gap: 0 clamp(16px, 2vw, 28px); }
  .flow::before {
    left: 22px; right: 22px; top: 20px; bottom: auto;
    border-left: 0; border-top: 3px dashed rgb(101 40 166 / 0.4);
  }
  .flow-step { padding: 62px 0 0; }
  .flow-n { top: 0; }
  /* the example screens line up along one row, whatever the length of the words above them */
  .flow-shots { grid-template-rows: auto 1fr auto; }
  .flow-shots .flow-step { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .flow-shot { max-width: none; }
}

/* ---------- big rounded tiles ---------- */

.bento { display: grid; gap: 14px; margin-top: clamp(28px, 4.5vw, 56px); }

.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 400px;
  padding: clamp(24px, 2.6vw, 34px) clamp(24px, 2.6vw, 34px) 0;
  border-radius: var(--r-tile);
  color: var(--grape);
}
.tile h3 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.24; max-width: 22ch; }
.tile p { margin-top: 10px; font-size: 1.0625rem; color: #4A3A68; max-width: 34ch; }
.tile > img, .tile .cluster {
  margin-top: auto; align-self: center;
  width: min(80%, 460px);
  transform: translateY(7%);
  filter: drop-shadow(0 22px 22px rgb(42 15 77 / 0.2));
  transition: transform 0.6s var(--ease);
}
.tile:hover > img { transform: translateY(4%) rotate(-3deg) scale(1.03); }
.tile .num {
  display: block; margin-bottom: 12px;
  font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--purple);
}
.t-lilac { background: var(--lilac); }
.t-sun { background: var(--sun); }
.t-sun p { color: #4A3305; }
.t-sun .num { color: var(--grape); }
.t-suntint { background: var(--sun-tint); }
.t-cream { background: var(--cream); }
.t-white { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.t-purple { background: radial-gradient(120% 100% at 0% 0%, var(--purple-lit), var(--purple) 55%, #5B2397); color: var(--cream); }
.tile.t-purple p { color: var(--on-purple-soft); }

.cluster { display: flex; justify-content: center; align-items: flex-end; filter: none !important; width: 100% !important; }
.cluster img { width: 38%; max-width: 300px; filter: drop-shadow(0 22px 22px rgb(42 15 77 / 0.22)); }
.cluster img + img { margin-left: -9%; }
.cluster img:nth-child(2) { width: 44%; max-width: 350px; position: relative; z-index: 1; }

/* small tiles */
.tile.short { min-height: 300px; }
.tile.short > img { width: min(62%, 250px); }

/* fact tiles on a service page: one wide with art, one that only speaks, one full row */
.tile.fact { min-height: 0; padding-bottom: clamp(24px, 2.6vw, 34px); }
.tile.fact.w4, .tile.fact.wide { padding-bottom: 0; }
.tile.fact > img { width: min(52%, 220px); margin-top: 18px; }
.tile.say { justify-content: flex-end; min-height: 240px; }
.tile.say h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-weight: 800; line-height: 1.12; }

/* tool panels with a cut-off screen */
.panels { display: grid; gap: 14px; margin-top: clamp(28px, 4.5vw, 56px); }
.panel {
  display: flex; flex-direction: column; overflow: hidden;
  min-height: 440px;
  padding: 28px 28px 0;
  background: var(--white); border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.panel h3 { font-size: 1.4375rem; font-weight: 700; letter-spacing: -0.02em; }
.panel p { margin-top: 8px; font-size: 1.0625rem; color: var(--on-cream-soft); }
.screen {
  margin: 28px auto 0; width: 100%; max-width: 330px; flex: 1;
  border: 7px solid var(--purple); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: var(--paper); padding: 16px 14px 0;
  font-size: 0.9375rem;
}
.screen header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 800; font-size: 1rem; }
.screen header small { font-weight: 600; color: var(--on-cream-soft); font-size: 0.8125rem; }
.screen ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.screen li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 11px 12px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.screen li.hot { background: var(--sun-tint); box-shadow: none; }
.screen b { font-weight: 800; }
.screen i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: #45306B; }
.screen li > span { grid-column: 1 / -1; color: #45306B; }
.screen li .state { grid-column: auto; justify-self: end; padding: 3px 10px; border-radius: var(--r-chip); font-weight: 800; font-size: 0.8125rem; background: #D7F5DD; color: #14572A; }
.screen li .state.off { background: #EDE7F3; color: #5B4A78; }

/* ---------- lists of plain facts ---------- */

.spec { margin: clamp(22px, 3.5vw, 40px) 0 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; gap: 4px 40px; padding-block: clamp(18px, 2.4vw, 26px); border-bottom: 1px solid var(--line); }
.spec dt { font-size: clamp(1.5rem, 2.8vw, 2.125rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.spec dd { margin: 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--on-cream-soft); max-width: 52ch; }

.tags { list-style: none; margin: clamp(22px, 3.5vw, 40px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 16px; border-radius: var(--r-chip); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 1.0625rem; }

.safe { padding: clamp(26px, 4vw, 52px); border-radius: var(--r-tile); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.safe h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; max-width: 20ch; }
.safe ul { list-style: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; display: grid; gap: 16px clamp(24px, 4vw, 56px); }
.safe .text-link { margin-top: clamp(20px, 3vw, 30px); }

/* reading pages */
.read { max-width: 68ch; }
.read h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.12; }
.read h2:not(:first-child) { margin-top: clamp(40px, 6vw, 64px); }
.read p, .read ul { margin-top: 12px; color: #3D2A5E; }
.read ul { padding-left: 1.15em; }
.read li + li { margin-top: 8px; }
.read li::marker { color: var(--purple); }
.read-sec { padding-top: clamp(8px, 2vw, 24px); }

/* ---------- questions ---------- */

.faq-sec { margin-top: clamp(72px, 10vw, 136px); padding-block: clamp(64px, 9vw, 112px); }
.faq-sec h2 { text-align: center; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.03em; }
.qa { display: grid; gap: 12px; margin: clamp(28px, 4vw, 48px) auto 0; max-width: 980px; }
.qa details { border: 1.5px solid rgb(248 240 232 / 0.3); border-radius: 18px; transition: background-color 0.25s, border-color 0.25s; }
.qa details:hover, .qa details[open] { background: rgb(248 240 232 / 0.08); border-color: rgb(248 240 232 / 0.5); }
.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 32px; gap: 16px; align-items: center;
  padding: 18px 20px;
  font-weight: 700; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 32px; height: 32px; transition: transform 0.4s var(--ease); }
.qa summary svg circle { fill: none; stroke: rgb(248 240 232 / 0.6); stroke-width: 1.5; }
.qa summary svg path { stroke: var(--cream); stroke-width: 2; stroke-linecap: round; fill: none; }
.qa details[open] summary svg { transform: rotate(45deg); }
.qa details p { padding: 0 20px 20px; max-width: 64ch; color: var(--on-purple-soft); }
.qa details a { color: var(--cream); font-weight: 700; }

.qa.light details { border-color: var(--line); background: var(--white); }
.qa.light details:hover, .qa.light details[open] { border-color: rgb(42 15 77 / 0.4); background: var(--white); }
.qa.light summary svg circle { stroke: rgb(42 15 77 / 0.4); }
.qa.light summary svg path { stroke: var(--grape); }
.qa.light details p { color: var(--on-cream-soft); }
.qa.light details a { color: var(--purple); }

/* closing call */
.cta { text-align: center; padding-block: clamp(72px, 10vw, 128px); }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.03em; max-width: 18ch; margin-inline: auto; }
.cta p { margin: 14px auto 0; max-width: 44ch; color: var(--on-cream-soft); }
.cta .btn { margin-top: 28px; }

/* ---------- footer ---------- */

.foot { background: var(--grape); color: var(--cream); padding-block: clamp(48px, 7vw, 80px) max(clamp(48px, 7vw, 80px), calc(var(--badge, 0px) + 28px)); font-size: 1rem; }
body:has(.stick) .foot { padding-bottom: calc(110px + var(--badge, 0px)); }
.foot-in { display: grid; gap: 40px; }
.foot-name { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--white); }
.foot-brand p + p { margin-top: 10px; max-width: 26ch; color: var(--on-purple-soft); }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.foot-services { grid-column: 1 / -1; }
.foot-col h2 { font-size: 1rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; color: var(--on-purple-soft); }
.foot-col ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.foot-services ul { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 42px; font-weight: 700; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--sun); }

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  .doors { gap: 16px; }
  .notify { grid-template-columns: 1fr auto; align-items: end; }
  .notify .btn { width: auto; }
  .stick { display: none; }
  body:has(.stick) .foot { padding-bottom: max(clamp(48px, 7vw, 80px), calc(var(--badge, 0px) + 28px)); }
  .foot-cols { grid-template-columns: 1.6fr 1fr 1fr; }
  .foot-services { grid-column: auto; }

  .bento { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .tile { grid-column: span 3; min-height: clamp(460px, 46vw, 620px); }
  .tile.third { grid-column: span 2; min-height: clamp(420px, 40vw, 560px); }
  .tile.third > img { width: min(86%, 340px); }
  .tile.short { min-height: 340px; }
  .tile.wide { grid-column: 1 / -1; min-height: clamp(380px, 36vw, 500px); flex-direction: row; padding-bottom: 0; }
  .tile.wide > div:first-child { flex: 0 0 42%; }
  .tile.wide .cluster { align-self: flex-end; margin-top: 0; transform: translateY(8%); }
  .panels { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .tile.fact { min-height: 340px; }
  .tile.fact.w4 { grid-column: span 4; flex-direction: row; }
  .tile.fact.w4 > div { flex: 1 1 54%; padding-bottom: clamp(24px, 2.6vw, 34px); }
  .tile.fact.w4 > img { flex: none; width: min(42%, 290px); margin: 0 0 0 12px; align-self: flex-end; transform: translateY(8%) rotate(5deg); }
  .tile.fact.w4:hover > img { transform: translateY(4%) rotate(-2deg) scale(1.04); }
  .tile.fact.w2 { grid-column: span 2; }
  .tile.fact.wide { min-height: clamp(300px, 28vw, 380px); }

  .spec > div { grid-template-columns: minmax(220px, 0.36fr) 1fr; align-items: baseline; }
  .safe ul { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .notify-art {
    display: block; position: absolute; right: clamp(24px, 6vw, 96px); bottom: -9%;
    width: clamp(220px, 26vw, 330px);
    transform: rotate(10deg);
    filter: drop-shadow(0 22px 22px rgb(42 15 77 / 0.22));
    transition: transform 0.6s var(--ease);
  }
  .notify-tile:hover .notify-art { transform: rotate(-4deg) translateY(-6px); }
}

@media (min-width: 900px) {
  .svc-grid { grid-template-columns: 1fr 1.04fr; }
}

@media (min-width: 960px) {
  .doors { grid-template-columns: repeat(3, 1fr); }
  .door strong { font-size: 2.125rem; }
  .door.photo { min-height: 380px; padding: 28px; }
  .home-hero { padding-bottom: 110px; }

  .p-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .p-hero-grid > div:first-child { display: block; }
  .p-hero-grid .form-card { order: 0; margin-top: 0; }
  .p-hero-grid .hero-art { order: 0; justify-content: flex-start; margin: 36px 0 0; }
  .p-hero { padding-bottom: 120px; }
  .p-hero h1 { margin-top: 28px; }
  .hero-art img { width: 250px; margin-bottom: -170px; position: relative; z-index: 2; }
  .hero-art img + img { margin-left: -28px; }
  .after-hero { padding-top: 210px; }
}

@media (min-width: 1000px) {
  .foot-in { grid-template-columns: 0.8fr 2fr; }
  .safe ul.three { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- photo tiles (full photo, dark fade, white words) ---------- */

.tile.photo { padding: 0; color: var(--white); justify-content: flex-end; isolation: isolate; }
.tile.photo > img.shot {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 70% 50%);
  margin: 0; transform: none; filter: none; align-self: auto;
}
.tile.photo:hover > img.shot { transform: none; }
.tile.photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(26 8 50 / 0.86) 0%, rgb(26 8 50 / 0.45) 34%, rgb(26 8 50 / 0) 62%);
}
.tile.photo .words { padding: clamp(22px, 2.6vw, 32px); }
.tile.photo h3 { color: var(--white); margin-top: 0; }
.tile.photo p { color: #EFE6FB; }
.tile.photo .num { color: var(--sun); }
.ping {
  position: absolute; top: clamp(18px, 2.4vw, 28px); right: clamp(18px, 2.4vw, 28px);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 16px;
  background: rgb(255 255 255 / 0.94); color: var(--grape);
  box-shadow: 0 10px 24px rgb(26 8 50 / 0.28);
  font-size: 0.875rem; line-height: 1.25;
}
.ping b { display: block; font-weight: 800; font-size: 0.9375rem; }
.tile.photo.short { min-height: 320px; }

/* ---------- services with a photograph: the whole tile is the link ---------- */

.dir-tiles { list-style: none; margin: 0; padding: 14px 0 clamp(14px, 2vw, 24px); display: grid; gap: 14px; }
.dir-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px;
  height: 100%; min-height: 190px; padding: 20px;
  border-radius: var(--r-card);
  color: var(--white); text-decoration: none;
  box-shadow: 0 10px 22px rgb(42 15 77 / 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.dir-tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--pos, 50% 40%);
  transition: transform 1.2s var(--ease);
}
.dir-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(26 8 50 / 0.9) 0%, rgb(26 8 50 / 0.52) 38%, rgb(26 8 50 / 0) 70%); }
.dir-tile b { display: block; font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.dir-tile .dir-text > span { color: #EFE6FB; max-width: 32ch; }
.dir-tile .go { color: var(--sun); margin-bottom: 2px; }
.dir-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 32px rgb(42 15 77 / 0.26); }
.dir-tile:hover img { transform: scale(1.05); }
.dir-tile:hover .go { transform: translateX(5px); }
.dir-tiles.more { margin-top: clamp(22px, 3.5vw, 40px); padding-block: 0; }
.dir-tiles.more + .dir-rows.two { margin-top: 14px; border-top: 0; }

@media (min-width: 600px) {
  .dir-tiles { grid-template-columns: repeat(var(--n, 2), 1fr); }
  .dir-tile { min-height: clamp(240px, 25vw, 330px); }
  .dir-tiles.more .dir-tile { min-height: clamp(220px, 21vw, 280px); }
  /* one photograph across the whole row: taller, and held to the top of the photo so the faces stay in */
  .dir-tiles.one .dir-tile { min-height: clamp(280px, 30vw, 420px); }
  .dir-tiles.one .dir-tile img { object-position: 50% 6%; }
}

/* ---------- the choices inside a service: each one is a tile with the thing itself in it ---------- */

.picks .tile { min-height: 0; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 14px; }
.picks .tile > div { align-self: flex-start; padding-bottom: clamp(24px, 2.6vw, 34px); }
.picks .tile > img { flex: none; margin: 0; width: calc(var(--size, 1) * min(42%, 180px)); }

@media (min-width: 720px) {
  .picks .tile { flex-direction: column; align-items: stretch; min-height: 340px; }
  .picks .tile > div { align-self: auto; padding-bottom: 12px; }
  .picks .tile > img { margin-top: auto; align-self: center; width: calc(var(--size, 1) * min(66%, 290px)); }
  .picks .tile:not(.third) > img { width: min(60%, 350px); }
}

/* ---------- questions: pick a subject at the top, and it drops to its answers ---------- */

.topics { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
.topic {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; min-height: 172px; padding: 16px;
  border-radius: var(--r-card);
  background: var(--white); color: var(--grape); text-decoration: none;
  box-shadow: 0 12px 26px rgb(42 15 77 / 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.topic img {
  position: absolute; top: -20px; right: 8px;
  width: clamp(88px, 11vw, 128px);
  filter: drop-shadow(0 10px 10px rgb(42 15 77 / 0.22));
  transition: transform 0.5s var(--ease);
}
.topic b { font-size: clamp(1.1875rem, 1.9vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.topic span { margin-top: 4px; font-size: 1rem; color: var(--on-cream-soft); }
.topic:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgb(42 15 77 / 0.18); }
.topic:hover img { transform: translateY(-6px) rotate(-8deg) scale(1.08); }
.questions .lead img { display: none; }

@media (min-width: 720px) {
  .topics { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .topic { min-height: 210px; padding: 22px; }
}
@media (min-width: 860px) {
  .questions .lead img { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
