/* =========================================================================
   EXCO — Export & Trade Compliance  ·  styles
   Ocean film backdrop · white glass nav · violet glass accents.
   Typeface: Aptos (system) with self-hosted Inter as fallback. No external CSS.
   ========================================================================= */
/* ============================================================
   EXCO — Export & Trade Compliance
   Ocean film backdrop · white glass nav · violet glass accents
   ============================================================ */

/* ---------- Fonts (variable, self-hosted) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
:root {
  --bg: #0a0714;
  --ink: #ffffff;
  --lav: #b57cff;
  --violet: #7c3aed;
  --line: rgba(245, 243, 250, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Aptos is Microsoft's font and may not be redistributed/self-hosted, so it
     cannot be embedded. Visitors who have it (Microsoft 365 / recent Office on
     Windows or Mac) see Aptos; everyone else falls back to the self-hosted
     Inter, which is metrically and stylistically very close. */
  --font: 'Aptos', 'Aptos Display', 'Segoe UI Variable Text', 'Segoe UI',
    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  overflow-x: hidden;
}

::selection { background: #4c1d95; color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

a { color: #c9bfff; }
a:hover { color: #ffffff; }

/* Touch: react instantly — no 300ms double-tap-zoom delay, no grey tap flash */
a, button, select, .btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

img { max-width: 100%; }

/* Skip link — hidden until keyboard-focused (accessibility, no visual change) */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-160%);
  z-index: 200;
  padding: 11px 20px;
  border-radius: 999px;
  background: #14091f;
  border: 1px solid rgba(180, 140, 255, 0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus {
  transform: translateX(-50%) translateY(0);
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

h1, h2, h3, blockquote { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Ocean backdrop ---------- */
#bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: url('../frames/poster.webp') center / cover no-repeat var(--bg);
}
#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(1.05) contrast(1.03);
  will-change: transform;
  transform-origin: 50% 72%;
  /* cinematic reveal baseline: the camera starts framed on the water and
     GSAP eases the scale to 1 over the first stretch of scroll */
  transform: scale(1.32);
}
#sea-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  background: radial-gradient(ellipse at 50% 38%, rgba(4, 10, 22, 0.4) 0%, rgba(4, 10, 22, 1) 135%);
}
#grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxmaWx0ZXIgaWQ9J24nPjxmZVR1cmJ1bGVuY2UgdHlwZT0nZnJhY3RhbE5vaXNlJyBiYXNlRnJlcXVlbmN5PScwLjg1JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
}

/* ---------- Top fade behind the nav ---------- */
#topfade {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 92px;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 7, 18, 0.9) 0%, rgba(4, 7, 18, 0.55) 55%, rgba(4, 7, 18, 0) 100%);
}

/* ---------- Glass nav bar ---------- */
#site-header {
  position: fixed;
  top: 16px; left: 24px; right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.42) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(170%) brightness(1.12);
  backdrop-filter: blur(26px) saturate(170%) brightness(1.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    0 8px 32px rgba(4, 7, 18, 0.25);
  /* Give the bar its own, isolated compositing layer. Without this, hovering a
     child (or the scrubbing video behind it) makes the browser re-sample the
     backdrop-filter, which shows up as a white flicker across the glass. */
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #site-header { background: rgba(255, 255, 255, 0.92); }
}

/* Never nest a backdrop-filter inside the already-blurred bar: nested blurs are
   the classic cause of the glass flashing white on hover in Chrome and Safari.
   The bar supplies the glass; the button keeps its solid violet fill, so this is
   visually identical. Buttons elsewhere (hero, form) keep their own blur. */
#site-header .btn {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(42, 6, 104, 0.92);
}
#site-header .btn:hover { background: rgba(64, 15, 148, 0.96); }

/* Keep the hover lift, but on its own layer so it cannot dirty the bar's
   backdrop underneath it. */
#site-header .btn,
#site-header .lang-btn {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
#site-header .btn:hover { transform: translateZ(0) translateY(-2px); }
#site-header .btn:active { transform: translateZ(0); }
#site-header .lang-btn:hover { transform: translateZ(0) translateY(-1px); }

#site-header .brand {
  display: flex;
  align-items: center;
  /* invisible tap-area enlargement (zero visual change) */
  padding: 6px 8px;
  margin: -6px -8px;
}
#site-header .brand img { height: 44px; width: auto; display: block; }

