/* ════════════════════════════════════════════
   ARCH ENGINEERS — Shared site styles
   Light / warm edition
   ════════════════════════════════════════════ */

:root {
  --bg:          #ffffff;
  --bg-2:        #f8fafc;
  --bg-3:        #f1f5f9;
  --bg-blue:     #eff6ff;
  --paper:       #ffffff;
  --ink:         #0f172a;
  --ink-2:       #1e293b;
  --ink-dim:     #475569;
  --ink-mute:    #94a3b8;
  --line:        #e2e8f0;
  --line-2:      #cbd5e1;
  --accent:      #1F4068;
  --accent-deep: #163051;
  --accent-soft: rgba(31,64,104,0.08);
  --olive:       #5a6148;
  --serif: "Instrument Serif","Cormorant Garamond","Times New Roman",serif;
  --sans:  "Inter",-apple-system,BlinkMacSystemFont,sans-serif;
  --mono:  "JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --nav-h: 84px;
  --maxw:  1280px;
  --pad:   clamp(20px,4vw,56px);
  --radius: 12px;
  --ease:        cubic-bezier(.2,.7,.2,1);
  --ease-out:    cubic-bezier(.7,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* Global em treatment — red color, no italic serif (overrides per-component rules unless they're more specific) */
h1 em, h2 em, h3 em, h4 em, h5 em {
  font-family: var(--sans);
  font-style: normal;
  color: var(--accent);
  font-weight: inherit;
}
/* Preserve editorial italic-serif only in long-form articles */
.article-body h1 em, .article-body h2 em, .article-body h3 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  accent-color: var(--accent);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  caret-color: var(--accent);
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

h1,h2,h3,h4,h5 { margin: 0; font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .num { color: var(--ink); font-weight: 600; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }
.reveal[data-delay="4"] { transition-delay: 400ms; }
.img-reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-out); }
.img-reveal.in { clip-path: inset(0 0% 0 0); }

/* ─── NAV ─── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background 360ms ease, border-color 360ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid {
  background: rgba(244,241,234,0.90);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo {
  font-family: var(--sans); font-weight: 600;
  letter-spacing: 0.22em; font-size: 12px;
  text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  transition: color 240ms ease;
}
.logo:hover { color: var(--accent); }
.logo .mark {
  width: 64px; height: 64px;
  position: relative; flex-shrink: 0;
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  transition: transform 400ms var(--ease-spring);
  display: inline-flex; align-items: center; justify-content: center;
}
.logo .mark img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.logo:hover .mark { transform: translateY(-1px); }
.logo .mark::before, .logo .mark::after { display: none !important; }

.nav-links { display: none; gap: 38px; }
.nav-links a {
  position: relative; font-size: 13px; letter-spacing: 0.02em;
  color: var(--ink-dim); padding: 6px 0;
  transition: color 240ms ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 360ms var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  display: none;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 12px 18px;
  font-weight: 500; color: var(--ink);
  transition: background 260ms ease, color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 24px rgba(200,54,42,0.3); }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; margin: -8px;
}
.hamburger span {
  width: 24px; height: 1px; background: var(--ink);
  transition: transform 320ms ease, opacity 240ms ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0 0 0 auto;
  width: min(440px,88vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 520ms var(--ease-out);
  z-index: 99;
  padding: calc(var(--nav-h) + 36px) var(--pad) 40px;
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif); font-style: italic;
  font-size: 36px; padding: 18px 0;
  border-bottom: 1px solid var(--line); color: var(--ink);
  opacity: 0; transform: translateX(28px);
  transition: opacity 420ms ease, transform 420ms var(--ease), color 240ms ease;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu.open a { opacity: 1; transform: translateX(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 120ms; }
.mobile-menu.open a:nth-child(2) { transition-delay: 180ms; }
.mobile-menu.open a:nth-child(3) { transition-delay: 240ms; }
.mobile-menu.open a:nth-child(4) { transition-delay: 300ms; }
.mobile-menu.open a:nth-child(5) { transition-delay: 360ms; }
.mobile-menu .foot { margin-top: auto; padding-top: 32px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }

/* ─── Page hero ─── */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px,6vh,72px));
  padding-bottom: clamp(32px,5vh,56px);
  overflow: hidden;
}
.page-hero .label {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-mute);
  display: flex; align-items: center; gap: 18px; margin-bottom: 28px;
}
.page-hero .label::before, .page-hero .label::after { content: ""; flex: 0 0 32px; height: 1px; background: var(--line-2); }
.page-hero .label .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.page-hero h1 { font-size: clamp(48px,8vw,124px); line-height: 0.94; letter-spacing: -0.022em; font-weight: 400; max-width: 16ch; }
.page-hero h1 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.page-hero .lede { margin-top: 32px; font-size: clamp(16px,1.3vw,19px); max-width: 56ch; color: var(--ink-dim); line-height: 1.65; }

