/* ===== SyntaxPulse — refined Stranger Things theme ===== */
:root {
  /* CRED-style neutral near-black — pure ink base, hairline surfaces */
  --bg:        #050506;
  --bg-2:      #0b0b0d;
  --panel:     #0f0f11;
  --panel-2:   #111113;
  --panel-hi:  #17171a;
  --red:       #ff4d4d;
  --red-soft:  #ff7a7a;
  --blue:      #8ea2ff;
  --blue-soft: #b6c3ff;
  --white:     #f6f6f4;
  --muted:     #9a9a9f;
  --muted-dim: #66666c;
  --logo-ink:  #ffffff;
  --border:    rgba(255,255,255,.08);
  --border-hi: rgba(255,255,255,.16);
  --field-bg:  rgba(255,255,255,.03);
  --radius:    20px;
  --shadow:    0 30px 70px -30px rgba(0,0,0,.9);
  --glow-plum: rgba(255,255,255,.04);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --serif:   'Fraunces', 'Space Grotesk', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* ===== Light mode (New Relic warm-cream aesthetic) ===== */
[data-theme="light"] {
  --bg:        #f7f7f5;
  --bg-2:      #efefec;
  --panel:     #ffffff;
  --panel-2:   #fbfbfa;
  --panel-hi:  #f3f3f1;
  --red:       #e6382f;
  --red-soft:  #ff5a52;
  --blue:      #4a5bd6;
  --blue-soft: #7a88e6;
  --white:     #111113;
  --muted:     #55555c;
  --muted-dim: #8a8a92;
  --logo-ink:  #111113;
  --border:    rgba(17,17,19,.10);
  --border-hi: rgba(17,17,19,.20);
  --field-bg:  #ffffff;
  --shadow:    0 30px 60px -30px rgba(17,17,19,.22);
}
[data-theme="light"] body::before { opacity: .025; }
[data-theme="light"] .site-header { background: rgba(247,247,245,.8); }
[data-theme="light"] .eyebrow { color: var(--blue); opacity: 1; }
[data-theme="light"] .glow-blue { color: var(--blue); text-shadow: 0 0 22px rgba(47,107,255,.28); }
[data-theme="light"] .more { color: var(--blue); }
[data-theme="light"] .btn-ghost { background: rgba(20,26,40,.04); color: var(--white); }
[data-theme="light"] .btn-ghost:hover { background: rgba(47,107,255,.08); }
[data-theme="light"] .badge { background: rgba(20,26,40,.03); color: var(--muted); }
[data-theme="light"] .stat-num, [data-theme="light"] .stat-plus {
  background: linear-gradient(135deg, var(--white), var(--blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="light"] .stat-plus { background: linear-gradient(135deg, var(--red), #b81830); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .logo-chip { border: 1px solid var(--border); box-shadow: 0 6px 18px -12px rgba(20,26,40,.4); }
/* the dashboard mockup stays dark in both themes (looks great on cream) */

/* smooth theme transition */
body, .site-header, .card, .ind-card, .faq-item, .band, .stats, .contact, .site-footer, .badge, .theme-toggle, .btn-ghost {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

html { background: var(--bg); }
/* Beams Background — drifting light beams on a fixed canvas (ported from kokonutui) */
.beams-bg {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none; filter: blur(15px);
}
body {
  font-family: var(--sans);
  background: transparent;
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
  position: relative;
}
[data-theme="light"] body {
  background: transparent;
}
::selection { background: var(--red); color: #fff; }
::-moz-selection { background: var(--red); color: #fff; }

/* refined thin scrollbar */
html { scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-dim); background-clip: padding-box; }
/* site-wide ambient beams — disabled for the clean CRED-style flat ink field */
#fx-canvas { display: none; }
body::before { content: none; }

.container { width: min(1160px, 90%); margin-inline: auto; position: relative; z-index: 2; }
.container.narrow { width: min(760px, 90%); }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1), filter .85s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.6rem;
  padding: .5rem .95rem; border-radius: 999px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--red); box-shadow: 0 0 8px 1px rgba(255,77,77,.55);
  animation: eyebrowPulse 2.6s ease-in-out infinite;
}
@keyframes eyebrowPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
.eyebrow.center { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
[data-theme="light"] .eyebrow { background: linear-gradient(180deg, rgba(47,107,255,.08), rgba(230,49,73,.04)); }
.type-caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 4px;
  vertical-align: -0.18em; border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 4px currentColor, 0 0 10px currentColor, 0 0 20px currentColor;
  animation: caretBlink 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  55%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.glow-red  { color: var(--red-soft); text-shadow: 0 0 18px rgba(230,49,73,.22); }
.glow-blue { color: var(--blue-soft); text-shadow: 0 0 18px rgba(63,123,255,.20); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--border); }
.section.why { padding-top: clamp(3rem, 6vw, 4.5rem); }
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem); text-align: center; margin-bottom: 3rem; letter-spacing: -0.03em; line-height: 1.1;
}
.section-title.left { text-align: left; }

/* alternating section tone for depth */
.band { background: var(--bg-2); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--sans); font-weight: 600;
  font-size: 0.95rem; padding: 0.7rem 0.75rem 0.7rem 1.55rem; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.btn.full { width: 100%; justify-content: center; }
.btn-primary {
  position: relative; background: var(--red); color: #fff;
  box-shadow: 0 10px 34px -14px rgba(255,77,77,.55), inset 0 1px 0 rgba(255,255,255,.14);
}
/* circular arrow badge */
.btn-primary::after {
  content: "→"; display: grid; place-items: center; width: 34px; height: 34px; margin-left: .15rem;
  border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 1.05rem; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -14px rgba(255,77,77,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover::after { transform: rotate(-45deg) scale(1.06); background: rgba(255,255,255,.26); }
.btn-ghost {
  padding: 0.9rem 1.7rem; background: transparent; color: var(--white); border-color: var(--border-hi);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.05); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,6,.72); backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
/* ===== Preloader ===== */
.pre-open { overflow: hidden; }
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(255,59,82,.12), transparent 70%),
    radial-gradient(80% 70% at 50% 50%, rgba(138,79,255,.10), transparent 72%),
    var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.pre-logo { width: min(360px, 72vw); height: auto; }
.pre-mark { transform-box: fill-box; transform-origin: center; animation: preBeatScale 1.3s ease-in-out infinite; }
.pre-ring { transform-box: fill-box; transform-origin: center; animation: preRing 1.3s ease-in-out infinite; }
/* heartbeat sweep — draws left→right on a loop */
.pre-beat {
  stroke-dasharray: 260; stroke-dashoffset: 260;
  filter: drop-shadow(0 0 6px rgba(244,38,62,.9));
  animation: preSweep 1.3s ease-in-out infinite;
}
/* arc + wordmark ease in once */
.pre-arc { stroke-dasharray: 140; stroke-dashoffset: 140; animation: preDraw 1s ease forwards .15s; }
.pre-word { opacity: 0; animation: preFadeIn .7s ease forwards .35s; }

@keyframes preSweep {
  0%   { stroke-dashoffset: 260; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -260; }
}
@keyframes preBeatScale { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes preRing { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes preDraw { to { stroke-dashoffset: 0; } }
@keyframes preFadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .pre-mark, .pre-ring, .pre-beat { animation: none; }
  .pre-beat { stroke-dashoffset: 0; }
  .pre-arc { stroke-dashoffset: 0; animation: none; }
  .pre-word { opacity: 1; animation: none; }
}

.brand-logo { height: 42px; width: auto; display: block; }
.lg-stroke { stroke: var(--logo-ink); }
.lg-fill { fill: var(--logo-ink); }

/* Recurring heartbeat pulse on the logo — every 8s (lub-dub) */
.logo-beat { transform-box: fill-box; transform-origin: center; animation: logoBeat 8s ease-in-out infinite; }
@keyframes logoBeat {
  0%, 84%, 100% { transform: scale(1); }
  87% { transform: scale(1.12); }
  90% { transform: scale(0.98); }
  93% { transform: scale(1.07); }
  96% { transform: scale(1); }
}
.hb-line { animation: hbGlow 8s ease-in-out infinite; }
@keyframes hbGlow {
  0%, 84%, 100% { filter: drop-shadow(0 0 0 rgba(224, 16, 32, 0)); }
  88% { filter: drop-shadow(0 0 5px rgba(224, 16, 32, .95)); }
  93% { filter: drop-shadow(0 0 4px rgba(224, 16, 32, .8)); }
}
/* Bright segment that continuously travels the pulse line — a live monitor feel */
.hb-tracer {
  stroke-dasharray: 16 191;
  stroke-dashoffset: 207;
  filter: drop-shadow(0 0 4px rgba(255, 85, 102, .9));
  animation: hbTrace 2.6s linear infinite;
}
@keyframes hbTrace {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-beat, .hb-line, .hb-tracer { animation: none; }
  .hb-tracer { display: none; }
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { position: relative; font-size: 0.9rem; font-weight: 500; letter-spacing: .01em; color: var(--muted); transition: color .25s; }
.nav a:not(.btn-ghost)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav a:not(.btn-ghost):hover { color: var(--white); }
.nav a:not(.btn-ghost):hover::after { transform: scaleX(1); }
.nav a.btn-ghost { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: .7rem; }
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; flex: none;
  background: rgba(127,127,127,.08); border: 1px solid var(--border-hi); border-radius: 10px;
  color: var(--white); transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue-soft); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden;
  background-image: linear-gradient(180deg, rgba(5,5,6,.72), rgba(5,5,6,.94)), url("../assets/hero-bg.jpg");
  background-size: cover; background-position: center;
}
[data-theme="light"] .hero {
  background-image: linear-gradient(180deg, rgba(247,247,245,.86), rgba(247,247,245,.97)), url("../assets/hero-bg.jpg");
}
/* decorative hero layers removed for the clean CRED-style look */
.hero-beams, .hero-shapes, .hero-bg::before { display: none; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 60% at 50% 120%, rgba(255,77,77,.08), transparent 70%);
}
[data-theme="light"] .hero-bg {
  background: radial-gradient(80% 60% at 50% 120%, rgba(255,77,77,.06), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
/* Hero Geometric — soft pill shapes that drop in and float (ported from kokonutui / rawat-ui) */
.shape-hero { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero .hero-grid { position: relative; z-index: 2; }
.shape-hero .es {
  position: absolute; opacity: 0; will-change: transform, opacity;
  animation: esDrop 2.4s cubic-bezier(.23,.86,.39,.96) forwards;
  animation-delay: var(--d, 0s);
}
.shape-hero .es-inner {
  display: block; width: var(--w); height: var(--h); border-radius: 999px;
  position: relative; will-change: transform;
  background: linear-gradient(to right, var(--grad), transparent);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 32px 0 rgba(255,255,255,.10);
  animation: esFloat 12s ease-in-out infinite;
}
.shape-hero .es-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.20), transparent 70%);
}
@keyframes esDrop {
  0%   { opacity: 0; transform: translateY(-150px) rotate(calc(var(--rot) - 15deg)); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(var(--rot)); }
}
@keyframes esFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(15px); } }