.navlinks {
  display: flex;
  gap: 48px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.navlinks a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0a0608;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.3s ease;
  /* invisible tap-area enlargement for touch tablets (zero visual change) */
  padding: 22px 12px;
  margin: -22px -12px;
}
.navlinks a:hover { opacity: 1; color: #0a0608; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-mobile { display: none; align-items: center; gap: 6px; }

/* Language toggle — dark glass circle on the light bar */
.lang-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(12, 7, 24, 0.85);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.lang-btn:hover {
  background: rgba(42, 12, 84, 0.92);
  border-color: rgba(181, 124, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(109, 40, 217, 0.35);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(180, 140, 255, 0.45);
  border-radius: 999px;
  background: rgba(42, 6, 104, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 24px rgba(30, 8, 80, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(100deg, rgba(226, 204, 255, 0) 0%, rgba(226, 204, 255, 0.32) 50%, rgba(226, 204, 255, 0) 100%);
  transform: translateX(-130%) skewX(-16deg);
  animation: sheen 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0% { transform: translateX(-130%) skewX(-16deg); }
  55%, 100% { transform: translateX(340%) skewX(-16deg); }
}
.btn:hover {
  background: rgba(64, 15, 148, 0.9);
  border-color: rgba(210, 180, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 12px 32px rgba(80, 24, 190, 0.45);
  color: #fff;
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn-md { padding: 14px 30px; font-size: 15px; }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ---------- Mobile menu ---------- */
.hamburger {
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px;
  background: #0a0608;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
body.menu-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
body.menu-open #menu-overlay { opacity: 1; pointer-events: auto; }

#menu-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 98;
  width: 85%;
  max-width: 340px;
  background: rgba(10, 6, 16, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0s linear 0.6s;
  display: flex;
  flex-direction: column;
}
body.menu-open #menu-panel { transform: translateX(0); visibility: visible; transition: transform 0.6s var(--ease), visibility 0s; }

#menu-panel nav {
  display: flex;
  flex-direction: column;
  margin-top: 96px;
  padding: 0 32px;
  flex: 1;
}
#menu-panel nav a {
  font-size: 20px;
  color: #fff;
  padding: 14px 0;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateX(26px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
body.menu-open #menu-panel nav a { opacity: 1; transform: translateX(0); }
body.menu-open #menu-panel nav a:nth-child(1) { transition-delay: 150ms; }
body.menu-open #menu-panel nav a:nth-child(2) { transition-delay: 225ms; }
body.menu-open #menu-panel nav a:nth-child(3) { transition-delay: 300ms; }
body.menu-open #menu-panel nav a:nth-child(4) { transition-delay: 375ms; }

#menu-panel .menu-foot { padding: 0 32px 40px; }
#menu-panel .menu-foot .btn {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease;
}
body.menu-open #menu-panel .menu-foot .btn { opacity: 1; transform: translateY(0); transition-delay: 450ms; }

/* ---------- Layout / sections ---------- */
main { position: relative; z-index: 5; }

section { padding: 150px 32px; display: flex; justify-content: center; }

.kicker {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lav);
  font-weight: 800;
  margin-bottom: 18px;
}

h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 22px;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  position: relative;
  /* slightly more bottom than top padding lifts the copy above dead center */
  padding: 180px 24px 170px;
}
#hero-copy { text-align: center; max-width: 1040px; }
#hero .kicker {
  font-size: 13px;
  letter-spacing: 0.34em;
  font-weight: 800;
  margin-bottom: 28px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
#hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 74px);
  letter-spacing: -0.018em;
  line-height: 1.04;
  text-shadow: 0 2px 8px rgba(5, 3, 15, 0.75), 0 8px 50px rgba(5, 3, 15, 0.85);
}
#hero .sub {
  margin: 26px auto 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.5vw, 18.5px);
  line-height: 1.7;
  text-shadow: 0 2px 6px rgba(5, 3, 15, 0.75), 0 4px 28px rgba(5, 3, 15, 0.8);
}
#hero .cta { display: inline-block; margin-top: 42px; }

/* ---------- Intro reveal (pure CSS — deterministic on every device) ----------
   `backwards` fill hides elements only until their delay ends; the implicit
   `to` frame eases to each element's natural style, then fully releases it,
   so hovers and scroll-driven inline styles are never fought. */
@keyframes intro-drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes intro-fade { from { opacity: 0; } }

.js #site-header .brand img { animation: intro-drop 0.9s var(--ease) 0.15s backwards; }
.js .navlinks a:nth-child(1) { animation: intro-drop 0.8s var(--ease) 0.4s backwards; }
.js .navlinks a:nth-child(2) { animation: intro-drop 0.8s var(--ease) 0.48s backwards; }
.js .navlinks a:nth-child(3) { animation: intro-drop 0.8s var(--ease) 0.56s backwards; }
.js .nav-right > :nth-child(1), .js .nav-mobile > :nth-child(1) { animation: intro-drop 0.8s var(--ease) 0.64s backwards; }
.js .nav-right > :nth-child(2), .js .nav-mobile > :nth-child(2) { animation: intro-drop 0.8s var(--ease) 0.72s backwards; }
.js [data-intro="1"] { animation: intro-rise 0.9s var(--ease) 0.45s backwards; }
.js [data-intro="2"] { animation: intro-rise 1.1s var(--ease) 0.65s backwards; }
.js [data-intro="3"] { animation: intro-rise 0.95s var(--ease) 0.95s backwards; }
.js [data-intro="4"] { animation: intro-rise 0.85s var(--ease) 1.25s backwards; }
.js .cue-inner {
  animation: intro-fade 1.4s ease-in-out 1.7s backwards,
             cue-float 4.6s ease-in-out 3.1s infinite;
}
@keyframes cue-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

#scroll-cue {
  position: absolute;
  bottom: 34px; left: 0; right: 0;
  pointer-events: none;
}
#scroll-cue .cue-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
#scroll-cue .cue-label {
  font-size: 12px;
  letter-spacing: 0.56em;
  text-indent: 0.56em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
