/* ============================================================
   Azul Private Wealth — shared stylesheet
   Single source of truth. Re-skin via the :root tokens below.
   ============================================================ */

:root {
  /* Brand palette */
  --ink:    #0B1C2E;   /* Ink navy   */
  --deep:   #103049;   /* Deep       */
  --azure:  #3E7CB1;   /* Azure      */
  --mist:   #AFC8D8;   /* Mist       */
  --paper:  #F2EFE8;   /* Paper      */
  --cloud:  #FBFAF7;   /* Cloud      */
  --brass:  #AD8A52;   /* Brass      */

  /* Roles */
  --bg:        var(--cloud);
  --bg-alt:    var(--paper);
  --text:      #213140;
  --text-soft: #5b6b78;
  --line:      #e3ddd1;
  --on-dark-text: #e9eff4;
  --on-dark-soft: #a9bcc9;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Mulish", system-ui, -apple-system, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 18px 48px -28px rgba(11, 28, 46, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--azure); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p  { margin: 0 0 1.1rem; }
em { font-style: italic; color: var(--azure); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band:nth-of-type(even) { background: var(--bg-alt); }
/* on-dark must always win over the even-band striping above */
.band.on-dark { background: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--brass);
  margin: 0 0 1rem;
}

/* On-dark sections */
.on-dark { background: var(--ink); color: var(--on-dark-text); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: var(--on-dark-soft); }
.on-dark .eyebrow { color: var(--mist); }
.on-dark em { color: var(--mist); }

/* ---------- Buttons & inline links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--azure); color: #fff; border-color: var(--azure); }
.btn--solid:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.on-dark .btn--solid { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.on-dark .btn--solid:hover { background: #fff; border-color: #fff; }

.link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--azure);
}
.link svg { transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .75rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__logo {
  height: 46px;
  width: auto;
  display: block;
}
.brand__mark { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.brand__mark b { color: var(--azure); }
.brand__tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav__links a {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

.nav__cta { display: flex; align-items: center; gap: 1.1rem; }
.nav__login { font-weight: 600; font-size: .9rem; color: var(--text); }
.nav__login:hover { color: var(--ink); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   PHOTO HERO (full-bleed background image behind on-dark text)
   Usage: add .has-photo to a .hero/.page-hero and set --hero-img.
   The navy gradient overlay keeps white headline copy legible.
   ============================================================ */
.has-photo { position: relative; isolation: isolate; }
/* Photo layer sits in a ::before so the .on-dark `background` shorthand
   can't reset it, and the gradient keeps white headline copy legible. */
.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(100deg,
      rgba(11, 28, 46, .92) 0%,
      rgba(11, 28, 46, .72) 42%,
      rgba(11, 28, 46, .38) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
}
.has-photo > .container { position: relative; z-index: 2; }
/* Keep the decorative orb/horizon above the photo but below the text */
.has-photo .hero__orb,
.has-photo .horizon,
.has-photo .bearing { z-index: 1; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
}
.hero__inner { max-width: 720px; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.25rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Hero glow orb */
.hero__orb {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
              rgba(62, 124, 177, .55), rgba(16, 48, 73, 0) 65%);
  filter: blur(10px);
  z-index: 1;
}

/* Signature motif: horizon line */
.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg,
              transparent, rgba(175, 200, 216, .55) 20%,
              rgba(175, 200, 216, .55) 80%, transparent);
  z-index: 1;
}
.horizon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--mist);
  box-shadow: 0 0 12px 2px rgba(175, 200, 216, .6);
}

/* Navigational bearing label */
.bearing {
  position: absolute;
  right: var(--gutter);
  bottom: calc(18% + 14px);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--mist);
  opacity: .8;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero > .container > p { max-width: 44em; font-size: 1.1rem; }

/* ============================================================
   HOME: INTRO
   ============================================================ */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.intro__grid h2 { margin: 0; }
.intro__body p:last-child { margin-bottom: 0; }

/* ============================================================
   HOME: VALUE BLOCKS
   ============================================================ */
.value {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.value:last-child { border-bottom: 0; }
.value:nth-child(even) .value__media { order: 2; }
.value__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--deep), var(--azure));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.value__media span {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}
.value h3 { margin-top: .25rem; }

/* ============================================================
   HOME: FIT / CRITERIA
   ============================================================ */
.fit__head { max-width: 46em; margin-bottom: 3rem; }
.fit__head h2 { margin-bottom: .75rem; }

.criteria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.criterion {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.criterion:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.criterion__icon {
  width: 40px;
  height: 40px;
  color: var(--azure);
  margin-bottom: 1.1rem;
}
.criterion h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.criterion p { color: var(--text-soft); margin: 0; font-size: .98rem; }

/* Services-include list (home) */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem 2.5rem;
  max-width: 760px;
}
.service-list li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: .9rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
@media (max-width: 560px) {
  /* Single centered column with the bullet tucked before centered text */
  .service-list { grid-template-columns: 1fr; gap: 0; margin-inline: auto; }
  .service-list li {
    text-align: center;
    padding-left: 0;
    padding-block: .85rem;
  }
  .service-list li::before {
    position: static;
    display: inline-block;
    margin-right: .55rem;
    vertical-align: middle;
  }
}

/* Client logo strip */
.logos { margin-top: clamp(3rem, 7vw, 5rem); text-align: center; }
.logos__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
}
.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.logos__row span {
  flex: 0 0 auto;
  min-width: 120px;
  padding: .85rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #97a3ac;
  background: var(--cloud);
}

/* ============================================================
   HOME: CTA band
   ============================================================ */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__inner { max-width: 640px; margin-inline: auto; position: relative; z-index: 2; }
