/* GMB Consulting & Management Inc.
   System adapted from the "example theme" (editorial: warm canvas, light display type,
   pill controls, square cards, whitespace), recoloured with the GMB palette. */

:root {
  /* GMB palette */
  --blue: #0969B0;          /* logo blue: bar, hero, contact */
  --blue-deep: #075592;
  --gold: #FDBE13;          /* accent: arrow, primary pill, small marks only */
  --navy: #0E2238;          /* ink and the one dark field */
  --canvas: #FFFFFF;        /* white sections */
  --tint: #E2ECF6;          /* pale logo-blue wash: the form's privacy note */
  --soft: #F3F6F9;          /* the contact form's panel on white */  --graphite: #55606B;      /* secondary text (6.3:1 on canvas) */
  --ash: #AAB3BC;           /* input borders */

  --font: "Switzer", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Theme scale: 14 / 17 / 20 / 34 / 54 / 84 */
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-sub: 1.25rem;
  --t-h3: clamp(1.625rem, 1.2vw + 1.2rem, 2.125rem);
  --t-h2: clamp(2.25rem, 3vw + 1rem, 3.375rem);
  --t-display: clamp(2.75rem, 4.4vw + 1rem, 5.25rem);

  --pad: clamp(16px, 4vw, 48px);
  --gap: clamp(80px, 10vw, 140px);
  --bar-h: 72px;
  --pill: 1440px;
  --radius: 20px;          /* cards, quotes, form, photo */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0; background: var(--canvas); color: var(--navy);
  font: 400 var(--t-body)/1.5 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 300; text-wrap: balance; }
/* Focus ring: navy on light grounds, gold on the blue and navy ones */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.bar :focus-visible, .hero :focus-visible, .why :focus-visible, .words :focus-visible, .foot :focus-visible { outline-color: var(--gold); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--gold); color: var(--navy); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 12px 16px; }
.skip:focus { left: 8px; }

/* ---------- Pills (every control is a pill) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--pill);
  font: 500 1rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill-gold { background: var(--gold); color: var(--navy); }
.pill-gold:hover { background: #FFD34D; }
.pill-navy { background: var(--navy); color: var(--canvas); }
.pill-navy:hover { background: var(--blue); }
.pill-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.pill-ghost:hover { background: #fff; color: var(--blue); }

/* ---------- Kicker: the theme's small meta line above a title ---------- */
.kicker { font-size: var(--t-small); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); margin: 0 0 20px; }

/* ---------- Header bar (logo blue) ---------- */
.bar {
  position: sticky; top: 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--pad);
  background: var(--blue); color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; min-height: 44px; }
.brand img { width: 72px; height: auto; }
.brand span { font-size: var(--t-small); font-weight: 500; line-height: 1.2; max-width: 17ch; }
.nav { display: flex; gap: 4px; margin-right: 12px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; border-radius: var(--pill); transition: background-color .2s; }
.nav a:hover { background: rgba(255,255,255,.14); }
.menu-btn { display: none; }