#scroll-cue .cue-line {
  position: relative;
  display: block;
  width: 1px; height: 64px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}
#scroll-cue .cue-line span {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 55%, rgba(255, 255, 255, 0) 100%);
  animation: cuedrop 2.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
@keyframes cuedrop {
  0% { transform: translateY(-24px); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateY(56px); opacity: 0; }
}

/* ---------- About ---------- */
#about .inner,
#practice .inner { max-width: 760px; text-align: center; }
#about p,
#practice p { margin: 18px 0 0; font-size: 16.5px; line-height: 1.75; font-weight: 300; }

/* ---------- Services ---------- */
#services .inner { max-width: 1180px; width: 100%; text-align: center; }
#services .intro {
  max-width: 64ch;
  margin: 0 auto 42px;
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 300;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* equal rows: all six cards share the tallest card's height at every
     breakpoint (on mobile's 2-column layout the three rows would otherwise
     each size to their own content) */
  grid-auto-rows: 1fr;
  gap: 18px;
  text-align: left;
}
.card {
  border-radius: 14px;
  padding: 28px 26px;
  background: linear-gradient(180deg, rgba(26, 17, 50, 0.55) 0%, rgba(10, 7, 20, 0.6) 100%);
  border: 1px solid rgba(180, 140, 255, 0.2);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px rgba(4, 2, 14, 0.35);
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 140, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 40px rgba(30, 10, 80, 0.45);
}
.card h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.card p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; font-weight: 300; }

/* ---------- How we work ---------- */
#how .inner { max-width: 880px; width: 100%; text-align: center; }
#how h2 { margin-bottom: 46px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.how-step { padding: 30px 10px 0; border-top: 1px solid rgba(245, 243, 250, 0.16); }
.how-step .num { font-family: var(--font); font-size: 18px; font-weight: 700; color: var(--violet); }
.how-step h3 { margin: 12px 0 9px; font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.how-step p { margin: 0; font-size: 13.5px; line-height: 1.6; font-weight: 300; }

/* ---------- Trust / statement band ---------- */
#trust .inner { max-width: 940px; width: 100%; text-align: center; }
#trust .statement {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(23px, 3.2vw, 36px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 auto;
}
/* hairline flourish under the statement */
#trust .statement::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin: 26px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(181, 124, 255, 0) 0%, var(--lav) 50%, rgba(181, 124, 255, 0) 100%);
}
/* Two editorial columns, split by a hairline. Deliberately NOT the card motif
   used by the services grid — this band sits close to it, so repeating the
   glass cards read as duplication. Type and rule only. */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: start;
  gap: 0;
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.pillars .p-rule {
  align-self: stretch;
  background: linear-gradient(180deg, rgba(245, 243, 250, 0) 0%, rgba(245, 243, 250, 0.18) 22%, rgba(245, 243, 250, 0.18) 78%, rgba(245, 243, 250, 0) 100%);
}
.pillar { padding: 0 46px; }
.pillar .p-num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lav);
}
.pillar h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.012em;
  line-height: 1.25;
}
.pillar p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Contact ---------- */
#contact { padding-bottom: 170px; }
#contact .inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 60px;
  max-width: 1100px;
  width: 100%;
}
#contact h2 { margin: 0; }
#contact .c-sub { margin: 16px 0 0; font-size: 15px; line-height: 1.7; font-weight: 300; max-width: 40ch; }

