/* ═══════════════════════════════════════════
   CyMea Consulting — Boutique Advisory
   Aesthetic: Editorial luxury × Mediterranean modern
   ═══════════════════════════════════════════ */

/* ── Palette ── */
:root {
  --ink:        #1a2332;
  --ink-soft:   #2d3a4a;
  --stone:      #f5f1ec;
  --cream:      #faf8f5;
  --white:      #ffffff;
  --teal:       #0ea5a0;
  --teal-deep:  #0b8a86;
  --teal-glow:  rgba(14, 165, 160, 0.12);
  --sage:       #8a9a8e;
  --sage-light: #b8c4ba;
  --text:       #1a2332;
  --text-mid:   #556170;
  --text-light: #8a9a8e;
  --surface:    #ffffff;
  --surface-alt: #f5f1ec;
  --border:     rgba(26, 35, 50, 0.08);
  --border-acc: rgba(14, 165, 160, 0.25);
  --ok:         #3d9a68;
  --ok-bg:      rgba(61, 154, 104, 0.12);
  --warn:       #c9a227;
  --warn-bg:    rgba(201, 162, 39, 0.12);
  --risk:       #c25b4a;
  --risk-bg:    rgba(194, 91, 74, 0.12);
  --shadow-sm:  0 1px 3px rgba(26,35,50,0.06);
  --shadow-md:  0 8px 30px rgba(26,35,50,0.08);
  --shadow-lg:  0 20px 50px rgba(26,35,50,0.10);
  --radius:     12px;
  --radius-sm:  8px;
  --ease:       cubic-bezier(0.22, 0.68, 0, 1);
  --dur:        0.5s;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Dark mode ── */
body.dark {
  --ink:        #e8ece9;
  --ink-soft:   #c5cec7;
  --stone:      #151b22;
  --cream:      #1a2129;
  --white:      #0f1419;
  --teal:       #2ecdc7;
  --teal-deep:  #25b0ab;
  --teal-glow:  rgba(46, 205, 199, 0.10);
  --sage:       #7a8e7f;
  --sage-light: #4a5c4e;
  --text:       #e2e8e4;
  --text-mid:   #a0b0a5;
  --text-light: #6a7e6f;
  --surface:    #1a2129;
  --surface-alt: #151b22;
  --border:     rgba(226, 232, 228, 0.08);
  --border-acc: rgba(46, 205, 199, 0.25);
  --ok:         #5cc98f;
  --ok-bg:      rgba(92, 201, 143, 0.10);
  --warn:       #e0bd4f;
  --warn-bg:    rgba(224, 189, 79, 0.10);
  --risk:       #e07a68;
  --risk-bg:    rgba(224, 122, 104, 0.10);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.20);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.25);
  --shadow-lg:  0 20px 50px rgba(0,0,0,0.30);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Container ── */
.container {
  width: min(1140px, 100% - 3.5rem);
  margin: 0 auto;
}

/* ── Overline ── */
.overline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

body.dark .site-header {
  background: rgba(15, 20, 25, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 110;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.brand-suffix {
  font-weight: 400;
  color: var(--sage);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.25s, background 0.25s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: var(--teal-glow);
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  transition: background 0.25s, transform 0.25s;
}

body.dark .nav-cta {
  color: var(--white) !important;
  background: var(--teal-deep);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--teal-deep);
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 110;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.25s;
}

.theme-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.icon-moon { display: none; }
body.dark .icon-sun { display: none; }
body.dark .icon-moon { display: block; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: var(--cream);
  transition: background var(--dur) var(--ease);
}

.hero-bg-shape {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-hex {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 350px;
  opacity: 0.03;
  background: var(--teal);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  text-align: center;
  justify-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0.5rem auto 1.25rem;
  max-width: 680px;
  font-weight: 400;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  max-width: 520px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  display: block;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  line-height: 1.3;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 160, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 160, 0.30);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  padding: 5.5rem 0;
  background: var(--surface);
  transition: background var(--dur) var(--ease);
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.section-sub {
  font-size: 1.04rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: all 0.35s var(--ease);
  position: relative;
}

.section-alt .service-card {
  background: var(--surface-alt);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-acc);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--teal-glow);
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.services-note {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   APPROACH / STEPS
   ═══════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: all 0.35s var(--ease);
}

.step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.step-body p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ECIC
   ═══════════════════════════════════════════ */
.ecic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ecic-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}