/* Breadcrumb */
.crumbs { display: flex; gap: 10px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 36px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: 0.4; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; font-family: var(--sans);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.btn i { width: 14px; height: 14px; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--line-2);
  transition: color 240ms ease, border-color 240ms ease, gap 240ms ease;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 14px; }

/* ─── Sections ─── */
section { position: relative; }
.section { padding: clamp(80px,12vw,160px) 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 72px; }
@media (min-width: 1024px) { .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 80px; } }
.section-head h2 { font-size: clamp(36px,5vw,64px); line-height: 0.98; letter-spacing: -0.018em; font-weight: 400; margin-top: 22px; max-width: 16ch; }
.section-head h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.section-head .intro { color: var(--ink-dim); max-width: 50ch; font-size: 17px; }

/* Tag / chip */
.chip { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line-2); color: var(--ink-dim); display: inline-flex; align-items: center; gap: 8px; }
.chip.solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip .dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* ─── Stats band ─── */
.stats-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(60px,8vw,90px) 0; }
.stats { display: grid; gap: 48px 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(5,1fr); } }
.stat .num { font-family: var(--sans); font-size: clamp(48px,6vw,82px); line-height: 0.95; font-weight: 400; letter-spacing: -0.025em; color: var(--ink); }
.stat .num .suffix { color: var(--accent); font-family: var(--serif); font-style: italic; }
.stat .label { margin-top: 14px; font-size: 12px; color: var(--ink-dim); letter-spacing: 0.04em; max-width: 22ch; border-top: 1px solid var(--line); padding-top: 14px; }

/* ─── Marquee ticker ─── */
.marquee-band { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; background: var(--bg-2); white-space: nowrap; user-select: none; }
.marquee-track { display: inline-flex; align-items: center; gap: 40px; width: max-content; animation: marqueeScroll 32s linear infinite; will-change: transform; font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-mute); }
.marquee-track .mk-accent { font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: 0.04em; color: var(--accent); text-transform: none; }
.marquee-track .mk-sep { color: var(--accent); opacity: 0.5; font-size: 14px; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-band:hover .marquee-track { animation-play-state: paused; }

/* ─── CTA block — stays dark for contrast ─── */
.cta-block {
  background: #141210; color: var(--bg);
  position: relative; overflow: hidden;
  padding: clamp(80px,12vw,160px) 0;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right,rgba(255,255,255,0.03) 1px,transparent 1px),
                    linear-gradient(to bottom,rgba(255,255,255,0.03) 1px,transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%,#000 30%,transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%,#000 30%,transparent 80%);
  pointer-events: none;
}
.cta-block .wrap { position: relative; z-index: 2; }
.cta-block h2 { font-size: clamp(44px,7vw,108px); line-height: 0.96; letter-spacing: -0.022em; max-width: 14ch; font-weight: 400; }
.cta-block h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.cta-block .lede { margin-top: 28px; max-width: 48ch; font-size: 17px; color: rgba(244,241,234,0.65); }
.cta-block .eyebrow { color: var(--accent); }
.cta-block .eyebrow::before { background: var(--accent); }
.cta-block .row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.cta-block .btn-primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-block .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta-block .btn-ghost { border-color: rgba(244,241,234,0.35); color: var(--bg); }
.cta-block .btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); box-shadow: none; }