.c-info { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.c-info > div { border-top: 1px solid rgba(245, 243, 250, 0.12); padding-top: 14px; }
.c-info .lbl {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.c-info .val { font-size: 14.5px; margin-top: 5px; }
.c-info a.val {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  /* invisible tap-area enlargement (≥44px touch target, zero visual change) */
  padding: 13px 0;
  margin: -13px 0;
}
.c-info a.val:hover { color: var(--lav); }

.li-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-top: 8px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(60, 30, 120, 0.42) 0%, rgba(20, 12, 40, 0.5) 100%);
  border: 1px solid rgba(180, 140, 255, 0.28);
  color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 20px rgba(4, 2, 14, 0.4);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.li-btn:hover {
  border-color: rgba(180, 140, 255, 0.6);
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.4) 0%, rgba(40, 20, 80, 0.55) 100%);
  color: #e6d4ff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 28px rgba(109, 40, 217, 0.35);
}

/* ---------- Form ---------- */
#contact-form { display: flex; flex-direction: column; gap: 16px; position: relative; }
.f-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.f-field { display: flex; flex-direction: column; }
.f-field label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.f-field input,
.f-field select,
.f-field textarea {
  background: rgba(18, 12, 36, 0.4);
  border: 1px solid rgba(245, 243, 250, 0.16);
  border-radius: 8px;
  padding: 13px 15px;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
  border-color: var(--violet);
  background: rgba(109, 40, 217, 0.1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}
input::placeholder, textarea::placeholder { color: #7d7694; }
.f-field input.invalid,
.f-field textarea.invalid { border-color: rgba(255, 120, 120, 0.65); }
.f-field textarea { resize: vertical; min-height: 110px; }
.f-field .err {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #ff9d9d;
  margin-top: 6px;
  min-height: 15px;
}
.phone-row { display: flex; gap: 8px; }
.phone-row select {
  width: 118px;
  flex: none;
  cursor: pointer;
  padding: 13px 8px;
  font-size: 13.5px;
}
.phone-row select option { background: #171028; color: #fff; }
.phone-row input { width: 100%; min-width: 0; }

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

#form-actions { margin-top: 10px; align-self: flex-start; }
.form-note { margin: 4px 0 0; font-size: 11.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }

.form-status {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(109, 40, 217, 0.12);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 6px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.form-status.show { display: flex; }
.form-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; }
.form-status.error { border-color: rgba(255, 120, 120, 0.4); background: rgba(180, 40, 60, 0.14); }
.form-status.error .dot { background: #ff8a80; }
.form-status a { color: #d8c5ff; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 5;
  padding: 52px 32px 44px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 17, 50, 0.55) 0%, rgba(10, 7, 20, 0.6) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
footer .inner { max-width: 1180px; margin: 0 auto; }
footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
footer .wordmark { font-family: var(--font); font-size: 16px; letter-spacing: 0.01em; }
footer nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 13px; }
footer nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
  /* invisible tap-area enlargement (≥44px touch target, zero visual change) */
  padding: 14px 6px;
  margin: -14px -6px;
}
footer nav a:hover { color: #fff; }
footer .legal { font-size: 11.5px; color: rgba(255, 255, 255, 0.65); margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .navlinks, .nav-right { display: none; }
  .nav-mobile { display: flex; }
}
@media (max-width: 640px) {
  section { padding: 110px 22px; }
  #hero { padding: 110px 20px 170px; }
  #contact .inner { gap: 44px; }
  #site-header { top: 12px; left: 12px; right: 12px; padding: 8px 8px 8px 18px; }
  #site-header .brand img { height: 38px; }
}
@media (max-width: 620px) {
  /* keep two cards side by side on phones — compact styling so they fit */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 18px 16px; border-radius: 12px; }
  .card h3 { font-size: 16.5px; }
  .card p { font-size: 12px; line-height: 1.55; }
  /* stack the two columns; the vertical hairline becomes a horizontal one */
  .pillars {
    grid-template-columns: 1fr;
    margin-top: 36px;
    padding-top: 32px;
    gap: 26px;
  }
  .pillars .p-rule { height: 1px; align-self: auto; background: var(--line); }
  .pillar { padding: 0; }
  .pillar h3 { font-size: 18px; }
  .pillar p { font-size: 14px; }
}
@media (max-height: 680px) {
  #hero h1 { font-size: clamp(30px, 4.4vw, 48px); }
  #hero { padding-top: 150px; padding-bottom: 120px; }
  #scroll-cue .cue-line { height: 36px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::before, #scroll-cue .cue-line span { animation: none; }
  .js #site-header .brand img, .js .navlinks a,
  .js .nav-right > *, .js .nav-mobile > *,
  .js [data-intro], .js .cue-inner { animation: none !important; }
  .card, .btn, #menu-panel, #menu-panel nav a { transition-duration: 0.01s; }
}

