/* Scale First Media — built desktop-1440-first against BUILD_SPEC.md
   Section heights use min-height (not height) so user font scaling never clips text. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  overflow-x: clip;
  background: var(--page-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.icon {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.container {
  width: min(100% - 64px, 1376px);
  margin-inline: auto;
}

.blue { color: var(--blue-bright); }

.eyebrow {
  color: var(--blue-text);
  font-family: var(--font-body);
  font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  text-align: center;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: 46px; font-weight: 700; line-height: .98;
  text-align: center;
  margin-top: 10px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.btn-primary { background: var(--blue-core); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-secondary { background: var(--page-black); color: var(--white); border: 2px solid var(--blue-core); }
.btn-secondary:hover { border-color: var(--blue-bright); }
.btn-white { background: #fff; color: var(--blue-core); }
.btn-white:hover { background: var(--white); transform: translateY(-1px); }

:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }

.icon-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue-core); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.icon-circle .icon { width: 26px; height: 26px; }

/* ============ 01 HEADER ============ */
.site-header {
  background: var(--page-black);
  border-bottom: 1px solid var(--border);
  min-height: 111px;
  display: flex; align-items: center;
  position: relative; z-index: 20;
}
.header-inner {
  width: 100%;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { width: 90px; height: 90px; }
.site-nav { display: flex; align-items: center; gap: 44px; }
.site-nav > a:not(.btn) {
  font-size: 16px; font-weight: 600;
  transition: color .2s ease;
}
.site-nav > a:not(.btn):hover { color: var(--blue-text); }
.btn-nav { height: 52px; padding: 0 24px; }
.nav-toggle { display: none; }

/* ============ 01 HERO ============ */
.hero {
  position: relative;
  min-height: 679px;
}
.hero-rings {
  position: absolute; top: -40px; left: -60px;
  width: 520px; opacity: .45;
  pointer-events: none;
}
.hero-art {
  position: absolute; top: 5px; right: -10px;
  width: 700px; max-width: none;
  z-index: 3;
  pointer-events: none;
}
.hero-halftone {
  position: absolute; top: -8px; right: -8px;
  width: 300px; opacity: .55;
  z-index: 2;
  pointer-events: none;
}
.hero-copy {
  position: relative; z-index: 4;
  max-width: 730px;
  padding: 72px 0 0 96px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: 86px; font-weight: 800; line-height: .94;
  max-width: 610px;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700; line-height: 1.03;
  margin-top: 22px;
}
.hero-body {
  color: var(--muted);
  font-size: 16px;
  max-width: 500px;
  margin-top: 22px;
}
.hero-cta { display: flex; gap: 16px; margin-top: 24px; }

/* ============ 02 CAPABILITIES ============ */
.capabilities { position: relative; z-index: 1; }
.cap-strip {
  border: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr);
  min-height: 224px;
}
.cap-cell {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 16px;
  align-content: start;
  align-items: center;
  padding: 24px 26px 18px;
  transition: background-color .2s ease;
}
.cap-cell + .cap-cell { border-left: 1px solid var(--border); }
.cap-cell:hover { background: var(--panel-black); }
.cap-title {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em;
}
.cap-desc { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 14px; }
.cap-arrow {
  position: absolute; right: 18px; bottom: 16px;
  width: 18px; height: 18px;
  color: var(--blue-bright); stroke-width: 2.4;
  transition: transform .2s ease;
}
.cap-cell:hover .cap-arrow { transform: translate(2px, -2px); }

/* ============ 03 ABOUT ============ */
.about { min-height: 365px; }
.about-grid {
  display: grid; grid-template-columns: 45% 55%;
  padding: 54px 0 56px;
}
.about-left { padding-right: 56px; }
.about-h2 {
  font-family: var(--font-display);
  font-size: 43px; font-weight: 700; line-height: 1;
}
.about-body { color: var(--muted); font-size: 15px; max-width: 520px; margin-top: 18px; }
.about-right {
  position: relative;
  border-left: 1px solid var(--border);
  padding: 8px 0 0 84px;
}
.about-arrow {
  position: absolute; top: -24px; right: -8px;
  width: 340px; opacity: .55;
  pointer-events: none;
}
.about-quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 130px; font-weight: 800; line-height: .55;
  color: var(--blue-bright);
}
.about-quote {
  font-family: var(--font-display);
  font-size: 54px; font-weight: 700; line-height: 1.12;
  margin-top: 10px;
}