.cta__inner h2 { margin-bottom: 1rem; }
/* Anchor the horizon inside the band's bottom padding rather than at a
   percentage of section height — the CTA copy is editable in the Studio, so a
   percentage drifts onto the button whenever the text length changes. */
.cta .horizon { bottom: clamp(1.75rem, 4vw, 3.25rem); }

/* ============================================================
   APPROACH: prose
   ============================================================ */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); }

/* Long-form legal pages (privacy, disclosures) */
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal ul { color: var(--text-soft); padding-left: 1.2rem; margin: 0 0 1.1rem; }
.legal li { margin-bottom: .5rem; }
.legal a { text-decoration: underline; }

/* Highlighted callout inside prose */
.callout {
  margin-top: 2.5rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
.callout h2 { margin-top: 0; margin-bottom: .5rem; }
.callout p { color: var(--text-soft); }

/* Philosophy bullet list */
.philosophy-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
}
.philosophy-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .85rem;
  color: var(--text);
  font-weight: 600;
}
.philosophy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--azure);
}

/* ============================================================
   TEAM / ABOUT
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}
.member {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member__photo {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  background: linear-gradient(150deg, var(--mist), var(--azure));
  display: grid;
  place-items: center;
}
.member__photo span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.member h3 { margin-bottom: .2rem; }
.member__role {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--brass);
  margin-bottom: .75rem;
}
.member p:last-child { color: var(--text-soft); font-size: .96rem; margin: 0; }

/* Single-founder About layout */
.founder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.founder__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--mist), var(--azure));
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder__photo { position: static; max-width: 280px; aspect-ratio: 1 / 1; }
}

/* ============================================================
   NEWS
   ============================================================ */
.post {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
.post:first-child { padding-top: 0; }
.post:last-child { border-bottom: 0; }
.post__date {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--text-soft);
  padding-top: .35rem;
}
.post h3 { margin-bottom: .4rem; }
.post p { color: var(--text-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; }
.faq__item {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { padding-top: 0; }
.faq__item:last-child { border-bottom: 0; }
.faq__item h3 { margin-bottom: .5rem; }
.faq__item p { color: var(--text-soft); margin: 0; }

/* ============================================================
   BOOKING (YouCanBook.me embed)
   ============================================================ */
#book { scroll-margin-top: 90px; }  /* clear the sticky header on anchor jump */
.booking { max-width: 820px; }
.booking__lead { color: var(--text-soft); max-width: 46em; margin-bottom: 2rem; }
.booking__embed {
  min-height: 640px;          /* reserve space so layout doesn't jump while the embed loads */
  max-width: 620px;           /* hug the calendar instead of a wide empty box */
  margin-inline: auto;        /* center the box under the heading */
  border-radius: var(--radius);
  background: var(--cloud);
  border: 1px solid var(--line);
  padding: .75rem;
}
.booking__embed iframe { width: 100% !important; border: 0; display: block; margin-inline: auto; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .45rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--cloud);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(62, 124, 177, .15);
}

.contact-aside {
  background: var(--ink);
  color: var(--on-dark-text);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-aside dl { margin: 0; }
.contact-aside dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 1.5rem;
}
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: .35rem 0 0; color: var(--on-dark-soft); }
.contact-aside a { color: var(--mist); }
.contact-aside a:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand .brand__mark { color: #fff; font-size: 1.5rem; }
.footer__brand .brand__mark b { color: var(--mist); }
.footer__brand p { margin-top: 1rem; max-width: 32em; color: var(--on-dark-soft); }
.footer__social { display: flex; gap: .75rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: var(--on-dark-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.footer__social a:hover { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.footer__social svg { width: 1.05rem; height: 1.05rem; display: block; }
.footer__col h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: .6rem; }
.footer__col a { color: var(--on-dark-soft); font-size: .95rem; }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: .85rem;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a { color: var(--on-dark-soft); }
.footer__legal a:hover { color: #fff; }
.footer__fine { font-size: .76rem; line-height: 1.7; color: #6f8190; margin: 0; max-width: 70ch; }

/* ============================================================
   Scroll-reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }

  /* Mobile menu: brand + hamburger stay on the top row; the links and
     CTA drop to full-width rows BELOW the bar (flex-wrap), stacked in
     normal flow so nothing overlaps. Links come first, CTA beneath. */
  .nav { flex-wrap: wrap; }
  .brand { margin-right: auto; }

  .nav__links,
  .nav__cta {
    flex-basis: 100%;   /* force onto their own row below the bar */
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    margin: 0;
    padding-block: .5rem;
    background: var(--cloud);
    display: none;      /* hidden until .is-open */
  }
  .nav__links { order: 2; padding-top: 1rem; }
  .nav__cta   { order: 3; padding-bottom: 1rem; box-shadow: var(--shadow); }

  .nav.is-open .nav__links,
  .nav.is-open .nav__cta { display: flex; }
  .nav__links a { padding: .65rem 0; }
  .nav__links a { padding: .65rem 0; }
  .nav__login { padding: .5rem 0; }
  .nav__cta .btn { justify-content: center; }

  .site-header { position: sticky; }
  .nav { position: relative; }

  .intro__grid,
  .value,
  .criteria,
  .team-grid,
  .contact-grid,
  .footer__top { grid-template-columns: 1fr; }

  .value:nth-child(even) .value__media { order: 0; }
  .bearing { display: none; }
  /* On narrow screens the hero buttons wrap and reach the horizon line;
     drop the line to the bottom edge so it doesn't cut through them. */
  .hero .horizon { bottom: 6%; }
}

@media (max-width: 560px) {
  .post { grid-template-columns: 1fr; gap: .35rem; }
  .post__date { padding-top: 0; }
  .footer__bottom { flex-direction: column; }
}

/* Respect reduced-motion: never leave content hidden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .criterion:hover, .member:hover { transform: none; }
}
