/* =========================================================
   Fixed Maldives — main stylesheet
   Brand: palm + circuit mark, maroon/crimson (from the 2026 proposal docs)
   ========================================================= */

:root {
  --maroon-950: #1c0507;
  --maroon-900: #2a080b;
  --maroon-800: #490f13;
  --maroon-700: #63282c;
  --maroon-600: #a84646;
  --crimson: #c11a23;
  --crimson-hover: #a8141c;
  --crimson-soft: #eb9ca1;
  --rose-50: #fdefef;
  --rose-100: #f8e4e5;
  --rose-200: #e8d3d6;
  --ink: #521f21;
  --text: #5e595b;
  --paper: #ffffff;
  --paper-warm: #fbf7f6;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 76px;
}

/* ---------- Fonts (self-hosted Lato, latin subset) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400-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; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700-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; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-900-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 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; font-weight: 900; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--crimson); color: #fff; }

:focus-visible { outline: 3px solid var(--crimson-soft); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--crimson); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--crimson), #ff5a63);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 18px;
}
.eyebrow-light { color: var(--crimson-soft); }
.section-title { font-size: clamp(34px, 4.6vw, 58px); }
.section-lead { font-size: 19px; margin-top: 20px; max-width: 34ch; }

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 16px; line-height: 1;
  cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.35s;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { --bg: var(--crimson); --fg: #fff; box-shadow: 0 10px 30px -12px rgba(193, 26, 35, 0.7); }
.btn-primary:hover { --bg: var(--crimson-hover); box-shadow: 0 16px 36px -12px rgba(193, 26, 35, 0.8); }
.btn-ghost { --fg: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-block { width: 100%; }

.i-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease-out); }
.btn:hover .i-arrow, .link-arrow:hover .i-arrow { transform: translateX(4px); }
.i-wa { width: 20px; height: 20px; fill: currentColor; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-weight: 700; color: var(--crimson);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 4px; transition: background-size 0.4s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: #fff; transition: background-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-out), height 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(42, 8, 11, 0.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 52px; height: auto; transition: transform 0.5s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 900; letter-spacing: 0.08em; font-size: 16px; }
.brand-sub { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 3px; }
.tone-circuit { fill: var(--crimson); }
.tone-fronds { fill: var(--crimson); }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px; font-weight: 700; font-size: 15px; color: var(--on-dark-muted);
  transition: color 0.25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--crimson); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent; cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 100% 0%, var(--maroon-700), var(--maroon-900) 60%);
  color: #fff; clip-path: circle(0% at calc(100% - 40px) 38px); visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0.7s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path 0.8s var(--ease-out); }
.mobile-menu ol { display: grid; gap: 6px; }
.mobile-menu li, .mobile-menu-foot { opacity: 0; transform: translateY(24px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.mobile-menu.is-open li, .mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i) * 0.06s); }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(36px, 10vw, 56px); font-weight: 900; letter-spacing: -0.02em; padding-block: 4px; }
.mobile-menu nav a span { font-size: 14px; color: var(--crimson-soft); letter-spacing: 0.1em; }
.mobile-menu-foot { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  min-height: min(100svh, 940px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 110px;
  background: radial-gradient(90% 70% at 85% 30%, var(--maroon-700) 0%, var(--maroon-800) 40%, var(--maroon-900) 100%);
}
.hero::before { /* top crimson rule, echoing the proposal cover */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--crimson); z-index: 2;
}
.hero-glow {
  position: absolute; width: 60vw; aspect-ratio: 1; right: -12vw; top: 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 26, 35, 0.45), transparent 62%);
  filter: blur(20px); animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-6vw, 6vh) scale(1.12); opacity: 0.75; } }

.hero-arcs { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; z-index: -1; }
.hero-arcs circle, .quote-arcs circle, .stats-arcs path {
  fill: none; stroke: var(--maroon-600); stroke-width: 1.2; opacity: 0.55;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { color: #fff; font-size: clamp(46px, 7vw, 92px); line-height: 1; letter-spacing: -0.035em; margin-bottom: 26px; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .w > span { display: inline-block; }
.hero-title .accent { color: transparent; background: linear-gradient(100deg, #ff6b73 0%, var(--crimson-soft) 40%, #fff0f1 50%, var(--crimson-soft) 60%, #ff6b73 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; }
.is-loaded .hero-title .accent { animation: shimmer 7s ease-in-out 2.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 45%, 100% { background-position: -150% 0; } }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--on-dark-muted); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font-size: 14px; font-weight: 700; color: var(--on-dark-muted); }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 4px rgba(193, 26, 35, 0.25); }

.hero-stage { position: relative; aspect-ratio: 1 / 1; max-width: 600px; justify-self: end; width: 100%; }
.hero-mark {
  position: absolute; z-index: 2; left: 50%; top: 46%; width: 84%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35)); overflow: visible; pointer-events: none;
}
.hero-mark .mk-circuit { fill: var(--crimson); }
.hero-mark .mk-fronds { fill: var(--crimson); transform-box: view-box; transform-origin: 330px 200px; }
.hero-mark .mk-pulse { transform-box: view-box; transform: translateY(470px); }

