/* ============================================================
   BLOOM PEDIATRIC DENTISTRY — "An Earthen Storybook"
   Design system: Dr. Juliana's mood-board palette.
   Warm white & beige grounds, deep blue ink, clay & olive accents.
   ============================================================ */

/* ------------------------------------------------------------
   0a. Fonts — self-hosted variable fonts (latin subset).
       No external font service: the site depends on no one.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/vollkorn.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vollkorn";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/vollkorn-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gantari";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/gantari.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gantari";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/gantari-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------
   0. Tokens (mood board: grey a4aaa8 · clay a5826f · olive 747249
              · beige d1c2b0 · white f1ecde · blue 24384d)
   ------------------------------------------------------------ */
:root {
  /* Color — earth & ink */
  --porcelain: #F1ECDE;        /* WHITE — page ground */
  --porcelain-deep: #E8E0CE;   /* alternate section ground (beige-washed) */
  --glaze: #F8F4E9;            /* raised card surface */
  --ink: #24384D;              /* BLUE — text & deep surfaces */
  --sky: #3E5670;             /* mid blue (ink, lightened) */
  --bluebell: #A4AAA8;         /* GREY — light strokes & dots */
  --mist: #D9DEE2;             /* pale blue wash */
  --mist-2: #E7E8E2;           /* palest wash (warm grey, per mood-board grey) */
  --clay: #A5826F;            /* CLAY — warm accent marks */
  --clay-deep: #7A6152;       /* clay, deepened so white text stays readable */
  --blush: #D1C2B0;            /* BEIGE — soft warm accent */
  --butter: #D1C2B0;           /* beige (footer window glow) */
  --olive: #747249;            /* OLIVE — stems, leaves, greenery */

  /* Type */
  --font-display: "Vollkorn", "Georgia", serif;
  --font-body: "Gantari", "Segoe UI", system-ui, sans-serif;
  --soft: normal;   /* variation hook (Vollkorn needs no axis tuning) */

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-hero: clamp(2.75rem, 1.8rem + 4.5vw, 6.5rem);

  /* Rhythm */
  --space-section: clamp(5rem, 4rem + 6vw, 10rem);
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 1.25rem;
  --radius-lg: 2rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------------------------------------------------
   1. Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* transforms mid-animation must never create sideways scroll */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--porcelain);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Kiln-fired paper grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.11 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--porcelain); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   2. Typography
   ------------------------------------------------------------ */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.display-hero { font-size: var(--text-hero); }
.display-xl { font-size: var(--text-2xl); }
.display-lg { font-size: var(--text-xl); }

.amp {
  font-family: var(--font-body);
  font-weight: 460;
  font-size: 0.88em;
}

.display i, .display em,
.display-hero i, .display-xl i {
  font-style: italic;
  color: var(--sky);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-xs);
  font-weight: 640;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1.6em;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A5826F'%3E%3Cpath d='M12 2.4 L14.63 8.98 L21.72 9.43 L16.26 13.98 L18.02 20.86 L12 16.98 L5.98 20.86 L7.74 13.98 L2.28 9.43 L9.37 8.98 Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 78%, var(--porcelain));
  max-width: 34em;
}

p + p { margin-top: 1em; }

/* ------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------ */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: var(--space-section); position: relative; }
.section--deep { background: var(--porcelain-deep); }
.section--mist { background: var(--mist-2); }

/* olive band — mood-board olive, deepened just enough that warm-white text
   passes WCAG (pure #747249 is 4.0:1; this is 4.8:1) */
.section--olive { background: #68694A; }
.section--olive h2, .section--olive h3 { color: var(--porcelain); }
.section--olive .display i, .section--olive .display-xl i { color: var(--blush); }
.section--olive .lede, .section--olive p { color: color-mix(in srgb, var(--porcelain) 92%, #68694A); }
.section--olive .eyebrow { color: var(--porcelain); }
.section--olive .btn--ghost {
  color: var(--porcelain);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--porcelain) 55%, transparent);
}
.section--olive .btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--porcelain);
  background: color-mix(in srgb, var(--porcelain) 12%, transparent);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head .lede { margin-top: 1.2rem; }

/* ------------------------------------------------------------
   4. Header
   ------------------------------------------------------------ */