/* ─── Footer — stays dark ─── */
footer { background: #0e0c0a; color: var(--bg); padding: 80px 0 30px; position: relative; border-top: 1px solid rgba(20,18,16,0.5); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(244,241,234,0.09); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 60px; } }
.foot-grid h5 { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244,241,234,0.4); margin-bottom: 20px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-grid ul a { font-size: 14px; color: rgba(244,241,234,0.65); transition: color 240ms ease; }
.foot-grid ul a:hover { color: var(--accent); }
.foot-brand .logo { color: var(--bg); margin-bottom: 24px; }
.foot-brand p { color: rgba(244,241,234,0.5); font-size: 14px; max-width: 32ch; line-height: 1.6; }
.foot-address { font-style: normal; color: rgba(244,241,234,0.6); font-size: 13px; line-height: 1.8; margin-bottom: 18px; }
.foot-address strong { color: var(--bg); font-weight: 500; }
.foot-row { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; font-size: 12px; color: rgba(244,241,234,0.38); align-items: flex-start; }
.foot-row a:hover { color: var(--bg); }
@media (min-width: 768px) { .foot-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.foot-mega { font-size: clamp(48px,8vw,132px); line-height: 0.88; letter-spacing: -0.025em; font-weight: 400; margin-bottom: 48px; color: var(--bg); }
.foot-mega em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }

/* ─── Nav visibility ─── */
@media (min-width: 1024px) { .nav-links { display: flex; } .hamburger { display: none; } .nav-cta { display: inline-flex; } }

/* ─── Utility ─── */
.divider { border-top: 1px solid var(--line); margin: 0; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ════════════════════════════════════════════
   DYNAMIC LAYER — page transitions, word reveal,
   scroll progress, dot nav, parallax, gradient anim
   ════════════════════════════════════════════ */

/* Page transition — fade-in on load, fade-out on link click */
body { animation: pageIn 540ms cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.page-out { opacity: 0; transform: translateY(-6px); transition: opacity 260ms ease, transform 260ms ease; }
html.no-motion body, html.no-motion body.page-out { animation: none; opacity: 1; transform: none; transition: none; }

/* Word reveal */
.word {
  display: inline-block; opacity: 0;
  transform: translateY(0.45em);
  animation: wordIn 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes wordIn { to { opacity: 1; transform: none; } }
html.no-motion .word { opacity: 1; transform: none; animation: none; }

/* Site-wide scroll progress bar */
.scroll-prog {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: transparent;
  z-index: 110; pointer-events: none;
}
.scroll-prog .bar {
  height: 100%; width: 0;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(31,64,104,0.5);
  transition: width 80ms linear;
}

/* Side dot navigator */
.dot-nav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: none; flex-direction: column; gap: 14px;
}
@media (min-width: 1024px) { .dot-nav { display: flex; } }
.dot-nav .d {
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-2);
  cursor: pointer; padding: 0;
  transition: background 240ms ease, border-color 240ms ease, transform 280ms var(--ease-spring);
  position: relative;
}
.dot-nav .d::after {
  content: attr(data-label);
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  font-size: 11px; letter-spacing: 0.06em; color: var(--ink);
  white-space: nowrap;
  background: var(--bg); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 6px;
  opacity: 0; transition: opacity 200ms ease;
  pointer-events: none;
}
.dot-nav .d:hover { border-color: var(--accent); transform: scale(1.25); }
.dot-nav .d:hover::after { opacity: 1; }
.dot-nav .d.active { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

/* Mouse-parallax containers */
[data-parallax] { transition: transform 380ms cubic-bezier(.2,.7,.2,1); will-change: transform; }
html.no-motion [data-parallax] { transition: none; transform: none !important; }

/* Service hover preview popover */
.svc-pop {
  position: fixed; pointer-events: none; z-index: 70;
  width: 260px; aspect-ratio: 4/3;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 24px 60px rgba(15,23,42,0.18);
  opacity: 0; transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.34,1.56,.64,1);
}
.svc-pop.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-pop .img { position: absolute; inset: 0; opacity: 0; transition: opacity 260ms ease; }
.svc-pop .img.active { opacity: 1; }
.svc-pop .img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .svc-pop { display: none; } }

/* Animated gradient — slow blue shift on CTA blocks */
@keyframes ctaGradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-blue {
  background-size: 200% 200%;
  animation: ctaGradShift 18s ease-in-out infinite;
}
html.no-motion .cta-blue { animation: none; }

/* Stagger reveal: child elements with .stagger-child */
.stagger-child { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.stagger.in .stagger-child { opacity: 1; transform: none; }
.stagger.in .stagger-child:nth-child(1) { transition-delay: 60ms; }
.stagger.in .stagger-child:nth-child(2) { transition-delay: 140ms; }
.stagger.in .stagger-child:nth-child(3) { transition-delay: 220ms; }
.stagger.in .stagger-child:nth-child(4) { transition-delay: 300ms; }
.stagger.in .stagger-child:nth-child(5) { transition-delay: 380ms; }
.stagger.in .stagger-child:nth-child(6) { transition-delay: 460ms; }
html.no-motion .stagger-child { opacity: 1; transform: none; transition: none; }

/* ════════════════════════════════════════════
   TOGGLES — motion icon button in nav
   ════════════════════════════════════════════ */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); padding: 0; margin: 0;
  transition: border-color 240ms ease, background 240ms ease, color 240ms ease, transform 280ms var(--ease-spring);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn i { width: 16px; height: 16px; }
.nav-tools { display: none; align-items: center; gap: 10px; }
@media (min-width: 1024px) { .nav-tools { display: inline-flex; } }
.icon-btn.motion-off { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════════════
   REDUCED-MOTION CLASS — set on html when user opts out
   ════════════════════════════════════════════ */
html.no-motion *,
html.no-motion *::before,
html.no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
}
html.no-motion .reveal,
html.no-motion .img-reveal,
html.no-motion .hero-letter,
html.no-motion .hero-em-reveal,
html.no-motion .h-a1, html.no-motion .h-a2, html.no-motion .h-a3, html.no-motion .h-a4, html.no-motion .h-img {
  opacity: 1 !important; transform: none !important; clip-path: none !important;
}

/* ════════════════════════════════════════════
   STICKY MOBILE CTA
   ════════════════════════════════════════════ */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 95;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 22px;
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
  box-shadow: 0 14px 36px rgba(200,54,42,0.34);
  transform: translateY(140%); opacity: 0;
  transition: transform 480ms var(--ease-spring), opacity 320ms ease;
}
.sticky-cta.visible { transform: translateY(0); opacity: 1; }
.sticky-cta i { width: 14px; height: 14px; }
@media (min-width: 1024px) { .sticky-cta { display: none !important; } }