.hero-photo {
  position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--maroon-700);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  translate: var(--px, 0) var(--py, 0); transition: translate 0.9s var(--ease-out);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #fff;
  background: rgba(28, 5, 7, 0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hp-1 { width: 27%; aspect-ratio: 3 / 4; left: -9%; top: -6%; rotate: -6deg; }
.hp-2 { width: 26%; aspect-ratio: 3 / 4; right: -9%; top: 42%; rotate: 5deg; }
.hp-3 { width: 34%; aspect-ratio: 4 / 3; left: -3%; bottom: -5%; rotate: 3deg; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Hero intro sequence (only when JS is on; content is visible without it) */
.js .hero-in { opacity: 0; transform: translateY(18px); }
.js .hero-title .w > span { transform: translateY(105%); }
.js .hero-arcs circle { stroke-dashoffset: 1; }
.js .hero-mark .mk-circuit { clip-path: inset(100% 0 0 0); }
.js .hero-mark .mk-fronds { opacity: 0; transform: scale(0.15) rotate(-10deg); }
.js .hero-photo { opacity: 0; scale: 0.85; }

.is-loaded .hero-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.is-loaded .hero-title .w > span { transform: none; transition: transform 1.1s var(--ease-out) calc(0.25s + var(--i) * 0.08s); }
.is-loaded .hero-arcs circle { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease-out) var(--d, 0s); }
.is-loaded .hero-mark .mk-circuit { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--ease-out) 0.35s; }
.is-loaded .hero-mark .mk-fronds { opacity: 1; transform: none; transition: opacity 0.6s 1.05s, transform 1.3s var(--ease-spring) 1.05s; }
.is-loaded .hero-mark .mk-pulse { animation: pulse 3.4s var(--ease-out) 2.2s infinite; }
.is-loaded .hero-photo { opacity: 1; scale: 1; transition: opacity 0.8s var(--ease-out), scale 1.1s var(--ease-spring), translate 0.9s var(--ease-out); }
.is-loaded .hp-1 { transition-delay: 1.3s, 1.3s, 0s; }
.is-loaded .hp-2 { transition-delay: 1.45s, 1.45s, 0s; }
.is-loaded .hp-3 { transition-delay: 1.6s, 1.6s, 0s; }
.is-loaded .hero-photo img { animation: float 7s ease-in-out infinite alternate; }
.is-loaded .hp-2 img { animation-delay: -2.5s; }
.is-loaded .hp-3 img { animation-delay: -4.5s; }

@keyframes pulse { 0% { transform: translateY(470px); } 70%, 100% { transform: translateY(-150px); } }
@keyframes float { from { transform: scale(1.04) translateY(-6px); } to { transform: scale(1.1) translateY(6px); } }

/* ---------- Trust marquee ---------- */
.trust {
  display: flex; align-items: center; gap: 28px; padding: 22px 0 22px var(--gutter);
  background: var(--maroon-950); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-label { flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson-soft); }
.marquee {
  display: flex; overflow: hidden; flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 56px; padding-right: 56px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; gap: 56px; white-space: nowrap; font-size: 19px; font-weight: 900; letter-spacing: 0.01em; color: #fff; }
.marquee-track li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); margin-right: -28px; translate: -28px 0; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.services-intro { position: sticky; top: calc(var(--header-h) + 40px); }