/* ============ 04 SERVICES ============ */
.services {
  border-top: 1px solid var(--border);
  min-height: 534px;
  padding: 44px 0 38px;
}
.service-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  width: min(100%, 1350px); margin: 24px auto 0;
}
.service-card {
  display: flex; flex-direction: column;
  min-height: 350px;
  padding: 30px;
  background: var(--panel-black);
  border: 1px solid var(--border); border-radius: 8px;
  transition: border-color .2s ease, transform .25s ease;
}
.service-card:hover { border-color: #3a4050; }
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head .icon-circle { width: 52px; height: 52px; }
.card-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; line-height: 1;
}
.card-body { color: var(--muted); font-size: 14.5px; margin-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.tags li {
  background: var(--blue-core); color: #fff;
  border: 1px solid rgba(110, 145, 255, .55);
  font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 4px;
}

/* ============ 05 PROCESS ============ */
.process { min-height: 377px; padding: 36px 0 30px; }
.process-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: 27px;
  counter-reset: step;
}
.process-col { position: relative; padding: 0 26px; }
.process-col + .process-col { border-left: 1px solid var(--border); }
.process-col + .process-col::before {
  content: "";
  position: absolute; left: -11px; top: 30px;
  width: 22px; height: 22px;
  background: var(--page-black);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23064BFF" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M9 5l8 7-8 7"/></svg>');
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
}
.process-num {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 800; line-height: .9;
  color: var(--blue-bright);
}
.process-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; line-height: 1;
  margin-top: 14px;
}
.process-desc { color: var(--muted); font-size: 13.5px; margin-top: 12px; max-width: 180px; }

