/* ==========================================================================
   Ecosphere Media — Studio Reel
   One family (Montserrat), brand colours from the identity guidelines.
   Layout: wide editorial grid, big type, content-led sections, phone-first.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.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: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arial tuned to Montserrat's size, so text doesn't jump when the font loads. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 112%;
  ascent-override: 86%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --navy: #090A14;
  --navy-2: #0E1020;
  --navy-3: #151827;
  --navy-line: #262C42;
  --on-navy: #C9CFD8;
  --on-navy-muted: #8A93A3;
  --ink: #090A14;
  --text: #3A4150;
  --muted: #5B6472;
  --line: #DCE1E7;
  --line-strong: #C9CFD8;
  --mist: #EEF1F4;
  --paper: #FFFFFF;
  --green: #7EB241;
  --green-hover: #8CC24D;
  --green-deep: #466D1E; /* Deep Leaf, darkened slightly so small text passes WCAG AA on Mist */
  --blue: #0079C4;
  --blue-deep: #005A93;

  --font: "Montserrat", "Montserrat Fallback", Arial, sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.45rem + 1.9vw, 2.875rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --step-5: clamp(2.75rem, 1.55rem + 5.4vw, 6.5rem);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1296px;
  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --section: clamp(72px, 9vw, 140px);
  --shadow: 0 18px 50px rgba(9, 10, 20, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-l { display: flex; flex-direction: column; gap: 28px; }
.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--green-deep);
}
.section--navy .eyebrow, .on-navy .eyebrow { color: var(--green); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head__text { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { max-width: 440px; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--green { background: var(--green); color: var(--navy); }
.btn--green:hover { background: var(--green-hover); color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #1C2030; color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: #3A4150; color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 164px; height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; padding: 6px; background: var(--mist); border-radius: 999px; }
.nav__list a {
  display: block; padding: 10px 18px; border-radius: 999px; color: var(--ink); font-size: 0.9375rem; font-weight: 500;
  transition: background-color .2s var(--ease);
}
.nav__list a:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.nav__list a[aria-current="page"] { background: #fff; box-shadow: 0 1px 2px rgba(9, 10, 20, 0.06); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--mist);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: none; }

@media (max-width: 1023px) {
  .nav, .header-cta .btn--dark { display: none; }
  .js .menu-toggle { display: inline-flex; margin-left: auto; }
  .no-js .nav { display: block; margin-left: 0; width: 100%; padding-bottom: 12px; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav__list { flex-wrap: wrap; background: none; padding: 0; }
  .brand img { width: 140px; }
  .site-header__inner { min-height: 68px; }
  .js .mobile-menu {
    display: block; position: fixed; inset: 68px 0 auto 0; z-index: 49;
    max-height: calc(100dvh - 68px); overflow-y: auto;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 60px rgba(9, 10, 20, 0.14);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .js .mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .mobile-menu__list { list-style: none; display: flex; flex-direction: column; }
  .mobile-menu__list a {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
    color: var(--ink); font-size: 1.25rem; font-weight: 600;
  }
  .mobile-menu__sub { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 12px 0 8px; }
  .mobile-menu__sub a { font-size: 0.9375rem; font-weight: 500; color: var(--text); border: 0; padding: 8px 0; }
  .mobile-menu .btn-row { margin-top: 20px; }
  .mobile-menu .btn { flex: 1 1 140px; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero__title { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 26px); }
.hero__title .display { font-size: var(--step-5); line-height: 0.98; letter-spacing: -0.035em; max-width: 12.5ch; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 48px; flex-wrap: wrap; margin-top: clamp(28px, 3.5vw, 44px); }
.hero__row .lede { max-width: 580px; }

/* ---------- Reel wall ---------- */
.reels { margin-top: clamp(48px, 6vw, 80px); }
.reels__track {
  display: flex; gap: clamp(12px, 1.6vw, 22px); align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px var(--gutter) 40px; scroll-padding-inline: var(--gutter);
}
.reels__track::-webkit-scrollbar { display: none; }
.reel {
  flex: none; width: clamp(168px, 17vw, 236px); aspect-ratio: 9 / 16; border-radius: clamp(18px, 2vw, 26px);
  overflow: hidden; position: relative; scroll-snap-align: start; background: var(--mist);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.reel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (min-width: 768px) {
  .reel:nth-child(6n+1) { margin-top: 30px; }
  .reel:nth-child(6n+3) { margin-top: 80px; }
  .reel:nth-child(6n+4) { margin-top: 10px; }
  .reel:nth-child(6n+5) { margin-top: 56px; }
  .reel:nth-child(6n) { margin-top: 20px; }
}
.reel > a, .reel > div { display: block; height: 100%; color: inherit; }
.reel img, .reel .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; border-radius: 0; }
.reel__tag {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: rgba(9, 10, 20, 0.62); color: #fff; font-size: 0.75rem; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.reel__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; color: #fff; font-size: 0.8125rem; line-height: 1.4;
  background: linear-gradient(to top, rgba(9, 10, 20, 0.85), rgba(9, 10, 20, 0));
}
.reel--stat { background: var(--navy); color: #fff; padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; }
.reel--stat .reel__kicker { font-size: 0.625rem; letter-spacing: 0.3em; color: var(--green); }
.reel--stat .reel__num { margin-top: auto; font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: -0.03em; color: var(--green); line-height: 1; }
.reel--stat p { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--on-navy); }
.reel--green { background: var(--green); color: var(--navy); padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; }
.reel--green .reel__kicker { font-size: 0.625rem; letter-spacing: 0.3em; }
.reel--green p { margin-top: auto; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.2; }
.reel--green a { color: var(--navy); }
.reel--stat > a, .reel--green > a { display: flex; flex-direction: column; height: 100%; }
.reels__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.reels__bar a { font-weight: 600; }
.reels__controls { display: flex; gap: 10px; }
.no-js .reels__controls { display: none; }
.circle-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.circle-btn:hover { background: var(--mist); }
.circle-btn--dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.circle-btn--dark:hover { background: #1C2030; }

/* ---------- Sectors ---------- */
.sectors__list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.1em 0.45em;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 3.625rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin-top: 18px;
}
.sectors__list li:not(:last-child)::after { content: "·"; margin-left: 0.45em; color: var(--line-strong); }
.sectors__list li:nth-child(2) { color: var(--blue); }
.sectors__list li:nth-child(4) { color: var(--green-deep); }

/* ---------- Services tabs (home) ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.svc__intro { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.svc__intro h2 { font-size: var(--step-3); }
.svc__tabs { display: flex; flex-direction: column; gap: 4px; }
.svc__tab {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  text-align: left; padding: 16px 20px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  font-size: 1.0625rem; font-weight: 500; color: var(--ink); transition: background-color .2s var(--ease);
}
.svc__tab:hover { background: var(--mist); }
.svc__tab[aria-selected="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.svc__tab svg { opacity: 0; color: var(--green); transition: opacity .2s var(--ease); }
.svc__tab[aria-selected="true"] svg { opacity: 1; }
.svc__panel {
  background: var(--mist); border-radius: var(--radius-l); padding: clamp(24px, 3.4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: clamp(24px, 3vw, 40px);
}
.svc__panel h3 { font-size: var(--step-2); }
.svc__panel .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc__panel-media { display: flex; flex-direction: column; gap: 12px; }
.svc__panel-media img, .svc__panel-media .ph { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.no-js .svc__tabs { display: none; }
.no-js .svc__panels { display: flex; flex-direction: column; gap: 16px; }
.no-js .svc__panel[hidden] { display: grid !important; }

.checks { list-style: none; display: grid; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; }
.checks svg { flex: none; color: var(--green-deep); margin-top: 1px; }

/* ---------- Featured case (navy band) ---------- */
.feature { background: var(--navy); color: #fff; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.feature__media { position: relative; min-height: 420px; background: var(--navy-3); }
.feature__media img, .feature__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; }
.feature__body { padding: clamp(40px, 6vw, 88px) var(--gutter); display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.feature__body h2 { font-size: var(--step-3); }
.feature__body p { color: var(--on-navy); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding-top: 26px; border-top: 1px solid var(--navy-line); margin-top: auto; }
.stat__num { display: block; font-size: clamp(2.75rem, 4vw, 4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--green); }
.stat__label { display: block; margin-top: 8px; font-size: 0.875rem; color: var(--on-navy); }
.feature a.link-arrow { color: var(--green); }
.feature a.link-arrow:hover { color: #A6D26F; }

/* ---------- Process / why ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--line-strong); padding-top: 22px; counter-increment: step; }
.steps li:first-child { border-top-color: var(--green); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 0.875rem; font-weight: 600; color: var(--green-deep); }
.steps h3 { font-size: 1.25rem; }
.steps p { font-size: 0.9375rem; color: var(--text); }

.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); }
.why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 44px; }
.why__grid > div { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--navy); padding-top: 20px; }
.why__grid h3 { font-size: 1.1875rem; }
.why__grid p { font-size: 0.9375rem; color: var(--text); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.team--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person { display: flex; flex-direction: column; gap: 6px; }
.person__photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; background: var(--mist); }
.person__photo img, .person__photo .ph { width: 100%; aspect-ratio: 4 / 5 !important; object-fit: cover; border-radius: 0; }
.person h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.person__role { font-size: 0.875rem; font-weight: 500; color: var(--green-deep); }
.person p { font-size: 0.875rem; color: var(--text); line-height: 1.55; }
.person__link { margin-top: 4px; font-size: 0.875rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.card:hover { color: var(--ink); }
.card__media { border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.card__media img, .card__media .ph { width: 100%; aspect-ratio: 16 / 10 !important; object-fit: cover; border-radius: 0; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__meta { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.01em; }
.card p { font-size: 0.9375rem; color: var(--text); }

.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.svc-card:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.svc-card h3 { font-size: 1.3125rem; }
.svc-card p { font-size: 0.9375rem; color: var(--text); }
.svc-card .link-arrow { margin-top: auto; padding-top: 6px; color: var(--blue); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__head { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.faq__head h2 { font-size: var(--step-3); }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section--mist .faq__item { border-color: transparent; }
.section--mist a:not(.btn):not(.svc-card):not(.card):not(.case-card) { color: var(--blue-deep); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; transition: transform .25s var(--ease); color: var(--muted); }
.faq__item[open] summary svg { transform: rotate(45deg); color: var(--ink); }
.faq__answer { padding: 0 24px 22px; color: var(--text); font-size: 0.9375rem; line-height: 1.7; }
.faq__answer p + p { margin-top: 10px; }

/* ---------- CTA panel ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--mist); border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 88px) clamp(24px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
  background: url("../images/logo-mark-black.webp") center / contain no-repeat; opacity: 0.05; pointer-events: none;
}
.cta h2 { font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1.02; }
.cta p { margin-top: 16px; color: var(--text); font-size: var(--step-1); }
.cta__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.cta__actions .btn { width: 100%; min-height: 60px; font-size: 1.0625rem; }
.cta__email { text-align: center; font-weight: 600; padding-top: 4px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.page-hero__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.page-hero h1 { font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1.04; }
.page-hero__text { display: flex; flex-direction: column; gap: 22px; }
.page-hero__media { border-radius: var(--radius-l); overflow: hidden; background: var(--mist); }
.page-hero__media img, .page-hero__media .ph { width: 100%; aspect-ratio: 4 / 3 !important; object-fit: cover; border-radius: 0; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; color: var(--muted); }
.trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.trust-line svg { color: var(--green-deep); }

.includes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.include { padding: 26px; border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.include h3 { font-size: 1.125rem; display: flex; gap: 10px; align-items: flex-start; letter-spacing: -0.01em; }
.include h3 svg { flex: none; color: var(--green-deep); margin-top: 1px; }
.include p { font-size: 0.9375rem; color: var(--text); }

.split { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; }
.toc__title { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.toc a { color: var(--text); line-height: 1.4; }
.toc a:hover { color: var(--ink); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--mist); font-size: 0.9375rem; font-weight: 500; }

/* ---------- Prose (Markdown content) ---------- */
.prose { max-width: 720px; color: var(--text); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); color: var(--ink); margin-top: 2em; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.25rem; color: var(--ink); margin-top: 1.6em; letter-spacing: -0.01em; }
.prose h4 { font-size: 1.0625rem; color: var(--ink); margin-top: 1.4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--green-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--ink); font-size: 1.125rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose figure .ph { border-radius: var(--radius); }
.prose figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.prose code { font-size: 0.9em; background: var(--mist); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--navy); color: #fff; padding: 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--mist); color: var(--ink); font-weight: 600; }
.prose tbody th { color: var(--ink); font-weight: 600; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }

/* ---------- Case studies ---------- */
.case-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; color: var(--ink); background: #fff; }
.case-card:hover { color: var(--ink); box-shadow: var(--shadow); }
.case-card__media { background: var(--mist); min-height: 320px; position: relative; }
.case-card__media img, .case-card__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; border-radius: 0; }
.case-card__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.case-card h2, .case-card h3 { font-size: var(--step-2); }
.case-card .stats { border-top-color: var(--line); }
.case-card .stat__num { color: var(--blue); font-size: clamp(2.25rem, 3.4vw, 3.25rem); }
.case-card .stat__label { color: var(--text); }
.case-list { display: flex; flex-direction: column; gap: 24px; }
.case-hero-stats { display: flex; flex-wrap: wrap; gap: 20px 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-hero-stats .stat__num { color: var(--blue); }
.case-hero-stats .stat__label { color: var(--text); }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 0.9375rem; padding-top: 18px; border-top: 2px solid var(--navy); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- Blog ---------- */
.post-hero { max-width: 860px; }
.post-hero h1 { font-size: var(--step-4); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; color: var(--muted); }
.post-cover { border-radius: var(--radius-l); overflow: hidden; margin-top: clamp(28px, 4vw, 48px); background: var(--mist); }
.post-cover img, .post-cover .ph { width: 100%; aspect-ratio: 16 / 9 !important; object-fit: cover; border-radius: 0; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.inline-cta { margin-top: 2em; padding: 22px 24px; border-radius: var(--radius); background: var(--mist); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; line-height: 1.5; }
.inline-cta strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.inline-cta span { display: block; font-size: 0.9375rem; color: var(--text); margin-top: 2px; }
.inline-cta .btn-row { flex: none; }
.prose .inline-cta a { text-decoration: none; }
.aside-card { position: sticky; top: 110px; background: var(--mist); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.aside-card h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
.aside-card p { font-size: 0.9375rem; color: var(--text); }
.blog-featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; color: var(--ink); margin-bottom: clamp(40px, 5vw, 64px); }
.blog-featured:hover { color: var(--ink); }
.blog-featured h2 { font-size: var(--step-3); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  font-size: 1rem; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23090A14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 121, 196, 0.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B42318; }
.field__error { font-size: 0.8125rem; color: #B42318; font-weight: 500; }
.form__note { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.form__note a, .lede a, .faq__answer a, .muted a:not(.link-arrow), .contact-grid p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.form__alert { padding: 14px 16px; border-radius: 10px; background: #FEF3F2; color: #912018; font-size: 0.9375rem; font-weight: 500; }
.form__alert:empty { display: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; display: flex; flex-direction: column; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 2px solid var(--navy); }
.contact-list svg { flex: none; color: var(--green-deep); margin-top: 3px; }
.contact-list strong { display: block; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { font-weight: 600; }
.map {
  position: relative; margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; color: var(--text); font-size: 0.9375rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 80px); padding-bottom: 32px; margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { width: 180px; }
.footer-brand p, .footer-brand address { font-size: 0.9375rem; line-height: 1.7; color: var(--text); font-style: normal; }
.footer-col h2 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom nav { display: flex; gap: 20px; }

.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.social__badge {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--mist); color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease);
}
a.social__badge:hover { background: var(--navy); color: #fff; }
.social__badge.is-pending { opacity: 0.55; cursor: default; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 767px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    padding: 6px; background: var(--navy); border-radius: 999px; box-shadow: 0 12px 30px rgba(9, 10, 20, 0.35);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .js .action-bar:not(.is-visible) { transform: translateY(140%); opacity: 0; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; color: #fff; font-size: 0.875rem; font-weight: 600; }
  .action-bar a:last-child { background: var(--green); color: var(--navy); }
  body { padding-bottom: 84px; }
}

/* ---------- Image placeholders (until the real image is uploaded) ---------- */
.ph {
  position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center; color: var(--muted); border-radius: inherit;
  background: repeating-linear-gradient(135deg, #E6EAEF 0 14px, #EDF0F3 14px 28px);
}
.ph__label { font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.02em; max-width: 90%; word-break: break-word; }
.ph__size { display: block; opacity: 0.8; }
.section--navy .ph, .feature .ph, .reel--dark .ph { background: repeating-linear-gradient(135deg, #141724 0 14px, #171A28 14px 28px); color: var(--on-navy-muted); }

/* ---------- Thank you / errors ---------- */
.notice { max-width: 760px; }
.notice h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
.notice .lede { margin-top: 20px; }
.notice .btn-row { margin-top: 32px; }
.debug-trace { margin-top: 32px; white-space: pre-wrap; font-size: 13px; background: var(--mist); padding: 16px; border-radius: 10px; overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 4px; }
  .svc__tabs::-webkit-scrollbar { display: none; }
  .svc__tab { width: auto; flex: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 18px; font-size: 0.9375rem; }
  .svc__tab svg { display: none; }
  .svc__tab[aria-selected="true"] { border-color: var(--navy); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .feature, .page-hero__grid, .why, .faq, .contact-grid, .split, .post-layout, .cta, .blog-featured, .case-card { grid-template-columns: minmax(0, 1fr); }
  .faq__head, .toc, .aside-card { position: static; }
  .toc { display: none; }
  .feature__media { min-height: 300px; }
  .case-card__media { min-height: 240px; }
  .cards, .svc-cards, .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cards, .svc-cards, .includes, .why__grid, .form__grid { grid-template-columns: minmax(0, 1fr); }
  .svc__panel .checks { grid-template-columns: minmax(0, 1fr); }
  .team, .team--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .team--3 .person:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__row .btn-row, .cta__actions { width: 100%; }
  .hero__row .btn-row .btn, .page-hero .btn-row .btn { flex: 1 1 100%; }
  .reels__bar { flex-direction: column; align-items: flex-start; }
  .person p { display: none; }
  .faq__item summary { padding: 18px; font-size: 1rem; }
  .faq__answer { padding: 0 18px 18px; }
  .include { padding: 22px; }
  .section-head { margin-bottom: 28px; }
}

/* ---------- Motion (only for people who haven't asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
  /* Movement only: content is always fully visible, even before it scrolls into view. */
  @keyframes reveal-up { from { transform: translateY(36px); } to { transform: none; } }
  .hero__title .display { animation: hero-in .9s var(--ease) both; }
  .hero .eyebrow { animation: hero-in .9s var(--ease) both; }
  .reel { animation: reel-in .8s var(--ease) both; }
  .reel:nth-child(2) { animation-delay: .06s; }
  .reel:nth-child(3) { animation-delay: .12s; }
  .reel:nth-child(4) { animation-delay: .18s; }
  .reel:nth-child(5) { animation-delay: .24s; }
  .reel:nth-child(6) { animation-delay: .3s; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes reel-in { from { opacity: 0; transform: translateY(36px) scale(.98); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .action-bar, .site-footer .social, .cta__actions, .reels__controls, .skip-link { display: none !important; }
  body { padding-bottom: 0; }
  a { color: inherit; }
}