.service-list { display: grid; gap: 18px; counter-reset: s; }
.service {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px;
  padding: 34px 34px 34px 30px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--paper-warm); border: 1px solid var(--rose-200);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
}
.service::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(193, 26, 35, 0.1), transparent 60%);
}
.service::after { /* crimson rail, as in the proposal cards */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--crimson);
  transform: scaleY(0.25); transform-origin: top; transition: transform 0.6s var(--ease-out);
}
.service:hover { transform: translateY(-4px); border-color: var(--crimson-soft); box-shadow: 0 24px 50px -28px rgba(82, 31, 33, 0.45); }
.service:hover::before { opacity: 1; }
.service:hover::after { transform: scaleY(1); }
.service-num { font-size: 15px; font-weight: 900; color: var(--crimson); letter-spacing: 0.06em; padding-top: 6px; }
.service h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.service-body > p { max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--rose-200); transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.service:hover .chips li { border-color: var(--crimson-soft); }
.service-link { margin-top: 18px; font-size: 15px; }
.service-trace { position: absolute; right: 22px; top: 26px; width: 96px; opacity: 0.9; }
.service-trace path { fill: none; stroke: var(--crimson); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s var(--ease-out); }
.service-trace circle { fill: var(--crimson); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 0.4s var(--ease-spring) 0.5s; }
.service:hover .service-trace path, .service.is-in .service-trace path { stroke-dashoffset: 0; }
.service:hover .service-trace circle, .service.is-in .service-trace circle { transform: scale(1); }