/* ============ 06 AFFILIATE BAND ============ */
.affiliate-band {
  background: var(--blue-core);
  min-height: 349px;
  display: flex; align-items: center;
  position: relative;
}
.affiliate-band::before {
  /* subtle darker halftone, left side (BUILD_SPEC §11) */
  content: "";
  position: absolute; inset: 0 60% 0 0;
  background-image: radial-gradient(circle, rgba(0, 27, 115, .55) 1.5px, transparent 1.6px);
  background-size: 13px 13px;
  opacity: .5;
  pointer-events: none;
}
.band-grid {
  position: relative;
  display: grid; grid-template-columns: 31% 23% 23% 23%;
  padding: 60px 0;
}
.band-intro { padding-right: 48px; }
.band-h2 {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 700; line-height: .98;
  color: #fff;
}
.band-body { color: rgba(255, 255, 255, .88); font-size: 15px; max-width: 320px; margin-top: 18px; }
.band-col { border-left: 1px solid rgba(255, 255, 255, .38); padding: 6px 40px 0; }
.band-icon { width: 44px; height: 44px; color: #fff; stroke-width: 1.6; }
.band-title {
  font-family: var(--font-display);
  font-size: 27px; font-weight: 700; line-height: 1;
  color: #fff;
  margin-top: 18px;
}
.band-desc { color: rgba(255, 255, 255, .85); font-size: 14.5px; margin-top: 12px; max-width: 225px; }

/* ============ 07 CONTENT & SOCIAL ============ */
.content-social { min-height: 495px; padding: 38px 0 0; }
.tile-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-top: 18px;
}
.tile {
  min-height: 288px;
  padding: 38px 18px 30px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel-black);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: border-color .2s ease, transform .25s ease;
}
.tile:hover { border-color: #3a4050; }
.tile-icon { width: 56px; height: 56px; color: var(--blue-bright); stroke-width: 1.5; }
.tile-title {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 700; line-height: 1.02;
  margin-top: 24px;
}
.tile-desc { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 12px; }

/* ============ 08 REACH ============ */
.reach { min-height: 355px; padding: 34px 0 0; }
.map-wrap { display: flex; justify-content: center; }
.map-crop {
  width: min(100%, 1280px);
  height: 235px;
  overflow: hidden;
  margin-top: 10px;
}
.map-inner { position: relative; margin-top: -60px; }
.map-img { width: 100%; filter: brightness(2.1); }
.marker {
  position: absolute; left: var(--mx); top: var(--my);
  width: 0; height: 0;
}
.marker i {
  position: absolute; left: -7px; top: -7px;
  width: 14px; height: 14px;
  border: 2.5px solid var(--blue-bright); border-radius: 50%;
}
.marker i::after {
  content: "";
  position: absolute; left: 2px; top: 2px;
  width: 4px; height: 4px;
  background: var(--blue-bright); border-radius: 50%;
}
.marker .lbl {
  position: absolute;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.lbl-right { left: 14px; top: -8px; }
.lbl-left { right: 14px; top: -8px; }
.lbl-up { left: 2px; bottom: 12px; }
.lbl-down { left: 2px; top: 12px; }

/* ============ 09 WHY SCALE FIRST ============ */
.why {
  border-top: 1px solid var(--border);
  min-height: 302px;
  padding: 20px 0 4px;
}
.why-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 16px;
}
.why-card {
  display: flex; gap: 16px; align-items: flex-start;
  min-height: 183px;
  padding: 26px 24px;
  background: var(--panel-black);
  border: 1px solid var(--border); border-radius: 8px;
  transition: border-color .2s ease, transform .25s ease;
}
.why-card .icon-circle { width: 50px; height: 50px; }
.why-card-accent { border-color: rgba(6, 75, 255, .6); }
.why-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; line-height: 1;
}
.why-desc { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

/* ============ 10 FINAL CTA ============ */
.final-cta {
  position: relative;
  background: var(--blue-core);
  background-image: radial-gradient(ellipse at 50% 40%, rgba(11, 81, 255, .5), transparent 60%);
  min-height: 324px;
  padding: 42px 0 38px;
  overflow: hidden;
}
.cta-mark { position: absolute; opacity: .4; pointer-events: none; }
.cta-mark-left { left: -16px; bottom: -46px; width: 260px; opacity: .7; }
.cta-mark-right { right: -40px; top: -20px; width: 360px; opacity: .7; }
.cta-inner { position: relative; text-align: center; }
.cta-h2 {
  font-family: var(--font-display);
  font-size: 84px; font-weight: 800; line-height: .95;
  color: #FFFFFF;
  display: inline-flex; align-items: flex-start; gap: 6px;
}
.cta-arrow { width: 62px; height: 62px; margin-top: -10px; }
.cta-sub { color: #fff; font-size: 19px; margin-top: 10px; }
.final-cta .btn-white { margin-top: 24px; }
.cta-contact {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 30px;
  color: #fff; font-size: 14.5px;
}
.cta-contact-item { display: inline-flex; align-items: center; gap: 9px; }
.cta-contact-item .icon { width: 19px; height: 19px; stroke-width: 1.6; }
a.cta-contact-item:hover { text-decoration: underline; }
.cta-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .5); }

/* ============ 11 FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  min-height: 199px;
  padding-top: 26px;
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { width: 92px; height: 92px; flex: none; }
.footer-desc { color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 300px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 13.5px; font-weight: 500; color: var(--white); }
.footer-nav a:hover { color: var(--blue-text); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.footer-social a:hover { border-color: var(--blue-text); color: var(--blue-text); }
.footer-social .icon { width: 17px; height: 17px; stroke-width: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 22px; padding: 16px 0;
  text-align: center;
  color: var(--muted); font-size: 12.5px;
}

/* ================= RESPONSIVE (BUILD_SPEC §18) ================= */

