/* ==========================================================
   SONDEX Holding Group · design tokens
   Direction: neo-tech studio. A 3D SONDEX mark is the "product";
   the whole page re-colors itself as you scroll (scene tokens).
   ========================================================== */
:root {
  /* live scene colors (tweened by main.js) */
  --bg: #04060d;
  --fg: #eef2ff;
  --muted: #8e98b8;
  --accent: #3d7bff;
  --line: color-mix(in srgb, var(--fg) 16%, transparent);
  --soft: color-mix(in srgb, var(--fg) 6%, transparent);

  /* fixed brand colors */
  --brand: #0b3fa8;
  --brand-bright: #2a63ff;
  --danger: #ff5a5a;

  /* type */
  --f-giant: "Big Shoulders Display", Impact, sans-serif;
  --f-brand: "Cinzel", "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", Consolas, monospace;
  --t-xs: .78rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  --t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  --t-2xl: clamp(2.8rem, 1.6rem + 5vw, 6.5rem);
  --t-hero: clamp(3.6rem, 1.4rem + 10vw, 11.5rem);
  --t-word: clamp(6rem, 2rem + 22vw, 26rem);

  /* space */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 76px;
  --max: 1360px;

  /* shape + motion */
  --r-1: 4px;
  --r-2: 14px;
  --r-pill: 999px;
  --d-fast: 160ms;
  --d-med: 340ms;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
/* older Safari (< 16.2) has no color-mix(): plain translucent fallbacks */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root { --line: rgba(128, 140, 170, .3); --soft: rgba(128, 140, 170, .12); }
  .card, .form, .form-success, .mv-card { background: rgba(128, 140, 170, .1); }
  .field input, .field select, .field textarea { background: rgba(128, 140, 170, .08); }
}
@media (max-height: 560px) { :root { --header-h: 60px; } }
html:not(.motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-md)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body::after { /* film grain over everything */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--grain); opacity: .06;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: .9; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-1); }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.layer-top { position: relative; z-index: 3; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 200; background: var(--fg); color: var(--bg); padding: var(--s-3) var(--s-4); border-radius: var(--r-1); }
.skip:focus { top: var(--s-4); }
.accent { color: var(--accent); }
.kicker {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 var(--t-xs)/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.kicker::before { content: ""; width: 22px; height: 6px; background: var(--accent); transform: skewX(-36deg); }

/* split text helpers (built by main.js) */
.split .w { display: inline-block; white-space: nowrap; }
.split .c { display: inline-block; }

/* ---------- 3D canvas + cursor ---------- */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; } /* all text sits in front of the 3D mark */
.no-gl .gl { display: none; }
.mark-fallback { display: none; }
.no-gl .mark-fallback {
  display: block; position: absolute; right: 4vw; top: 22%; width: min(44vw, 560px); height: auto; aspect-ratio: 440/190;
  filter: drop-shadow(0 30px 60px rgba(42, 99, 255, .45)); z-index: 1;
}

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 120; display: none; opacity: 0; }
@media (pointer: fine) { .cursor-on .cursor { display: block; } .cursor-on body, .cursor-on a, .cursor-on button { cursor: none; } .cursor-on input, .cursor-on textarea, .cursor-on select { cursor: text; } }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid var(--fg); display: grid; place-items: center;
  transition: width var(--d-med) var(--ease), height var(--d-med) var(--ease), background var(--d-med), border-color var(--d-med);
  mix-blend-mode: difference; border-color: #fff;
}
.cursor-label { font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #000; opacity: 0; transition: opacity var(--d-fast); }
.cursor.is-hover .cursor-ring { width: 92px; height: 92px; background: #fff; }
.cursor.is-hover .cursor-label { opacity: 1; }
.cursor.is-down .cursor-ring { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; gap: .6em; overflow: hidden;
  padding: 1.05em 1.6em; border-radius: var(--r-pill);
  background: var(--accent); color: var(--bg);
  font: 700 var(--t-sm)/1 var(--f-body); text-decoration: none;
  border: 1.5px solid var(--accent); cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: transform var(--d-med) var(--ease), color var(--d-med), border-color var(--d-med);
  isolation: isolate;
}
.btn::before { /* fill wipe on hover */
  content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--fg);
  transform: translateY(101%); transition: transform var(--d-med) var(--ease); border-radius: inherit;
}
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--fg); }
.btn span { transition: transform var(--d-med) var(--ease); }
.btn:hover span { transform: translateX(5px) rotate(-45deg); }
.btn:active { scale: .96; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { color: var(--bg); }
.btn-small { padding: .8em 1.2em; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; transition: transform var(--d-med) var(--ease), background var(--d-med); }
.site-header.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.site-header.is-scrolled { background: var(--bg); background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 50px; height: 22px; }
.brand-word { font: 700 1.35rem/1 var(--f-brand); letter-spacing: .05em; }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 600; font-size: var(--t-sm); padding-block: .4em; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0) skewX(-36deg); transform-origin: left; transition: transform var(--d-med) var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1) skewX(-36deg); }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: grid; place-items: center; width: 46px; height: 46px; background: var(--soft);
    border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer; color: var(--fg);
  }
  .menu-btn-lines, .menu-btn-lines::before, .menu-btn-lines::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
    transition: transform var(--d-med) var(--ease), background var(--d-fast);
  }
  .menu-btn-lines::before, .menu-btn-lines::after { content: ""; position: absolute; left: 0; }
  .menu-btn-lines::before { top: -6px; } .menu-btn-lines::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn-lines { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn-lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; max-height: calc(100svh - var(--header-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-2) var(--gutter) var(--s-6);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s linear .5s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { font: 900 2.6rem/1 var(--f-giant); text-transform: uppercase; padding: .35em 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: var(--s-5); justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px 0 var(--s-6); overflow: hidden; }
.hero-grid-floor { /* perspective grid moving toward the viewer */
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--accent) 35%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 35%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  animation: floor 3.2s linear infinite;
  opacity: .55;
}
@keyframes floor { to { background-position: 0 64px; } }
.hero-glow {
  position: absolute; width: 60vmax; height: 60vmax; left: var(--gx, 70%); top: var(--gy, 40%); translate: -50% -50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 62%);
  filter: blur(20px); pointer-events: none; transition: left .8s var(--ease), top .8s var(--ease);
}
.eyebrow { display: inline-flex; align-items: center; gap: .7em; font: 600 var(--t-xs)/1.5 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: var(--s-5); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #39ff88; box-shadow: 0 0 0 0 rgba(57,255,136,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(57,255,136,0); } 100% { box-shadow: 0 0 0 0 rgba(57,255,136,0); } }
.hero-title { font: 900 min(var(--t-hero), 20vh)/.82 var(--f-giant); text-transform: uppercase; letter-spacing: -.01em; }
.hero-title .line { display: block; overflow: hidden; padding-top: .16em; margin-top: -.12em; }
.motion .hero-title:not(.is-split) { visibility: hidden; }
.hero-title .accent { color: var(--accent); }
.big-title .w { overflow: hidden; padding: .12em 0 .04em; margin-top: -.12em; vertical-align: top; }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-top: var(--s-6); }
.hero-lead { max-width: 30rem; font-size: var(--t-lg); color: var(--muted); line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-meta { display: flex; justify-content: space-between; margin-top: var(--s-7); font: 500 var(--t-xs)/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.scroll-hint { display: inline-flex; align-items: center; gap: .6em; }
.scroll-hint i { width: 1px; height: 28px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: drip 1.6s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ticker */
.ticker { position: relative; z-index: 3; overflow: hidden; background: var(--accent); color: var(--bg); transform: rotate(-2deg) scale(1.04); margin-block: var(--s-6); }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.no-motion-ticker .ticker-track, html:not(.motion) .ticker-track { animation: ticker 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 1.6rem; padding: .9rem 0 .9rem 1.6rem; font: 900 clamp(1.4rem, 1rem + 1.6vw, 2.4rem)/1 var(--f-giant); text-transform: uppercase; white-space: nowrap; }
.ticker-track span::after { content: "✦"; font-size: .7em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- showcase ---------- */
.showcase { position: relative; }
/* three rows that never overlap: counter / giant word (fitted by JS to the space left) / panel */
.show-stage {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--header-h) + .5rem) 0 1.25rem;
}
.show-top { display: flex; justify-content: space-between; align-items: flex-start; }
.show-count { font: 900 clamp(2.2rem, 1.6rem + 3vw, 4.5rem)/1 var(--f-giant); }
.show-count span { font: 500 var(--t-sm)/1 var(--f-mono); color: var(--muted); margin-left: .3em; }
.show-word {
  position: relative; z-index: 1; min-height: 0; min-width: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  font: 900 120px/.8 var(--f-giant); text-transform: uppercase; white-space: nowrap;
  letter-spacing: -.01em; pointer-events: none;
}
.show-word-inner { flex: none; display: inline-block; overflow: hidden; padding: .04em .05em 0; }
.show-outline {
  position: absolute; right: var(--gutter); bottom: -5vh; z-index: 1;
  font: 900 clamp(10rem, 6rem + 18vw, 24rem)/.8 var(--f-giant);
  color: transparent; -webkit-text-stroke: 2px var(--fg); opacity: .5; pointer-events: none;
}
.show-panels { display: grid; align-items: end; }
.panel { grid-area: 1 / 1; width: min(440px, 100%); }
/* inactive panels are only visually hidden: screen readers still get all five services */
.motion .panel { opacity: 0; pointer-events: none; }
.motion .panel.is-active { opacity: 1; pointer-events: auto; }
html:not(.motion) .show-stage { height: auto; }
html:not(.motion) .show-panels { display: block; }
html:not(.motion) .panel { width: auto; max-width: 520px; margin-bottom: var(--s-7); }
html:not(.motion) .show-word, html:not(.motion) .show-outline, html:not(.motion) .show-count { display: none; }
.panel h3 { font: 900 var(--t-xl)/.95 var(--f-giant); text-transform: uppercase; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem); margin-bottom: var(--s-4); }
.panel p { color: var(--fg); opacity: .85; margin-bottom: var(--s-5); }
.specs { margin: 0; border-top: 1.5px solid var(--fg); }
.specs div { display: flex; justify-content: space-between; gap: var(--s-4); padding: .6rem 0; border-bottom: 1px solid var(--line); font: 500 var(--t-xs)/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.specs dt { color: var(--fg); opacity: .7; }
.specs dd { margin: 0; text-align: right; font-weight: 600; }
.show-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line); z-index: 3; }
.show-progress i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.glyphs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.glyphs span { position: absolute; font: 600 clamp(.9rem, .7rem + .6vw, 1.4rem)/1 var(--f-mono); color: var(--fg); opacity: .35; }