@media (max-width: 880px) {
  .brand span { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
    border-radius: var(--pill); border: 0; background: var(--navy); color: #fff; font: 500 1rem var(--font); cursor: pointer;
  }
  .nav {
    position: absolute; top: var(--bar-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--pad) 24px; background: var(--blue-deep);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { min-height: 56px; padding: 0; font-size: var(--t-h3); font-weight: 300; border-radius: 0; }
  .nav a:hover { background: none; }
}
@media (max-width: 400px) { .bar > .pill { padding: 0 18px; } }

/* ---------- Stacked panels: each section sticks, the next slides up over it ---------- */
.anchor { position: relative; height: 0; }
.panel { position: sticky; top: var(--stick, var(--bar-h)); overflow: clip; }
.anchor + .panel { margin-top: -1px; }  /* each panel tucks 1px under the one above, so no seam shows */
.panel > .wrap { transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .panel > .wrap { transform: scale(calc(1 - var(--p, 0) * .06)); opacity: calc(1 - var(--p, 0) * .4); will-change: transform; }
}
.wrap { max-width: 1440px; margin: 0 auto; }
.panel:not(.hero) { padding: var(--gap) var(--pad); }

/* ---------- Hero: logo left, copy right ---------- */
.hero { background: var(--blue); color: #fff; padding: clamp(32px, 6vh, 64px) var(--pad) clamp(48px, 8vh, 88px); }
.hero-wrap { display: grid; gap: clamp(28px, 5vh, 48px); align-items: center; }
.hero-logo { display: flex; justify-content: center; }
.wire { width: min(100%, 720px); height: auto; overflow: visible; }
.hero h1 { font-size: var(--t-display); line-height: 1; letter-spacing: -0.04em; max-width: 11ch; }
.hero-lede { font-size: var(--t-sub); line-height: 1.4; max-width: 34ch; margin: 24px 0 0; }
.hero-act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-act .pill { min-height: 60px; padding: 0 36px; font-size: 1.1875rem; }
@media (max-width: 400px) { .hero-act .pill { padding: 0 26px; } }

@media (min-width: 1000px) {
  .hero { padding-top: clamp(56px, 7vh, 88px); padding-bottom: clamp(64px, 9vh, 104px); }
  .hero-wrap { width: 100%; grid-template-columns: 11fr 9fr; gap: clamp(40px, 5vw, 96px); }
  .hero-logo { justify-content: flex-start; }
}

/* Line-drawn logo. Final state is the default (no JS or reduced motion). */
.w-ln { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.w-letter { fill: #fff; }
.w-arrow { stroke: var(--gold); fill: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .anim .w-ln { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
    animation: draw 1.2s var(--ease) forwards, fill .5s ease forwards; }
  .anim .w-1 { animation-delay: .1s, 1.35s; }
  .anim .w-2 { animation-delay: .25s, 1.4s; }
  .anim .w-3 { animation-delay: .35s, 1.45s; }
  .anim .w-4 { animation-delay: .45s, 1.5s; }
  .anim .w-arrow { animation-delay: .65s, 1.6s; }
  .anim .w-lower { opacity: 0; transform: translateY(8px); animation: rise .6s var(--ease) 1.45s forwards; }

  .anim .hero-in { opacity: 0; transform: translateY(20px); animation: rise .7s var(--ease) forwards; }
  .anim .hero-in.d1 { animation-delay: 1.1s; }
  .anim .hero-in.d2 { animation-delay: 1.3s; }
  .anim .hero-in.d3 { animation-delay: 1.45s; }
}
/* "GMB" in section headings, drawn in as the heading scrolls into view */
/* Spacing so the logo sits in the sentence like a typed word: the slanted B overhangs a little,
   so the real space after it is trimmed; a "?" (no space) gets its own gap */
.gmb-word { display: inline-block; vertical-align: baseline; margin-right: -.04em; }
.gmb-word--punct { margin-right: .13em; }
.gmb-word svg { display: inline-block; height: 1.12em; width: auto; vertical-align: -0.06em; overflow: visible; }
.gw-ln { stroke-width: 3; stroke-linejoin: round; }
.gw-letter { fill: var(--blue); stroke: var(--blue); }
.gw-arrow { fill: var(--gold); stroke: var(--gold); }
.why .gw-letter { fill: #fff; stroke: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .js .gmb-word .gw-ln { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
  .js .gmb-word.drawn .gw-ln { animation: draw 1s var(--ease) forwards, fill .45s ease forwards; }
  .js .gmb-word.drawn .gw-1 { animation-delay: 0s, .95s; }
  .js .gmb-word.drawn .gw-2 { animation-delay: .12s, 1s; }
  .js .gmb-word.drawn .gw-3 { animation-delay: .2s, 1.05s; }
  .js .gmb-word.drawn .gw-4 { animation-delay: .28s, 1.1s; }
  .js .gmb-word.drawn .gw-arrow { animation-delay: .45s, 1.2s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill-opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Section grounds: each panel has its own ---------- */
/* Hero blue → Services white → Why blue → About white → Testimonials blue → Contact white → footer blue */
.services, .about, .contact { background: #fff; color: var(--navy); }
.why, .words { background: var(--blue); color: #fff; }
.why .kicker, .words .kicker { color: #D5E3F1; }
.title { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }
.title h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.03em; }
.title-lede { font-size: var(--t-sub); line-height: 1.45; max-width: 46ch; margin: 24px 0 0; color: var(--graphite); }

/* Specialty tags in the services intro */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: calc(-1 * clamp(8px, 2vw, 24px)) 0 clamp(40px, 5vw, 56px); max-width: 1100px; }
.tags li {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--pill);
  font-size: var(--t-body); box-shadow: inset 0 0 0 1.5px #B9C3CC; color: var(--navy);
}
.tags .tag-main { background: var(--blue); color: #fff; box-shadow: none; font-weight: 500; font-size: var(--t-sub); min-height: 52px; padding: 0 26px; }
.tags .tag-more-li { display: none; padding: 0; box-shadow: none; }
.tag-more {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--pill); cursor: pointer;
  font: 500 var(--t-body)/1 var(--font); color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tag-more:hover { background: var(--blue); color: #fff; }
#specialties:focus { outline: none; }  /* focus lands here after "& more" so it isn't lost; no ring needed on a plain list */

/* Phones: three blue pills plus "& more"; tapping it reveals the rest (needs main.js, so no-JS shows all) */
@media (max-width: 700px) {
  .tags { gap: 8px; }
  .tags .tag-main { font-size: var(--t-body); min-height: 44px; padding: 0 18px; }
  .js .tags .tag-more-li { display: inline-flex; }
  .js .tags:not(.open) li:not(.tag-main):not(.tag-more-li) { display: none; }
  .js .tags.open .tag-more-li { display: none; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .tags.open li:not(.tag-main) { animation: pop .35s var(--ease) both; }
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* Services: three navy cards */
.cards { display: grid; gap: 16px; }
.card { background: var(--blue); color: #fff; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); }
.card h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 20px; }
.card p { margin: 0; }
.card li { padding: 6px 0 6px 20px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .9em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ask { margin: 32px 0 0; font-size: var(--t-sub); }
.ask:last-child { margin-bottom: 0; }
.ask a { display: inline-block; padding: 10px 6px; margin: -10px -6px; font-weight: 500; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.ask a:hover { text-decoration-thickness: 6px; }

@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Why GMB: four deeper-blue cards in a 2x2 on the blue section */
.points { display: grid; gap: 16px; }
.point {
  background: var(--blue-deep); color: #fff; border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px;
}

/* A small wiggle when a service or Why GMB card is hovered */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover, .point:hover { animation: wiggle .55s var(--ease); }
}
/* Touch screens: main.js adds .wiggle on tap */
@media (prefers-reduced-motion: no-preference) {
  .card.wiggle, .point.wiggle { animation: wiggle .55s var(--ease); }
}
@keyframes wiggle {
  0%   { transform: rotate(0); }
  20%  { transform: rotate(-1.2deg) translateY(-2px); }
  45%  { transform: rotate(1deg) translateY(-2px); }
  70%  { transform: rotate(-.5deg) translateY(-1px); }
  100% { transform: rotate(0); }
}
.point::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--gold); margin-bottom: 6px; }
.point h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
.point h3 .big { display: block; font-size: clamp(3.5rem, 5vw, 4.75rem); line-height: .95; letter-spacing: -0.05em; color: #fff; margin-bottom: 4px; }
.point p { font-size: var(--t-sub); line-height: 1.45; margin: 0; max-width: 46ch; }

@media (min-width: 760px) { .points { grid-template-columns: 1fr 1fr; } }

/* About */
.about-grid { display: grid; gap: 40px; }
.portrait { margin: 0; }
.portrait img { width: min(60%, 220px); height: auto; margin: 0 auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .portrait img { width: 100%; max-width: 440px; margin: 0; } }
.about-text { font-size: var(--t-sub); line-height: 1.5; max-width: 54ch; }
.about-text h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 28px; }
/* "Meet Geralyn": a gold highlighter stroke that sweeps in as the section arrives (flat gold; the gradient is just how a sized background fill is drawn) */
.hl {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat; background-position: 0 90%; background-size: 100% 48%;
  padding: 0 .1em; margin: 0 -.1em; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .js .hl { background-size: 0% 48%; transition: background-size .9s var(--ease) .15s; }
  .js .hl.on { background-size: 100% 48%; }
}
.sign { margin: 28px 0 0; }
.sign p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: var(--t-h3); font-weight: 300; letter-spacing: -0.02em; }
.li { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; color: #0A66C2; border-radius: 8px; transition: transform .15s var(--ease), color .2s; }
.li:hover { color: var(--navy); transform: translateY(-2px); }
.sign span { display: block; font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: #4A5A6A; margin-top: 4px; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 112px); align-items: start; }
}

.members { margin-top: 48px; background: #fff; } /* own ground so the logos' white multiplies away */
.members ul { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.members li { display: flex; align-items: center; gap: 16px; max-width: 300px; }
.members img { width: 72px; height: 72px; object-fit: contain; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: .8; }
.members span { font-size: var(--t-small); line-height: 1.35; color: #4A5A6A; }
.members b { display: block; font-weight: 500; color: var(--navy); }

/* Testimonials: the active one in the centre, its neighbours blurred either side */
.carousel { position: relative; }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.slide {
  flex: 0 0 min(86%, 560px); scroll-snap-align: center; margin: 0; border-radius: var(--radius);
  background: #fff; color: var(--navy); padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 320px;
}
.slide p { margin: 0; font-size: clamp(1.25rem, .6vw + 1rem, 1.5rem); font-weight: 300; line-height: 1.4; letter-spacing: -0.015em; }
.slide footer { font-weight: 500; }
.slide footer span { display: block; font-weight: 400; color: var(--graphite); font-size: var(--t-small); }
.car-ctrl { display: none; }

/* With JS: all slides share one grid cell and are placed by offset from the active one */
.has-car .carousel { display: flex; flex-direction: column; overflow-x: clip; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.has-car .track { display: grid; justify-items: center; overflow: visible; scroll-snap-type: none; padding: 0; touch-action: pan-y; }
.has-car .slide {
  --gap: 24px;
  grid-area: 1 / 1; width: min(84vw, 520px);
  transform: translateX(calc(var(--rel, 0) * (100% + var(--gap)))) scale(var(--sc, 1));
  transition: transform .7s var(--ease), filter .6s var(--ease), opacity .6s var(--ease);
}
@media (min-width: 1000px) { .has-car .slide { width: min(31vw, 480px); } }
.has-car .slide:not(.is-on) { --sc: .92; filter: blur(1.5px); opacity: .7; cursor: pointer; }
.has-car .slide:not(.is-on):hover { opacity: .85; }
.has-car .slide.is-far { opacity: 0; pointer-events: none; }
.has-car .car-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 16px; order: -1; margin: -96px 0 32px; }
@media (max-width: 700px) { .has-car .car-ctrl { margin-top: 0; justify-content: center; } }
.car-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--canvas); font: 400 1.25rem/1 var(--font);
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.car-btn:hover { background: #fff; color: var(--navy); }
.car-btn:active { transform: scale(.94); }
.car-count { margin: 0; font-variant-numeric: tabular-nums; color: #fff; min-width: 4ch; text-align: center; }
@media (prefers-reduced-motion: reduce) { .has-car .slide { transition: none; } }

/* Contact: white */
.contact-grid { display: grid; gap: 48px; }
.contact h2 { font-size: var(--t-display); line-height: 1; letter-spacing: -0.04em; }
.contact-lede { font-size: var(--t-sub); line-height: 1.45; max-width: 36ch; margin: 24px 0 0; }
.reach { margin-top: 28px; display: grid; gap: 4px; }
/* Underline sits below the descenders (g, y, p) instead of breaking around them */
.mail {
  display: inline-block; padding: 6px 0 14px;
  font-size: var(--t-h3); font-weight: 300; letter-spacing: -0.02em; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px;
  text-underline-offset: .32em; text-decoration-skip-ink: none;
}
.mail:hover { text-decoration-thickness: 5px; }
.form { background: var(--soft); color: var(--navy); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); }
.notice { background: var(--tint); padding: 14px 18px; margin: 0 0 24px; font-weight: 500; border-radius: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 500; }
.field small { font-weight: 400; color: var(--graphite); font-size: var(--t-small); }
.field input, .field textarea {
  font: 400 1rem/1.4 var(--font); color: var(--navy); background: #fff;
  min-height: 48px; padding: 12px 16px; border: 1.5px solid var(--ash); border-radius: 10px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status:empty { display: none; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 112px); align-items: start; }
}

/* Footer: compact, logo blue */
.foot { background: var(--blue); color: #fff; padding: clamp(40px, 5vw, 64px) var(--pad) 24px; position: relative; }
.foot-grid { max-width: 1440px; margin: 0 auto; display: grid; gap: 28px; align-items: center; }
.foot-brand { display: block; width: min(100%, 240px); margin: 0 auto; }  /* centred on phones */
.foot-logo { width: 100%; height: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav a, .foot-meta a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.foot-meta { display: flex; flex-direction: column; align-items: flex-start; }
.foot-meta a { text-decoration-color: var(--gold); text-underline-offset: .3em; text-decoration-skip-ink: none; overflow-wrap: anywhere; }
.foot-li { text-decoration: none; }
.foot-li:hover { color: var(--gold); }
.legal {
  max-width: 1440px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; font-size: var(--t-small); color: #E3EEF8;
}
.legal p { margin: 0; }
/* Phones and small tablets: everything in the footer centred */
@media (max-width: 899px) {
  .foot-grid { justify-items: center; text-align: center; }
  .foot-nav { justify-content: center; }
  .foot-meta { align-items: center; }
  .legal { flex-direction: column; align-items: center; text-align: center; }
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: auto 1fr auto; gap: clamp(32px, 5vw, 80px); }
  .foot-brand { margin: 0; }
  .foot-nav { justify-content: center; }
  .foot-meta { align-items: flex-end; }
}

/* ---------- Entrances (only once main.js is running, so nothing stays hidden if it fails) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
