/* ==========================================================================
   EchoCrew site stylesheet
   Fonts: Clash Display (headings), Platform (text), Mango Grotesque (big type)
   Shape rule: buttons + chips are pills, cards 18px, inputs 10px.
   Z-index scale: nav 50, mobile menu 45, skip link 60, grain 70.
   ========================================================================== */

@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Regular.woff2") format("woff2"), url("../fonts/ClashDisplay-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Medium.woff2") format("woff2"), url("../fonts/ClashDisplay-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2"), url("../fonts/ClashDisplay-Semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Platform"; src: url("../fonts/Platform-Light.woff2") format("woff2"), url("../fonts/Platform-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Platform"; src: url("../fonts/Platform-Regular.woff2") format("woff2"), url("../fonts/Platform-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Platform"; src: url("../fonts/Platform-Medium.woff2") format("woff2"), url("../fonts/Platform-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mango Grotesque"; src: url("../fonts/MangoGrotesque-SemiBold.woff2") format("woff2"), url("../fonts/MangoGrotesque-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
/* Subset of Font Awesome 6 Light: only the glyphs this site uses. */
@font-face { font-family: "ec-icons"; src: url("../fonts/ec-icons.woff2") format("woff2"); font-weight: 300; font-display: block; }

:root {
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --ink: #111827;
  --slate: #334155;
  --muted: #64748B;
  --deep: #063B3B;
  --deep-2: #0B4A48;
  --teal: #159A91;
  --bright: #20B8A8;
  --orange: #FF9F1C;
  --mint: #D7EFE3;
  --sky: #DDEEFF;
  --lav: #E8E4FF;
  --peach: #FFE2D6;

  --grad: linear-gradient(125deg, #063B3B 0%, #159A91 62%, #20B8A8 100%);
  --line: rgba(17, 24, 39, .12);
  --line-strong: rgba(17, 24, 39, .22);
  --line-inv: rgba(250, 250, 247, .16);
  --text-inv: #FAFAF7;
  --text-inv-soft: rgba(250, 250, 247, .74);

  --f-display: "Clash Display", "Segoe UI", system-ui, sans-serif;
  --f-body: "Platform", "Segoe UI", system-ui, sans-serif;
  --f-big: "Mango Grotesque", "Arial Narrow", "Clash Display", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --pill: 999px;

  --shell: 1320px;
  --gutter: clamp(16px, 4.2vw, 56px);
  --nav-h: 76px;
  --sec: clamp(4.5rem, 10vw, 8.5rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 0 rgba(6, 59, 59, .04), 0 22px 44px -24px rgba(6, 59, 59, .32);
  --shadow-lift: 0 2px 0 rgba(6, 59, 59, .05), 0 30px 60px -28px rgba(6, 59, 59, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  word-spacing: .06em;
}
/* Paper grain: fixed layer so it never repaints with scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -.018em;
  word-spacing: .1em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.05; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.2; font-weight: 500; letter-spacing: -.012em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.ec-shell { width: 100%; max-width: calc(var(--shell) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ec-section { position: relative; padding-block: var(--sec); }
.ec-section--tight { padding-block: calc(var(--sec) * .7); }
.ec-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; font-weight: 300; color: var(--slate); max-width: 58ch; }
.ec-muted { color: var(--muted); }
.ec-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-body); font-weight: 500; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--teal);
  margin-bottom: 1.2rem;
}
.ec-eyebrow::before { content: ""; width: 22px; height: 8px; background: var(--orange); transform: skewX(-28deg); border-radius: 2px; }
.ec-skip { position: fixed; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: var(--r-sm); text-decoration: none; transition: top .2s; }
.ec-skip:focus { top: 1rem; }
.ec-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ec-ico { font-family: "ec-icons"; font-weight: 300; font-style: normal; line-height: 1; display: inline-block; }

/* ---------- Dark (deep teal) surfaces ---------- */
.ec-dark { background: var(--deep); color: var(--text-inv-soft); }
.ec-dark h1, .ec-dark h2, .ec-dark h3, .ec-dark h4 { color: var(--text-inv); }
.ec-dark .ec-lead { color: var(--text-inv-soft); }
.ec-dark .ec-eyebrow { color: var(--bright); }
.ec-dark ::selection { background: var(--orange); color: var(--ink); }

/* ---------- Buttons ---------- */
.ec-btn {
  --bg: var(--orange); --fg: var(--ink); --hover-bg: var(--ink); --hover-fg: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.55rem; border-radius: var(--pill);
  background: var(--bg); color: var(--fg);
  border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 500; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: color .45s var(--ease), border-color .3s, transform .15s;
}
.ec-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover-bg); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.ec-btn::after { content: "\f061"; font-family: "ec-icons"; font-weight: 300; font-size: .95em; transition: transform .45s var(--ease); }
.ec-btn:hover { color: var(--hover-fg); }
.ec-btn:hover::before { transform: translateY(0); }
.ec-btn:hover::after { transform: translateX(4px); }
.ec-btn:active { transform: scale(.98); }
.ec-btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.ec-btn--ghost:hover { border-color: var(--ink); }
.ec-btn--sm { padding: .78rem 1.2rem; font-size: .95rem; }
.ec-btn--plain::after { content: none; }
.ec-dark .ec-btn { --hover-bg: var(--paper); --hover-fg: var(--deep); }
.ec-dark .ec-btn--ghost { --fg: var(--paper); border-color: var(--line-inv); }
.ec-dark .ec-btn--ghost:hover { border-color: var(--paper); }

.ec-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--deep); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease);
}
.ec-link::after { content: "\f061"; font-family: "ec-icons"; font-weight: 300; font-size: .9em; transition: transform .45s var(--ease); }
.ec-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.ec-link:hover::after { transform: translateX(4px); }
.ec-dark .ec-link { color: var(--bright); }