/* ---------- Stats ---------- */
.stats {
  position: relative; overflow: hidden; color: #fff; padding-block: clamp(70px, 9vw, 120px);
  background: linear-gradient(120deg, var(--crimson) 0%, #8f1219 55%, var(--maroon-800) 100%);
}
.stats-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.stats-arcs path { stroke: rgba(255, 255, 255, 0.35); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.stat-num { font-size: clamp(60px, 8vw, 112px); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 16px; color: rgba(255, 255, 255, 0.85); max-width: 24ch; }

/* ---------- Process ---------- */
.process { background: var(--paper-warm); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; --line-top: 27px; }
.steps-line { position: absolute; left: 28px; right: 28px; top: var(--line-top); height: 2px; background: var(--rose-200); border-radius: 2px; }
.steps-fill { position: absolute; inset: 0; background: var(--crimson); transform-origin: left; transform: scaleX(var(--fill, 0)); border-radius: 2px; }
.step { position: relative; }
.step-node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--rose-200); color: var(--ink); font-weight: 900; font-size: 15px; margin-bottom: 26px;
  transition: background-color 0.5s, border-color 0.5s, color 0.5s, transform 0.6s var(--ease-spring), box-shadow 0.5s;
}
.step.is-lit .step-node { background: var(--crimson); border-color: var(--crimson); color: #fff; transform: scale(1.08); box-shadow: 0 10px 30px -8px rgba(193, 26, 35, 0.6); }
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { font-size: 16px; max-width: 30ch; }
.js .step h3, .js .step p { opacity: 0.35; transform: translateY(8px); transition: opacity 0.6s, transform 0.7s var(--ease-out); }
.js .step.is-lit h3, .js .step.is-lit p { opacity: 1; transform: none; }

/* ---------- Projects ---------- */
.projects { background: var(--maroon-900); color: var(--on-dark-muted); }
.projects .section-title { color: #fff; }
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.2); background: transparent;
  color: var(--on-dark-muted); font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.3s var(--ease-out);
}
.filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.filter.is-active { background: var(--crimson); border-color: var(--crimson); color: #fff; }

/* Case studies: one card per client project */
.projects-sum { margin-top: 14px; font-size: 17px; }
.proj-list { display: grid; gap: 18px; }
.proj {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--maroon-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s, box-shadow 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.proj::before { /* crimson rule that draws across when the card arrives */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--crimson), #ff6b73 60%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) 0.15s;
}
.proj.is-in::before, html:not(.js) .proj::before { transform: scaleX(1); }
.proj:hover { border-color: rgba(235, 156, 161, 0.35); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.proj h3 { color: #fff; font-size: clamp(26px, 2.8vw, 38px); margin: 10px 0 12px; }
.proj-head { display: flex; align-items: center; gap: 14px; }
.proj-num {
  font-size: 13px; font-weight: 900; letter-spacing: 0.08em; color: var(--crimson-soft);
  padding: 5px 10px; border-radius: 8px; background: rgba(193, 26, 35, 0.16); transition: background-color 0.4s, color 0.4s;
}
.proj:hover .proj-num { background: var(--crimson); color: #fff; }
.proj-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.proj-desc { max-width: 48ch; }
.proj .chips { margin-top: 18px; }

.proj-big { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 3.5vw, 48px); align-items: center; padding: clamp(22px, 3vw, 36px); }

/* justified photo strip: widths follow each photo's aspect ratio */
.proj-gallery { --h: 320px; display: flex; gap: 10px; height: var(--h); }
.ph {
  position: relative; flex: var(--ar) 1 0; min-width: 0; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; background: var(--maroon-800); cursor: zoom-in;
}
.ph img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; transition: scale 1.1s var(--ease-out), filter 0.6s; }
.ph::after { /* subtle sheen on hover */
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0.9s var(--ease-out);
}
.ph:hover img, .ph:focus-visible img { scale: 1.2; }
.ph:active { transform: scale(0.98); transition: transform 0.2s; }
.ph:hover::after { transform: translateX(100%); }
.proj-gallery:hover .ph:not(:hover) img { filter: brightness(0.6) saturate(0.8); }

/* staggered wipe-in of photos */
.js .proj .ph { clip-path: inset(100% 0 0 0 round var(--radius)); }
.js .proj.is-in .ph { clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path 1.1s var(--ease-out); }
.js .proj.is-in .ph:nth-child(2) { transition-delay: 0.12s; }
.js .proj.is-in .ph:nth-child(3) { transition-delay: 0.24s; }
.js .proj.is-in .ph:nth-child(4) { transition-delay: 0.36s; }

/* smaller cards row */
.proj-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.proj-small { display: flex; flex-direction: column; }
.proj-small .proj-info { padding: 22px 24px 26px; }
.proj-small h3 { font-size: clamp(22px, 2vw, 26px); }
.proj-gallery-stack { --h: 230px; position: relative; display: block; }
.proj-gallery-stack .ph { position: absolute; inset: 0; border-radius: 0; }
.proj-gallery-stack .ph + .ph { opacity: 0; transition: opacity 0.6s; } /* extra photos: shown in the viewer, cross-fade on hover */
.proj-small:hover .proj-gallery-stack .ph:nth-child(2) { opacity: 1; }
.js .proj-small .ph { clip-path: inset(100% 0 0 0); }
.js .proj-small.is-in .ph { clip-path: inset(0 0 0 0); }
.ph-more {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 900; color: #fff; background: rgba(28, 5, 7, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* taxi card: the live software project, same card system */
.proj-taxi { background: radial-gradient(80% 120% at 100% 0%, rgba(193, 26, 35, 0.32), transparent 60%), var(--maroon-800); }
.live-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 9px; border-radius: 999px;
  background: rgba(13, 128, 111, 0.16); border: 1px solid rgba(64, 214, 176, 0.35); color: #8ff0d4; letter-spacing: 0.12em;
}
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #40d6b0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #40d6b0; animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.chips-dark li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.case-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.case-links .link-arrow { margin-top: 22px; color: var(--crimson-soft); }

.case-visual { position: relative; height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--maroon-900); border: 1px solid rgba(255, 255, 255, 0.08); }
.case-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-streets path { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 10; }
.map-route { fill: none; stroke: url(#case-route-grad); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map-pin { fill: var(--maroon-900); stroke: #eb9ca1; stroke-width: 3; }
.pin-b { stroke: var(--crimson); }
.map-car { opacity: 0; transition: opacity 0.5s; }
.map-car circle { fill: rgba(193, 26, 35, 0.3); }
.map-car .car-core { fill: #fff; }
.proj-taxi.is-in .map-route, html:not(.js) .map-route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-out) 0.3s; }
.proj-taxi.is-driving .map-car { opacity: 1; }

.device {
  position: absolute; display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 16px;
  background: rgba(28, 5, 7, 0.82); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
  transition: transform 1s var(--ease-out) 0.4s, opacity 0.8s 0.4s;
}
.device-phone { width: 29%; aspect-ratio: 9 / 17; right: 2%; bottom: -6%; border-radius: 20px; }
.device-tablet { width: 36%; aspect-ratio: 4 / 3; left: 4%; top: 3%; transition-delay: 0.6s; }
.js .proj-taxi .device { opacity: 0; transform: translateY(30px); }
.js .proj-taxi.is-in .device { opacity: 1; transform: none; }
.proj-taxi.is-in .device-phone { animation: float 6s ease-in-out 1.4s infinite alternate; }
.dev-bar { width: 36%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); justify-self: center; margin-bottom: 4px; }
.dev-card, .dev-trip { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.dev-label { font-size: 10px; letter-spacing: 0.06em; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-card strong, .dev-trip strong { color: #fff; font-size: 14px; line-height: 1.2; }
.dev-trip { grid-template-columns: 1fr auto; align-items: center; }
.dev-trip strong { padding: 6px 12px; border-radius: 999px; background: var(--crimson); font-size: 12px; }
.dev-row { display: flex; gap: 6px; }
.dev-row span { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.dev-btn { margin-top: auto; padding: 8px; border-radius: 999px; background: var(--crimson); color: #fff; font-size: 11px; font-weight: 900; text-align: center; }

/* filter: hidden cards leave the flow; View Transitions animate the reflow */
.proj.is-hidden { display: none; }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-copy > p:not(.eyebrow) { margin-top: 22px; font-size: 18px; max-width: 52ch; }
.reg-card {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin-top: 40px;
  padding: 26px 28px 26px 32px; border-radius: var(--radius); background: var(--rose-50); overflow: hidden;
}
.reg-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--crimson); }
.reg-card dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); }
.reg-card dd { color: var(--ink); font-weight: 700; margin-top: 2px; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; }
.about-photo img { width: 100%; height: 118%; object-fit: cover; translate: 0 var(--para, 0); }
.js .reveal-clip { clip-path: inset(0 0 100% 0 round var(--radius-lg)); }
.js .reveal-clip.is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); transition: clip-path 1.4s var(--ease-out); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-warm); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 90px); }
.faq-list { display: grid; gap: 12px; }
.qa { border-radius: var(--radius); background: #fff; border: 1px solid var(--rose-200); transition: border-color 0.3s, box-shadow 0.4s; }
.qa.is-open, html:not(.js) .qa[open] { border-color: var(--crimson-soft); box-shadow: 0 18px 40px -28px rgba(82, 31, 33, 0.4); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px;
  cursor: pointer; list-style: none; font-weight: 900; font-size: 19px; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--rose-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23c11a23' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.5s var(--ease-spring), background-color 0.3s;
}
.qa.is-open summary::after, html:not(.js) .qa[open] summary::after { transform: rotate(135deg); background-color: var(--rose-100); }
.qa-body { padding: 0 26px 24px; max-width: 62ch; }
.qa-body { overflow: hidden; }
.qa summary:active { transform: scale(0.995); }

/* ---------- Quote ---------- */
.quote { position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark-muted); background: radial-gradient(80% 80% at 0% 0%, var(--maroon-700), var(--maroon-900) 65%); }
.quote-arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.quote .section-title { color: #fff; }
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 40px; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; font-weight: 700;
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.contact-list a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); transform: translateX(6px); }
.contact-list small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--crimson-soft); }
.ci { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--crimson); font-size: 12px; font-weight: 900; letter-spacing: 0.04em; }

