/* ══════════════════════════════════════════════════════════════
   EDITORIAL — the page below the hero.
   Light warm "paper" sections alternate with deep navy ones; headlines
   are Instrument Serif with an italic, muted accent; body text is Geist.
   Motion lives in js/scroll-fx.js ([data-fx], [data-parallax], sticky stage).
   ══════════════════════════════════════════════════════════════ */

:root {
  --ed-paper: #eeece6;
  --ed-paper-2: #e5e2da;
  --ed-ink: #0b1226;
  --ed-ink-2: #3c4256;
  --ed-mute: #8a8e99;
  --ed-line: rgba(11, 18, 38, .12);
  --ed-night: #090f1e;
  --ed-night-2: #0f172b;
  --ed-night-line: rgba(255, 255, 255, .09);
  --ed-blue: #0047ff;
  --ed-serif: 'Instrument Serif', 'Times New Roman', serif;
  --ed-sans: 'Geist', 'Inter', system-ui, sans-serif;
  --ed-ease: cubic-bezier(.16, 1, .3, 1);
}

/* position: sticky needs a non-scrolling ancestor chain; `clip` hides sideways
   overflow like index.css's `hidden` did, without creating a scroll container. */
html, body { overflow-x: clip !important; }

/* ── Section shells ── */
.ed { position: relative; font-family: var(--ed-sans); }
.ed--light { background: var(--ed-paper); color: var(--ed-ink); }
.ed--dark  { background: var(--ed-night); color: #fff; }
.ed.about::before, .ed.about::after { display: none; }

.ed-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.ed-eyebrow {
  display: inline-block;
  font: 500 12px/1 var(--ed-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ed-mute);
  margin-bottom: 22px;
}
.ed--dark .ed-eyebrow { color: #8fa3d9; }

.ed-h2, .ed .ed-h2 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: .98;
  letter-spacing: -.02em;
  color: inherit;
  margin: 0;
  text-wrap: balance;
}
.ed-h2 em, .ed-h3 em {
  font-style: italic;
  color: var(--ed-mute);
}
.ed--dark .ed-h2 em { color: #8fa3d9; }

.ed-h3 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0;
}

.ed-lead, .ed .ed-lead {
  font: 400 17px/1.6 var(--ed-sans);
  color: var(--ed-ink-2);
  max-width: 46ch;
  margin: 0;
}
.ed--dark .ed-lead { color: #a7b3cb; }
.ed-p { font: 400 16px/1.65 var(--ed-sans); color: var(--ed-ink-2); max-width: 48ch; margin: 0; }

.ed-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.ed-intro .ed-eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.ed-intro--center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; margin: 0 auto; }
.ed-intro--center .ed-eyebrow { margin-bottom: 22px; }

/* ── WHAT WE OFFER ── */
.ed-offer { padding: clamp(96px, 11vw, 160px) 0 clamp(80px, 9vw, 140px); }
.ed-offer .ed-intro { margin-bottom: clamp(64px, 8vw, 112px); }
.ed-offer .ed-lead { justify-self: end; }

.ed-sticky { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.ed-stage { position: relative; }
.ed-art {
  position: sticky;
  top: max(110px, calc(50vh - 290px));
  height: min(580px, calc(100vh - 160px));
  border-radius: 6px;
  overflow: hidden;
  background: var(--ed-night);
  isolation: isolate;
}
.ed-scene {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ed-ease), transform 1.6s var(--ed-ease);
}
.ed-scene.is-on { opacity: 1; transform: none; }
.ed-scene canvas { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; filter: blur(1.2px); }
.ed-art::after {                 /* soft vignette so the type always reads */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,15,30,.55) 0%, rgba(9,15,30,0) 45%, rgba(9,15,30,.15) 100%);
}
.ed-stage-list {
  position: absolute; left: clamp(22px, 3vw, 40px); top: clamp(22px, 3vw, 36px); right: 20px; z-index: 2;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--ed-serif); font-style: italic;
  font-size: clamp(30px, 3.2vw, 50px); line-height: 1.04; letter-spacing: -.01em;
}
.ed-stage-list li {
  color: rgba(255, 255, 255, .28);
  transform: translateX(0);
  transition: color .6s var(--ed-ease), transform .8s var(--ed-ease);
}
.ed-stage-list li.is-on { color: #fff; transform: translateX(10px); }
.ed-stage-bar { position: absolute; left: clamp(22px, 3vw, 40px); right: clamp(22px, 3vw, 40px); bottom: 26px; height: 1px; z-index: 2; background: rgba(255,255,255,.22); }
.ed-stage-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }

.ed-svcs { display: flex; flex-direction: column; }
.ed-svc {
  min-height: min(66vh, 560px);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 40px 0;
  border-top: 1px solid var(--ed-line);
}
.ed-svc:first-child { border-top: 0; padding-top: 0; min-height: min(60vh, 520px); justify-content: flex-start; }
.ed-svc-num { font: 500 12px/1 var(--ed-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-mute); }
.ed-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; max-width: 460px; }
.ed-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ed-line);
  font: 500 15px/1.4 var(--ed-sans); color: var(--ed-ink);
}
.ed-check {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ed-ink);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent) center/100% no-repeat;
  position: relative;
}
.ed-check::after {
  content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px;
  border: solid var(--ed-paper); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}

/* Pill button used on light sections (fills blue from the arrow on hover) */
.ed-btn {
  position: relative; isolation: isolate; overflow: hidden;
  align-self: flex-start; margin-top: 48px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 18px 16px 24px;
  background: var(--ed-ink); color: #fff;
  font: 500 15px/1 var(--ed-sans); text-decoration: none;
  transition: color .45s var(--ed-ease);
}
.ed-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ed-blue);
  clip-path: circle(0% at calc(100% - 26px) 50%);
  transition: clip-path .7s var(--ed-ease);
}
.ed-btn:hover::before, .ed-btn:focus-visible::before { clip-path: circle(150% at calc(100% - 26px) 50%); }
.ed-btn svg { transition: transform .45s var(--ed-ease); }
.ed-btn:hover svg { transform: translateX(4px); }