/* 1200–1439: scale down ~8–12%, keep all rows */
@media (max-width: 1439px) {
  .hero-h1 { font-size: 76px; }
  .hero-sub { font-size: 27px; }
  .hero-copy { padding-left: 64px; }
  .hero-art { width: 620px; }
  .section-h2 { font-size: 42px; }
  .about-h2 { font-size: 38px; }
  .about-quote { font-size: 39px; }
  .band-h2 { font-size: 46px; }
  .cta-h2 { font-size: 60px; }
  .card-title { font-size: 25px; }
  .process-num { font-size: 46px; }
}

/* 900–1199 */
@media (max-width: 1199px) {
  .hero { min-height: 560px; }
  .hero-h1 { font-size: 62px; }
  .hero-art { width: 48vw; right: -20px; }
  .hero-copy { padding: 48px 0 40px 48px; max-width: 56%; }
  .service-row { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 300px; }
  .tile-row { grid-template-columns: repeat(3, 1fr); }
  .band-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .band-intro { grid-column: 1 / -1; padding-right: 0; }
  .band-col:first-of-type { border-left: 0; padding-left: 0; }
  .why-row { grid-template-columns: repeat(2, 1fr); }
  .footer-row { flex-wrap: wrap; }
}

/* 640–899 */
@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--border); border-radius: 4px;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header { min-height: 80px; }
  .logo { width: 62px; height: 62px; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--panel-black);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 32px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .btn-nav { margin-top: 16px; }

  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { order: 1; max-width: 100%; padding: 40px 32px 0; }
  .hero-h1 { font-size: 58px; }
  .hero-rings, .hero-halftone { display: none; }
  .hero-art {
    order: 2;
    position: static;
    width: min(84vw, 460px);
    margin: 28px auto -40px;
  }
  .map-crop { height: auto; overflow: visible; }
  .map-inner { margin-top: 0; }
  .map-img { filter: brightness(1.9); }
  .marker i { width: 9px; height: 9px; left: -4.5px; top: -4.5px; border-width: 2px; }
  .marker i::after { width: 3px; height: 3px; left: 1.5px; top: 1.5px; }
  .marker .lbl { font-size: 10px; }
  .lbl-right { left: 8px; top: -6px; }
  .lbl-left { right: 8px; top: -6px; }
  .lbl-up { bottom: 7px; }
  .lbl-down { top: 7px; }
  .cap-strip { grid-template-columns: repeat(2, 1fr); }
  .cap-cell:nth-child(3) { border-left: 0; }
  .cap-cell:nth-child(n+3) { border-top: 1px solid var(--border); }

  .about-grid { grid-template-columns: 1fr; padding: 44px 0; }
  .about-left { padding-right: 0; }
  .about-right { border-left: 0; padding: 40px 0 0; margin-top: 36px; border-top: 1px solid var(--border); }
  .about-arrow { width: 220px; top: 24px; right: 0; opacity: .35; }

  .process-row { grid-template-columns: 1fr; margin-top: 36px; }
  .process-col { padding: 22px 0; }
  .process-col + .process-col { border-left: 0; border-top: 1px solid var(--border); }
  .process-col + .process-col::before { display: none; }

  .band-grid { grid-template-columns: 1fr; padding: 48px 0; row-gap: 30px; }
  .band-col { border-left: 0; padding: 0; }
  .band-col + .band-col { border-top: 1px solid rgba(255,255,255,.38); padding-top: 30px; }
  .band-intro + .band-col { border-top: 1px solid rgba(255,255,255,.38); padding-top: 30px; }

  .why-row { grid-template-columns: repeat(2, 1fr); }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* <640 */