.quote-form {
  position: relative; display: grid; gap: 16px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg);
  background: #fff; color: var(--text); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--rose-200); background: var(--paper-warm);
  color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--crimson); background: #fff; box-shadow: 0 0 0 4px rgba(193, 26, 35, 0.12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--crimson); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.turnstile-slot:empty { display: none; }
.turnstile-slot { min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.is-sending .btn-spinner { display: block; }
.is-sending .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { min-height: 1.2em; font-size: 14px; font-weight: 700; color: var(--crimson); }
.form-status a { text-decoration: underline; }
.form-success {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center;
  padding: 40px; border-radius: var(--radius-lg); background: #fff; animation: fadeIn 0.5s var(--ease-out);
}
.form-success[hidden] { display: none; }
.form-success svg { width: 76px; fill: none; stroke: var(--crimson); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success circle, .form-success path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s var(--ease-out) forwards; }
.form-success path { animation-delay: 0.5s; }
.form-success h3 { font-size: 28px; }
.form-success p { max-width: 34ch; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-950); color: var(--on-dark-muted); padding: 90px 0 28px; overflow: hidden; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-cta p { color: #fff; font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px; }
.footer-mark { width: 92px; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; }
.site-footer h3 { color: #fff; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 900; margin-bottom: 16px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { transition: color 0.25s; }
.site-footer a:hover { color: #fff; }
.footer-word {
  font-size: calc(min(100vw - 2 * var(--gutter), var(--container)) / 8.6); font-weight: 900; line-height: 0.85; letter-spacing: -0.045em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  background: linear-gradient(90deg, var(--crimson), #ff6b73) 0 0 / var(--word, 0%) 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  margin: 0 0 28px -0.04em; user-select: none;
}
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 3, 5, 0.94); color: #fff; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  opacity: 0; transition: opacity 0.4s, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--radius); animation: lbIn 0.6s var(--ease-out); }
.lightbox figcaption { font-weight: 700; color: var(--on-dark-muted); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.94); } }
.lb-close, .lb-nav { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; border-radius: 50%; width: 52px; height: 52px; font-size: 28px; line-height: 1; cursor: pointer; justify-self: center; transition: background-color 0.3s; }
.lb-close:hover, .lb-nav:hover { background: var(--crimson); }
.lb-close { position: absolute; top: 20px; right: 20px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 40px, 0); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.3s var(--ease-out) var(--d, 0s); }

/* section headings rise word by word (words wrapped by JS) */
.section-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.section-title .w > span { display: inline-block; }
.js .section-title.reveal { opacity: 1; transform: none; }
.js .section-title .w > span { transform: translate3d(0, 110%, 0) rotate(5deg); transform-origin: 0 100%; }
.js .section-title.is-in .w > span { transform: none; transition: transform 1.15s var(--ease-out) calc(var(--d, 0s) + var(--i, 0) * 0.06s); }

/* chips pop in one after another */
.js .reveal .chips li { opacity: 0; transform: translateY(10px) scale(0.94); }
.js .reveal.is-in .chips li {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out) calc(0.3s + var(--ci, 0) * 0.05s), transform 0.8s var(--ease-spring) calc(0.3s + var(--ci, 0) * 0.05s), background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* card spotlight on projects */
.proj::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(193, 26, 35, 0.2), transparent 60%);
}
.proj:hover::after { opacity: 1; }