.shape-hero .es-1 { top: 20%; left: -5%; --rot: 12deg;  --d: .3s; }
.shape-hero .es-1 .es-inner { --w: 600px; --h: 140px; --grad: rgba(99,102,241,.15); }
.shape-hero .es-2 { top: 75%; right: 0%; --rot: -15deg; --d: .5s; }
.shape-hero .es-2 .es-inner { --w: 500px; --h: 120px; --grad: rgba(244,63,94,.15); }
.shape-hero .es-3 { bottom: 10%; left: 10%; --rot: -8deg; --d: .4s; }
.shape-hero .es-3 .es-inner { --w: 300px; --h: 80px; --grad: rgba(139,92,246,.15); }
.shape-hero .es-4 { top: 15%; right: 20%; --rot: 20deg; --d: .6s; }
.shape-hero .es-4 .es-inner { --w: 200px; --h: 60px; --grad: rgba(245,158,11,.15); }
.shape-hero .es-5 { top: 10%; left: 25%; --rot: -25deg; --d: .7s; }
.shape-hero .es-5 .es-inner { --w: 150px; --h: 40px; --grad: rgba(34,211,238,.15); }

[data-theme="light"] .shape-hero { opacity: .55; }
@media (max-width: 720px) {
  .shape-hero .es-1 { left: -10%; top: 15%; }
  .shape-hero .es-2 { right: -5%; top: 70%; }
  .shape-hero .es-3 { left: 5%; bottom: 5%; }
  .shape-hero .es-4 { right: 15%; top: 10%; }
  .shape-hero .es-5 { left: 20%; top: 5%; }
}
@media (prefers-reduced-motion: reduce) {
  .shape-hero .es { opacity: 1; animation: none; transform: rotate(var(--rot)); }
  .shape-hero .es-inner { animation: none; }
}