@media (max-width: 639px) {
  .container { width: calc(100% - 40px); }
  .header-inner { padding: 0 20px; }
  .hero-copy { padding: 32px 20px 0; }
  .hero-h1 { font-size: 56px; }
  .hero-sub { font-size: 24px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .cap-strip { grid-template-columns: 1fr; }
  .cap-cell + .cap-cell { border-left: 0; border-top: 1px solid var(--border); }
  .service-row { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .tile-row { grid-template-columns: repeat(2, 1fr); }
  .why-row { grid-template-columns: 1fr; }
  .why-card { min-height: 0; }
  .section-h2 { font-size: 36px; }
  .about-quote { font-size: 34px; }
  .band-h2 { font-size: 40px; }
  .cta-h2 { font-size: 42px; }
  .cta-arrow { width: 34px; height: 34px; margin-top: -4px; }
  .cta-contact { flex-direction: column; gap: 12px; }
  .cta-divider { display: none; }
  .marker .lbl { font-size: 10px; }
  .site-nav { padding: 8px 20px 20px; }
}

/* ================= MOTION (added on request; gated for reduced motion) ================= */
.h1-mask { display: block; overflow: hidden; }
.h1-line { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .service-card:hover, .tile:hover, .why-card:hover { transform: translateY(-4px); }
  .btn:hover { transform: translateY(-1px); }
  .why-card:hover, .service-card:hover { border-color: #3a4050; }

  /* reach map focus cycle: one country "bleeps" at a time */
  .marker { transition: opacity .35s ease; }
  .marker i { transition: transform .3s ease, box-shadow .3s ease; }
  .marker .lbl { transition: color .3s ease, transform .3s ease; }
  .map-cycling .marker { opacity: .45; }
  .map-cycling .marker.is-active { opacity: 1; }
  .marker.is-active i {
    transform: scale(1.4);
    box-shadow: 0 0 16px rgba(6, 75, 255, .95);
  }
  .marker.is-active .lbl {
    color: var(--blue-text);
    transform: scale(1.1);
  }
  .lbl-right.lbl, .marker.is-active .lbl-right { transform-origin: left center; }
  .marker.is-active .lbl-left { transform-origin: right center; }
  .marker.is-active i::before {
    content: "";
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--blue-bright);
    animation: marker-bleep 1s ease-out 1 both;
  }
}

@keyframes marker-bleep {
  0%   { transform: scale(.55); opacity: .9; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ================= CONTACT FORM (final CTA band) ================= */
.contact-modal {
  margin: auto; /* the global reset kills the UA centering — restore it */
  width: min(92vw, 720px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 32px 30px;
  background: var(--panel-black);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
}
.contact-modal::backdrop {
  background: rgba(3, 4, 8, .74);
  backdrop-filter: blur(3px);
}
.cm-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.cm-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700; line-height: 1;
}
.cm-close {
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.cm-close:hover { color: var(--white); border-color: #3a4050; }
.contact-form { text-align: left; }
@media (prefers-reduced-motion: no-preference) {
  .contact-modal[open] { animation: modal-in .28s cubic-bezier(.16, 1, .3, 1); }
  .contact-modal[open]::backdrop { animation: backdrop-in .28s ease; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes backdrop-in { from { opacity: 0; } }
.cf-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.cf-wide { grid-column: 1 / -1; }
.cf-field label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--white);
  margin-bottom: 7px;
}
.cf-field input,
.cf-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s ease;
}
.cf-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23A1A5AE" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
}
.cf-field select:invalid { color: var(--muted); }
.cf-field select option { color: var(--white); background: var(--panel-2); }
.cf-field input:hover, .cf-field select:hover { border-color: #3a4050; }
.cf-field input:focus-visible, .cf-field select:focus-visible {
  outline: none;
  border-color: var(--blue-text);
}
/* bait field: invisible to people, present for bots */
.cf-bait {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cf-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-top: 22px;
  min-height: 65px; /* Turnstile widget height — reserved so the form doesn't jump */
}
.cf-submit { min-width: 200px; }
.cf-submit[disabled] { opacity: .6; cursor: default; }
.cf-status { font-size: 14px; color: var(--white); margin-top: 12px; min-height: 22px; }
.cf-status.is-error { color: #FFB4B4; }
.cf-status.is-success { color: #B8FFD1; }

@media (max-width: 639px) {
  .cf-grid { grid-template-columns: 1fr; }
  .contact-modal { padding: 20px 18px; }
  .cf-footer { justify-content: center; }
  .cf-submit { width: 100%; }
}