/* ════════════════════════════════════════════
   TRUSTED BY logo strip
   ════════════════════════════════════════════ */
.trusted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
  background: var(--paper);
}
.trusted .row {
  display: grid; gap: 22px; align-items: center;
  grid-template-columns: 1fr;
}
.trusted .label {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-mute); display: inline-flex; align-items: center; gap: 14px;
}
.trusted .label::after { content: ""; height: 1px; width: 60px; background: var(--line); }
.trusted .marks {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 22px 32px; align-items: center;
}
@media (min-width: 768px)  { .trusted .row { grid-template-columns: auto 1fr; gap: 40px; } .trusted .marks { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1024px) { .trusted .marks { grid-template-columns: repeat(6,1fr); } }
.trusted .mark-name {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; letter-spacing: -0.01em; color: var(--ink-dim);
  text-align: center; opacity: 0.7; transition: opacity 240ms ease, color 240ms ease, transform 280ms var(--ease);
}
.trusted .mark-name:hover { opacity: 1; color: var(--accent); transform: translateY(-2px); }
.trusted .mark-name sup { font-family: var(--sans); font-style: normal; font-size: 9px; letter-spacing: 0.18em; vertical-align: super; }

/* ════════════════════════════════════════════
   REGISTRATIONS row
   ════════════════════════════════════════════ */
.regs {
  padding: 48px 0; border-top: 1px solid var(--line);
}
.regs .head { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 26px; text-align: center; }
.regs .list { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (min-width: 768px) { .regs .list { grid-template-columns: repeat(4,1fr); } }
.regs .reg-card {
  border: 1px solid var(--line-2); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 240ms ease, transform 280ms var(--ease);
}
.regs .reg-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.regs .reg-card .abbr { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0.12em; }
.regs .reg-card .full { font-size: 12px; color: var(--ink-dim); line-height: 1.5; }

/* ════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════ */
.testi-section { background: var(--bg-2); }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .testi-grid { grid-template-columns: repeat(3,1fr); gap: 32px; } }
.testi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color 240ms ease;
}
.testi-card:hover { border-color: var(--accent); }
.testi-card .mark {
  font-family: var(--serif); font-style: italic; font-size: 64px;
  color: var(--accent); line-height: 0.6; height: 24px;
}
.testi-card blockquote {
  margin: 0; font-family: var(--serif);
  font-size: 22px; line-height: 1.35; font-style: italic; color: var(--ink);
}
.testi-card .who { font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-dim); }
.testi-card .who strong { display: block; color: var(--ink); font-weight: 500; letter-spacing: 0.02em; font-size: 13.5px; margin-bottom: 4px; }