/* keep the pinned panel clear of the floating contact buttons on small screens */
@media (max-width: 820px), (max-height: 560px) {
  .show-stage { padding-bottom: 76px; }
}
@media (max-width: 820px) {
  .hero { padding-top: max(290px, 34svh); }
  .panel p { font-size: var(--t-sm); margin-bottom: var(--s-4); }
  .show-outline { display: none; }
}
/* short screens (landscape phones, small laptops): compact panel */
@media (max-height: 760px) {
  .panel h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: var(--s-3); }
  .panel p { font-size: var(--t-sm); margin-bottom: var(--s-3); }
  .specs div { padding: .4rem 0; }
  .show-outline { font-size: clamp(8rem, 4rem + 12vw, 16rem); }
}
@media (max-height: 560px) {
  .panel p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .specs { display: none; }
  .show-outline { display: none; }
  .show-count { font-size: 2rem; }
}

/* ---------- process (horizontal) ---------- */
.process { position: relative; }
.process-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(1rem, 4vh, 3rem); padding-block: calc(var(--header-h) + 1rem) 1.5rem; overflow: hidden; }
.big-title { font: 900 min(var(--t-2xl), 13vh)/.86 var(--f-giant); text-transform: uppercase; margin-top: var(--s-4); }
.contact .big-title, .mv .big-title { font-size: var(--t-2xl); }
.process-track { display: flex; gap: var(--s-5); padding-inline: var(--gutter); width: max-content; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; width: min(80vw, 540px); min-height: 440px; padding: var(--s-6);
  display: flex; flex-direction: column; border-radius: var(--r-2);
  background: color-mix(in srgb, var(--fg) 5%, var(--bg)); border: 1px solid var(--line);
  overflow: hidden; transform-style: preserve-3d; transition: border-color var(--d-med);
}
.card::before { /* spotlight that follows the mouse */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--d-med);
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--accent); }
.card-num { font: 900 5rem/1 var(--f-giant); color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.card h3 { font: 900 2.6rem/1 var(--f-giant); text-transform: uppercase; margin: auto 0 var(--s-3); }
.card p { color: var(--muted); }
.card-code { margin-top: var(--s-5); font: 500 var(--t-xs)/1 var(--f-mono); color: var(--accent); }
@media (max-width: 820px) {
  .process-track { flex-direction: column; width: auto; }
  .card { width: 100%; min-height: 300px; }
}
@media (min-width: 821px) and (max-height: 760px) {
  .card { min-height: 0; height: min(440px, calc(100svh - var(--header-h) - 13vh - 6rem)); padding: var(--s-5); }
  .card-num { font-size: clamp(2.5rem, 8vh, 5rem); }
  .card h3 { font-size: clamp(1.5rem, 5vh, 2.6rem); }
  .card p { font-size: var(--t-sm); }
}
@media (min-width: 821px) and (max-height: 480px) {
  .card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-code { display: none; }
}

/* ---------- about ---------- */
.about { position: relative; z-index: 3; padding-block: clamp(6rem, 14vw, 11rem); }
.statement { font: 700 clamp(1.8rem, 1.1rem + 2.8vw, 4rem)/1.12 var(--f-body); letter-spacing: -.02em; margin: var(--s-5) 0 var(--s-8); max-width: 1100px; }
.statement .w { display: inline-block; }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }
.facts { margin: 0; border-top: 1.5px solid var(--fg); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 var(--t-xs)/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.stats { display: grid; gap: var(--s-5); }
.stats li { display: flex; align-items: baseline; gap: var(--s-4); border-bottom: 1px solid var(--line); padding-bottom: var(--s-4); }
.stats b { font: 900 clamp(3.5rem, 2.5rem + 3vw, 6rem)/.9 var(--f-giant); color: var(--accent); min-width: 2.2ch; }
.stats span { color: var(--muted); font-weight: 600; }
@media (max-width: 820px) {
  .about-row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- mission / vision ---------- */
.mv { position: relative; padding-block: clamp(5rem, 12vw, 9rem); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-6); }
.mv-card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; min-height: 420px; padding: clamp(1.5rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-4);
  border: 1.5px solid var(--line); border-radius: var(--r-2);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  transition: border-color var(--d-med);
}
.mv-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--d-med);
  background: radial-gradient(480px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%);
}
.mv-card:hover::before { opacity: 1; }
.mv-card:hover { border-color: var(--accent); }
.mv-label { /* giant outlined word in the background of each card */
  position: absolute; top: -.08em; left: -.03em;
  font: 900 clamp(6rem, 3rem + 9vw, 12rem)/1 var(--f-giant); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 45%, transparent);
  transition: transform .8s var(--ease), -webkit-text-stroke-color var(--d-med);
}
.mv-card:hover .mv-label { transform: translateX(3%); -webkit-text-stroke-color: var(--accent); }
.mv-card h2 { position: relative; font: 900 clamp(2.4rem, 1.8rem + 2vw, 3.6rem)/.9 var(--f-giant); text-transform: uppercase; }
.mv-card p { position: relative; font-size: var(--t-lg); line-height: 1.5; max-width: 34rem; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-top: var(--s-7); border-top: 1.5px solid var(--fg); padding-top: var(--s-5); }
.values li { display: grid; gap: var(--s-2); }
.values b { font: 900 1.8rem/1 var(--f-giant); text-transform: uppercase; }
.values span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 820px) {
  .mv-grid { grid-template-columns: 1fr; }
  .mv-card { min-height: 340px; }
  .values { grid-template-columns: 1fr 1fr; }
}