.ecic-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.ecic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ecic-card:hover::after {
  transform: scaleX(1);
}

.ecic-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.ecic-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.ecic-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

body.dark .field input,
body.dark .field textarea {
  background: var(--white);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-light);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.aside-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.aside-block p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.aside-block a {
  color: var(--teal);
  transition: opacity 0.2s;
}

.aside-block a:hover {
  opacity: 0.75;
}

.aside-note {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.aside-note p {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  padding: 2.5rem 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  color: var(--ink);
}

.footer-brand img {
  width: 64px;
  height: 64px;
}

.footer-text {
  text-align: center;
}

.footer-text p {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.footer-text p + p {
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.services-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.30s; }

.ecic-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.ecic-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }

.hero-stats.reveal { transition-delay: 0.2s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecic-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

}

/* Mobile nav — burger up to 1000px (nav has 7 items) */
@media (max-width: 1000px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    background: var(--surface);
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    transform: translateX(100%);
    /* The closed drawer is only moved off-screen, not hidden — so its links
       stayed in the tab order. On a phone, Tab twice put focus on "Home" at
       x=417, off-screen and invisible, and a keyboard user walked six unseen
       links before reaching anything on the page. `visibility` takes it out of
       the tab order; the delay lets the slide-out finish before it disappears. */
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    z-index: 105;
    gap: 0.25rem;
  }

  body.dark .nav {
    box-shadow: -10px 0 40px rgba(0,0,0,0.40);
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .burger {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════════
   LANGUAGE SWITCH
   ═══════════════════════════════════════════ */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
}

.lang-chip:hover,
.lang-chip:focus-visible {
  color: var(--teal);
  background: var(--teal-glow);
}

.lang-chip.active {
  color: var(--white);
  background: var(--teal);
}

body.dark .lang-chip.active {
  color: var(--white);
  background: var(--teal-deep);
}

/* ═══════════════════════════════════════════
   HERO ROUTE ARC
   ═══════════════════════════════════════════ */
.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

.route-arc {
  stroke: var(--teal);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  opacity: 0.35;
  animation: route-drift 40s linear infinite;
}

.route-dot {
  fill: var(--teal);
  opacity: 0.45;
  animation: route-pulse 3.2s ease-in-out infinite;
}

.route-dot:last-of-type {
  animation-delay: 1.6s;
}

@keyframes route-drift {
  to { stroke-dashoffset: -640; }
}

@keyframes route-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.15; }
}

/* ═══════════════════════════════════════════
   AUDIENCE STRIP
   ═══════════════════════════════════════════ */
.audience-strip {
  background: var(--ink);
  padding: 1.1rem 0;
  transition: background var(--dur) var(--ease);
}

body.dark .audience-strip {
  background: var(--stone);
}

.audience-strip p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cream);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

body.dark .audience-strip p {
  color: var(--text);
}

.audience-strip strong {
  color: var(--teal);
}

body.dark .audience-strip strong {
  color: var(--teal);
}

/* ═══════════════════════════════════════════
   SOURCING DOMAINS
   ═══════════════════════════════════════════ */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.domain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: all 0.35s var(--ease);
  position: relative;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.35s;
}

.domain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-acc);
}

.domain-card:hover::before {
  opacity: 1;
}

.domain-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.domain-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.domain-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   WHY CHINA
   ═══════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: all 0.35s var(--ease);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.why-card p {
  font-size: 0.94rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   AMPEL / VERIFICATION
   ═══════════════════════════════════════════ */
.ampel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ampel-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  transition: all 0.35s var(--ease);
}

.ampel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ampel-light {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
}

.ampel-green .ampel-light {
  background: var(--ok);
  box-shadow: 0 0 0 6px var(--ok-bg), 0 0 18px var(--ok-bg);
}

