/* ============================================================
   i'ara Specialist Support Coordination — Design System
   Brand: Rainforest #204F4B · Seafoam #BCDECE · Pale Green #EAF4F1
          Sunset #FDC692 · Orchid #CDC2D7 · Peach #F8B4BA · Grey #414042
   Type:  Open Sans — 800 italic headlines, 600 italic subheads, 400 body
   ============================================================ */

:root {
  --rainforest: #204F4B;
  --rainforest-deep: #173B38;
  --seafoam: #BCDECE;
  --pale-green: #EAF4F1;
  --sunset: #FDC692;
  --orchid: #CDC2D7;
  --orchid-pale: #F0EBF4;
  --peach: #F8B4BA;
  --ink: #414042;
  --white: #FFFFFF;
  --line: rgba(32, 79, 75, 0.14);

  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(32, 79, 75, 0.08);
  --shadow-md: 0 10px 30px rgba(32, 79, 75, 0.12);
  --shadow-lg: 0 24px 60px rgba(32, 79, 75, 0.16);
  --wrap: 1180px;
  --header-h: 82px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  /* Decorative offset circles must never create sideways scroll */
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rainforest); }
a:hover { color: var(--rainforest-deep); }
ul { padding-left: 1.2em; }
strong { font-weight: 700; }

::selection { background: var(--sunset); color: var(--rainforest-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, .h1, .h2, .h3 {
  font-style: italic;
  font-weight: 800;
  line-height: 1.15;
  color: var(--rainforest);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2, .h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-weight: 700; color: var(--rainforest); margin: 0 0 0.4em; font-size: 1.05rem; }

.subhead {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--rainforest);
  line-height: 1.55;
}
.lead { font-size: clamp(1.08rem, 1.8vw, 1.22rem); line-height: 1.65; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rainforest);
  background: var(--seafoam);
  border-radius: 999px;
  padding: 0.35em 1.1em;
  margin-bottom: 1.1em;
}
.eyebrow--sunset { background: var(--sunset); }
.eyebrow--orchid { background: var(--orchid); }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p, .on-dark li, .on-dark .subhead { color: var(--white); }
.on-dark a:not(.btn) { color: var(--seafoam); }
.on-dark .eyebrow { background: rgba(255,255,255,0.16); color: var(--white); }

/* ---------- Layout ---------- */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; padding: 0 clamp(24px, 4vw, 40px); }
.container--narrow { max-width: 860px; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.section--pale { background: var(--pale-green); }
.section--seafoam { background: var(--seafoam); }
.section--orchid { background: var(--orchid-pale); }
.section--rainforest { background: var(--rainforest); }
.section--rainforest-deep { background: var(--rainforest-deep); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); }

.center { text-align: center; }
.center .eyebrow { margin-left: auto; margin-right: auto; }
.mw-70 { max-width: 70ch; }
.center .mw-70, .center .subhead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: 3px solid var(--rainforest); outline-offset: 3px; }
.btn--primary { background: var(--sunset); color: var(--rainforest-deep); }
.btn--primary:hover { color: var(--rainforest-deep); }
.btn--outline { border-color: var(--rainforest); color: var(--rainforest); background: transparent; }
.btn--outline:hover { background: var(--rainforest); color: var(--white); }
.btn--white { background: var(--white); color: var(--rainforest); }
.btn--white:hover { color: var(--rainforest-deep); }
.btn--on-dark { border-color: rgba(255,255,255,0.65); color: var(--white); background: transparent; }
.btn--on-dark:hover { background: var(--white); color: var(--rainforest); }
.btn--lg { font-size: 1.08rem; padding: 1.05em 2.2em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--rainforest); color: var(--white);
  padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}