/* ── ABOUT ── */
.ed.about { padding: clamp(96px, 10vw, 150px) clamp(20px, 5vw, 64px); border-top: 1px solid var(--ed-line); }
.ed.about .about-eyebrow { font: 500 12px/1 var(--ed-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-mute); margin-bottom: 24px; }
.ed.about .about-underline { display: none; }
.ed.about .about-h { font-family: var(--ed-serif); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: .98; letter-spacing: -.02em; color: var(--ed-ink); margin: 0 0 28px; }
.ed.about .about-mission { color: var(--ed-ink-2); font: 400 17px/1.65 var(--ed-sans); }
.ed.about .about-portrait { border-radius: 6px; border: 0; box-shadow: none; background: #d9d6ce; }
.ed.about .about-portrait:hover { box-shadow: 0 24px 50px rgba(11, 18, 38, .18); }
.ed.about .about-name { font-family: var(--ed-serif); font-weight: 400; font-size: 26px; letter-spacing: 0; }
.ed.about .about-role, .ed.about .about-bio { font-family: var(--ed-sans); }

/* ── TESTIMONIALS ── */
.ed.testimonials { padding: clamp(96px, 10vw, 150px) clamp(20px, 5vw, 64px); background: var(--ed-night); }
.ed.testimonials .testi-masonry { max-width: 1240px; margin: clamp(56px, 6vw, 88px) auto 0; gap: 20px; }
.ed .testi-card {
  background: var(--ed-night-2);
  border: 1px solid var(--ed-night-line);
  border-radius: 6px;
  padding: 34px 30px 28px;
  gap: 26px;
  opacity: 1; transform: none;           /* motion handled by scroll-fx */
}
.ed .testi-card.visible:hover { transform: translateY(-4px); }
.ed .testi-card .stars { color: #fff; font-size: 14px; letter-spacing: 4px; }
.ed .testi-quote { font-family: var(--ed-serif); font-size: 22px; line-height: 1.32; color: rgba(255,255,255,.92); letter-spacing: -.005em; }
.ed .testi-name { font-family: var(--ed-sans); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.ed .testi-role { font-family: var(--ed-sans); font-size: 13px; color: #8a93a8; }
.ed .testi-avatar { width: 44px; height: 44px; background: #fff; }

/* ── FAQ — pinned intro on the left, numbered rows on the right ── */
.ed.ed-faq { padding: clamp(96px, 10vw, 150px) 0; overflow: visible; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-side { position: sticky; top: max(150px, 18vh); display: flex; flex-direction: column; align-items: flex-start; }
.faq-side .ed-h2 { margin-bottom: 24px; }
.faq-side .ed-btn { margin-top: 36px; }

.ed-faq .faq-list { border-top: 1px solid var(--ed-line); }
.ed-faq .faq-item { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--ed-line); overflow: visible; position: relative; }
.ed-faq .faq-q {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 44px 1fr 36px; align-items: center; gap: 16px;
  padding: 28px 0;
}
.ed-faq .faq-q:focus-visible { outline: 2px solid var(--ed-blue); outline-offset: 4px; }
.faq-num { font: 500 13px/1 var(--ed-sans); letter-spacing: .08em; color: var(--ed-mute); font-variant-numeric: tabular-nums; transition: color .4s ease; }
.faq-qt {
  font: 400 clamp(22px, 2.1vw, 30px)/1.2 var(--ed-serif); letter-spacing: -.008em; color: var(--ed-ink);
  transition: transform .6s var(--ed-ease), color .4s ease;
}
.ed-faq .faq-q:hover .faq-qt { transform: translateX(6px); }
.ed-faq .faq-item.open .faq-num { color: var(--ed-ink); }
.ed-faq .faq-icon {
  all: unset; position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ed-line); justify-self: end;
  transition: background .4s ease, border-color .4s ease;
}
.ed-faq .faq-icon::before, .ed-faq .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: var(--ed-ink); transition: transform .5s var(--ed-ease), background .4s ease;
}
.ed-faq .faq-icon::after { transform: rotate(90deg); }
.ed-faq .faq-q:hover .faq-icon { border-color: var(--ed-ink); }
.ed-faq .faq-item.open .faq-icon { background: var(--ed-ink); border-color: var(--ed-ink); transform: none; }   /* index.css rotates it 45° */
.ed-faq .faq-item.open .faq-icon::before, .ed-faq .faq-item.open .faq-icon::after { background: var(--ed-paper); }
.ed-faq .faq-item.open .faq-icon::after { transform: rotate(0deg); }       /* + becomes − */

.ed-faq .faq-a {                                   /* smooth height: 0fr → 1fr */
  display: grid; grid-template-rows: 0fr; max-height: none; padding: 0; overflow: visible;
  transition: grid-template-rows .6s var(--ed-ease);
}
.ed-faq .faq-item.open .faq-a { grid-template-rows: 1fr; max-height: none; padding: 0; }
.faq-a-in { min-height: 0; overflow: hidden; }
.faq-a-in p {
  margin: 0; padding: 0 52px 30px 60px;
  font: 400 16px/1.7 var(--ed-sans); color: var(--ed-ink-2); max-width: 60ch;
  opacity: 0; transform: translateY(-6px); transition: opacity .5s ease, transform .6s var(--ed-ease);
}
.ed-faq .faq-item.open .faq-a-in p { opacity: 1; transform: none; transition-delay: .12s; }

/* ── CONTACT — details left, form right, mountains underneath ── */
.ed.ed-contact { position: relative; padding: clamp(110px, 11vw, 160px) 0 clamp(220px, 22vw, 320px); overflow: hidden; isolation: isolate; }
.ct-range { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(240px, 26vw, 380px); z-index: -1; pointer-events: none; }
.ct-range canvas { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; filter: blur(1px); }
.ed-contact::before {                              /* soft blue glow behind the form */
  content: ""; position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; z-index: -2;
  background: radial-gradient(closest-side, rgba(98, 138, 249, .16), transparent 70%);
}
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.ct-intro .ed-h2 { font-size: clamp(52px, 6.4vw, 104px); margin-bottom: 24px; }
.ct-or { display: block; margin-top: clamp(40px, 5vw, 64px); font: 500 12px/1 var(--ed-sans); letter-spacing: .14em; text-transform: uppercase; color: #8fa3d9; }
.ct-direct { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--ed-night-line); }
.ct-direct li { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ed-night-line); }
.ct-k { font: 500 12px/1 var(--ed-sans); letter-spacing: .12em; text-transform: uppercase; color: #8a93a8; }
.ct-v {
  justify-self: start; position: relative;
  font: 400 clamp(22px, 2vw, 30px)/1.2 var(--ed-serif); color: #fff; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ed-ease), color .3s ease;
}
a.ct-v:hover { background-size: 100% 1px; color: #c9d5f3; }
.ct-v--plain { color: #c9d1e3; }

.ct-form {
  position: relative; display: grid; gap: 28px;
  padding: clamp(28px, 3.4vw, 48px);
  background: rgba(15, 23, 43, .72);
  border: 1px solid var(--ed-night-line); border-radius: 6px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ct-field { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-label { font: 500 11px/1 var(--ed-sans); letter-spacing: .14em; text-transform: uppercase; color: #8a93a8; padding: 0; }
.ct-input {
  width: 100%; box-sizing: border-box;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); border-radius: 0;
  padding: 8px 0 12px; font: 400 17px/1.4 var(--ed-sans); color: #fff; outline: none;
  background-image: linear-gradient(#fff, #fff); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size .6s var(--ed-ease), border-color .3s ease;
}
.ct-input::placeholder { color: rgba(255, 255, 255, .28); }
.ct-input:focus { background-size: 100% 1px; }
.ct-textarea { resize: vertical; min-height: 110px; }
.ct-chips legend.ct-label { margin-bottom: 14px; }
.ct-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-chip { position: relative; cursor: pointer; }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip span {
  display: inline-block; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font: 400 14px/1 var(--ed-sans); color: #c9d1e3;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s var(--ed-ease);
}
.ct-chip:hover span { border-color: rgba(255, 255, 255, .5); color: #fff; }
.ct-chip input:checked + span { background: #fff; color: var(--ed-ink); border-color: #fff; }
.ct-chip input:focus-visible + span { outline: 2px solid #8fa3d9; outline-offset: 3px; }
.ct-success { padding: 14px 16px; border: 1px solid rgba(98, 138, 249, .4); background: rgba(0, 71, 255, .12); color: #c9d5f3; font: 400 14px/1.4 var(--ed-sans); border-radius: 4px; }

.ed .ct-submit {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 24px; border: 0; border-radius: 0; cursor: pointer;
  background: #fff; color: var(--ed-ink); box-shadow: none;
  font: 500 16px/1 var(--ed-sans);
  transition: color .45s var(--ed-ease);
}
.ed .ct-submit::before {                           /* blue grows from the arrow, like the hero button */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ed-blue);
  clip-path: circle(0% at calc(100% - 32px) 50%); transition: clip-path .7s var(--ed-ease);
}
.ed .ct-submit:hover, .ed .ct-submit:focus-visible { color: #fff; transform: none; box-shadow: none; }
.ed .ct-submit:hover::before, .ed .ct-submit:focus-visible::before { clip-path: circle(150% at calc(100% - 32px) 50%); }
.ed .ct-submit svg { transition: transform .45s var(--ed-ease); }
.ed .ct-submit:hover svg { transform: translateX(4px); }
.ed .ct-submit:disabled { cursor: progress; opacity: .8; }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .ed-faq .faq-q { grid-template-columns: 34px 1fr 32px; gap: 12px; padding: 22px 0; }
  .faq-a-in p { padding: 0 0 24px 46px; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-direct li { grid-template-columns: 72px 1fr; }
}

/* ── FOOTER ── */
footer.ft {
  position: relative; overflow: hidden;
  background: #05080f; color: #fff; border-top: 0; padding: 0;
  font-family: var(--ed-sans);
}
.ft-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.ft-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px;
  padding: clamp(72px, 8vw, 110px) 0 clamp(56px, 6vw, 80px);
}
.ft-logo img { display: block; height: 40px; width: auto; }
.ft-brand p { margin: 22px 0 0; max-width: 34ch; font: 400 15px/1.65 var(--ed-sans); color: #8a93a8; }
.ft-label { display: block; margin-bottom: 20px; font: 500 11px/1 var(--ed-sans); letter-spacing: .14em; text-transform: uppercase; color: #5f6880; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ft-link, .ft-text { font: 400 15px/1.4 var(--ed-sans); color: #c9d1e3; text-decoration: none; }
.ft-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .3s ease, background-size .5s var(--ed-ease);
}
.ft-link:hover { color: #fff; background-size: 100% 1px; }
.ft-out { opacity: .6; transition: transform .4s var(--ed-ease), opacity .3s ease; }
.ft-link:hover .ft-out { opacity: 1; transform: translate(2px, -2px); }

/* Full-width wordmark */
.ft-mark {
  margin: 0; padding: 0 clamp(12px, 2vw, 32px);
  font: 400 clamp(64px, 18.5vw, 300px)/.8 var(--ed-serif); letter-spacing: -.045em;
  white-space: nowrap; text-align: center;
  color: transparent;
  background: linear-gradient(180deg, #2b3a66 0%, #121a33 75%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.ft-mark em { font-style: italic; }
.ft-mark .fx-w > span {               /* background-clip text needs each word to carry the gradient */
  background: linear-gradient(180deg, #34519d 0%, #141d3a 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition-duration: 1.4s;
}

.ft-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 32px;
  border-top: 1px solid var(--ed-night-line);
  font: 400 13px/1.4 var(--ed-sans); color: #5f6880;
}
.ft-bottom .ft-link { font-size: 13px; color: #8a93a8; }
.ft-legal { display: inline-flex; gap: 24px; }
.ft-top {
  display: inline-flex; align-items: center; gap: 10px; color: #c9d1e3; text-decoration: none; font-size: 13px;
}
.ft-top svg { width: 30px; height: 30px; padding: 8px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; transition: transform .5s var(--ed-ease), border-color .3s ease, background .3s ease; }
.ft-top:hover svg { transform: translateY(-3px); border-color: #fff; background: rgba(255, 255, 255, .06); }

@media (max-width: 1000px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ft-grid > :nth-child(4) { grid-column: 1 / -1; }   /* contact column: long email needs the full width */
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ══ Scroll FX states (driven by js/scroll-fx.js) ══ */
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .12em .18em; margin: -.1em -.12em -.18em; }
.fx-w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ed-ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.fx-in .fx-w > span { transform: none; }

.fx-on [data-fx="up"] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ed-ease), transform 1.2s var(--ed-ease);
  transition-delay: var(--d, 0ms);
}
.fx-on [data-fx="up"].fx-in { opacity: 1; transform: none; }

.fx-on [data-fx="card"] {
  opacity: 0; transform: translateY(60px) scale(.98);
  transition: opacity 1s var(--ed-ease), transform 1.3s var(--ed-ease), border-color .4s ease, box-shadow .4s ease;
  transition-delay: var(--d, 0ms);
}
.fx-on [data-fx="card"].fx-in { opacity: 1; transform: none; }
.fx-on [data-fx="card"].fx-in:hover { transform: translateY(-4px); transition-delay: 0ms; }

[data-parallax] { will-change: transform; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ed-intro { grid-template-columns: 1fr; }
  .ed-offer .ed-lead { justify-self: start; }
  .ed-sticky { grid-template-columns: 1fr; }
  .ed-stage { display: none; }                 /* the pinned art panel is a desktop treatment */
  .ed-svc, .ed-svc:first-child { min-height: 0; padding: 48px 0; justify-content: flex-start; }
  .ed .testi-quote { font-size: 20px; }
  .ed .faq-a, .ed .faq-item.open .faq-a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-w > span, .fx-on [data-fx="up"], .fx-on [data-fx="card"] { transition: none !important; transform: none !important; opacity: 1 !important; }
  .ed-scene, .ed-stage-list li { transition: none; }
}

/* ── Team placeholders (until real team members are added in admin) ── */
.ed.about .about-ph-art { position: absolute; inset: 0; background: #0e1730; overflow: hidden; }
.ed.about .about-ph-art canvas { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; }
.ed.about .about-portrait--ph .about-grad { opacity: 1; background: linear-gradient(to top, rgba(9,15,30,.85) 0%, rgba(9,15,30,.2) 45%, rgba(9,15,30,0) 70%); }
.ed.about .about-portrait--ph .about-name { color: #fff; }
.ed.about .about-portrait--ph .about-role { color: #a9bdf2; }

/* About: heading + description stay pinned while the team cards scroll past */
@media (min-width: 901px) {
  .ed.about { overflow: visible; }          /* overflow: hidden (index.css) would break sticky */
  .ed.about .about-inner { align-items: start; }
  .ed.about .about-lead { position: sticky; top: max(150px, 20vh); align-self: start; }
}

/* ══ TESTIMONIALS — pinned stage, one quote at a time ══
   The section is --n screens tall; the stage sticks for its whole length.
   Scroll progress picks the quote and lights its words (js/scroll-fx.js). */
.ed.ed-quotes { padding: 0; background: var(--ed-night); }
.q-track { position: relative; height: calc(var(--n, 3) * 115vh + 40vh); }
.q-stage {
  position: sticky; top: 0; height: calc(100vh / 1.1); overflow: hidden;   /* /1.1: html { zoom: 1.1 } in index.css */
  display: grid; grid-template-rows: auto 1fr auto;
  max-width: 1240px; margin: 0 auto;
  padding: max(130px, 15vh) clamp(20px, 5vw, 64px) clamp(28px, 4vh, 48px);
}
.q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ed-night-line); padding-bottom: 22px; }
.q-head .ed-eyebrow { margin: 0; }
.ed .q-title { font-size: clamp(30px, 2.6vw, 40px); }

.q-body { position: relative; display: grid; align-items: center; }
.q-item {
  grid-area: 1 / 1; margin: 0;
  opacity: 0; transform: translateY(28px); pointer-events: none;
  transition: opacity .7s var(--ed-ease), transform 1s var(--ed-ease);
}
.q-item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.q-item.is-past { transform: translateY(-28px); }
.q-text {
  margin: 0; max-width: 24em;
  font: 400 clamp(26px, 3.3vw, 50px)/1.14 var(--ed-serif); letter-spacing: -.012em;
  color: #fff; text-wrap: pretty;
}
.q-text::before { content: "\201C"; position: absolute; transform: translate(-.55em, -.05em); color: #8fa3d9; }
.qw { color: rgba(255, 255, 255, .16); transition: color .45s ease; }
.qw.on { color: #fff; }
.q-who { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; margin-top: clamp(28px, 4vh, 44px); }
.q-avatar { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff; }
.q-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-name { font: 600 15px/1.3 var(--ed-sans); color: #fff; }
.q-role { font: 400 14px/1.3 var(--ed-sans); color: #8a93a8; }

.q-foot { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); border-top: 1px solid var(--ed-night-line); padding-top: 22px; }
.q-count { font: 500 13px/1 var(--ed-sans); letter-spacing: .12em; color: #8a93a8; font-variant-numeric: tabular-nums; }
.q-now { color: #fff; }
.q-stars { color: #fff; font-size: 13px; letter-spacing: 4px; }
.q-bars { flex: 1; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 10px; }
.q-bars i { position: relative; height: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.q-bars b { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (max-width: 768px) {
  .q-track { height: calc(var(--n, 3) * 72vh + 30vh); }      /* phones: a quote per ~3/4 screen of thumb-scroll */
  .q-stage { height: calc(100svh / 1.1); padding: 96px 22px 24px; }
  .q-head { flex-direction: column; gap: 10px; align-items: flex-start; }
  .q-text { font-size: 25px; line-height: 1.2; }
  .q-text::before { position: static; transform: none; margin-right: .05em; }
  .q-stars { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qw { color: #fff; transition: none; }
  .q-item { transition: none; }
}
/* index.css forces overflow-x: hidden on sections on mobile, which breaks sticky. */
@media (max-width: 768px) {
  .ed.ed-quotes, .ed.about, .ed.ed-faq { overflow-x: clip !important; }
}

/* ══════════════════════════════════════════════════════════════
   INSIGHT + ARTICLE PAGES
   ══════════════════════════════════════════════════════════════ */

/* ── Insight header ── */
.ins-head { position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(190px, 22vw, 320px); }
.ins-head-in { position: relative; z-index: 1; }
.ed .ins-title { font-size: clamp(56px, 8vw, 128px); margin-bottom: 28px; }
.ins-head-range { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(160px, 18vw, 260px); z-index: 0; pointer-events: none; }
.ins-head-range canvas { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; filter: blur(1px); }

/* ── List section ── */
.ins-list { padding: clamp(56px, 6vw, 90px) 0 clamp(96px, 10vw, 140px); }
.ins-list .insights-wrapper, .ins-list .insights-main { display: block; max-width: none; padding: 0; margin: 0; background: none; }

.ins-filters { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--ed-line); }
.ins-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ins-chip, .ins-sort-btn {
  appearance: none; cursor: pointer; border: 1px solid var(--ed-line); background: transparent; color: var(--ed-ink-2);
  border-radius: 999px; padding: 10px 16px; font: 400 14px/1 var(--ed-sans);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.ins-chip:hover, .ins-sort-btn:hover { border-color: var(--ed-ink); color: var(--ed-ink); }
.ins-chip.is-on { background: var(--ed-ink); border-color: var(--ed-ink); color: var(--ed-paper); }
.ins-sort { display: inline-flex; padding: 4px; border: 1px solid var(--ed-line); border-radius: 999px; }
.ins-sort-btn { border: 0; padding: 8px 14px; }
.ins-sort-btn.is-on { background: var(--ed-ink); color: var(--ed-paper); }
.ins-chip:focus-visible, .ins-sort-btn:focus-visible { outline: 2px solid var(--ed-blue); outline-offset: 2px; }

/* shared bits */
.ins-meta { display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--ed-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-mute); }
.ins-tag { color: var(--ed-blue); }
.ins-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ed-ease); }
.ins-ph { position: absolute; inset: 0; background: #0e1730; overflow: hidden; }
.ins-ph canvas { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; }
.ins-empty { grid-column: 1 / -1; padding: 64px 0; text-align: center; color: var(--ed-mute); font: 400 18px/1.5 var(--ed-sans); }
.ins-loading { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.ins-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--ed-ink); animation: ins-dot 1s ease-in-out infinite; }
.ins-loading i:nth-child(2) { animation-delay: .15s; } .ins-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes ins-dot { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }

/* reveal */
.ins-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ed-ease), transform 1.2s var(--ed-ease); transition-delay: var(--d, 0ms); }
.ins-reveal.is-in { opacity: 1; transform: none; }

/* featured */
.ins-feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-bottom: clamp(56px, 6vw, 88px); margin-bottom: clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--ed-line); }
.ins-feat-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #0e1730; }
.ins-feat:hover .ins-img { transform: scale(1.04); }
.ins-feat-body { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ins-feat-title { margin: 0; font: 400 clamp(36px, 3.8vw, 60px)/1.02 var(--ed-serif); letter-spacing: -.015em; }
.ins-feat-title a { color: var(--ed-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ed-ease); }
.ins-feat:hover .ins-feat-title a { background-size: 100% 1px; }
.ins-feat-ex { margin: 0; font: 400 17px/1.65 var(--ed-sans); color: var(--ed-ink-2); max-width: 46ch; }
.ins-feat .ed-btn { margin-top: 10px; }

/* grid cards */
.ins-list .articles-grid, .ap2-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.ap2-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ins-card { display: flex; flex-direction: column; gap: 16px; color: var(--ed-ink); text-decoration: none; background: none; border: 0; padding: 0; }
.ins-card-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: #0e1730; margin-bottom: 6px; }
.ins-card:hover .ins-img { transform: scale(1.05); }
.ins-arrow {
  position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ed-ink);
  opacity: 0; transform: translate(-8px, 8px) scale(.8);
  transition: opacity .45s ease, transform .6s var(--ed-ease), background .3s ease, color .3s ease;
}
.ins-arrow svg { width: 18px; height: 18px; }
.ins-card:hover .ins-arrow { opacity: 1; transform: none; }
.ins-card:hover .ins-arrow:hover, .ins-card:focus-visible .ins-arrow { background: var(--ed-blue); color: #fff; }
.ins-card-title { margin: 0; font: 400 clamp(26px, 2.2vw, 34px)/1.1 var(--ed-serif); letter-spacing: -.01em; transition: color .3s ease; }
.ins-card:hover .ins-card-title { color: var(--ed-blue); }
.ins-card-ex { margin: 0; font: 400 15px/1.6 var(--ed-sans); color: var(--ed-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ins-card:focus-visible { outline: 2px solid var(--ed-blue); outline-offset: 6px; border-radius: 6px; }

/* pagination */
.ins-list .pagination { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(56px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--ed-line); }
.ins-list .pag-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; color: var(--ed-ink); font: 500 15px/1 var(--ed-sans); padding: 8px 0; }
.ins-list .pag-btn svg { width: 18px; height: 18px; transition: transform .45s var(--ed-ease); }
.ins-list #prevBtn:hover svg { transform: translateX(-4px); }
.ins-list #nextBtn:hover svg { transform: translateX(4px); }
.ins-page { font: 500 12px/1 var(--ed-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-mute); }

/* ── Article page ── */
.article-page { background: var(--ed-paper); color: var(--ed-ink); }
.article-page .article-page-loading, .article-page .article-page-error { color: var(--ed-ink-2); font-family: var(--ed-sans); }
.ap2-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; pointer-events: none; }
.ap2-progress i { position: absolute; inset: 0; background: var(--ed-blue); transform-origin: 0 50%; transform: scaleX(0); }
.ap2 { padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 110px); }
.ap2-head { max-width: 980px; }
.ap2-back { display: inline-flex; align-items: center; gap: 10px; color: var(--ed-ink-2); text-decoration: none; font: 500 14px/1 var(--ed-sans); margin-bottom: clamp(36px, 4vw, 56px); transition: color .3s ease; }
.ap2-back svg { transition: transform .45s var(--ed-ease); }
.ap2-back:hover { color: var(--ed-ink); }
.ap2-back:hover svg { transform: translateX(-4px); }
.ap2-meta { margin-bottom: 24px; }
.ap2-title { margin: 0; font: 400 clamp(46px, 6.2vw, 96px)/.98 var(--ed-serif); letter-spacing: -.022em; color: var(--ed-ink); text-wrap: balance; }
.ap2-lead { margin: 28px 0 0; max-width: 40ch; font: 400 clamp(19px, 1.6vw, 23px)/1.5 var(--ed-sans); color: var(--ed-ink-2); }
.ap2-hero { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 1240px; padding: 0 clamp(20px, 5vw, 64px); }
.ap2-hero img { display: block; width: 100%; max-height: 72vh; object-fit: cover; border-radius: 6px; transform-origin: 50% 50%; will-change: transform; }
.ap2-hero { overflow: hidden; }

.ap2-body.article-page-body { max-width: 720px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 22px; font: 400 18px/1.78 var(--ed-sans); color: var(--ed-ink-2); }
.ap2-body [style*="color"] { color: inherit !important; }      /* CMS HTML may carry colours meant for the old dark page */
.ap2-body p { margin: 0 0 1.4em; }
.ap2-body h1, .ap2-body h2, .ap2-body h3, .ap2-body h4 { font-family: var(--ed-serif); font-weight: 400; color: var(--ed-ink); letter-spacing: -.012em; line-height: 1.1; margin: 1.8em 0 .6em; }
.ap2-body h1 { font-size: 46px; } .ap2-body h2 { font-size: 40px; } .ap2-body h3 { font-size: 31px; } .ap2-body h4 { font-size: 25px; }
.ap2-body h5, .ap2-body h6 { font: 600 13px/1.4 var(--ed-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-mute); margin: 2em 0 .8em; }
.ap2-body a { color: var(--ed-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ap2-body a:hover { color: var(--ed-ink); }
.ap2-body strong { color: var(--ed-ink); font-weight: 600; }
.ap2-body em { opacity: 1; }
.ap2-body ul, .ap2-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.ap2-body li { margin-bottom: .5em; }
.ap2-body li::marker { color: var(--ed-blue); }
.ap2-body blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--ed-blue); background: none; border-radius: 0; font: 400 clamp(26px, 2.4vw, 32px)/1.3 var(--ed-serif); color: var(--ed-ink); }
.ap2-body blockquote p { margin: 0; }
.ap2-body img { display: block; width: 100%; height: auto; border-radius: 6px; margin: 2em 0; }
.ap2-body figcaption { font: 400 14px/1.5 var(--ed-sans); color: var(--ed-mute); margin-top: -1.2em; }
.ap2-body hr { border: 0; border-top: 1px solid var(--ed-line); margin: 3em 0; }
.ap2-body code { background: var(--ed-paper-2); color: var(--ed-ink); border-radius: 4px; padding: .1em .35em; font-size: .9em; }
.ap2-body pre { background: var(--ed-night); color: #e8edf8; border-radius: 6px; padding: 20px 24px; overflow-x: auto; }
.ap2-body pre code { background: none; color: inherit; padding: 0; }
.ap2-body table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 16px; }
.ap2-body th, .ap2-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ed-line); background: none !important; color: var(--ed-ink-2); }
.ap2-body th { font: 600 12px/1.4 var(--ed-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ed-ink); }

.ap2-cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 10vw, 140px) 0 clamp(200px, 20vw, 280px); text-align: center; }
.ap2-cta-in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ap2-cta .ed-eyebrow { margin: 0; }
.ap2-cta .ed-h2 { max-width: 16ch; }
.ap2-cta .ed-lead { max-width: 52ch; }
.ap2-cta-range { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(180px, 20vw, 280px); z-index: -1; pointer-events: none; }
.ap2-cta-range canvas { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; filter: blur(1px); }
.ap2-cta-btn {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 12px;
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 24px;
  background: #fff; color: var(--ed-ink); text-decoration: none; font: 500 16px/1 var(--ed-sans);
  transition: color .45s var(--ed-ease);
}
.ap2-cta-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ed-blue); clip-path: circle(0% at calc(100% - 32px) 50%); transition: clip-path .7s var(--ed-ease); }
.ap2-cta-btn:hover { color: #fff; }
.ap2-cta-btn:hover::before { clip-path: circle(150% at calc(100% - 32px) 50%); }
.ap2-cta-btn svg { transition: transform .45s var(--ed-ease); }
.ap2-cta-btn:hover svg { transform: translateX(4px); }

.ap2-more-wrap { padding: clamp(80px, 9vw, 120px) 0; }
.ap2-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
.ap2-more-title { font-size: clamp(40px, 4.4vw, 68px); }
.ap2-more .ft-link.ap2-all { color: var(--ed-ink); font-size: 15px; }

@media (max-width: 900px) {
  .ins-feat { grid-template-columns: 1fr; }
  .ins-list .articles-grid, .ap2-more-grid { grid-template-columns: 1fr; }
  .ins-filters { flex-direction: column; align-items: flex-start; }
  .ins-chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .ins-chip { flex: none; }
  .ins-arrow { opacity: 1; transform: none; }
  .ap2-more-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ins-reveal { opacity: 1; transform: none; transition: none; }
  .ins-img, .ins-arrow { transition: none; }
}

/* Light article page: the floating navbar is solid navy from the first paint */
body:has(.article-page) header nav { background: rgba(9, 15, 30, .94); box-shadow: 0 10px 30px rgba(9, 15, 30, .18); }

/* Phones: team in two compact columns */
@media (max-width: 640px) {
  .ed.about .about-people { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ed.about .about-portrait { min-height: 0; aspect-ratio: 3 / 4; }
  .ed.about .about-id { left: 14px; right: 14px; bottom: 14px; }
  .ed.about .about-name { font-size: 20px; }
  .ed.about .about-role { font-size: 12px; }
  .ed.about .about-bio { display: none; }
}

/* ══ TOUCH: no sticky hover states; press feedback instead ══
   On phones a tap fires :hover and it stays stuck until the next tap.
   Undo the hover looks there and answer the finger with :active. */
@media (hover: none) {
  /* buttons that fill blue from the arrow → fill while pressed */
  .hero2-cta:hover { color: #000; }
  .hero2-cta:hover::before { clip-path: inset(calc((100% - var(--tile-h)) / 2) var(--tile-r) calc((100% - var(--tile-h)) / 2) calc(100% - var(--tile-r) - var(--tile-w))); }
  .hero2-cta:hover img, .ed-btn:hover svg, .ed .ct-submit:hover svg, .ap2-cta-btn:hover svg { transform: none; }
  .hero2-cta:active { color: #fff; }
  .hero2-cta:active::before { clip-path: inset(-2px); transition-duration: .35s; }

  .ed-btn:hover::before { clip-path: circle(0% at calc(100% - 26px) 50%); }
  .ed-btn:active::before { clip-path: circle(150% at calc(100% - 26px) 50%); transition-duration: .35s; }
  .ed .ct-submit:hover { color: var(--ed-ink); }
  .ed .ct-submit:hover::before { clip-path: circle(0% at calc(100% - 32px) 50%); }
  .ed .ct-submit:active { color: #fff; }
  .ed .ct-submit:active::before { clip-path: circle(150% at calc(100% - 32px) 50%); transition-duration: .35s; }
  .ap2-cta-btn:hover { color: var(--ed-ink); }
  .ap2-cta-btn:hover::before { clip-path: circle(0% at calc(100% - 32px) 50%); }
  .ap2-cta-btn:active { color: #fff; }
  .ap2-cta-btn:active::before { clip-path: circle(150% at calc(100% - 32px) 50%); transition-duration: .35s; }

  /* rows, cards and links: no stuck nudges or zooms; a small press-in */
  .ed-faq .faq-q:hover .faq-qt { transform: none; }
  .ed-faq .faq-q:hover .faq-icon { border-color: var(--ed-line); }
  .ed-faq .faq-item.open .faq-q:hover .faq-icon { border-color: var(--ed-ink); }
  .ed-faq .faq-q:active .faq-qt { transform: translateX(4px); transition-duration: .2s; }
  .ins-card:hover .ins-img, .ins-feat:hover .ins-img { transform: none; }
  .ins-card:hover .ins-card-title { color: var(--ed-ink); }
  .ins-feat:hover .ins-feat-title a { background-size: 0 1px; }
  .ins-card:active, .ins-feat-img:active, .ed.about .about-portrait:active { transform: scale(.98); transition-duration: .2s; }
  .ed.about .about-portrait:hover { transform: none; box-shadow: none; }
  .ct-chip:hover span { border-color: rgba(255, 255, 255, .18); color: #c9d1e3; }
  .ct-chip input:checked + span { color: var(--ed-ink); border-color: #fff; }
  .ct-chip:active span, .ins-chip:active, .ins-sort-btn:active { transform: scale(.95); }
  .ins-chip:hover { border-color: var(--ed-line); color: var(--ed-ink-2); }
  .ins-chip.is-on:hover { color: var(--ed-paper); border-color: var(--ed-ink); }
  .ft-link:hover, a.ct-v:hover { background-size: 0 1px; }
  .ft-link:active, a.ct-v:active { background-size: 100% 1px; }
  .ed-btn:active, .hero2-cta:active, .ed .ct-submit:active, .ap2-cta-btn:active { transform: scale(.98); }
}

/* ══ Phones: services as a stacking card deck ══
   Each service pins under the navbar; the next slides up over it while
   the one beneath shrinks back and dims (--cover set by js/scroll-fx.js). */
@media (max-width: 900px) {
  .ed-offer .ed-svcs { gap: 18px; padding-bottom: 8px; }
  .ed-offer .ed-svc, .ed-offer .ed-svc:first-child {
    position: sticky; top: calc(86px + var(--k, 0) * 12px);
    min-height: 0; padding: 28px 22px 26px; gap: 16px;
    background: #f7f6f2; border: 1px solid var(--ed-line); border-radius: 18px;
    box-shadow: 0 -12px 34px rgba(11, 18, 38, .07);
    transform-origin: 50% 0;
    transform: scale(calc(1 - var(--cover, 0) * .06));
    filter: brightness(calc(1 - var(--cover, 0) * .08));
    will-change: transform;
  }
  .ed-offer .ed-svc:nth-child(1) { --k: 0; }
  .ed-offer .ed-svc:nth-child(2) { --k: 1; }
  .ed-offer .ed-svc:nth-child(3) { --k: 2; }
  .ed-offer .ed-svc:nth-child(4) { --k: 3; }
  .ed-offer .ed-svc .ed-h3 { font-size: 34px; }
  .ed-offer .ed-list li { padding: 11px 0; }
  .ed-offer .ed-list li:last-child { border-bottom: 0; }
}

/* ══ Phones: contact form ══
   No card box (full width), names side by side, chips in one swipeable
   row, tighter rhythm. Inputs stay at 16px so iOS doesn't zoom on focus. */
@media (max-width: 640px) {
  .ed.ed-contact { padding-top: 96px; }
  .ct-grid { gap: 44px; }
  .ct-intro .ed-h2 { font-size: 56px; }
  .ct-direct li { padding: 14px 0; }
  .ct-v { font-size: 22px; }

  .ct-form { padding: 0; gap: 26px; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ct-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .ct-field { gap: 8px; }
  .ct-label { font-size: 10.5px; }
  .ct-input { font-size: 16px; padding: 6px 0 10px; }
  .ct-textarea { min-height: 88px; }

  .ct-chips legend.ct-label { margin-bottom: 12px; }
  .ct-chip-row {
    flex-wrap: nowrap; overflow-x: auto; gap: 8px;
    margin: 0 -20px; padding: 2px 20px 6px;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent);
  }
  .ct-chip-row::-webkit-scrollbar { display: none; }
  .ct-chip { flex: none; scroll-snap-align: start; scroll-margin-left: 20px; }
  .ct-chip span { padding: 11px 15px; font-size: 14px; white-space: nowrap; }

  .ed .ct-submit { padding: 19px 22px; margin-top: 4px; }
}

/* Placeholder articles (insight.html, until real articles exist): not links */
.ins-feat.is-ph a, .ins-card.is-ph { cursor: default; }
.ins-feat.is-ph .ed-btn { opacity: .45; pointer-events: none; }
.ins-card.is-ph .ins-arrow { display: none; }

/* ══ Team cards: unveil instead of the old fade-and-slide ══
   Each card wipes open from the bottom while the picture settles from a
   slight zoom; cards follow one another (--reveal-delay from the grid). */
.ed.about .about-portrait.reveal { opacity: 1; transform: none; transition: box-shadow .45s ease; }
/* Paper-coloured cover that wipes away upward, unveiling the card.
   (Clipping the card itself would hide it from the IntersectionObserver.) */
.ed.about .about-portrait.reveal::after {
  content: ""; position: absolute; inset: -1px; z-index: 5; pointer-events: none;
  background: var(--ed-paper); transform-origin: 50% 0;
  transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--reveal-delay, 0s);
}
.ed.about .about-portrait.reveal.visible::after { transform: scaleY(0); }
.ed.about .about-portrait.reveal .about-photo { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--reveal-delay, 0s); }
.ed.about .about-portrait.reveal .about-id { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--reveal-delay, 0s) + .55s); }
.ed.about .about-portrait.reveal.visible .about-photo { transform: none; }
.ed.about .about-portrait.reveal.visible .about-id { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ed.about .about-portrait.reveal::after { display: none; }
  .ed.about .about-portrait.reveal .about-photo, .ed.about .about-portrait.reveal .about-id { transform: none; opacity: 1; transition: none; }
}

/* ══ Phones: testimonials as a swipeable carousel (no pinning) ══ */
@media (max-width: 768px) {
  .q-track { height: auto; }
  .q-stage { position: static; height: auto; display: block; overflow: visible; padding: 96px 0 56px; max-width: none; }
  .q-head { margin: 0 20px; }
  .q-body {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 34px 0 30px;
  }
  .q-body::-webkit-scrollbar { display: none; }
  .q-item, .q-item.is-past { grid-area: auto; flex: 0 0 100%; box-sizing: border-box; padding: 0 20px; scroll-snap-align: center; opacity: 1; transform: none; pointer-events: auto; }
  .q-text { font-size: 25px; }
  .qw { transition: color .5s ease; transition-delay: calc(var(--w, 0) * 14ms); }
  .q-item:not(.is-on) .qw { color: rgba(255, 255, 255, .22); transition-delay: 0s; }
  .q-item.is-on .qw { color: #fff; }
  .q-foot { margin: 0 20px; }
  .q-bars b { transition: transform .35s ease; }
}

/* ══ Phones: service panels (editorial, not cards) ══ */
.svc-art { display: none; }
@media (max-width: 900px) {
  .ed-offer .ed-svcs { gap: 0; margin: 0 -20px; }
  .ed-offer .ed-svc, .ed-offer .ed-svc:first-child {
    padding: 0 20px 30px; gap: 14px;
    background: var(--ed-paper); border: 0; border-top: 1px solid var(--ed-ink); border-radius: 0;
    box-shadow: 0 -18px 30px -22px rgba(11, 18, 38, .35);
  }
  .svc-art { display: block; position: relative; height: 112px; margin: 0 -20px 10px; background: #0e1730; overflow: hidden; }
  .svc-art canvas { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; }
  .ed-offer .ed-svc .ed-h3 { font-size: 36px; }
  .ed-offer .ed-list li { gap: 14px; font-size: 15px; }
  .ed-offer .ed-check { width: 7px; height: 7px; border-radius: 0; background: var(--ed-blue); -webkit-mask: none; }
  .ed-offer .ed-check::after { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   CAREERS (careers.html, job.html)
   ══════════════════════════════════════════════════════════════ */
.car-list { padding: clamp(56px, 6vw, 90px) 0 clamp(96px, 10vw, 140px); }
.car-bar { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--ed-ink); }
.car-count { margin: 0; font: 500 12px/1 var(--ed-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-mute); }
.car-count span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 10px; padding: 0 6px; border-radius: 999px; background: var(--ed-ink); color: var(--ed-paper); letter-spacing: 0; }
.car-jobs { list-style: none; margin: 0 0 clamp(80px, 9vw, 130px); padding: 0; }
.car-jobs > li { border-bottom: 1px solid var(--ed-line); }
.car-job {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 48px; grid-template-areas: "t m a" "s s a";
  align-items: center; gap: 8px 32px; padding: 30px 0; color: var(--ed-ink); text-decoration: none;
}
.car-job-title { grid-area: t; font: 400 clamp(28px, 3vw, 44px)/1.05 var(--ed-serif); letter-spacing: -.015em; transition: transform .6s var(--ed-ease), color .3s ease; }
.car-job-meta { grid-area: m; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font: 400 15px/1.3 var(--ed-sans); color: var(--ed-ink-2); }
.car-pill { padding: 6px 12px; border: 1px solid var(--ed-line); border-radius: 999px; font-size: 13px; }
.car-job-sum { grid-area: s; max-width: 60ch; font: 400 15px/1.55 var(--ed-sans); color: var(--ed-mute); }
.car-job-arrow { grid-area: a; justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ed-line); transition: background .35s ease, color .35s ease, border-color .35s ease, transform .5s var(--ed-ease); }
@media (hover: hover) {
  .car-job:hover .car-job-title { transform: translateX(8px); color: var(--ed-blue); }
  .car-job:hover .car-job-arrow { background: var(--ed-ink); border-color: var(--ed-ink); color: #fff; transform: rotate(-45deg); }
}
.car-job:active .car-job-title { color: var(--ed-blue); }
.car-empty { padding: 48px 0; font: 400 clamp(22px, 2.2vw, 30px)/1.3 var(--ed-serif); color: var(--ed-ink-2); list-style: none; }

.car-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding: clamp(40px, 5vw, 64px); background: var(--ed-night); color: #fff; border-radius: 6px; }
.car-open .ed-eyebrow { color: #8fa3d9; }
.car-open .ed-h2 { font-size: clamp(36px, 3.8vw, 58px); margin-bottom: 20px; }
.car-open .ed-h2 em { color: #8fa3d9; }
.car-open .ed-lead { color: #a7b3cb; }

/* application form (on dark) — reuses the contact .ct-* fields */
.job-form { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.job-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.job-drop {
  position: relative; display: grid; place-items: center; min-height: 92px; padding: 18px; text-align: center; cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, .28); border-radius: 6px; color: #a7b3cb; font: 400 15px/1.4 var(--ed-sans);
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.job-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.job-drop.is-over, .job-drop:hover { border-color: #fff; background: rgba(255, 255, 255, .04); color: #fff; }
.job-drop.has-file { border-style: solid; border-color: #8fa3d9; color: #fff; }
.job-drop:focus-within { outline: 2px solid #8fa3d9; outline-offset: 3px; }
.job-err { margin: 0; min-height: 1.2em; color: #ffb4b4; font: 400 14px/1.4 var(--ed-sans); }
.job-done { padding: 24px 0; }
.job-done .ed-h3 { color: #fff; margin-bottom: 14px; }
.job-done .ed-h3 em { color: #8fa3d9; }
.ed .job-form .ct-submit, .car-open .ct-submit { margin-top: 4px; }

/* job page */
.job-page { padding-bottom: clamp(48px, 6vw, 80px); }
.job-jump { margin-top: 32px; }
.job-apply { padding: clamp(96px, 10vw, 140px) 0; }
.job-apply-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.job-apply-in > div:first-child { position: sticky; top: 140px; }
.job-apply .ed-h2 { margin-bottom: 18px; }
.job-bar { display: none; }

@media (max-width: 900px) {
  .car-job { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "t a" "m a" "s s"; gap: 10px 16px; padding: 24px 0; }
  .car-job-arrow { width: 40px; height: 40px; }
  .car-open, .job-apply-in { grid-template-columns: 1fr; }
  .car-open { padding: 36px 20px; margin: 0 -20px; border-radius: 0; }
  .job-apply-in > div:first-child { position: static; }
  .job-jump { display: none; }
  .job-bar {
    display: flex; align-items: center; justify-content: space-between; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120;
    padding: 17px 20px; background: var(--ed-ink); color: #fff; text-decoration: none; font: 500 16px/1 var(--ed-sans); border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11, 18, 38, .3);
    transition: transform .5s var(--ed-ease), opacity .3s ease;
  }
  .job-bar.is-hidden { transform: translateY(140%); opacity: 0; }
  .job-bar:active { background: var(--ed-blue); }
}

/* navbar dropdown: job type next to each role */
.nav-job-type { margin-left: 6px; font-size: .78em; opacity: .55; }
.mnav-jobs { display: contents; }
.job-form[hidden], .job-done[hidden], .job-apply[hidden], .job-bar[hidden], .job-jump[hidden] { display: none !important; }