/* ---------- Navigation ---------- */
.ec-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: transform .5s var(--ease), background-color .3s, box-shadow .3s;
}
.ec-nav.is-scrolled { background: rgba(250, 250, 247, .88); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.ec-nav.is-hidden { transform: translateY(-100%); }
.ec-nav__row { height: 100%; display: flex; align-items: center; gap: 2rem; }
.ec-nav__brand { flex: none; display: block; }
.ec-nav__brand img { height: 42px; width: auto; }
.ec-nav__links { display: flex; gap: .25rem; margin-left: auto; }
.ec-nav__links a {
  position: relative; padding: .55rem .8rem; border-radius: var(--pill);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  transition: background-color .25s;
}
.ec-nav__links a:hover { background: rgba(21, 154, 145, .1); }
.ec-nav__links a[aria-current="page"]::after, .ec-nav__links a.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; background: var(--orange); border-radius: 2px;
}
.ec-nav__cta { flex: none; }
.ec-nav__burger {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--paper); position: relative;
}
.ec-nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.ec-nav__burger span:first-child { top: 19px; }
.ec-nav__burger span:last-child { top: 27px; }
.ec-menu-open .ec-nav__burger span:first-child { top: 23px; transform: rotate(45deg); }
.ec-menu-open .ec-nav__burger span:last-child { top: 23px; transform: rotate(-45deg); }

.ec-mobilenav {
  position: fixed; inset: 0; z-index: 45; background: var(--deep); color: var(--paper);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  display: flex; flex-direction: column; gap: .2rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.ec-mobilenav a:not(.ec-btn) {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.25;
  color: var(--paper); text-decoration: none; letter-spacing: -.02em;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease);
}
.ec-mobilenav .ec-btn { margin-top: auto; align-self: flex-start; }
.ec-menu-open .ec-mobilenav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease); }
.ec-menu-open .ec-mobilenav a { opacity: 1; transform: none; }
.ec-menu-open .ec-mobilenav a:nth-child(2) { transition-delay: .05s; }
.ec-menu-open .ec-mobilenav a:nth-child(3) { transition-delay: .1s; }
.ec-menu-open .ec-mobilenav a:nth-child(4) { transition-delay: .15s; }
.ec-menu-open .ec-mobilenav a:nth-child(5) { transition-delay: .2s; }
.ec-menu-open .ec-mobilenav a:nth-child(6) { transition-delay: .25s; }
.ec-menu-open .ec-mobilenav a:nth-child(7) { transition-delay: .3s; }
.ec-menu-open .ec-nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ec-nav__brand .is-light { display: none; }
.ec-menu-open .ec-nav__brand .is-dark { display: none; }
.ec-menu-open .ec-nav__brand .is-light { display: block; }
.ec-menu-open .ec-nav__burger { background: transparent; border-color: var(--line-inv); }
.ec-menu-open .ec-nav__burger span { background: var(--paper); }
.ec-menu-open body { overflow: hidden; }

@media (max-width: 1100px) {
  .ec-nav__links, .ec-nav__cta { display: none; }
  .ec-nav__burger { display: block; }
}
@media (min-width: 1101px) { .ec-mobilenav { display: none; } }

/* ---------- Hand-drawn marks ---------- */
.ec-scribble { position: relative; display: inline-block; white-space: nowrap; }
.ec-scribble svg { position: absolute; left: -2%; width: 104%; bottom: -.2em; height: .38em; overflow: visible; pointer-events: none; }
.ec-scribble path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ec-ring { position: relative; display: inline-block; }
.ec-ring svg { position: absolute; left: -9%; top: -16%; width: 118%; height: 138%; overflow: visible; pointer-events: none; }
.ec-ring path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }

/* ---------- Hero ---------- */
.ec-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4.5rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: clip; }
.ec-hero::before {
  content: ""; position: absolute; z-index: -1; right: -12vw; top: -10vw; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(215, 239, 227, .95), rgba(215, 239, 227, 0));
}
.ec-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: min(calc(100dvh - var(--nav-h) - 6rem), 760px); }
.ec-hero__title { max-width: 17ch; font-size: clamp(2.5rem, 4.5vw, 4.25rem); }
.ec-hero__title .ec-w { display: inline-block; }
.ec-hero__lead { margin-top: 1.6rem; max-width: 44ch; font-size: clamp(1.1rem, 1.5vw, 1.28rem); font-weight: 300; line-height: 1.55; }
.ec-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; margin-top: 2.3rem; }