.site-header__logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a.nav__link {
  font-weight: 600; font-size: 0.98rem; text-decoration: none; white-space: nowrap;
  color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a.nav__link:hover { color: var(--rainforest); }
.nav a.nav__link[aria-current="page"] { color: var(--rainforest); border-bottom-color: var(--sunset); font-weight: 700; }
.nav .btn { padding: 0.7em 1.5em; font-size: 0.95rem; }

.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 10px;
  border-radius: 10px;
}
.nav__toggle:focus-visible { outline: 3px solid var(--rainforest); }
.nav__toggle .bar {
  display: block; width: 26px; height: 3px; border-radius: 3px;
  background: var(--rainforest); margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav__toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav__toggle .bar:nth-child(2) { opacity: 0; }
.nav-open .nav__toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--pale-green); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero__copy .btn-row { margin-top: 28px; }
/* The tagline is long; size it to sit in ~4 lines beside the photo */
.hero__copy h1 { font-size: clamp(2.05rem, 4.3vw, 3.1rem); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4/4.4; object-fit: cover;
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 42% 42% var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__media::after {
  content: ""; position: absolute; inset: auto -30px -30px auto;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--sunset); opacity: 0.9; z-index: -1;
}
.hero__media::before {
  content: ""; position: absolute; top: -34px; left: -34px;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--orchid); opacity: 0.85;
}

/* Page hero (interior pages) */
.page-hero { background: var(--pale-green); position: relative; overflow: hidden; }
.page-hero__inner { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); max-width: 820px; }
.page-hero__inner--split {
  max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 860px) { .page-hero__inner--split { grid-template-columns: 1fr; } }
.page-hero--photo { background: var(--rainforest); }
.page-hero--photo .page-hero__inner { position: relative; z-index: 2; }
.page-hero--photo h1, .page-hero--photo .subhead, .page-hero--photo p { color: var(--white); }
.page-hero--photo .eyebrow { background: rgba(255,255,255,0.16); color: var(--white); }
.page-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.28;
}

/* Organic wave divider */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave svg { display: block; width: 100%; height: 100%; }

/* ---------- Cards & tiles ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card--flat { box-shadow: none; border: 1px solid var(--line); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }
.card--seafoam { background: var(--seafoam); }
.card--pale { background: var(--pale-green); }
.card--sunset { background: var(--sunset); }
.card--orchid { background: var(--orchid); }
.card--peach { background: var(--peach); }
.card .card__icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--pale-green); color: var(--rainforest);
}
.card--seafoam .card__icon, .card--sunset .card__icon, .card--orchid .card__icon, .card--peach .card__icon { background: rgba(255,255,255,0.55); }
.card .card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }

/* Numbered steps */
.step { position: relative; padding-top: 8px; }
.step__num {
  font-style: italic; font-weight: 800; font-size: 3rem; line-height: 1;
  color: var(--rainforest); opacity: 0.45; display: block; margin-bottom: 6px;
}

/* ---------- Trust strip / badge rows ---------- */
.trust { padding: clamp(30px, 4vw, 48px) 0; }
.trust__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}
.trust__row + .trust__row { margin-top: 26px; }
.trust__row img { height: 56px; width: auto; object-fit: contain; }
.trust__row img.badge--tall { height: 84px; }
img.award-badge__photo { border-radius: var(--radius-sm); }
.trust__label {
  text-align: center; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 18px;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.55em 1.2em;
  font-weight: 700; font-size: 0.92rem; color: var(--rainforest);
}

/* ---------- Stats / impact snapshot ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat { text-align: center; padding: 10px; }
.stat__figure {
  font-style: italic; font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25;
  color: var(--white); display: block; margin-bottom: 10px;
}
.stat p { color: var(--seafoam); margin: 0; }
.stat__icon { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--sunset); }
.stat__icon svg { width: 100%; height: 100%; }

/* ---------- Quote / testimonial ---------- */
.quote {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}
.quote::before {
  content: "\201C";
  position: absolute; top: 6px; left: 22px;
  font-style: italic; font-weight: 800; font-size: 5rem; line-height: 1;
  color: var(--sunset); pointer-events: none;
}
.quote blockquote {
  margin: 0; padding-top: 2.4rem; font-style: italic; font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.6; color: var(--rainforest);
}
.quote cite { display: block; margin-top: 20px; font-style: normal; font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.quote--tinted { background: var(--orchid-pale); box-shadow: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--rainforest); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(188, 222, 206, 0.12);
}
.cta-band::after {
  content: ""; position: absolute; left: -100px; bottom: -160px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(253, 198, 146, 0.14);
}
.cta-band__inner {
  position: relative; z-index: 2; text-align: center;
  padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px);
  max-width: 760px; margin: 0 auto;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--seafoam); }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Team flip cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); }
.flip-card { perspective: 1200px; }
.flip-card__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.flip-card > button { height: 100%; }
/* Hover-flip only on devices that can truly hover; touch relies on the tap
   toggle (sticky mobile :hover/:focus made cards impossible to flip back). */