/* ════════════════════════════════════════════
   TEAM teaser cards (home)
   ════════════════════════════════════════════ */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px)  { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4,1fr); } }
.team-card { display: flex; flex-direction: column; gap: 14px; }
.team-card .portrait {
  aspect-ratio: 4/5; background: var(--bg-3);
  position: relative; overflow: hidden;
}
.team-card .portrait .initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 96px; color: var(--accent);
  letter-spacing: -0.02em;
}
.team-card h4 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.team-card .role { font-size: 12.5px; letter-spacing: 0.04em; color: var(--accent); font-weight: 500; }
.team-card .creds { font-size: 12.5px; color: var(--ink-dim); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }

/* ════════════════════════════════════════════
   NEWSLETTER form (footer)
   ════════════════════════════════════════════ */
.foot-news {
  padding: 36px 0 28px;
  display: grid; grid-template-columns: 1fr; gap: 18px;
  border-bottom: 1px solid rgba(244,241,234,0.09);
}
@media (min-width: 768px) { .foot-news { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 40px; } }
.foot-news .label-block h4 { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--bg); font-weight: 400; }
.foot-news .label-block p { font-size: 13px; color: rgba(244,241,234,0.55); margin-top: 6px; max-width: 38ch; }
.news-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 540px) { .news-form { grid-template-columns: 1fr auto; } }
.news-form input {
  background: transparent; border: 1px solid rgba(244,241,234,0.18);
  color: var(--bg); padding: 16px 18px;
  font-family: var(--sans); font-size: 13px;
  transition: border-color 240ms ease;
}
.news-form input::placeholder { color: rgba(244,241,234,0.4); }
.news-form input:focus { outline: none; border-color: var(--accent); }
.news-form button {
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  padding: 16px 22px; font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; transition: background 240ms ease, transform 280ms var(--ease-spring);
}
.news-form button:hover { background: var(--accent-deep); transform: translateY(-2px); }
.news-form .news-msg { display: none; }
.news-form.success input, .news-form.success button { display: none; }
.news-form.success .news-msg { display: block; color: var(--accent); font-size: 13px; letter-spacing: 0.04em; }

/* ════════════════════════════════════════════
   LQIP — img blur until loaded
   ════════════════════════════════════════════ */
.lqip {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  position: relative; overflow: hidden;
}
.lqip::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(244,241,234,0.35), transparent);
  transform: translateX(-100%);
  animation: lqipShimmer 1.6s ease-in-out infinite;
}
@keyframes lqipShimmer { to { transform: translateX(100%); } }
.lqip img { opacity: 0; transition: opacity 480ms ease; }
.lqip.loaded { background: transparent; }
.lqip.loaded::before { display: none; }
.lqip.loaded img { opacity: 1; }

/* ════════════════════════════════════════════
   CALENDLY embed stub
   ════════════════════════════════════════════ */
.calendly-stub {
  border: 1px dashed var(--line-2); padding: 48px 28px;
  text-align: center; background: var(--paper);
}
.calendly-stub .ribbon { display: inline-block; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 4px 10px; margin-bottom: 18px; }
.calendly-stub h3 { font-family: var(--serif); font-style: italic; font-size: 36px; margin-bottom: 12px; }
.calendly-stub p { color: var(--ink-dim); font-size: 14px; max-width: 44ch; margin: 0 auto 22px; }
.calendly-stub a { display: inline-flex; }

/* ════════════════════════════════════════════
   INSIGHTS — listing + article
   ════════════════════════════════════════════ */