/* tap ripple */
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, 0.4); transform: scale(0); animation: ripple 0.7s var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* cursor follower (desktop, created by JS) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(193, 26, 35, 0.75); pointer-events: none; display: grid; place-items: center; opacity: 0;
  font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(193, 26, 35, 0.12); }
.cursor.is-view { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--crimson); border-color: transparent; }
.cursor span { opacity: 0; transition: opacity 0.2s; }
.cursor.is-view span { opacity: 1; }

/* scroll-driven motion: runs off the main thread where supported (Chrome, Edge, Safari 26+) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .projects, .stats, .quote { animation: bandIn linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    .hero-copy { animation: heroCopyOut linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
    .hero-stage { animation: heroStageOut linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .proj .ph img { animation: imgParallax linear both; animation-timeline: view(); }
    .stat-num { animation: statRise linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
}
@keyframes bandIn { from { clip-path: inset(0 4% 0 4% round 44px); } to { clip-path: inset(0 0 0 0 round 0px); } }
@keyframes heroCopyOut { to { translate: 0 -90px; opacity: 0.1; } }
@keyframes heroStageOut { to { translate: 0 70px; scale: 0.9; opacity: 0.5; } }
@keyframes imgParallax { from { translate: 0 -5%; } to { translate: 0 5%; } }
@keyframes statRise { from { translate: 0 40px; opacity: 0.4; } to { translate: 0 0; opacity: 1; } }
.js .stats-arcs path, .js .quote-arcs circle { stroke-dashoffset: 1; }
.js .stats.is-in .stats-arcs path, .js .quote.is-in .quote-arcs circle { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { justify-self: center; max-width: 520px; margin-top: 10px; }
  .services-grid, .about-grid, .faq-grid, .quote-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .proj-big { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .js .reveal { transform: translate3d(0, 24px, 0); }
  .hero { padding-bottom: 90px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-stage { width: 84%; }
  .hero-photo figcaption { display: none; }
  .scroll-cue { display: none; }
  .trust { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 0 18px var(--gutter); }
  .marquee { width: 100%; }
  .service { grid-template-columns: 1fr; gap: 8px; padding: 26px 22px; }
  .service-trace { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 34px; padding-left: 0; }
  .steps-line { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .steps-fill { transform-origin: top; transform: scaleY(var(--fill, 0)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step-node { grid-row: span 2; margin-bottom: 0; }
  .proj-row { grid-template-columns: 1fr; }
  .proj-big .proj-gallery { --h: 240px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -4px; padding-inline: 4px; scrollbar-width: none; }
  .proj-big .proj-gallery .ph { flex: 0 0 calc(var(--h) * var(--ar)); max-width: 82%; scroll-snap-align: start; }
  .case-visual { height: 260px; }
  .dev-trip .dev-label { display: none; }
  .form-row.two { grid-template-columns: 1fr; }
  .reg-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 24px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lightbox figure { grid-column: 1; padding: 16px; }
}

/* ---------- Reduced motion: keep everything visible and still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; gap: 8px 32px; }
  .hero-mark .mk-pulse { display: none; }
  .proj-taxi .map-car { opacity: 0; }
}