.ec-hero__art { position: relative; aspect-ratio: 1 / 1.02; max-width: 640px; width: 100%; justify-self: end; }
.ec-hero__photo { position: absolute; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--mint); }
.ec-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.ec-hero__photo--main { inset: 4% 0 16% 12%; }
.ec-hero__photo--main img { object-position: 60% 50%; }
.ec-hero__photo--small { width: 44%; aspect-ratio: 1; left: 0; bottom: 0; border: 6px solid var(--paper); }
.ec-hero__mark { position: absolute; width: 21%; right: -3%; bottom: 3%; filter: drop-shadow(0 18px 30px rgba(6, 59, 59, .28)); }
.ec-note {
  position: absolute; right: 6%; top: 0; width: min(210px, 44%);
  background: var(--peach); color: var(--ink); padding: 1.1rem 1.1rem 1.2rem; border-radius: 4px;
  font-family: var(--f-display); font-weight: 500; font-size: 1.02rem; line-height: 1.25; letter-spacing: -.01em;
  transform: rotate(3.5deg); box-shadow: 0 16px 30px -18px rgba(6, 59, 59, .55);
}
.ec-note::before { content: ""; position: absolute; width: 64px; height: 20px; left: 50%; top: -10px; margin-left: -32px; background: rgba(255, 255, 255, .6); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

@media (max-width: 600px) { .ec-note { font-size: .85rem; padding: .8rem .8rem .9rem; width: min(170px, 46%); } }
@media (max-width: 900px) {
  .ec-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .ec-hero__art { justify-self: stretch; max-width: 560px; margin-inline: auto; }
}

/* ---------- Scroll-driven ticker (the one marquee) ---------- */
.ec-ticker { padding-block: clamp(1.5rem, 4vw, 3rem); overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.ec-ticker__row { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); width: max-content; font-family: var(--f-big); font-weight: 600; text-transform: uppercase; font-size: clamp(3.2rem, 9vw, 8rem); line-height: .95; color: var(--deep); letter-spacing: .005em; }
.ec-ticker__row + .ec-ticker__row { margin-top: .4rem; }
.ec-ticker__row--outline { color: transparent; -webkit-text-stroke: 1.5px var(--teal); transform: translateX(-18%); }
.ec-ticker__sep { flex: none; width: .5em; height: .2em; border-radius: 3px; background: var(--orange); transform: skewX(-30deg); }
.ec-ticker__row--outline .ec-ticker__sep { background: var(--mint); }

/* ---------- Manifesto ---------- */
.ec-manifesto__text { font-size: clamp(2.3rem, 6vw, 5.4rem); line-height: 1.02; max-width: 17ch; letter-spacing: -.03em; }
.ec-manifesto__text em { font-style: normal; color: var(--teal); }
.ec-manifesto__foot { margin-top: clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ec-flow { position: relative; display: grid; gap: 0; counter-reset: flow; }
.ec-flow li {
  counter-increment: flow; position: relative; display: flex; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-top: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ink);
}
.ec-flow li:last-child { border-bottom: 1px solid var(--line); }
.ec-flow li::before { content: counter(flow, decimal-leading-zero); font-family: var(--f-body); font-size: .8rem; color: var(--muted); font-weight: 400; min-width: 2ch; }
.ec-flow li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--teal); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.ec-flow li:last-child::after { background: var(--orange); }
@media (max-width: 900px) { .ec-manifesto__foot { grid-template-columns: 1fr; } }

/* ---------- Services (sticky split accordion) ---------- */
.ec-svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ec-svc__aside { position: sticky; top: calc(var(--nav-h) + 2rem); display: grid; gap: 1.2rem; justify-items: start; }
.ec-svc__photo { width: 100%; aspect-ratio: 5 / 4; margin-top: 1.4rem; }
.ec-acc { border-top: 1px solid var(--line-strong); }
.ec-acc__item { border-bottom: 1px solid var(--line-strong); }
.ec-acc__item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1.2rem;
  padding: 1.45rem 0; font-family: var(--f-display); font-weight: 500; color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem); letter-spacing: -.015em; line-height: 1.2;
  transition: color .25s, padding .45s var(--ease);
}
.ec-acc__item > summary::-webkit-details-marker { display: none; }
.ec-acc__item > summary:hover { color: var(--teal); padding-left: .5rem; }
.ec-acc__item > summary::after {
  content: "\2b"; font-family: "ec-icons"; margin-left: auto; flex: none;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); font-size: 1rem; color: var(--ink);
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
}
.ec-acc__item[open] > summary::after { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); }
.ec-acc__body { padding: 0 0 1.8rem; display: grid; gap: 1.3rem; animation: ec-drop .6s var(--ease); }
@keyframes ec-drop { from { opacity: 0; transform: translateY(-8px); } }
.ec-acc__body > p { max-width: 60ch; }
.ec-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.6rem; }
.ec-checks li { position: relative; padding-left: 1.7rem; color: var(--slate); }
.ec-checks li::before { content: "\f00c"; font-family: "ec-icons"; position: absolute; left: 0; top: .25em; font-size: .9rem; color: var(--teal); }
.ec-dark .ec-checks li { color: var(--text-inv-soft); }
.ec-dark .ec-checks li::before { color: var(--bright); }
@media (max-width: 900px) {
  .ec-svc { grid-template-columns: 1fr; }
  .ec-svc__aside { position: static; }
  .ec-svc__photo { display: none; }
}
@media (max-width: 560px) { .ec-checks { grid-template-columns: 1fr; } }

/* ---------- Media frames with inner parallax ---------- */
.ec-media { position: relative; overflow: hidden; border-radius: var(--r); margin: 0; background: var(--mint); isolation: isolate; }
.ec-media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }

/* ---------- Legacy strata ---------- */
.ec-legacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.ec-legacy__copy { display: grid; gap: 1.3rem; }
.ec-legacy__copy h2 { max-width: 14ch; margin-bottom: .4rem; }
.ec-strata { display: flex; flex-direction: column-reverse; gap: .7rem; }
.ec-strata li {
  --c: var(--deep-2); --fg: var(--text-inv);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; border-radius: var(--r);
  background: var(--c); color: var(--fg);
  border: 1px solid var(--line-inv);
}
.ec-strata li:nth-child(1) { --c: #042C2C; margin-right: 0; }
.ec-strata li:nth-child(2) { --c: var(--teal); margin-left: 5%; }
.ec-strata li:nth-child(3) { --c: var(--bright); --fg: var(--ink); margin-left: 10%; border-color: transparent; }
.ec-strata li:nth-child(4) { --c: var(--mint); --fg: var(--deep); margin-left: 15%; border-color: transparent; }
.ec-strata li:nth-child(5) { --c: var(--orange); --fg: var(--ink); margin-left: 20%; border-color: transparent; }
.ec-strata b { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -.01em; }
.ec-strata span { font-size: .95rem; opacity: .85; text-align: right; }
.ec-strata li:nth-child(1) b::after { content: " (kept)"; font-weight: 400; opacity: .6; font-family: var(--f-body); font-size: .85em; }
@media (max-width: 900px) { .ec-legacy__grid { grid-template-columns: 1fr; } }

/* ---------- Automation chain ---------- */
.ec-auto__head { display: grid; gap: 1.3rem; max-width: 60rem; }
.ec-chain { position: relative; margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .6rem; }
.ec-chain::before, .ec-chain::after { content: ""; position: absolute; left: 6%; right: 6%; top: 22px; height: 2px; border-radius: 2px; }
.ec-chain::before { background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.ec-chain::after { background: var(--teal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.ec-chain li { position: relative; z-index: 1; display: grid; justify-items: center; gap: .9rem; text-align: center; }
.ec-chain li::before {
  content: ""; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line-strong);
  transition: background-color .35s, border-color .35s, transform .5s var(--ease);
}
.ec-chain li span { font-family: var(--f-display); font-weight: 500; color: var(--ink); font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.ec-chain li.is-on::before { background: var(--teal); border-color: var(--teal); transform: scale(1.08); box-shadow: 0 0 0 6px rgba(21, 154, 145, .15); }
.ec-chain li:last-child.is-on::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255, 159, 28, .2); }
.ec-auto__list { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.ec-auto__list .ec-checks li { font-size: 1.05rem; }
@media (max-width: 900px) {
  .ec-chain { grid-template-columns: 1fr; gap: 1.1rem; }
  .ec-chain::before, .ec-chain::after { left: 22px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .ec-chain::before { background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); }
  .ec-chain::after { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .ec-chain li { grid-template-columns: 46px 1fr; justify-items: start; align-items: center; text-align: left; gap: 1rem; }
  .ec-auto__list { grid-template-columns: 1fr; }
}

/* ---------- AI bento ---------- */
.ec-ai { background: linear-gradient(180deg, var(--paper), #F1F7F3 30%, var(--paper)); }
.ec-ai__head { display: grid; gap: 1.3rem; max-width: 52rem; }
.ec-bento { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.ec-bento__cell { position: relative; overflow: hidden; border-radius: var(--r); padding: clamp(1.5rem, 2.6vw, 2.2rem); display: grid; align-content: end; gap: .7rem; min-height: 240px; color: var(--slate); }
.ec-bento__cell h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.ec-bento__cell:nth-child(1) { grid-row: span 2; background: var(--grad); color: var(--text-inv-soft); min-height: 500px; }
.ec-bento__cell:nth-child(1) h3 { color: var(--paper); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.ec-bento__cell:nth-child(2) { background: var(--lav); }
.ec-bento__cell:nth-child(3) { background: var(--sky); }
.ec-bento__cell:nth-child(4) { grid-column: span 2; background: var(--peach); }
.ec-bento__glyph { position: absolute; top: 1.4rem; left: clamp(1.5rem, 2.6vw, 2.2rem); font-family: var(--f-big); font-weight: 600; font-size: 5.5rem; line-height: .8; color: rgba(6, 59, 59, .1); text-transform: uppercase; }
.ec-bento__cell:nth-child(1) .ec-bento__glyph { font-size: clamp(8rem, 16vw, 15rem); color: transparent; -webkit-text-stroke: 1.5px rgba(250, 250, 247, .28); }
@media (max-width: 900px) {
  .ec-bento { grid-template-columns: 1fr 1fr; }
  .ec-bento__cell:nth-child(1) { grid-row: auto; grid-column: span 2; min-height: 340px; }
  .ec-bento__cell:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .ec-bento { grid-template-columns: 1fr; }
  .ec-bento__cell:nth-child(n) { grid-column: auto; min-height: 200px; }
  .ec-bento__cell:nth-child(1) { min-height: 300px; }
}

/* ---------- Growth ---------- */
.ec-grow { overflow: clip; }
.ec-grow__words { display: grid; font-size: clamp(3.2rem, 10vw, 9.5rem); line-height: .98; letter-spacing: -.04em; }
.ec-grow__words span { display: block; width: max-content; }
.ec-grow__words span:nth-child(2) { margin-left: 12vw; color: var(--teal); }
.ec-grow__words span:nth-child(3) { margin-left: 26vw; }
.ec-grow__foot { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ec-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.ec-chips li { padding: .6rem 1.1rem; border-radius: var(--pill); border: 1.5px solid var(--line-strong); color: var(--ink); font-weight: 500; font-size: .98rem; background: var(--white); }
@media (max-width: 900px) {
  .ec-grow__foot { grid-template-columns: 1fr; }
  .ec-grow__words span:nth-child(2) { margin-left: 8vw; }
  .ec-grow__words span:nth-child(3) { margin-left: 16vw; }
}

/* ---------- Industries ---------- */
.ec-ind { border-top: 1px solid var(--line); }
.ec-ind__wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; align-items: start; }
.ec-ind__wrap h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 14ch; }
.ec-ind__list { display: flex; flex-wrap: wrap; gap: .1em .45em; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.9rem); line-height: 1.18; letter-spacing: -.02em; color: var(--ink); }
.ec-ind__list li { transition: color .25s; }
.ec-ind__list li:not(:last-child)::after { content: "/"; margin-left: .45em; color: var(--teal); font-weight: 400; }
.ec-ind__list li:hover { color: var(--teal); }
@media (max-width: 900px) { .ec-ind__wrap { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.ec-work__head { display: grid; gap: 1.3rem; max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ec-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.ec-work__item { display: grid; gap: 1.3rem; align-content: start; }
.ec-work__item:nth-child(3), .ec-work__item:nth-child(5) { margin-top: clamp(0rem, 6vw, 5rem); }
.ec-work__item--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ec-work__cover {
  --bg: var(--mint); --fg: var(--deep); --stroke: rgba(6, 59, 59, .45);
  position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 11;
  background: var(--bg); color: var(--fg); display: grid; place-items: center; padding: 1.5rem;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.ec-work__item--wide .ec-work__cover { aspect-ratio: 16 / 10; }
.ec-work__item:hover .ec-work__cover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.ec-work__cover[data-tone="deep"] { --bg: var(--grad); --fg: var(--paper); --stroke: rgba(250, 250, 247, .45); }
.ec-work__cover[data-tone="teal"] { --bg: var(--teal); --fg: var(--paper); --stroke: rgba(250, 250, 247, .5); }
.ec-work__cover[data-tone="lav"] { --bg: var(--lav); }
.ec-work__cover[data-tone="peach"] { --bg: var(--peach); --stroke: rgba(255, 140, 20, .8); }
.ec-work__cover[data-tone="sky"] { --bg: var(--sky); }
.ec-work__cover[data-tone="mint"] { --bg: var(--mint); }
.ec-echo { position: relative; display: grid; font-family: var(--f-big); font-weight: 600; text-transform: uppercase; line-height: .86; text-align: center; font-size: clamp(3.4rem, 8vw, 7.5rem); letter-spacing: .01em; }
.ec-work__item--wide .ec-echo { font-size: clamp(4rem, 11vw, 10.5rem); }
.ec-echo span { grid-area: 1 / 1; position: relative; }
.ec-echo span:nth-child(1) { left: .09em; top: .09em; }
.ec-echo span:nth-child(2) { left: .045em; top: .045em; }
.ec-echo span:nth-child(1) { color: transparent; -webkit-text-stroke: 1.2px var(--stroke); opacity: .5; }
.ec-echo span:nth-child(2) { color: transparent; -webkit-text-stroke: 1.5px var(--stroke); }
.ec-work__ribbon { position: absolute; right: 1.2rem; top: 1.2rem; width: 38px; height: 14px; border-radius: 3px; background: var(--orange); transform: skewX(-30deg); }
.ec-work__body { display: grid; gap: .55rem; }
.ec-work__kind { font-size: .92rem; color: var(--teal); font-weight: 500; }
.ec-work__body h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.ec-work__body p { max-width: 50ch; }
.ec-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.ec-tags li { font-size: .85rem; padding: .3rem .75rem; border-radius: var(--pill); background: rgba(6, 59, 59, .06); color: var(--deep); }
@media (max-width: 800px) {
  .ec-work { grid-template-columns: 1fr; }
  .ec-work__item--wide { grid-template-columns: 1fr; }
  .ec-work__item:nth-child(n) { margin-top: 0; }
}

/* ---------- Problem board ---------- */
.ec-prob { overflow: clip; }
.ec-prob__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ec-prob__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ec-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.2rem; padding: .6rem; }
.ec-note-btn {
  --tone: var(--peach);
  position: relative; width: 100%; min-height: 150px; text-align: left; border: 0; border-radius: 4px;
  padding: 1.5rem 1.3rem 1.3rem; background: var(--tone); color: var(--ink);
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.25; letter-spacing: -.01em;
  transform: rotate(var(--tilt, 0deg)); box-shadow: 0 18px 28px -20px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ec-note-btn::before { content: ""; position: absolute; width: 58px; height: 18px; left: 50%; top: -9px; margin-left: -29px; background: rgba(255, 255, 255, .5); transform: rotate(var(--tape, -3deg)); }
.ec-note-btn:hover { transform: rotate(0deg) translateY(-4px); }
.ec-note-btn[aria-selected="true"] { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 0 0 3px var(--orange), 0 26px 40px -22px rgba(0, 0, 0, .7); }
.ec-notes li:nth-child(1) .ec-note-btn { --tilt: -2.2deg; }
.ec-notes li:nth-child(2) .ec-note-btn { --tilt: 1.6deg; --tone: var(--sky); --tape: 4deg; }
.ec-notes li:nth-child(3) .ec-note-btn { --tilt: 1.2deg; --tone: var(--lav); }
.ec-notes li:nth-child(4) .ec-note-btn { --tilt: -1.8deg; --tone: var(--mint); --tape: 2deg; }
.ec-notes li:nth-child(5) .ec-note-btn { --tilt: -1deg; --tone: var(--sky); --tape: -5deg; }
.ec-notes li:nth-child(6) .ec-note-btn { --tilt: 2.4deg; --tone: var(--peach); }
.ec-prob__side { position: sticky; top: calc(var(--nav-h) + 2rem); }
.ec-prob__panel { padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r); background: var(--deep-2); border: 1px solid var(--line-inv); }
.ec-prob__panel[hidden] { display: none; }
.ec-prob__panel h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; margin-bottom: 1rem; }
.ec-prob__panel .ec-btn { margin-top: 1.8rem; }
.ec-prob__panel.is-in { animation: ec-drop .6s var(--ease); }
@media (max-width: 900px) { .ec-prob__grid { grid-template-columns: 1fr; } .ec-prob__side { position: static; } }
@media (max-width: 520px) { .ec-notes { grid-template-columns: 1fr; } .ec-note-btn { min-height: 0; } }

/* ---------- Why EchoCrew ---------- */
.ec-why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ec-why__photo { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--nav-h) + 2rem); }
.ec-why__list { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 2.4rem; }
.ec-why__list div { padding-top: 1.1rem; border-top: 2px solid var(--ink); display: grid; gap: .5rem; }
.ec-why__list div:first-child { grid-column: 1 / -1; border-top-color: var(--orange); }
.ec-why__list div:first-child h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ec-why__list div:first-child p { max-width: 50ch; font-size: 1.12rem; }
@media (max-width: 900px) {
  .ec-why__grid { grid-template-columns: 1fr; }
  .ec-why__photo { position: relative; top: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .ec-why__list { grid-template-columns: 1fr; } }

/* ---------- Technologies: keycaps ---------- */
.ec-tech__head { display: grid; gap: 1.3rem; max-width: 50rem; }
.ec-keys { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: .75rem; }
.ec-key {
  padding: .9rem 1.25rem .8rem; border-radius: 12px; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-bottom-width: 5px;
  font-weight: 500; font-size: clamp(.98rem, 1.3vw, 1.12rem); line-height: 1;
  transition: transform .12s, border-bottom-width .12s, background-color .2s;
  user-select: none;
}
.ec-key:hover { transform: translateY(3px); border-bottom-width: 2px; margin-bottom: 3px; background: var(--mint); }
.ec-key--wide { padding-inline: 2.4rem; }
.ec-key--accent { background: var(--deep); color: var(--paper); border-color: #031F1F; }
.ec-key--accent:hover { background: var(--teal); }

/* ---------- Process: horizontal pan ---------- */
.ec-process { position: relative; overflow: hidden; padding-block: var(--sec); }
.ec-process__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ec-process__head h2 { max-width: 12ch; }
.ec-process__track { display: flex; gap: 1.1rem; padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2)); width: max-content; }
.ec-step {
  position: relative; width: clamp(280px, 26vw, 360px); min-height: 330px; flex: none;
  padding: 1.8rem; border-radius: var(--r); border: 1px solid var(--line-inv); background: var(--deep-2);
  display: grid; align-content: space-between; gap: 2rem;
}
.ec-step__n { font-family: var(--f-big); font-weight: 600; font-size: 6.5rem; line-height: .8; color: transparent; -webkit-text-stroke: 1.4px var(--bright); }
.ec-step h3 { font-size: 1.6rem; font-weight: 600; margin-bottom: .6rem; }
.ec-step:nth-child(even) { margin-top: 2.5rem; }
.ec-step:last-child { background: var(--orange); border-color: transparent; color: var(--ink); }
.ec-step:last-child h3 { color: var(--ink); }
.ec-step:last-child .ec-step__n { -webkit-text-stroke-color: var(--ink); }
@media (max-width: 1023px) {
  .ec-process__track { width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: var(--gutter); }
  .ec-step { width: auto; min-height: 0; }
  .ec-step:nth-child(even) { margin-top: 0; }
}
@media (max-width: 600px) { .ec-process__track { grid-template-columns: 1fr; } .ec-step__n { font-size: 4.5rem; } }

/* ---------- About ---------- */
.ec-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ec-about__copy { display: grid; gap: 1.3rem; justify-items: start; }
.ec-about__copy h2 { max-width: 15ch; margin-bottom: .3rem; }
.ec-about__art { position: relative; aspect-ratio: 1 / 1; }
.ec-about__art .ec-media:first-child { position: absolute; inset: 0 18% 14% 0; }
.ec-about__art .ec-media:last-child { position: absolute; width: 44%; aspect-ratio: 3 / 4; right: 0; bottom: 0; border: 6px solid var(--paper); box-shadow: var(--shadow-lift); }
.ec-caps { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 2rem; }
.ec-caps li { display: grid; gap: .35rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.ec-caps b { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); letter-spacing: -.015em; }
@media (max-width: 900px) {
  .ec-about__grid { grid-template-columns: 1fr; }
  .ec-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .ec-caps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.ec-faq__wrap > * { max-width: 900px; }
.ec-faq__wrap h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.ec-faq .ec-acc__item > summary { font-size: clamp(1.1rem, 1.7vw, 1.4rem); padding: 1.3rem 0; }
.ec-faq .ec-acc__body p { max-width: 64ch; }

/* ---------- Contact ---------- */
.ec-contact { overflow: clip; }
.ec-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.ec-contact__intro { position: sticky; top: calc(var(--nav-h) + 2rem); display: grid; gap: 1.4rem; }
.ec-contact__intro h2 { max-width: 13ch; }
.ec-contact__facts { display: grid; gap: 1rem; margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line-inv); }
.ec-contact__facts dt { font-size: .85rem; color: var(--bright); font-weight: 500; }
.ec-contact__facts dd { margin: .15rem 0 0; color: var(--paper); font-size: 1.05rem; }
.ec-contact__facts a { color: var(--paper); text-decoration-color: var(--orange); text-underline-offset: 4px; }
.ec-contact__mark { position: absolute; right: -4%; bottom: -6%; width: min(360px, 40vw); opacity: .1; pointer-events: none; }
@media (max-width: 900px) { .ec-contact__grid { grid-template-columns: 1fr; } .ec-contact__intro { position: static; } }

.ec-form {
  position: relative; z-index: 1; background: var(--paper); color: var(--slate); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3.5vw, 2.6rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1.2rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.ec-field { display: grid; gap: .45rem; align-content: start; }
.ec-field--full { grid-column: 1 / -1; }
.ec-field label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.ec-field label small { font-weight: 400; color: var(--muted); font-size: .88rem; }
.ec-field input, .ec-field select, .ec-field textarea {
  width: 100%; border-radius: var(--r-sm); border: 1.5px solid #C5CCD6; background: var(--white);
  padding: .85rem .95rem; font-size: 1rem; color: var(--ink); line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.ec-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.ec-field textarea { min-height: 150px; resize: vertical; }
.ec-field ::placeholder { color: #6B7688; }
.ec-field input:focus, .ec-field select:focus, .ec-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(21, 154, 145, .18); }
.ec-field [aria-invalid="true"] { border-color: #B42318; }
.ec-help { font-size: .88rem; color: var(--muted); }
.ec-err { font-size: .9rem; color: #B42318; font-weight: 500; }
.ec-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.ec-form__foot .ec-help { max-width: 36ch; }
.ec-form .ec-btn[disabled] { opacity: .7; pointer-events: none; }
.ec-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ec-alert { grid-column: 1 / -1; padding: 1rem 1.1rem; border-radius: var(--r-sm); font-weight: 500; }
.ec-alert--ok { background: var(--mint); color: var(--deep); }
.ec-alert--bad { background: #FDE8E6; color: #8A1C12; }
@media (max-width: 640px) { .ec-form { grid-template-columns: 1fr; } }

/* ---------- Sub-page hero ---------- */
.ec-subhero { position: relative; padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: clip; }
.ec-subhero::before { content: ""; position: absolute; z-index: -1; left: -10vw; top: -20vw; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, rgba(215, 239, 227, .9), rgba(215, 239, 227, 0)); }
.ec-subhero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ec-subhero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.ec-subhero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 16ch; }
.ec-subhero .ec-lead { margin-top: 1.4rem; }
.ec-subhero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.ec-subhero__photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lift); }
.ec-subhero__mark { position: absolute; right: 4vw; top: calc(var(--nav-h) + 3rem); width: min(240px, 26vw); opacity: .9; }
.ec-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .92rem; margin-bottom: 1.6rem; color: var(--muted); }
.ec-crumbs a { color: var(--deep); text-decoration: none; }
.ec-crumbs a:hover { text-decoration: underline; }
.ec-crumbs i { font-style: normal; color: var(--line-strong); }
@media (max-width: 900px) {
  .ec-subhero__grid { grid-template-columns: 1fr; }
  .ec-subhero__photo { aspect-ratio: 16 / 10; }
  .ec-subhero__mark { display: none; }
}

.ec-band { margin-inline: auto; max-width: calc(var(--shell) + var(--gutter) * 2); padding-inline: var(--gutter); }
.ec-band .ec-media { aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
@media (max-width: 700px) { .ec-band .ec-media { aspect-ratio: 4 / 3; } }

/* ---------- Service index list ---------- */
.ec-index { border-top: 1px solid var(--line-strong); }
.ec-index li { border-bottom: 1px solid var(--line-strong); }
.ec-index a {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 1rem 2.5rem; align-items: center;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) .2rem; text-decoration: none; color: var(--slate);
}
.ec-index a::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; border-radius: var(--r); background: var(--mint); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.ec-index a:hover::before { transform: scaleY(1); }
.ec-index h2, .ec-index h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; }
.ec-index a > span:last-child {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong);
  font-family: "ec-icons"; font-size: 1.05rem; color: var(--ink); transition: transform .5s var(--ease), background-color .3s, border-color .3s;
}
.ec-index a > span:last-child::before { content: "\e09f"; }
.ec-index a:hover > span:last-child { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.ec-dark .ec-index, .ec-dark .ec-index li { border-color: var(--line-inv); }
.ec-dark .ec-index a { color: var(--text-inv-soft); }
.ec-dark .ec-index a::before { background: var(--deep-2); }
.ec-dark .ec-index a > span:last-child { color: var(--paper); border-color: var(--line-inv); }
.ec-dark .ec-index a:hover > span:last-child { color: var(--ink); }
@media (max-width: 800px) {
  .ec-index a { grid-template-columns: 1fr auto; }
  .ec-index a > p { grid-column: 1 / 2; grid-row: 2; }
  .ec-index a > span:last-child { grid-row: 1 / 3; grid-column: 2; }
}

/* Numbered points on a service page */
.ec-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; counter-reset: pt; }
.ec-points li { counter-increment: pt; display: flex; gap: 1.2rem; align-items: baseline; padding: 1.4rem 0; border-top: 1px solid var(--line-strong); font-family: var(--f-display); font-weight: 500; color: var(--ink); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.3; letter-spacing: -.01em; }
.ec-points li::before { content: counter(pt, decimal-leading-zero); font-family: var(--f-body); font-weight: 400; font-size: .85rem; color: var(--teal); }
.ec-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ec-split > :first-child { position: sticky; top: calc(var(--nav-h) + 2rem); }
@media (max-width: 800px) {
  .ec-points { grid-template-columns: 1fr; }
  .ec-split { grid-template-columns: 1fr; }
  .ec-split > :first-child { position: static; }
}

.ec-cta { text-align: left; }
.ec-cta__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.ec-cta h2 { max-width: 16ch; }

/* ---------- Blog ---------- */
.ec-posts { border-top: 1px solid var(--line-strong); }
.ec-posts li { border-bottom: 1px solid var(--line-strong); }
.ec-posts a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) auto; gap: 1rem 2rem; align-items: baseline; padding: 1.8rem 0; text-decoration: none; }
.ec-posts time, .ec-posts .ec-posts__cat { font-size: .92rem; color: var(--muted); }
.ec-posts h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 500; transition: color .25s; }
.ec-posts a:hover h2 { color: var(--teal); }
.ec-empty { padding: 3rem; border-radius: var(--r); background: var(--mint); color: var(--deep); display: grid; gap: .6rem; justify-items: start; }
.ec-empty h2 { font-size: 1.6rem; color: var(--deep); }
.pagination { display: flex; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border-radius: var(--pill); border: 1.5px solid var(--line-strong); text-decoration: none; color: var(--ink); }
.pagination .active a, .pagination .active span { background: var(--deep); color: var(--paper); border-color: var(--deep); }
@media (max-width: 700px) { .ec-posts a { grid-template-columns: 1fr; gap: .4rem; } }

.ec-article { max-width: 760px; }
.ec-article__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.2rem; color: var(--muted); font-size: .95rem; }
.ec-prose { font-size: 1.12rem; line-height: 1.75; color: var(--slate); }
.ec-prose > * + * { margin-top: 1.2em; }
.ec-prose h2 { font-size: 1.9rem; margin-top: 2em; }
.ec-prose h3 { font-size: 1.4rem; margin-top: 1.8em; }
.ec-prose a { color: var(--deep); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.ec-prose ul, .ec-prose ol { padding-left: 1.3em; list-style: revert; }
.ec-prose img { border-radius: var(--r); }
.ec-prose blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 3px solid var(--orange); font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.ec-prose pre { overflow-x: auto; background: var(--ink); color: var(--paper); padding: 1.2rem; border-radius: var(--r-sm); font-size: .92rem; }
.ec-comments { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line-strong); display: grid; gap: 1.4rem; }
.ec-comments h2 { font-size: 1.6rem; }
.ec-comment { padding: 1.2rem 1.3rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.ec-comment b { display: block; color: var(--ink); margin-bottom: .3rem; }
.ec-comments .ec-form { grid-template-columns: 1fr; box-shadow: none; border: 1px solid var(--line); padding: 1.4rem; }

/* ---------- Footer ---------- */
.ec-footer { background: var(--ink); color: rgba(250, 250, 247, .7); padding-top: clamp(4rem, 8vw, 7rem); overflow: clip; }
.ec-footer__big { font-family: var(--f-display); font-weight: 600; color: var(--paper); font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -.03em; max-width: 15ch; }
.ec-footer__big span { color: var(--bright); }
.ec-footer__cols { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); gap: 2.5rem; padding-top: 3rem; border-top: 1px solid rgba(250, 250, 247, .12); }
.ec-footer__brand img { height: 46px; width: auto; }
.ec-footer__brand p { margin-top: 1.2rem; max-width: 32ch; }
.ec-footer h4 { font-family: var(--f-body); font-weight: 500; font-size: .92rem; color: var(--paper); margin-bottom: 1rem; letter-spacing: 0; }
.ec-footer li + li { margin-top: .5rem; }
.ec-footer a { color: rgba(250, 250, 247, .7); text-decoration: none; transition: color .2s; }
.ec-footer a:hover { color: var(--orange); }
.ec-footer__bar { margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.6rem; border-top: 1px solid rgba(250, 250, 247, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem; }
@media (max-width: 900px) { .ec-footer__cols { grid-template-columns: 1fr 1fr; } .ec-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ec-footer__cols { grid-template-columns: 1fr; } }

/* ---------- Motion states (only when JS + GSAP + motion allowed) ---------- */
.ec-motion [data-reveal] { opacity: 0; transform: translateY(30px); }
.ec-motion [data-unveil] { clip-path: inset(10% 8% 10% 8% round var(--r)); }
.ec-motion .ec-hero__title .ec-w { opacity: 0; transform: translateY(.45em) rotate(2deg); }
.ec-motion .ec-scribble path, .ec-motion .ec-ring path { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
/* Failsafe: if the motion script never starts, show everything after 3s. */
.ec-motion:not(.ec-motion-ready) [data-reveal],
.ec-motion:not(.ec-motion-ready) [data-unveil],
.ec-motion:not(.ec-motion-ready) .ec-hero__title .ec-w { animation: ec-failsafe .01s 3s forwards; }
.ec-motion:not(.ec-motion-ready) .ec-scribble path, .ec-motion:not(.ec-motion-ready) .ec-ring path { animation: ec-failsafe-draw .01s 3s forwards; }
@keyframes ec-failsafe { to { opacity: 1; transform: none; clip-path: none; } }
@keyframes ec-failsafe-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ec-ticker__row--outline { transform: none; }
}

@media print {
  .ec-nav, .ec-mobilenav, body::after { display: none; }
}