/* announcement bar (shown only when BLOOM.announcement is set in js/main.js) */
.announcement-bar {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: var(--porcelain);
  text-align: center;
  padding: 0.65rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 640;
  letter-spacing: 0.02em;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.7em 1.2em;
  background: var(--ink);
  color: var(--porcelain);
  border-radius: 999px;
  font-weight: 640;
  font-size: var(--text-sm);
  transform: translateY(-300%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: transform 0.45s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-110%); }

.header-inner {
  width: min(88rem, 100% - var(--gutter) * 2);
  margin-inline: auto;
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem 0.55rem 1.4rem;
  background: color-mix(in srgb, var(--glaze) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(36, 56, 77, 0.35);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 3.2rem; width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }

.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 560;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.1rem;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05rem;
  height: 2px;
  border-radius: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 640;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
  overflow: hidden;
}
.btn .btn-icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.5s var(--ease-spring);
}
.btn:hover .btn-icon { transform: rotate(-8deg) scale(1.12); }

/* primary action button — same deep blue everywhere (chosen over clay for
   readability and over olive for contrast: white on blue is 10:1) */
.btn--primary {
  background: var(--ink);
  color: var(--porcelain);
  box-shadow: 0 8px 20px -10px rgba(36, 56, 77, 0.75), inset 0 -2px 0 rgba(0,0,0,0.14);
}
.btn--primary:hover {
  background: #32485E;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(36, 56, 77, 0.85), inset 0 -2px 0 rgba(0,0,0,0.14);
}

.btn--ink {
  background: var(--ink);
  color: var(--porcelain);
  box-shadow: 0 8px 20px -12px rgba(36, 56, 77, 0.7), inset 0 -2px 0 rgba(0,0,0,0.18);
}
.btn--ink:hover { transform: translateY(-2px); background: #32485E; }

.btn--ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 35%, transparent);
  background: transparent;
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  background: color-mix(in srgb, var(--mist) 50%, transparent);
  transform: translateY(-2px);
}

.btn--lg { font-size: var(--text-base); padding: 1em 2em; }

/* ------------------------------------------------------------
   6. The painted tile — signature component
   ------------------------------------------------------------ */
.tile {
  position: relative;
  background: var(--glaze);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 18px 40px -30px rgba(36, 56, 77, 0.45);
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}

/* inner painted frame */
.tile::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1.5px solid color-mix(in srgb, var(--bluebell) 55%, transparent);
  border-radius: calc(var(--radius) - 0.45rem);
  pointer-events: none;
}

/* painted corner flourishes */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23A4AAA8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 20c6 0 10-4 10-10M20 4c0 6-4 10-10 10'/%3E%3Ccircle cx='9' cy='9' r='1.6' fill='%23A4AAA8' stroke='none'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23A4AAA8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M36 20c-6 0-10-4-10-10M20 4c0 6 4 10 10 10'/%3E%3Ccircle cx='31' cy='9' r='1.6' fill='%23A4AAA8' stroke='none'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23A4AAA8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 20c6 0 10 4 10 10M20 36c0-6-4-10-10-10'/%3E%3Ccircle cx='9' cy='31' r='1.6' fill='%23A4AAA8' stroke='none'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23A4AAA8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M36 20c-6 0-10 4-10 10M20 36c0-6 4-10 10-10'/%3E%3Ccircle cx='31' cy='31' r='1.6' fill='%23A4AAA8' stroke='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 2.1rem 2.1rem;
  background-position: top 0.85rem left 0.85rem, top 0.85rem right 0.85rem,
                       bottom 0.85rem left 0.85rem, bottom 0.85rem right 0.85rem;
  opacity: 0.85;
}

.tile:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 50px -30px rgba(36, 56, 77, 0.55);
}

/* glaze shine sweep on hover */
.tile .tile-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.55) 50%, transparent 58%);
  transform: translateX(-120%);
  z-index: 2;
}
.tile:hover .tile-shine { transition: transform 0.9s var(--ease-out); transform: translateX(120%); }

.tile-art {
  display: block;
  width: clamp(4.5rem, 8vw, 6rem);
  height: clamp(4.5rem, 8vw, 6rem);
  margin-inline: auto;
  margin-bottom: 1.25rem;
  color: var(--sky);
}
.tile h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.tile p { font-size: var(--text-sm); color: color-mix(in srgb, var(--ink) 72%, var(--porcelain)); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (min-width: 64rem) {
  .tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------
   7. Marquee
   ------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  padding-block: 1.1rem;
  border-block: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: var(--glaze);
  user-select: none;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--sky);
  white-space: nowrap;
}
.marquee-item svg { width: 1.4em; height: 1.4em; color: var(--clay); flex: none; }