.ampel-yellow .ampel-light {
  background: var(--warn);
  box-shadow: 0 0 0 6px var(--warn-bg), 0 0 18px var(--warn-bg);
}

.ampel-red .ampel-light {
  background: var(--risk);
  box-shadow: 0 0 0 6px var(--risk-bg), 0 0 18px var(--risk-bg);
}

.ampel-green { border-top: 3px solid var(--ok); }
.ampel-yellow { border-top: 3px solid var(--warn); }
.ampel-red { border-top: 3px solid var(--risk); }

.ampel-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.ampel-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CALLOUT
   ═══════════════════════════════════════════ */
.callout {
  margin-top: 2rem;
  background: var(--teal-glow);
  border: 1px solid var(--border-acc);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.callout h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.callout p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SERVICE TIERS
   ═══════════════════════════════════════════ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 1.5rem 1.5rem;
  transition: all 0.35s var(--ease);
}

.tier-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-acc);
}

.tier-card::after {
  content: attr(data-badge);
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.tier-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--teal);
  line-height: 1;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.tier-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.tier-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.tier-price {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--ink) !important;
  font-size: 0.95rem !important;
}

/* ═══════════════════════════════════════════
   OFFICES / CHINA PRESENCE
   ═══════════════════════════════════════════ */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.office-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.office-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.office-card:hover::after {
  transform: scaleX(1);
}

.office-city {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.office-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.office-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.corridor-strip {
  margin-top: 2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.corridor-strip h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.corridor-strip p {
  font-size: 0.94rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   COMPLIANCE
   ═══════════════════════════════════════════ */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.compliance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all 0.35s var(--ease);
}

.compliance-card:hover {
  box-shadow: var(--shadow-md);
}

.compliance-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}

.compliance-card ul {
  list-style: none;
}

.compliance-card li {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
}

.compliance-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   ECIC LINK
   ═══════════════════════════════════════════ */
.ecic-link {
  margin-top: 0.75rem;
}

.ecic-link a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  transition: opacity 0.2s;
}