@media (hover: hover) {
  .flip-card:hover .flip-card__inner { transform: rotateY(180deg); }
}
.flip-card.is-flipped .flip-card__inner { transform: rotateY(180deg); }
.flip-card__face {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
/* The front is in-flow and sets the card's height, so long names or roles can
   never crush the photo (the mobile "heads cut off" bug). The back overlays it. */
.flip-card__front { position: relative; background: var(--white); display: flex; flex-direction: column; height: 100%; }
.flip-card__front img { width: 100%; aspect-ratio: 1 / 1.08; flex: none; object-fit: cover; object-position: top center; background: var(--pale-green); }
.flip-card__back { position: absolute; inset: 0; }
/* Plain rectangular photos get a circle crop + seafoam ring to sit alongside
   the house cut-out-on-circle headshot style */
.flip-card__front img.photo-round {
  width: 74%; aspect-ratio: 1 / 1; align-self: center;
  margin: 8% auto 6%;
  border-radius: 50%;
  object-fit: cover; object-position: 50% 22%;
  background: var(--seafoam);
  box-shadow: 0 0 0 9px var(--seafoam);
}
.flip-card__meta { padding: 14px 16px; background: var(--white); }
.flip-card__meta strong { display: block; color: var(--rainforest); font-size: 1.02rem; }
.flip-card__meta span { font-size: 0.85rem; opacity: 0.8; }
.flip-card__back {
  background: var(--rainforest); color: var(--white);
  transform: rotateY(180deg);
  display: flex; flex-direction: column; justify-content: center;
  justify-content: safe center;
  overflow-y: auto;
  padding: 22px; text-align: center;
}
.flip-card__back .ff-label {
  font-style: italic; font-weight: 800; color: var(--sunset);
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; margin-bottom: 10px;
}
.flip-card__back p { font-size: 0.95rem; line-height: 1.55; margin: 0; color: var(--white); }
.flip-card__back strong { color: var(--seafoam); display: block; margin-top: 12px; }
.flip-card > button {
  all: unset; display: block; width: 100%; cursor: pointer;
}
.flip-card > button:focus-visible { outline: 3px solid var(--rainforest); outline-offset: 4px; border-radius: var(--radius-md); }
.flip-card--static .flip-card__inner { transform: none !important; }

/* ---------- Location pills ---------- */
.loc-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 24px 0; }
.loc-list li {
  background: var(--white); border: 1px solid var(--line);
  padding: 0.4em 1em; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  color: var(--rainforest);
}
.on-dark .loc-list li { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: var(--white); }

/* ---------- Case study figures ---------- */
.case-figure { margin: 6px 0 16px; font-style: italic; font-weight: 800; line-height: 1.2; }
.case-figure__from { opacity: 0.7; }
.case-figure__arrow { color: var(--sunset); }
.case-figure__to { display: block; font-size: 2.1rem; color: var(--sunset); }