/* ---------- contact CTA band ---------- */
.cta-band {
  display: block; overflow: hidden; text-decoration: none; margin-bottom: clamp(3rem, 8vw, 6rem);
  background: var(--accent); color: var(--bg); border-block: 1.5px solid var(--accent);
  transition: background var(--d-med), color var(--d-med);
}
.cta-band:hover { background: var(--fg); color: var(--bg); }
.cta-track { display: flex; width: max-content; animation: ticker 22s linear infinite; }
.cta-band:hover .cta-track { animation-duration: 8s; }
.cta-track span {
  display: inline-flex; align-items: center; gap: .5em; padding: .25em .5em .15em 0;
  font: 900 clamp(3.2rem, 1.5rem + 8vw, 10rem)/1 var(--f-giant); text-transform: uppercase; white-space: nowrap;
}
.cta-track span::after { content: "→"; font-size: .7em; transition: transform var(--d-med) var(--ease); }
.cta-band:hover .cta-track span::after { transform: rotate(-45deg); }

/* ---------- floating contact ---------- */
.fab {
  position: fixed; right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); z-index: 80;
  display: flex; align-items: center; gap: var(--s-2);
  transform: translateY(160%); visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s linear .6s;
}
.fab.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.menu-open .fab { visibility: hidden; transform: translateY(160%); }
.fab-main {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; gap: .6em; padding: 1em 1.4em; border-radius: var(--r-pill);
  background: var(--fg); color: var(--bg); text-decoration: none; font: 700 var(--t-sm)/1 var(--f-body);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); transform: translate(var(--bx), var(--by));
  transition: background var(--d-med), color var(--d-med);
}
.fab-main:hover { background: var(--accent); color: var(--bg); }
.fab-dot { width: 8px; height: 8px; border-radius: 50%; background: #39ff88; animation: pulse 2s infinite; }
.fab-wa {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  transition: transform var(--d-med) var(--ease);
}
.fab-wa:hover { transform: scale(1.1) rotate(-8deg); }
.fab-wa svg { width: 26px; height: 26px; }
html:not(.motion) .fab { transform: none; visibility: visible; }

/* ---------- contact ---------- */
.contact { position: relative; z-index: 3; padding-block: clamp(5rem, 12vw, 9rem); }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s-8) var(--s-7); }
.contact-lead { color: var(--muted); margin: var(--s-5) 0; max-width: 30rem; }
.channels { border-top: 1px solid var(--line); }
.channels li { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.channels span { font: 600 var(--t-xs)/1.8 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.channels a { font-weight: 700; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size var(--d-med) var(--ease); overflow-wrap: anywhere; }
.channels a:hover { background-size: 100% 2px; }
.channels address { font-style: normal; }

.form {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-self: start;
  padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--r-2);
  background: color-mix(in srgb, var(--fg) 5%, var(--bg)); border: 1px solid var(--line);
}
.field { display: grid; gap: .45rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font: 600 var(--t-xs)/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.opt { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8em .9em; font: inherit; color: var(--fg);
  background: color-mix(in srgb, var(--fg) 4%, var(--bg)); border: 1.5px solid var(--line); border-radius: var(--r-1);
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.field select option { background: var(--bg); color: var(--fg); }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.err { display: none; color: var(--danger); font-size: var(--t-xs); font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-note { font-size: var(--t-xs); color: var(--muted); }
.form-success { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s-4); text-align: center; padding: var(--s-6); border-radius: inherit; background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
.form-success[hidden] { display: none; }
.form-success svg { width: 130px; height: 56px; }
.form-success a { color: var(--accent); font-weight: 700; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .channels li { grid-template-columns: 1fr; gap: .15rem; } }

/* footer */
.site-footer { position: relative; z-index: 3; overflow: hidden; padding-bottom: var(--s-6); border-top: 1px solid var(--line); }
.footer-giant { font: 900 clamp(6rem, 1rem + 26vw, 28rem)/.8 var(--f-giant); text-align: center; letter-spacing: -.01em; margin: var(--s-6) 0 var(--s-5);
  background: linear-gradient(180deg, var(--fg), transparent 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--t-sm); color: var(--muted); }

/* ---------- initial hidden states (only with JS + motion) ---------- */
.motion [data-hero-in] { opacity: 0; }
.motion .hero-title .c { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