/* drifting aurora blobs (21st.dev "Aurora" background) */
.hero-bg::before {
  content: ""; position: absolute; inset: -25%; z-index: 0;
  background:
    radial-gradient(38% 38% at 30% 38%, rgba(138,79,255,.30), transparent 62%),
    radial-gradient(36% 36% at 72% 58%, rgba(91,139,255,.24), transparent 62%),
    radial-gradient(34% 34% at 52% 84%, rgba(255,59,82,.20), transparent 62%);
  filter: blur(34px); mix-blend-mode: screen;
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
[data-theme="light"] .hero-bg::before { opacity: .32; mix-blend-mode: normal; filter: blur(52px); }
@keyframes auroraDrift {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1)    rotate(0deg); }
  50%  { transform: translate3d(4%, 2%, 0)  scale(1.1)   rotate(4deg); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.05) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg::before { animation: none; } }

/* ===== Hero: volumetric spotlight beams ===== */
.hero-beams { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-beams .beam {
  position: absolute; top: -30%; width: 40vw; height: 150%;
  filter: blur(8px); mix-blend-mode: screen; opacity: .26;
  transform-origin: top center;
}
.hero-beams .beam-1 {
  left: 4%; transform: rotate(16deg);
  background: linear-gradient(180deg, rgba(255,59,82,.28), rgba(255,59,82,0) 62%);
  animation: beamSway 11s ease-in-out infinite;
}
.hero-beams .beam-2 {
  right: 6%; transform: rotate(-14deg);
  background: linear-gradient(180deg, rgba(91,139,255,.26), rgba(91,139,255,0) 62%);
  animation: beamSway 13s ease-in-out infinite reverse;
}
@keyframes beamSway {
  0%,100% { opacity: .38; transform: rotate(16deg) translateX(0); }
  50%     { opacity: .58; transform: rotate(19deg) translateX(2vw); }
}
[data-theme="light"] .hero-beams .beam { opacity: .3; }

/* ===== Hero: floating 3D shapes ===== */
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .4; }
.hero-shapes .shape {
  position: absolute; will-change: transform;
  animation: shapeFloat 9s ease-in-out infinite;
}
.shape-ring {
  top: 18%; left: 46%; width: 78px; height: 78px; border-radius: 999px;
  border: 6px solid rgba(138,79,255,.42);
  box-shadow: 0 10px 30px -8px rgba(138,79,255,.5), inset 0 0 18px rgba(138,79,255,.2);
}
.shape-cube {
  top: 62%; left: 8%; width: 54px; height: 54px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,59,82,.55), rgba(184,24,48,.35));
  box-shadow: 0 16px 34px -10px rgba(255,59,82,.55), inset 0 2px 0 rgba(255,255,255,.28);
  transform: rotate(12deg); animation-duration: 11s;
}
.shape-pill {
  top: 30%; right: 8%; width: 92px; height: 34px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(91,139,255,.5), rgba(47,107,255,.28));
  box-shadow: 0 14px 30px -10px rgba(91,139,255,.5), inset 0 2px 0 rgba(255,255,255,.25);
  transform: rotate(-18deg); animation-duration: 8s;
}
.shape-dot {
  bottom: 16%; right: 30%; width: 20px; height: 20px; border-radius: 999px;
  background: var(--red-soft); box-shadow: 0 0 22px 3px rgba(255,100,120,.7);
  animation-duration: 7s;
}
@keyframes shapeFloat {
  0%,100% { transform: translate3d(0,0,0) rotate(var(--r,0deg)); }
  50%     { transform: translate3d(0,-22px,0) rotate(var(--r,0deg)); }
}
.shape-cube { --r: 12deg; }
.shape-pill { --r: -18deg; }
@media (max-width: 720px) { .hero-shapes, .hero-beams { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-beams .beam, .hero-shapes .shape { animation: none !important; }
}

/* ===== Hero seal — pulsing ring + orbiting credential text ===== */
.hero-seal {
  position: absolute; right: 2.2rem; bottom: 2.2rem; z-index: 3;
  width: 108px; height: 108px; pointer-events: none;
  display: grid; place-items: center;
  opacity: .9;
}
.hero-seal .seal-ring, .hero-seal .seal-orbit {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
}
.hero-seal .seal-ring circle {
  animation: sealPulse 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,77,77,.35));
  transform-box: fill-box; transform-origin: center;
}
@keyframes sealPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}
.hero-seal .seal-orbit {
  animation: sealSpin 18s linear infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes sealSpin { to { transform: rotate(360deg); } }
.hero-seal .seal-text {
  font-family: var(--mono); font-size: 6.6px; letter-spacing: .08em;
  fill: var(--muted); text-transform: uppercase;
}
.hero-seal .seal-core {
  position: relative; width: 10px; height: 10px; border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255,77,77,.12), 0 0 14px 3px rgba(255,77,77,.55);
  animation: sealCore 2.6s ease-in-out infinite;
}
@keyframes sealCore {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255,77,77,.12), 0 0 14px 3px rgba(255,77,77,.55); }
  50%      { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(255,77,77,.08), 0 0 20px 5px rgba(255,77,77,.75); }
}
@media (max-width: 900px) { .hero-seal { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-seal .seal-ring circle, .hero-seal .seal-orbit, .hero-seal .seal-core { animation: none; }
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.45fr; gap: 3rem; align-items: stretch;
}
.hero-copy { max-width: 600px; }
.hero h1 { text-wrap: balance; }

/* Hero headline: word-by-word blur-up reveal on load */
.hero h1 .word { display: inline-block; white-space: nowrap; will-change: transform, opacity, filter; }
.hero h1.split .word { opacity: 0; transform: translateY(.5em); filter: blur(8px); }
.hero h1.split.play .word {
  animation: heroWordIn .85s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes heroWordIn {
  from { opacity: 0; transform: translateY(.5em); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1.split .word { opacity: 1; transform: none; filter: none; }
}

/* Magnetic primary CTA — snap back smoothly when the cursor leaves */
.btn-primary { will-change: transform; }

/* ===== Hero dashboard mockup ===== */
/* ===== Hero: observability network (before vs. with SyntaxPulse) ===== */
.hero-visual { position: relative; display: flex; align-items: center; perspective: 1500px; }
.net-wrap {
  position: relative; width: 100%; display: flex; flex-direction: column; gap: 1.1rem; transform: translateY(.75in);
  animation: heroReveal 1.3s cubic-bezier(.2,.75,.2,1) .35s both;
}
/* Container Scroll: hero visual tilts in from 3D, then settles flat */
@keyframes heroReveal {
  from { opacity: 0; transform: perspective(1500px) rotateX(24deg) translateY(calc(.75in + 46px)) scale(.9); }
  to   { opacity: 1; transform: translateY(.75in); }
}
@media (prefers-reduced-motion: reduce) { .net-wrap { animation: none; } }
.net { width: calc(100% + 1.5in); height: auto; overflow: visible; margin: -1.5in -1.5in 0 0; }

/* connections */
.net .link {
  fill: none; stroke-linecap: round; stroke-width: 2.2;
  stroke-dasharray: 6 16; opacity: .9;
  animation: netFlow linear infinite;
  transition: stroke .5s ease, opacity .5s ease;
}
.net .link.red  { stroke: var(--red);  filter: drop-shadow(0 0 4px rgba(244,38,62,.5)); }
.net .link.blue { stroke: var(--blue); filter: drop-shadow(0 0 4px rgba(47,107,255,.5)); }
.net .link.dim  { stroke: var(--border-hi); stroke-width: 1.3; stroke-dasharray: 2 11; opacity: .3; animation: none; filter: none; }
@keyframes netFlow { to { stroke-dashoffset: -220; } }

/* "before" — cold, static, siloed */
.net.before .link { stroke: var(--border-hi) !important; filter: none !important; opacity: .4; animation: none; stroke-dasharray: none; }

/* nodes */
.net .node text { font-family: var(--mono); font-size: 27px; letter-spacing: .09em; fill: var(--white); dominant-baseline: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.net .node.dim text { fill: var(--muted-dim); font-size: 23px; letter-spacing: .15em; }
.net .node .brk { stroke: var(--white); stroke-width: 2.2; fill: none; opacity: .7; }
.net .node .chip { transition: fill .5s ease, filter .5s ease; }
.net .node.red  .chip { fill: var(--red);  filter: drop-shadow(0 0 5px rgba(244,38,62,.7)); }
.net .node.blue .chip { fill: var(--blue); filter: drop-shadow(0 0 5px rgba(47,107,255,.7)); }
.net.before .node .chip { fill: var(--muted-dim) !important; filter: none !important; }
.net.before .node .brk  { stroke: var(--muted-dim); opacity: .5; }

/* central orb */
.net .orb ellipse { mix-blend-mode: screen; transform-box: fill-box; transform-origin: center; }
.net .orb .rot { animation: netSpin 26s linear infinite; transform-box: fill-box; transform-origin: center; }
.net .orb .rot.rev { animation-duration: 34s; animation-direction: reverse; }
@keyframes netSpin { to { transform: rotate(360deg); } }
.net .hub-title { font-family: var(--display); font-weight: 700; font-size: 62px; letter-spacing: -.01em; }
.net .hub-title tspan.grad  { fill: url(#netTxtGrad); filter: drop-shadow(0 2px 18px rgba(244,38,62,.55)); }
.net .hub-title tspan.white { fill: var(--white); font-size: 40px; letter-spacing: .04em; }

/* before hub — two siloed pills */
.net .silo rect { fill: rgba(120,140,180,.05); stroke: var(--muted-dim); stroke-width: 1.6; }
.net .silo text { fill: var(--muted-dim); font-family: var(--mono); font-size: 24px; letter-spacing: .12em; text-anchor: middle; dominant-baseline: middle; }

/* hub state toggle */
.net .hub-now, .net .hub-before { transition: opacity .5s ease; }
.net.before .hub-now { opacity: 0; }
.net:not(.before) .hub-before { opacity: 0; }

/* toggle control */
.net-toggle {
  align-self: center; transform: translateX(.75in); display: flex; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(120,140,180,.06);
  border: 1px solid var(--border-hi);
}
.net-toggle button {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .03em;
  color: var(--muted-dim); background: transparent; border: 0;
  padding: .65rem 1.3rem; border-radius: 999px; cursor: pointer;
  transition: color .3s ease, background .3s ease, box-shadow .3s ease;
}
.net-toggle button:hover { color: var(--muted); }
.net-toggle button.active {
  color: var(--white); background: rgba(244,38,62,.14);
  box-shadow: inset 0 0 0 1px rgba(244,38,62,.45), 0 0 16px rgba(244,38,62,.2);
}

.net-cap {
  align-self: center; transform: translateX(.75in); margin: .2rem 0 0; font-family: var(--mono);
  font-size: .98rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); text-align: center;
  transition: opacity .35s ease, visibility .35s ease;
}
/* Only show the caption when "With SyntaxPulse" is active — hide on "Before" */
.net.before ~ .net-cap { opacity: 0; visibility: hidden; }
.net-cap .cap-arrow {
  color: var(--blue-soft); font-weight: 700; padding: 0 .15em;
  text-shadow: 0 0 12px rgba(47,107,255,.4);
}
.net-cap .cap-hi {
  font-weight: 700;
  background: linear-gradient(90deg, var(--red-soft), var(--red));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--red);
  text-shadow: 0 0 18px rgba(244,38,62,.25);
}
.net-cap .cap-spark {
  color: var(--red); font-weight: 700;
  text-shadow: 0 0 10px rgba(244,38,62,.7), 0 0 22px rgba(244,38,62,.4);
  display: inline-block; animation: capSpark 3.2s ease-in-out infinite;
}
@keyframes capSpark {
  0%, 100% { opacity: 1;   transform: scale(1)    rotate(0deg); }
  50%      { opacity: .55; transform: scale(1.25) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .net-cap .cap-spark { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .net .link, .net .orb .rot { animation: none !important; }
}

/* Desktop-mode hint — only shown on small screens */
.desktop-hint { display: none; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); line-height: 1.68; margin: 1.9rem 0 2.8rem; max-width: 52ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: nowrap; }
.hero-cta .btn { padding: .85rem 1.3rem; font-size: .9rem; white-space: nowrap; }
.badges { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 3.4rem; }
.badge {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1.05rem;
  background: rgba(255,255,255,.02); transition: border-color .25s, color .25s;
}
.badge:hover { border-color: var(--border-hi); color: var(--white); }

/* ===== Grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */
/* Glassmorphism + cursor spotlight (21st.dev "Spotlight Card") */
.card {
  background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2.4rem;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s;
  position: relative; overflow: hidden;
}
.card:hover {
  border-color: var(--border-hi); background: var(--panel-hi); transform: translateY(-4px);
}
.card > * { position: relative; z-index: 1; }
[data-theme="light"] .card { background: var(--panel); }
[data-theme="light"] .card:hover { background: var(--panel-hi); }

.feature-icon {
  width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--mono);
  font-weight: 700; color: var(--red-soft); background: rgba(255,255,255,.04);
  border: 1px solid var(--border-hi); border-radius: 12px; margin-bottom: 1.1rem;
}
.feature-visual {
  /* aspect-ratio matches the generated artwork exactly (1460x672) so the
     photo is never cropped/skewed differently at different card widths —
     a fixed height here would mismatch the box ratio to the image ratio
     as the grid reflows (e.g. 4-up -> 2-up), over-cropping vertically. */
  /* deliberately taller than the true 1460/672 source ratio (2.173) to
     push the image:text split toward ~60/40 in the card — costs a mild
     crop off the left/right edges (object-position nudged below so the
     payoff element near an edge in each image isn't the part that's cut).
     Tuned per breakpoint: text-block height stays ~127px regardless of
     width, but card width (and so image height) varies a lot across the
     grid's column counts, so one ratio can't hit 60/40 everywhere. */
  aspect-ratio: 4 / 3; height: auto;
  /* full-bleed: same treatment as .svc-visual — pull past the card's own
     padding so the photo runs edge-to-edge on top/left/right; .card's
     overflow:hidden + border-radius clips it back into shape. */
  margin: -2.4rem -2.4rem 1.2rem -2.4rem; width: calc(100% + 4.8rem);
  border-radius: 0; display: block;
  color: #fff; position: relative; overflow: hidden;
  filter: saturate(.82) brightness(.94);
  transition: filter .45s ease;
}
.card.feature:hover .feature-visual { filter: saturate(1.05) brightness(1.06); }
.card.feature { padding-bottom: 1.6rem; }

/* hover sheen — same diagonal sweep as the service cards, scoped through
   .card.feature so it beats the shared dotted-texture ::after rule below
   regardless of source order (same pseudo-element, higher specificity wins). */
.card.feature .feature-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%);
  background-size: 220% 220%; background-position: -140% -140%;
  transition: background-position .85s cubic-bezier(.2,.7,.2,1);
}
.card.feature:hover .feature-visual::after { background-position: 40% 40%; }
@media (prefers-reduced-motion: reduce) {
  .feature-visual, .card.feature .feature-visual::after { transition: none; }
}
.feature-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 13px 13px; opacity: .5;
}
.feature-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 90% at 50% -10%, transparent 52%, rgba(6,10,20,.34));
}
.fv-cost   { background: linear-gradient(135deg, #e63149, #7a1730); }
.fv-tech   { background: linear-gradient(135deg, #3f7bff, #16295e); }
.fv-domain { background: linear-gradient(135deg, #6a3fff, #241356); }
.fv-scale  { background: linear-gradient(135deg, #e63149, #3f7bff); }

.svc-visual {
  /* aspect-ratio matches the generated artwork (1361x720) exactly so the
     photo is never over-cropped/skewed as the grid reflows across
     breakpoints — see .feature-visual for the same fix + rationale. */
  aspect-ratio: 1361 / 720; height: auto;
  /* full-bleed: pull out past the card's own padding so the photo runs
     edge-to-edge on top/left/right — .card already has overflow:hidden +
     border-radius, so it clips this back into the rounded card shape. */
  margin: -2.4rem -2.4rem 1.3rem -2.4rem; width: calc(100% + 4.8rem);
  border-radius: 0; display: block;
  color: #fff; position: relative; overflow: hidden;
  filter: saturate(.82) brightness(.94);
  transition: filter .45s ease;
}
.card.svc:hover .svc-visual { filter: saturate(1.05) brightness(1.06); }
/* the image now bleeds flush to the top, so the old symmetric bottom
   padding reads as too much dead air underneath the copy — tighten it. */
.card.svc { padding-bottom: 1.5rem; }
.card.svc .more { margin-top: .7rem; }

/* hover sheen — a soft diagonal highlight sweeps across the image.
   Selector is scoped through .card.svc so it beats the shared dotted-
   texture ::after rule below regardless of source order (same pseudo-
   element, higher specificity wins). */
.card.svc .svc-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%);
  background-size: 220% 220%; background-position: -140% -140%;
  transition: background-position .85s cubic-bezier(.2,.7,.2,1);
}
.card.svc:hover .svc-visual::after { background-position: 40% 40%; }
@media (prefers-reduced-motion: reduce) {
  .svc-visual, .card.svc .svc-visual::after { transition: none; }
}
/* rich SVG illustration fills the banner */
.svc-visual svg.scene,
.feature-visual svg.scene,
.ind-visual svg.scene,
.principle-visual svg.scene {
  width: 100%; height: 100%; display: block; position: relative; z-index: 2;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
/* generated hero-style photo illustrations, across every card set */
.svc-visual .scene-img,
.feature-visual .scene-img,
.ind-visual .scene-img,
.principle-visual .scene-img {
  width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 2;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.card.svc:hover .svc-visual .scene-img,
.card.feature:hover .feature-visual .scene-img,
.ind-card:hover .ind-visual .scene-img,
.card.principle:hover .principle-visual .scene-img { transform: scale(1.06); }
.card.svc:hover .svc-visual svg.scene,
.card.feature:hover .feature-visual svg.scene,
.ind-card:hover .ind-visual svg.scene,
.card.principle:hover .principle-visual svg.scene { transform: scale(1.06); }
/* subtle dotted texture behind the scene */
.svc-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 14px 14px; opacity: .4;
}
/* depth vignette on top */
.svc-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 90% at 50% -10%, transparent 52%, rgba(6,10,20,.34));
}
/* shared illustration primitives */
.scene .p   { fill: rgba(255,255,255,.16); stroke: rgba(255,255,255,.62); stroke-width: 1.5; stroke-linejoin: round; }
.scene .p2  { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.34); stroke-width: 1.3; stroke-linejoin: round; }
.scene .p3  { fill: rgba(0,0,0,.16); stroke: rgba(255,255,255,.22); stroke-width: 1.1; stroke-linejoin: round; }
.scene .ln  { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scene .lnb { fill: none; stroke: rgba(255,255,255,.3);  stroke-width: 1.3; stroke-linecap: round; }
.scene .fw  { fill: rgba(255,255,255,.9); }
.scene .fm  { fill: rgba(255,255,255,.5); }
.scene .dot { fill: #fff; }
.scene .glow{ fill: #fff; opacity: .9; filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); }
.scene .float { animation: svcFloat 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes svcFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .scene .float { animation: none; } }
.sv-a { background: linear-gradient(135deg, #e63149, #7a1730); }
.sv-b { background: linear-gradient(135deg, #3f7bff, #16295e); }
.sv-c { background: linear-gradient(135deg, #6a3fff, #241356); }
.sv-d { background: linear-gradient(135deg, #e63149, #3f7bff); }
.sv-e { background: linear-gradient(135deg, #3f7bff, #6a3fff); }
.sv-f { background: linear-gradient(135deg, #7a1730, #3f7bff); }
.sv-g { background: linear-gradient(135deg, #e63149, #6a3fff); }
.sv-h { background: linear-gradient(135deg, #3f7bff, #16295e); }
.sv-i { background: linear-gradient(135deg, #6a3fff, #e63149); }
.feature h3, .svc h3, .work h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .96rem; }
.more { display: inline-block; margin-top: 1.1rem; color: var(--blue-soft); font-size: .88rem; font-weight: 600; }
.more:hover { color: var(--white); }
.svc h3 { font-size: 1.12rem; }

/* ===== Stats (circular progress rings) ===== */
.stats { background: var(--bg-2); }
.stats .stat { text-align: center; display: flex; flex-direction: column; align-items: center; }
.stat-ring { position: relative; width: clamp(120px, 15vw, 156px); aspect-ratio: 1; }
.stat-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.stat-ring .ring-track { fill: none; stroke: var(--border-hi); stroke-width: 6; }
.stat-ring .ring-fill {
  fill: none; stroke: var(--ring, var(--blue)); stroke-width: 6; stroke-linecap: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ring, var(--blue)) 60%, transparent));
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
}
.stat-ring.in .ring-fill { stroke-dashoffset: var(--off, 0); }
.stat-inner {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.stat-num, .stat-plus {
  font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--blue-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-plus { background: linear-gradient(135deg, var(--red-soft), var(--red)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { color: var(--muted); font-size: .85rem; margin-top: 1rem; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .stat-ring .ring-fill { transition: none; } }

/* ===== About / Founders ===== */
.about-copy { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.2rem; max-width: 52ch; }
.about-copy strong { color: var(--white); font-weight: 600; }
.founder-badges { gap: 1.1rem; }
.card.exp { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.exp-num {
  font-family: var(--display); font-weight: 700; font-size: 2.1rem; line-height: 1;
  background: linear-gradient(135deg, var(--red-soft), var(--blue-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.exp-tag {
  display: inline-block; font-family: var(--mono); font-size: .8rem; margin: 0 .35rem .3rem 0;
  color: var(--blue-soft); border: 1px solid rgba(63,123,255,.35); border-radius: 999px;
  padding: .25rem .7rem; background: rgba(63,123,255,.08);
}
.card.exp p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }

/* ===== Worked-at logo strip ===== */
.worked-at { margin-top: 3.2rem; text-align: center; }
.worked-label {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dim); margin-bottom: 1.3rem;
}
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logo-chip {
  display: grid; place-items: center; background: #fff; border-radius: 12px;
  padding: .9rem 1.6rem; min-height: 72px; width: 180px; box-shadow: 0 8px 24px -12px rgba(0,0,0,.6);
  transition: transform .2s;
}
.logo-chip:hover { transform: translateY(-3px); }
.logo-img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; display: block; }

/* ===== Industries ===== */
.ind-grid { grid-template-columns: repeat(3, 1fr); }
.ind-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); transition: transform .35s, border-color .35s, background .35s;
}
.ind-card:hover { transform: translateY(-5px); border-color: var(--border-hi); background: var(--panel-hi); }
.ind-visual {
  /* aspect-ratio matches the generated artwork (924x572) exactly — .ind-card
     has no padding of its own, so the image is already flush top/left/right
     by default; no negative-margin bleed trick needed here. */
  aspect-ratio: 924 / 572; height: auto;
  display: block; position: relative; color: #fff; overflow: hidden;
  filter: saturate(.82) brightness(.94);
  transition: filter .45s ease;
}
.ind-card:hover .ind-visual { filter: saturate(1.05) brightness(1.06); }
.ind-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 90% at 50% -10%, transparent 52%, rgba(6,10,20,.34));
}
/* hover sheen — same diagonal sweep as the other card sets */
.ind-card .ind-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%);
  background-size: 220% 220%; background-position: -140% -140%;
  transition: background-position .85s cubic-bezier(.2,.7,.2,1);
}
.ind-card:hover .ind-visual::after { background-position: 40% 40%; }
@media (prefers-reduced-motion: reduce) {
  .ind-visual, .ind-card .ind-visual::after { transition: none; }
}
.v-marketing     { background: linear-gradient(135deg, #e63149, #7a1730); }
.v-logistics     { background: linear-gradient(135deg, #3f7bff, #16295e); }
.v-education     { background: linear-gradient(135deg, #6a3fff, #241356); }
.v-health        { background: linear-gradient(135deg, #e63149, #3f7bff); }
.v-finance       { background: linear-gradient(135deg, #1f9d6b, #0d3a2a); }
.v-entertainment { background: linear-gradient(135deg, #ff5064, #2a1044); }
.ind-body { padding: 1.3rem 1.5rem 1rem; }
.ind-body h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.ind-body p { color: var(--muted); font-size: .9rem; }

/* ===== Work tag ===== */
.work .tag {
  display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-soft); border: 1px solid rgba(63,123,255,.35); border-radius: 999px;
  padding: .25rem .75rem; margin-bottom: 1rem; background: rgba(63,123,255,.08);
}

/* ===== Work card: problem -> outcome ===== */
.work .prob, .work .outcome { font-size: .92rem; line-height: 1.5; margin: 0; }
.work .prob { color: var(--muted-dim); padding-bottom: .7rem; margin-bottom: .7rem; border-bottom: 1px solid var(--border); }
.work .outcome { color: var(--muted); }
.work .prob-label, .work .out-label {
  display: inline-block; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
  margin-right: .5rem; vertical-align: 1px;
}
.work .prob-label { color: var(--red-soft); }
.work .out-label { color: var(--blue-soft); }

/* Light mode: soft blue/red wash out on white cards — use the deeper tones */
[data-theme="light"] .work .tag {
  color: var(--blue); border-color: rgba(47,107,255,.45); background: rgba(47,107,255,.10);
}
[data-theme="light"] .work .out-label { color: var(--blue); }
[data-theme="light"] .work .prob-label { color: var(--red); }

/* ===== Section lead intro ===== */
.section-lead {
  text-align: center; color: var(--muted); max-width: 60ch; margin: -1.6rem auto 2.6rem;
  font-size: 1.02rem;
}

/* ===== How-we-work principles ===== */
.card.principle { padding-top: 0; padding-bottom: 1.6rem; }
.principle-visual {
  /* slightly taller than the native 924/572 (1.615) ratio — this trims a
     little off the top of each image, which was mostly empty background,
     and (combined with the object-position shift below) settles the
     subject a bit lower/more centered in the frame across all six. */
  aspect-ratio: 3 / 2; height: auto;
  margin: -2.4rem -2.4rem 1.2rem -2.4rem; width: calc(100% + 4.8rem);
  border-radius: 0; display: block;
  color: #fff; position: relative; overflow: hidden;
  filter: saturate(.82) brightness(.94);
  transition: filter .45s ease;
}
.principle-visual .scene-img { object-position: 50% 62%; }
.card.principle:hover .principle-visual { filter: saturate(1.05) brightness(1.06); }
.principle-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 90% at 50% -10%, transparent 52%, rgba(6,10,20,.34));
}
/* hover sheen — same diagonal sweep as the other card sets, scoped through
   .card.principle so it beats the dotted-texture rule below regardless of
   source order (same pseudo-element, higher specificity wins). */
.card.principle .principle-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%);
  background-size: 220% 220%; background-position: -140% -140%;
  transition: background-position .85s cubic-bezier(.2,.7,.2,1);
}
.card.principle:hover .principle-visual::after { background-position: 40% 40%; }
@media (prefers-reduced-motion: reduce) {
  .principle-visual, .card.principle .principle-visual::after { transition: none; }
}
.pv-1 { background: linear-gradient(135deg, #e63149, #7a1730); }
.pv-2 { background: linear-gradient(135deg, #3f7bff, #16295e); }
.pv-3 { background: linear-gradient(135deg, #6a3fff, #241356); }
.pv-4 { background: linear-gradient(135deg, #e63149, #3f7bff); }
.pv-5 { background: linear-gradient(135deg, #3f7bff, #6a3fff); }
.pv-6 { background: linear-gradient(135deg, #6a3fff, #e63149); }
.principle-num {
  display: block; font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  color: var(--red-soft); margin-bottom: .7rem; letter-spacing: .05em;
}
.card.principle h3 { font-size: 1.1rem; margin-bottom: .5rem; }

/* ===== Quotes ===== */
.quote p { color: var(--white); font-size: .98rem; line-height: 1.7; }
.quote p::before { content: "\201C"; color: var(--red-soft); font-family: var(--display); font-size: 2rem; line-height: 0; vertical-align: -0.4em; margin-right: .15em; }
.quote cite { display: block; margin-top: 1.1rem; color: var(--muted); font-style: normal; font-size: .85rem; }

/* ===== FAQ ===== */
.faq-grid { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: start; }
.faq-aside { position: sticky; top: 100px; }
.faq-aside .section-title { margin-bottom: 1rem; }
.faq-aside-copy { color: var(--muted); margin-bottom: 1.6rem; max-width: 34ch; }
.faq { display: grid; gap: .9rem; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border); border-radius: 14px; padding: 0 1.4rem; transition: border-color .2s, background .2s;
}
.faq-item[open] { border-color: var(--border-hi); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0; font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red-soft); font-size: 1.5rem; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 1.2rem; }

/* ===== Contact ===== */
.contact { background: var(--bg-2); }
.process { list-style: none; counter-reset: step; margin: 1.8rem 0; display: grid; gap: 1rem; }
.process li { counter-increment: step; position: relative; padding-left: 2.8rem; color: var(--muted); }
.process li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem;
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), #c0243a); color: #fff; border-radius: 8px; font-weight: 700; font-size: .85rem;
}
.contact-line { margin-top: .7rem; color: var(--white); font-family: var(--mono); font-size: .92rem; }

.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .45rem; font-size: .82rem; color: var(--muted); font-weight: 500; }
.form input, .form textarea {
  font-family: var(--sans); background: var(--field-bg); color: var(--white);
  border: 1px solid var(--border-hi); border-radius: 10px; padding: .85rem 1rem; font-size: .96rem;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63,123,255,.22); }
.form-note { color: var(--blue-soft); font-size: .9rem; }
.form-note.is-error { color: var(--red-soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.captcha-wrap { display: flex; justify-content: center; min-height: 66px; }
.captcha-wrap[hidden] { display: none; }
#cfTurnstile { width: 100%; }

/* Success confetti burst */
.confetti-layer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; }
.confetti-bit {
  position: fixed; width: 9px; height: 9px; border-radius: 2px;
  transform: translate(-50%, -50%);
  animation: confettiPop 1.3s cubic-bezier(.15,.6,.3,1) forwards;
}
@keyframes confettiPop {
  0%   { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 260px)) rotate(var(--rot)) scale(.6); }
}
@media (prefers-reduced-motion: reduce) {
  .confetti-layer { display: none; }
}

/* Success dialog */
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(6, 5, 12, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: modalFade .25s ease forwards;
}
.modal-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-hi); border-radius: 18px;
  padding: 2.4rem 2rem 2rem; text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  animation: modalPop .34s cubic-bezier(.2, .8, .25, 1) forwards;
}
.modal-close {
  position: absolute; top: .8rem; right: .95rem; width: 32px; height: 32px;
  border: none; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1;
  cursor: pointer; border-radius: 8px; transition: color .2s, background .2s;
}
.modal-close:hover { color: var(--white); background: var(--field-bg); }
.modal-mark { width: 76px; height: 76px; margin: 0 auto 1.2rem; display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(63,123,255,.22), transparent 70%); }
.modal-mark-ring { stroke: var(--blue); opacity: .5; }
.modal-mark-check { stroke: var(--red); stroke-dasharray: 44; stroke-dashoffset: 44; animation: checkDraw .5s .18s ease forwards; }
.modal-title { font-size: 1.5rem; margin: 0 0 .6rem; color: var(--white); }
.modal-body { font-size: .98rem; line-height: 1.65; color: var(--muted); margin: 0 0 1.6rem; }
.modal-body strong { color: var(--white); }
.modal-done { margin-top: .2rem; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card { animation: none; }
  .modal-mark-check { animation: none; stroke-dashoffset: 0; }
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding-top: clamp(4rem, 8vw, 6rem); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 3.6rem; }
.footer-brand .brand-logo { height: 40px; margin-bottom: 1.3rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; line-height: 1.7; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--mono); font-weight: 500; text-transform: uppercase;
  color: var(--muted-dim); font-size: .72rem; letter-spacing: .18em; margin-bottom: 1.3rem;
}
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .7rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding: 1.8rem 0; color: var(--muted-dim); font-size: .82rem;
}
.footer-bottom a { transition: color .2s; }
.to-top:hover { color: var(--white); }

/* Carousel affordances — only shown on mobile where card grids become swipe rows */
.carousel-dots { display: none; }
@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); }
  32%      { transform: translateX(-26px); }
  64%      { transform: translateX(0); }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { max-width: none; }
  .hero-visual { max-width: 560px; margin: 0 auto; transform: none; }
  .net-wrap { transform: none; }
  .net { width: 100%; margin: 0; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* below 900px the grid drops to 2 (then 1) columns and cards get much
     wider — the 3/2 ratio tuned for the narrow 4-up desktop card would
     make the image way too tall here, so use a wider/shorter crop. */
  .feature-visual { aspect-ratio: 1460 / 768; }
  /* Collapse to the hamburger here — 7 links + toggle overflow a narrow bar
     before this width, causing a horizontal scrollbar on tablets. */
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 1rem 6%; transform: translateY(-130%); transition: transform .3s; align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .ind-grid, .faq-grid { grid-template-columns: 1fr; }
  /* Tune the new CRED type scale + whitespace down for phones */
  h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .section { padding: clamp(3.5rem, 15vw, 5rem) 0; }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.4rem); margin-bottom: 2.5rem; }
  .hero { padding: clamp(3.5rem, 14vw, 6rem) 0 clamp(2.5rem, 6vw, 3.5rem); }
  .lead { font-size: 1.05rem; margin: 1.5rem 0 2.2rem; }
  .card { padding: 1.8rem; }
  /* stats read better two-up on phones than one tall column */
  .stats .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; }
  .stats .stat-ring { width: clamp(94px, 32vw, 128px); }
  .stats .stat p { font-size: .82rem; }

  /* --- Peek gallery: narrow cards so both neighbours peek, with soft edge
     fades so cards dissolve off-screen instead of getting chopped. The fade
     side is toggled by JS (.at-start / .at-end) so a real card edge is never
     dimmed at the extremes. --- */
  #why .grid-4,
  #services .grid-3,
  #industries .ind-grid,
  #work .grid-3,
  #approach .grid-3 {
    display: flex;
    grid-template-columns: none;
    gap: .9rem;
    margin-top: 1.6rem;
    padding: .5rem 0 1.4rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    transition: -webkit-mask-image .3s ease, mask-image .3s ease;
  }
  /* first card flush-left (aligns with the section), last card breathes right */
  #why .grid-4.at-start,
  #services .grid-3.at-start,
  #industries .ind-grid.at-start,
  #work .grid-3.at-start,
  #approach .grid-3.at-start {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
  }
  #why .grid-4.at-end,
  #services .grid-3.at-end,
  #industries .ind-grid.at-end,
  #work .grid-3.at-end,
  #approach .grid-3.at-end {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 100%);
  }
  #why .grid-4::-webkit-scrollbar,
  #services .grid-3::-webkit-scrollbar,
  #industries .ind-grid::-webkit-scrollbar,
  #work .grid-3::-webkit-scrollbar,
  #approach .grid-3::-webkit-scrollbar { display: none; }
  #why .grid-4 > *,
  #services .grid-3 > *,
  #industries .ind-grid > *,
  #work .grid-3 > *,
  #approach .grid-3 > * {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  #why .grid-4 > :first-child,
  #services .grid-3 > :first-child,
  #industries .ind-grid > :first-child,
  #work .grid-3 > :first-child,
  #approach .grid-3 > :first-child { scroll-snap-align: start; }
  #why .grid-4 > :last-child,
  #services .grid-3 > :last-child,
  #industries .ind-grid > :last-child,
  #work .grid-3 > :last-child,
  #approach .grid-3 > :last-child { scroll-snap-align: end; }

  /* one-time hint that the row is swipeable */
  .swipe-track.nudge { animation: swipeNudge 1.05s cubic-bezier(.4,0,.2,1) .2s 1; }

  /* page dots — active one stretches into a red→blue pill */
  .carousel-dots {
    display: flex; justify-content: center; align-items: center;
    gap: .4rem; margin: .3rem auto 0;
  }
  .carousel-dot {
    width: 6px; height: 6px; border-radius: 6px;
    background: var(--border-hi); cursor: pointer;
    transition: width .28s cubic-bezier(.4,0,.2,1), background .28s ease;
  }
  .carousel-dot.is-active {
    width: 20px;
    background: linear-gradient(90deg, var(--red), var(--blue));
  }

  .faq-aside { position: static; }
  /* Hide the network graphic on phones — labels get too dense when narrow.
     Show a "use desktop" hint in its place instead. */
  .hero-visual { display: block; max-width: none; margin: 0; }
  .net-wrap { display: none; }
  .desktop-hint {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .5rem; padding: 1.6rem 1.4rem; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--border-hi); box-shadow: var(--shadow);
  }
  .desktop-hint .dh-icon { width: 40px; height: 40px; color: var(--blue-soft); }
  .desktop-hint .dh-title {
    margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--white);
  }
  .desktop-hint .dh-sub {
    margin: 0; font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--muted);
  }
  /* Let the CTAs stack instead of forcing the hero wider than the screen */
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  /* items two-up so short links don't stack into a tall column */
  .footer-col {
    display: grid; grid-template-columns: 1fr 1fr;
    column-gap: 1rem; row-gap: .1rem; align-content: start;
  }
  .footer-col h4 { grid-column: 1 / -1; margin-bottom: .5rem; }
  .footer-col p { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: .6rem; }
}