/* Featured article */
.insights-featured {
  display: grid; grid-template-columns: 1fr;
  gap: 0; margin-bottom: clamp(60px,8vw,100px);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: transform 320ms var(--ease), border-color 240ms ease, box-shadow 320ms ease;
}
.insights-featured:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 28px 60px rgba(20,18,16,0.10); }
.insights-featured::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); z-index: 3;
}
@media (min-width: 900px) {
  .insights-featured { grid-template-columns: 1.05fr 1fr; }
}
.insights-featured .feat-img {
  aspect-ratio: 4/3; overflow: hidden; background: var(--bg-3);
  position: relative;
}
.insights-featured .feat-img::after {
  content: "Featured"; position: absolute; top: 24px; left: 24px;
  background: var(--accent); color: #fff;
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 500; padding: 7px 14px; z-index: 2;
}
.insights-featured .feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1.2s ease; filter: saturate(0.9); }
.insights-featured:hover .feat-img img { transform: scale(1.04); filter: saturate(1.05); }
.insights-featured .feat-body {
  padding: clamp(36px,5vw,64px);
  display: flex; flex-direction: column; gap: 22px; justify-content: center;
}
.insights-featured .feat-cat { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.insights-featured h2 {
  font-size: clamp(28px,3.8vw,46px); line-height: 1.05;
  letter-spacing: -0.018em; font-weight: 400;
}
.insights-featured h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.insights-featured .feat-lede { color: var(--ink-dim); font-size: 16.5px; line-height: 1.65; }
.insights-featured .feat-meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute);
  border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px;
}
.insights-featured .feat-meta .sep { color: var(--accent); }
.insights-featured .feat-read {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink);
  font-weight: 500; margin-left: auto;
}
.insights-featured .feat-read i { width: 14px; height: 14px; color: var(--accent); transition: transform 280ms var(--ease); }
.insights-featured:hover .feat-read i { transform: translate(3px,-3px); }

/* Filter chips */
.insights-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
  align-items: center;
}
.insights-filters .lab { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-mute); margin-right: 8px; }
.insights-filters .chip-btn {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500;
  padding: 8px 14px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-dim);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}
.insights-filters .chip-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--bg-2); }
.insights-filters .chip-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Card grid */
.insights-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px)  { .insights-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px) { .insights-grid { grid-template-columns: repeat(2,1fr); gap: 36px; } }

.article-card {
  display: flex; flex-direction: column; gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden; position: relative;
  transition: border-color 240ms ease;
}
.article-card:hover { border-color: var(--accent); }
.article-card.is-hidden { display: none; }
.article-card .cover {
  aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3);
  position: relative;
}
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 1.2s ease; filter: saturate(0.9); }
.article-card:hover .cover img { transform: scale(1.05); filter: saturate(1.05); }
.article-card .cover .cat-tag {
  position: absolute; bottom: 16px; left: 16px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 500; padding: 6px 12px;
  background: rgba(244,241,234,0.92); color: var(--ink);
  backdrop-filter: blur(6px);
}
.article-card .body { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.article-card h3 { font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.article-card p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }
.article-card .foot-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto;
}
.article-card .foot-meta .arrow { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: gap 240ms ease; }
.article-card:hover .foot-meta .arrow { gap: 10px; }

/* Reading progress bar (article pages) */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: rgba(20,18,16,0.06);
  z-index: 110;
}
.reading-progress .bar {
  height: 100%; width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200,54,42,0.5);
  transition: width 80ms linear;
}

/* Article hero with cover image */
.article-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(50px,7vh,80px));
  padding-bottom: clamp(40px,6vh,80px);
  overflow: hidden;
}
.article-hero .wrap { max-width: 880px; }
.article-hero .crumbs { margin-bottom: 28px; }
.article-hero h1 {
  font-size: clamp(36px,5.4vw,72px); line-height: 1.04;
  letter-spacing: -0.02em; font-weight: 400; max-width: 22ch;
}
.article-hero h1 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.article-hero .lede {
  margin-top: 26px; font-size: clamp(17px,1.5vw,21px);
  max-width: 56ch; color: var(--ink-dim); line-height: 1.6;
}
.article-hero .article-byline {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute);
}
.article-hero .article-byline .sep { color: var(--accent); }
.article-hero .article-byline strong { color: var(--ink); font-weight: 500; }