.ecic-link a:hover {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.container-narrow {
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item[open] {
  border-color: var(--border-acc);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  position: relative;
  transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--teal);
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
  padding: 0 1.4rem 1.25rem;
}

/* ═══════════════════════════════════════════
   FORM EXTRAS
   ═══════════════════════════════════════════ */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23556170' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

body.dark .field select {
  background-color: var(--white);
}

.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* ═══════════════════════════════════════════
   NEW GRID STAGGERS
   ═══════════════════════════════════════════ */
.domains-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.domains-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.domains-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.domains-grid .reveal:nth-child(5) { transition-delay: 0.06s; }
.domains-grid .reveal:nth-child(6) { transition-delay: 0.12s; }
.domains-grid .reveal:nth-child(7) { transition-delay: 0.18s; }
.domains-grid .reveal:nth-child(8) { transition-delay: 0.24s; }

.why-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.why-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.ampel-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.ampel-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.tier-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.tier-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.tier-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

.office-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.office-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.compliance-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

/* ═══════════════════════════════════════════
   NEW COMPONENT RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1000px) {
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .ampel-grid {
    grid-template-columns: 1fr;
  }

  .office-grid {
    grid-template-columns: 1fr;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .domains-grid {
    grid-template-columns: 1fr;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .callout,
  .corridor-strip {
    padding: 1.4rem 1.25rem;
  }

  .hero-route {
    opacity: 0.3;
  }
}

/* ═══════════════════════════════════════════
   PRACTICES (sub-brand cards, theme-independent)
   NCP = navy/brass · CX = deep teal. Deliberate
   sub-brand identities — do not re-tokenise.
   ═══════════════════════════════════════════ */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border-radius: 16px;
  padding: 2.5rem 2.25rem 2.25rem;
  overflow: hidden;
  min-height: 420px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

/* NCP — navy/brass private-office identity */
.practice-ncp { background: linear-gradient(150deg, #131f38 0%, #1b2c50 100%); }
.practice-ncp .p-tag { color: #a8862f; border-color: rgba(168, 134, 47, 0.4); }
.practice-ncp h3 { color: #f4efe4; }
.practice-ncp .p-pitch { color: #b9c2d6; }
.practice-ncp li { color: #d9dfeb; }
.practice-ncp li::before { color: #a8862f; }
.practice-ncp .p-cta { color: #131f38; background: #a8862f; }
.practice-ncp:hover .p-cta { background: #bfa04e; }
.practice-ncp .p-domain { color: #8fa0c0; }

.practice-ncp::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 260px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(168, 134, 47, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.ampel-mini { display: flex; gap: 0.45rem; }
.ampel-mini i { width: 12px; height: 12px; border-radius: 50%; }
.ampel-mini i:nth-child(1) { background: #4cae7c; box-shadow: 0 0 10px rgba(76, 174, 124, 0.6); }
.ampel-mini i:nth-child(2) { background: #e0bd4f; box-shadow: 0 0 10px rgba(224, 189, 79, 0.55); }
.ampel-mini i:nth-child(3) { background: #d0654f; box-shadow: 0 0 10px rgba(208, 101, 79, 0.55); }

/* CX — deep teal + route arc identity */
.practice-cx { background: linear-gradient(150deg, #0b2023 0%, #10373b 100%); }
.practice-cx .p-tag { color: #2ecdc7; border-color: rgba(46, 205, 199, 0.35); }
.practice-cx h3 { color: #e9f5f4; }
.practice-cx .p-pitch { color: #9fc0be; }
.practice-cx li { color: #cfe5e3; }
.practice-cx li::before { color: #2ecdc7; }
.practice-cx .p-cta { color: #06282b; background: #2ecdc7; }
.practice-cx:hover .p-cta { background: #59dcd6; }
.practice-cx .p-domain { color: #6fa5a2; }

.cx-route {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 55%;
  opacity: 0.5;
  pointer-events: none;
}

.cx-route path {
  stroke: #2ecdc7;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 5 9;
  opacity: 0.5;
  animation: route-drift 30s linear infinite;
}

.cx-route circle { fill: #2ecdc7; opacity: 0.55; }

/* shared card internals */
.p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.p-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.p-cities {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #7fb3b0;
  text-transform: uppercase;
}

.practice-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.p-pitch {
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 46ch;
}

.practice-card ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.practice-card li {
  font-size: 0.9rem;
  padding-left: 1.35rem;
  position: relative;
}

.practice-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.p-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}

.p-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.7rem 1.3rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.practice-card:hover .p-cta { transform: translateX(3px); }

.p-domain {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.practice-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 0; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   Self-hosted contact form (credis-forms)
   Replaces formsubmit.co. The status line is written by js/credis-forms.js;
   the consent row is required before the handler will accept a submission.

   NOTE the selector: `.field label` above sets display:block at the same
   specificity as `.consent-label`, so the consent row must be matched as
   `label.consent-label` and declared after it — otherwise the checkbox and
   its text stack instead of sitting side by side.
   ═══════════════════════════════════════════ */
.field-consent {
  margin-bottom: 1.25rem;
}

label.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-light);
  cursor: pointer;
  margin-bottom: 0;
}

label.consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--sage);
  cursor: pointer;
}

label.consent-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  min-height: 1.4em;
}

.form-status.ok  { color: #3f7d5c; }
.form-status.err { color: #a8443c; }

/* This site toggles `body.dark` (scripts.js), not [data-theme] — match the
   code, not CLAUDE.md, which describes the intended convention. */
body.dark .form-status.ok  { color: #7fd1a6; }
body.dark .form-status.err { color: #e59a92; }

/* Defensive: the off-screen nav drawer leaves scrollWidth wider than the
   viewport. Chromium does not scroll there — verified desktop and mobile — but
   some browsers do scroll to fixed content, and this costs nothing.
   `clip`, NOT `hidden`: `hidden` would make this a scroll container and break
   `.site-header`'s position: sticky. */
html { overflow-x: clip; }