/* ------------------------------------------------------------
   8. Footer — Knoxville skyline at dusk
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  margin-top: var(--space-section);
  color: var(--mist);
}
.footer-skyline {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
  color: var(--ink);
}
.footer-body { background: var(--ink); }

.skyline-twinkle {
  animation: twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.footer-inner {
  padding-block: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

/* wordmark, recoloured to warm cream and sitting straight on the dark footer
   (no white plaque box) — the logo art is a single-colour silhouette, so we
   paint it with a mask instead of an <img> to invert it cleanly. */
.footer-brand {
  justify-self: start;
  max-width: 15rem;
}
.footer-wordmark {
  display: block;
  width: 14.5rem;
  aspect-ratio: 830 / 430;
  background-color: var(--porcelain);
  -webkit-mask: url("../assets/bloom-wordmark.png") left center / contain no-repeat;
  mask: url("../assets/bloom-wordmark.png") left center / contain no-repeat;
}
.footer-brand .plaque-sub {
  margin-top: 1rem;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--porcelain) 62%, transparent);
  font-weight: 640;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bluebell);
  margin-bottom: 1.1rem;
}
.footer-col li { margin-bottom: 0.55rem; font-size: var(--text-sm); }
.footer-col a { opacity: 0.92; transition: opacity 0.25s, color 0.25s; }
.footer-col a:hover { opacity: 1; color: var(--butter); }

.footer-serving {
  margin-top: 2rem;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: color-mix(in srgb, var(--mist) 62%, transparent);
  max-width: 46em;
}

.footer-base {
  border-top: 1px solid rgba(220, 231, 245, 0.18);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: var(--text-xs);
  color: rgba(220, 231, 245, 0.65);
}
.footer-base a:hover { color: var(--butter); }

/* ------------------------------------------------------------
   9. Preloader
   ------------------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--porcelain);
  display: grid;
  place-items: center;
}
.preloader.is-done { display: none; }
.preloader-logo { width: clamp(11rem, 34vw, 17rem); height: auto; }

/* Page transition curtain */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--sky);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ------------------------------------------------------------
   10. Custom cursor (fine pointers only)
   ------------------------------------------------------------ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 9995;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clay);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background-color 0.25s;
  display: none;
}
@media (pointer: fine) {
  .cursor-dot { display: block; }
}
.cursor-dot.is-hovering {
  width: 42px; height: 42px;
  background: color-mix(in srgb, var(--clay) 24%, transparent);
}

/* ------------------------------------------------------------
   11. Reveal defaults (GSAP sets final states; these are fallbacks)
   ------------------------------------------------------------ */
[data-reveal] { will-change: transform, opacity; }

/* screen-reader-only text (e.g. section headings that are visually implied) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* if JS is off, a <noscript> style in each page's head un-hides the
   [data-split] headlines; [data-reveal] items are visible by default */

/* ------------------------------------------------------------
   12. Mobile navigation
   ------------------------------------------------------------ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--mist);
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: var(--porcelain);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
}
.mobile-menu ul { text-align: center; display: grid; gap: 0.4rem; }
.mobile-menu .nav-link {
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-size: var(--text-2xl);
  font-weight: 540;
}
.mobile-menu .mobile-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 56rem) {
  .site-nav, .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { gap: 0.5rem; padding: 0.55rem 0.6rem 0.55rem 1rem; }
  .header-actions { gap: 0.4rem; }
  .header-actions .btn { padding: 0.65em 1em; }
  .brand img { height: 2.4rem; }
}
/* smallest phones: keep the whole pill inside the screen */
@media (max-width: 22.5rem) {
  .brand img { height: 2rem; }
  .header-actions .btn { padding: 0.6em 0.85em; font-size: 0.95em; }
  .header-actions .btn .btn-icon { display: none; }
}
@media (max-width: 20.5rem) {
  .brand img { height: 1.85rem; }
  .header-actions .btn { font-size: 0.9em; }
}
@media (max-width: 19rem) {
  .brand img { height: 1.6rem; }
  .header-actions .btn { padding: 0.55em 0.7em; }
}

/* ------------------------------------------------------------
   13. Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-dot { display: none !important; }
}