.article-cover {
  width: 100%; max-width: 1360px; margin: 0 auto;
  padding: 0 var(--pad);
}
.article-cover .frame {
  aspect-ratio: 21/9; overflow: hidden; background: var(--bg-3);
  position: relative;
}
.article-cover .frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }

/* Article body — refined */
.article-body {
  max-width: 760px; margin: 0 auto;
  padding: clamp(60px,8vw,100px) var(--pad);
  font-size: 17.5px; line-height: 1.78; color: var(--ink-2);
}
.article-body h2 {
  font-size: clamp(30px,3vw,42px); letter-spacing: -0.018em;
  margin: 56px 0 18px; font-weight: 500;
}
.article-body h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.article-body h3 { font-size: clamp(20px,2vw,24px); margin: 36px 0 10px; font-weight: 500; }
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body blockquote {
  margin: 42px 0; padding: 28px 36px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px,2.3vw,26px); line-height: 1.45;
  color: var(--ink);
}
.article-body a { color: var(--accent); border-bottom: 1px solid var(--line-2); transition: border-color 200ms ease; }
.article-body a:hover { border-color: var(--accent); }
.article-body .lede {
  font-size: clamp(20px,1.8vw,23px); line-height: 1.55;
  color: var(--ink); margin-bottom: 40px;
  font-weight: 400; max-width: 36ch;
}
.article-body .lede::first-letter {
  font-family: var(--serif); font-style: italic;
  font-size: 4.6em; float: left; line-height: 0.86;
  margin: 0.04em 0.12em 0 -0.02em; color: var(--accent);
  font-weight: 400;
}

/* Related strip on article pages */
.related {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(60px,8vw,100px) 0;
}
.related .head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 36px; gap: 24px; flex-wrap: wrap;
}
.related h3 {
  font-size: clamp(28px,3.4vw,40px); font-weight: 400;
  letter-spacing: -0.018em; line-height: 1.05;
}
.related h3 em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3,1fr); } }
.related-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 24px 24px 20px;
  transition: transform 280ms var(--ease), border-color 240ms ease;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.related-card .cat { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.related-card h4 { font-size: 18px; line-height: 1.25; font-weight: 500; letter-spacing: -0.005em; }
.related-card .read { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.related-card .read i { color: var(--accent); width: 12px; height: 12px; }

/* Article body */
.article-body {
  max-width: 760px; margin: 0 auto;
  padding: clamp(60px,8vw,100px) 0;
  font-size: 17px; line-height: 1.78; color: var(--ink-2);
}
.article-body h2 {
  font-size: clamp(28px,3vw,38px); letter-spacing: -0.015em;
  margin: 56px 0 18px; font-weight: 500;
}
.article-body h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.article-body h3 { font-size: clamp(20px,2vw,24px); margin: 36px 0 10px; font-weight: 500; }
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body blockquote {
  margin: 32px 0; padding: 20px 0 20px 28px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5;
  color: var(--ink);
}
.article-body a { color: var(--accent); border-bottom: 1px solid var(--line-2); }
.article-body a:hover { border-color: var(--accent); }
.article-body .lede { font-size: 21px; line-height: 1.55; color: var(--ink); margin-bottom: 36px; }

.article-meta { text-align: center; margin-bottom: 24px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-mute); }
.article-meta .sep { margin: 0 12px; color: var(--accent); }

/* ════════════════════════════════════════════
   CASE STUDY page
   ════════════════════════════════════════════ */
.case-hero { padding-top: calc(var(--nav-h) + 80px); padding-bottom: 60px; }
.case-hero img { aspect-ratio: 16/9; width: 100%; object-fit: cover; margin-top: 36px; }
.case-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .case-specs { grid-template-columns: repeat(4,1fr); } }
.case-spec { display: flex; flex-direction: column; gap: 6px; }
.case-spec .k { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-mute); }
.case-spec .v { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink); }
.case-gallery { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 60px 0; }
@media (min-width: 768px) { .case-gallery { grid-template-columns: repeat(2,1fr); } }
.case-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-gallery .wide { grid-column: 1 / -1; aspect-ratio: 21/9; }