/* ---------- Utilities ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.badge-row img { width: 100%; height: auto; }
.badge-row img.badge--md { max-width: 230px; }
.badge-row img.badge--sm { max-width: 140px; }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 48px; }
.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.map-scroll img { min-width: 720px; }

/* ---------- Awards list ---------- */
.award {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.award:last-child { border-bottom: 0; }
.award__icon { flex: 0 0 46px; width: 46px; height: 46px; color: var(--sunset); }
.award__icon svg { width: 100%; height: 100%; }
.award h3, .award h4 { margin-bottom: 0.2em; font-style: normal; font-weight: 700; color: var(--rainforest); font-size: 1.05rem; }
.award p { margin: 0; font-size: 0.98rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; color: var(--rainforest); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 0.85em 1.1em; border: 1.5px solid rgba(32, 79, 75, 0.45); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--rainforest); box-shadow: 0 0 0 3px rgba(32,79,75,0.14);
}
.field textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: 0.88rem; opacity: 0.75; }
.form-status { font-weight: 700; border-radius: var(--radius-sm); padding: 14px 18px; display: none; }
.form-status.is-ok { display: block; background: var(--seafoam); color: var(--rainforest-deep); }
.form-status.is-err { display: block; background: var(--peach); color: var(--rainforest-deep); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact details block ---------- */
.contact-line { display: flex; align-items: center; gap: 14px; margin: 14px 0; font-weight: 600; }
.contact-line svg { width: 24px; height: 24px; color: var(--rainforest); flex: 0 0 24px; }
.contact-line a { text-decoration: none; font-weight: 700; }
.contact-line a:hover { text-decoration: underline; }

/* ---------- Media / imagery ---------- */
.img-arch img, img.img-arch {
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 38% 38% var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%; object-fit: cover;
}
.img-soft img, img.img-soft { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.img-accent { position: relative; }
/* Photo column stretches to match its text column (fills tall sections) */
.img-fill { align-self: stretch; display: flex; }
.img-fill img { height: 100%; width: 100%; min-height: 420px; object-fit: cover; }
@media (max-width: 860px) { .img-fill img { min-height: 0; height: auto; } }
.img-accent::after {
  content: ""; position: absolute; right: -22px; bottom: -22px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--seafoam); z-index: -1;
}

/* ---------- Facebook embed ---------- */
.fb-embed-wrap { display: flex; justify-content: center; }
.fb-embed-wrap iframe { border: none; overflow: hidden; max-width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

/* ---------- Footer ---------- */
.site-footer { background: var(--rainforest-deep); color: var(--white); }
.site-footer a { color: var(--white); text-decoration: none; opacity: 0.92; }
.site-footer a:hover { opacity: 1; text-decoration: underline; color: var(--white); }
.site-footer__main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px); padding: clamp(48px, 6vw, 72px) 0;
}
.site-footer__brand img { height: 64px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { color: var(--seafoam); font-size: 0.95rem; max-width: 34ch; }
.site-footer .ft-h {
  color: var(--sunset); font-style: italic; font-weight: 800;
  font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 1em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.55em 0; font-size: 0.97rem; }
.site-footer__social { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; }
.site-footer__social svg { width: 26px; height: 26px; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding: 22px 0; font-size: 0.85rem; color: var(--seafoam);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}
.site-footer__legal p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px) scale(0.99); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.35, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .flip-card__inner { transition: none; }
}

/* ---------- Scroll choreography ----------
   main.js writes --sp (-1 below viewport … 0 centred … 1 above) onto tagged
   elements; everything below is transform-only so it stays on the compositor.
   The theme: the page breathes like the landscape — waves swell, the offset
   circles drift apart in depth, photography floats a beat behind the scroll. */
@media (prefers-reduced-motion: no-preference) {
  .wave svg {
    transform-origin: 50% 0;
    transform: scaleY(calc(1 + var(--sp, 0) * 0.14));
  }
  .hero__media img { transform: translateY(calc(var(--sp, 0) * -14px)); }
  .hero__media::before { transform: translate(calc(var(--sp, 0) * -12px), calc(var(--sp, 0) * 30px)); }
  .hero__media::after { transform: translate(calc(var(--sp, 0) * 10px), calc(var(--sp, 0) * -26px)); }
  .img-accent::after { transform: translate(calc(var(--sp, 0) * 16px), calc(var(--sp, 0) * -14px)); }
  .cta-band::before { transform: translateY(calc(var(--sp, 0) * 34px)); }
  .cta-band::after { transform: translateY(calc(var(--sp, 0) * -26px)); }
  .quote::before { transform: rotate(calc(var(--sp, 0) * -6deg)) translateY(calc(var(--sp, 0) * 5px)); }
  .page-hero .img-arch img { transform: translateY(calc(var(--sp, 0) * -10px)); }

  .site-header__logo img { transition: height 0.25s ease; }
  .site-header.is-scrolled .site-header__logo img { height: 42px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
}

/* Nav collapses to the hamburger earlier than the content grids: the full
   menu needs ~1080px before labels start wrapping onto two lines. */
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 18px 24px 28px; gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav { transform: none; visibility: visible; transition: transform 0.3s ease; }
  .nav a.nav__link { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav__toggle { display: block; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__media { order: -1; max-width: 520px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .trust__row { gap: 20px; }
  .trust__row img { height: 44px; }
  .trust__row img.badge--tall { height: 64px; }
  .site-footer__main { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .flip-card__back { padding: 14px; }
  .flip-card__back p { font-size: 0.85rem; line-height: 1.45; }
  .flip-card__back .ff-label { margin-bottom: 6px; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flip-card__meta { padding: 10px 12px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav__toggle { display: none; }
}
