/* ============================================================
   STARKMIND DATA SYSTEMS - premium enterprise site
   Font: Arial.  Theme: deep navy + blue accent.
   ============================================================ */

:root {
  /* Surfaces */
  --navy-950: #050f1f;
  --navy-900: #071a32;
  --navy-800: #0a1f3c;   /* base background */
  --navy-700: #0e2747;
  --navy-600: #143057;
  --navy-500: #1c3f6e;

  /* Accent */
  --accent:        #3b82f6;
  --accent-light:  #6aa6ff;
  --accent-dim:    #2f6ad0;
  --accent-soft:   rgba(59, 130, 246, 0.12);
  --accent-line:   rgba(59, 130, 246, 0.35);

  /* Text */
  --text:        #eef3fb;
  --text-soft:   #c2cfe3;
  --text-muted:  #8fa1bd;
  --text-faint:  #61748f;

  /* Lines / utility */
  --line:        rgba(255, 255, 255, 0.10);
  --line-soft:   rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.18);

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --ff: Arial, Helvetica, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff);
  background: var(--navy-800);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle backdrop glow that follows the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(59,130,246,0.16), transparent 60%),
    radial-gradient(700px 500px at -5% 30%, rgba(59,130,246,0.08), transparent 55%);
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.section { position: relative; padding-block: clamp(80px, 11vw, 160px); z-index: 1; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 700;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--accent-light);
  -webkit-mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
          mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
  opacity: 0.95;
}

.h-display { font-size: clamp(38px, 6.2vw, 88px); letter-spacing: -0.035em; }
.h1 { font-size: clamp(32px, 4.6vw, 60px); }
.h2 { font-size: clamp(26px, 3vw, 40px); }
.h3 { font-size: clamp(19px, 1.6vw, 23px); }

.lede { font-size: clamp(16px, 1.5vw, 20px); color: var(--text-soft); max-width: 64ch; }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }

.section-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lede { margin-top: 22px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 20, 38, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.16em; font-size: 15px; }
.brand .mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 12px rgba(59,130,246,0.45));
  transition: transform 0.45s var(--ease);
}
.brand .mark svg { width: 100%; height: 100%; overflow: visible; }
.brand:hover .mark { transform: rotate(-9deg) scale(1.07); }
.brand small { display: block; font-size: 9px; letter-spacing: 0.3em; color: var(--text-muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 13.5px; color: var(--text-soft); transition: color 0.25s; letter-spacing: 0.01em; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px rgba(59,130,246,0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59,130,246,0.5); }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(59,130,246,0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(59,130,246,0.55); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 30%, transparent 75%);
}
.iso-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-light); font-weight: 700; margin-bottom: 30px;
}
.iso-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 10px var(--accent-light); }
.hero h1 { max-width: 16ch; }
.hero .tagline {
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 700; letter-spacing: -0.01em;
  margin-top: 26px;
  background: linear-gradient(90deg, #fff, var(--accent-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
@media (max-width: 820px) { .hero-pills { grid-template-columns: repeat(2, 1fr); } }
.hpill {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 20px; background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.hpill:hover { border-color: var(--accent-line); transform: translateY(-5px); background: rgba(59,130,246,0.06); }
.hpill .k { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.hpill .v { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }

/* ---------- Generic card ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  padding: 30px;
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-6px); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-light); font-size: 18px; font-weight: 700;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* tag chip */
.tag {
  display: inline-block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-light); font-weight: 700;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--accent-line);
  background: var(--accent-soft); margin-bottom: 18px;
}

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 920px) { .about-split { grid-template-columns: 1fr; } }
.about-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.about-list .row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.about-list .row .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-light); font-weight: 700; margin-bottom: 10px; }
.about-list .row ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 14.5px; }
.about-list .row li { margin: 4px 0; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 22px;
  background: rgba(255,255,255,0.02); transition: border-color 0.3s, transform 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.value:hover { border-color: var(--accent-line); transform: translateY(-5px); }
.value .num { font-size: 12px; color: var(--accent-light); font-weight: 700; letter-spacing: 0.1em; }
.value h3 { font-size: 18px; margin: 14px 0 10px; }
.value p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* vision / mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
@media (max-width: 820px) { .vm-grid { grid-template-columns: 1fr; } }
.vm {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px;
  background: linear-gradient(180deg, rgba(59,130,246,0.07), rgba(255,255,255,0.012));
}
.vm h3 { font-size: 22px; margin-bottom: 16px; color: #fff; }
.vm p { font-size: 15px; color: var(--text-soft); line-height: 1.65; }

/* ============================================================
   HORIZONTAL SCROLL ("Apple-style")
   ============================================================ */
.hscroll {
  position: relative;
}
.hscroll-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hscroll-head {
  padding: 0 var(--pad);
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  margin-bottom: clamp(28px, 4vh, 54px);
}
.hscroll-track-wrap { width: 100%; overflow: hidden; }
.hscroll-track {
  display: flex; gap: 26px;
  padding-inline: var(--pad);
  will-change: transform;
}
/* trailing spacer: flex items count toward scrollWidth (container padding-right
   does not), so this guarantees breathing room past the last card at scroll end */
.hscroll-track::after { content: ""; flex: 0 0 var(--pad); }
.hscroll-progress {
  max-width: var(--maxw); margin: clamp(24px,3vh,40px) auto 0; width: 100%;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 16px;
}
.hscroll-progress .bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hscroll-progress .bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transition: width 0.08s linear; }
.hscroll-progress .hint { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; display:flex; align-items:center; gap:8px; }
.hscroll-progress .hint svg { opacity: 0.7; }

/* fallback: if no JS, allow native horizontal scroll */
.no-js .hscroll-sticky { height: auto; }
.no-js .hscroll-track-wrap { overflow-x: auto; }

/* horizontal card */
.hcard {
  flex: 0 0 auto;
  width: clamp(280px, 34vw, 440px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  padding: 34px 32px;
  display: flex; flex-direction: column;
  min-height: clamp(360px, 56vh, 480px);
  transition: border-color 0.35s, background 0.35s;
}
.hcard:hover { border-color: var(--accent-line); }
.hcard .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-light);
  font-size: 20px; font-weight: 700; margin-bottom: 24px;
}
.hcard .kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 14px; }
.hcard h3 { font-size: 24px; margin-bottom: 16px; }
.hcard p { font-size: 14.5px; color: var(--text-muted); line-height: 1.62; }
.hcard .spacer { flex: 1; }
.hcard ul { margin: 16px 0 0; padding: 0; list-style: none; }
.hcard ul li { font-size: 13.5px; color: var(--text-soft); padding: 9px 0; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; }
.hcard ul li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--accent); }

/* group divider card inside track */
.hgroup {
  flex: 0 0 auto; width: clamp(220px, 24vw, 300px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px 10px;
}
.hgroup .big { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; color: rgba(255,255,255,0.14); line-height: 0.95; }
.hgroup .lbl { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-light); font-weight: 700; margin-bottom: 14px; }
.hgroup p { font-size: 14px; color: var(--text-muted); margin-top: 16px; max-width: 26ch; }

/* ---------- Project case-study cards (horizontal) ---------- */
.pcard {
  flex: 0 0 auto;
  width: clamp(320px, 62vw, 720px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(155deg, rgba(59,130,246,0.10), rgba(255,255,255,0.015) 55%);
  padding: clamp(28px, 3vw, 48px);
  display: flex; flex-direction: column;
  min-height: clamp(380px, 60vh, 520px);
}
.pcard .ptop { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.pcard .client { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.pcard .status { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #79e6b0; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.pcard .status .dot { width: 7px; height: 7px; border-radius: 50%; background: #44d987; box-shadow: 0 0 8px #44d987; }
.pcard .pdesc { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; max-width: 60ch; }
.pcard .pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: auto; padding-top: 28px; }
@media (max-width: 640px) { .pcard .pgrid { grid-template-columns: 1fr; } }
.pstat .n { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.pstat .n span { color: var(--accent-light); }
.pstat .l { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.pcard .scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pcard .scope span { font-size: 12px; color: var(--text-soft); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }

/* ---------- Why choose / advantage ---------- */
.advantage-quote {
  margin-top: 48px; padding: clamp(32px, 4vw, 56px);
  border-radius: var(--r-xl); border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(255,255,255,0.02));
  font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.35;
  text-wrap: balance;
}
.advantage-quote .q { color: var(--accent-light); }

/* ---------- Metrics ---------- */
.metrics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metrics-grid { grid-template-columns: 1fr; } }
.metric { border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 22px; background: rgba(255,255,255,0.02); transition: border-color .3s, transform .3s var(--ease); }
.metric:hover { border-color: var(--accent-line); transform: translateY(-5px); }
.metric .abbr { font-size: 12px; letter-spacing: 0.14em; color: var(--accent-light); font-weight: 700; }
.metric h3 { font-size: 17px; margin: 12px 0 10px; }
.metric p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* lifecycle steps */
.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 26px; counter-reset: step; }
@media (max-width: 980px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lifecycle { grid-template-columns: 1fr; } }
.step { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 20px 22px; background: rgba(255,255,255,0.02); }
.step .n { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.step h4 { font-size: 15.5px; margin-bottom: 9px; }
.step p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Work culture ---------- */
.culture-promise {
  margin-top: 30px; padding: 30px 34px; border-radius: var(--r-lg);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  display: flex; gap: 18px; align-items: flex-start;
}
.culture-promise .lbl { color: var(--accent-light); font-weight: 700; white-space: nowrap; font-size: 14px; }
.culture-promise p { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
@media (max-width: 640px) { .culture-promise { flex-direction: column; gap: 8px; } }

/* ---------- Expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: stretch; }
@media (max-width: 920px) { .expertise-grid { grid-template-columns: 1fr; } }
.xstat {
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(59,130,246,0.14), rgba(255,255,255,0.02));
  padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: center;
}
.xstat .n { font-size: clamp(64px, 8vw, 112px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.xstat .n .cv { font-variant-numeric: tabular-nums; }
.xstat .n .plus { color: var(--accent-light); }
.xstat .l { margin-top: 14px; font-size: clamp(15px, 1.4vw, 18px); color: var(--text-soft); font-weight: 700; }
.xlist { display: flex; flex-direction: column; justify-content: center; }
.xlist .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-light); font-weight: 700; padding-bottom: 14px; }
.xrow {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 2px; border-top: 1px solid var(--line);
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; letter-spacing: -0.01em;
  transition: color 0.25s;
}
.xrow::before {
  content: ""; flex: 0 0 12px; width: 12px; height: 12px;
  background: var(--accent-light);
  -webkit-mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
          mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
}
.advantage-quote .sub {
  margin-top: 18px; font-size: 15px; font-weight: 400; letter-spacing: 0;
  line-height: 1.6; color: var(--text-soft); max-width: 68ch;
}

/* ---------- Industries (horizontal) ---------- */
.icard {
  flex: 0 0 auto; width: clamp(260px, 30vw, 380px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 34px 30px; min-height: clamp(280px, 42vh, 360px);
  display: flex; flex-direction: column;
}
.icard .idx { font-size: 13px; color: var(--accent-light); font-weight: 700; letter-spacing: 0.1em; margin-bottom: auto; }
.icard h3 { font-size: 23px; margin: 0 0 14px; }
.icard p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.icard .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.icard .ring { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-light); font-size: 16px; }

/* ---------- Capabilities ---------- */
.cap { border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; background: rgba(255,255,255,0.02); transition: border-color .3s, transform .3s var(--ease); }
.cap:hover { border-color: var(--accent-line); transform: translateY(-5px); }
.cap .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-light); display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.cap h3 { font-size: 16.5px; margin-bottom: 10px; }
.cap p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Commitment ---------- */
.commit { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: start; }
.commit .cn { font-size: 14px; color: var(--accent-light); font-weight: 700; letter-spacing: 0.05em; }
.commit h3 { font-size: 19px; margin-bottom: 8px; }
.commit p { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 60ch; }
@media (max-width: 560px) { .commit { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Contact / footer ---------- */
.contact {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  padding-bottom: 0;
}
.contact-card {
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(59,130,246,0.16), rgba(255,255,255,0.02));
  padding: clamp(36px, 5vw, 72px);
}
.contact h2 { max-width: 16ch; }
.contact-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 760px) { .contact-rows { grid-template-columns: 1fr; } }
.crow .lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 10px; }
.crow a, .crow .val { font-size: clamp(15px, 1.5vw, 19px); font-weight: 700; color: #fff; word-break: break-word; }
.crow a:hover { color: var(--accent-light); }
.crow .sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.footer { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); padding: 40px var(--pad); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13px; z-index: 1; position: relative; }
.footer .brand { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ============================================================
   MOTION + THEMING (driven by the Tweaks panel)
   ============================================================ */

/* motion intensity tokens (overridden by JS) */
:root {
  --reveal-y: 30px;
  --reveal-dur: 0.8s;
  --float-amp: 1;     /* multiplier for parallax/orb drift */
}

/* themed background glow follows the accent */
body::before {
  background:
    radial-gradient(900px 600px at 80% -5%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(700px 500px at -5% 30%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%);
}

/* drifting accent triangles (decorative, very subtle) */
.orb {
  position: fixed; z-index: 0; pointer-events: none;
  opacity: 0.16; will-change: transform;
  background: var(--accent);
  -webkit-mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
          mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
  filter: blur(0.5px) drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 55%, transparent));
}
.orb.a { width: 460px; height: 460px; top: 6%; right: -130px; animation: triDrift 26s ease-in-out infinite; }
.orb.b { width: 360px; height: 360px; top: 58%; left: -130px; animation: triDrift 32s ease-in-out infinite reverse; opacity: 0.12; }
@keyframes triDrift {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(calc(-46px * var(--float-amp)), calc(38px * var(--float-amp)), 0) rotate(11deg); }
}
body[data-orbs="off"] .orb { display: none; }

/* reveal-distance now tokenised */
.reveal { transform: translateY(var(--reveal-y)); transition-duration: var(--reveal-dur); }
.reveal.in { transform: none; }

/* reveal STYLE variants (set on <html data-reveal>) */
html[data-reveal="fade"]  .reveal:not(.in) { transform: none; }
html[data-reveal="zoom"]  .reveal:not(.in) { transform: scale(0.9); }
html[data-reveal="blur"]  .reveal:not(.in) { filter: blur(14px); transform: translateY(calc(var(--reveal-y) * 0.5)); }
html[data-reveal="blur"]  .reveal { transition-property: opacity, transform, filter; }
html[data-reveal="rise"]  .reveal:not(.in) { transform: translateY(calc(var(--reveal-y) * 2)); }

/* gradient shimmer on the hero tagline */
.hero .tagline {
  background: linear-gradient(90deg, #fff 0%, var(--accent-light) 40%, #fff 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
body[data-anim="calm"] .hero .tagline { animation: none; }

/* top scroll progress bar */
.scrollbar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none;
  background: transparent;
}
.scrollbar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: width 0.08s linear;
}

/* card 3D tilt (enabled via body[data-tilt="on"]) */
body[data-tilt="on"] .card,
body[data-tilt="on"] .hcard,
body[data-tilt="on"] .pcard,
body[data-tilt="on"] .icard,
body[data-tilt="on"] .value,
body[data-tilt="on"] .metric,
body[data-tilt="on"] .cap {
  transform-style: preserve-3d;
  will-change: transform;
}

/* count-up numbers */
.pstat .n .cv { font-variant-numeric: tabular-nums; }

/* magnetic buttons get a smoother return */
.btn[data-magnetic] { transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s; }

/* hide background grid via tweak */
body[data-grid="off"] .hero-grid-bg { display: none; }

/* nav progress dots / micro polish for links */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--accent-light); transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

/* ---------- THEME PALETTES (set on <html data-theme>) ---------- */
html[data-theme="forest"] {
  --navy-950:#03130d; --navy-900:#062017; --navy-800:#08291d; --navy-700:#0c3526; --navy-600:#114231; --navy-500:#19583f;
  --accent:#34d399; --accent-light:#6ee7b7; --accent-dim:#0f9d6b;
  --accent-soft:rgba(52,211,153,0.12); --accent-line:rgba(52,211,153,0.34);
}
html[data-theme="graphite"] {
  --navy-950:#0a0a0b; --navy-900:#111113; --navy-800:#161618; --navy-700:#1d1d20; --navy-600:#26262a; --navy-500:#34343a;
  --accent:#a78bfa; --accent-light:#c4b5fd; --accent-dim:#7c5cf0;
  --accent-soft:rgba(167,139,250,0.12); --accent-line:rgba(167,139,250,0.34);
}
html[data-theme="royal"] {
  --navy-950:#0b0a2a; --navy-900:#120f3a; --navy-800:#16124a; --navy-700:#1d1860; --navy-600:#272078; --navy-500:#372f9c;
  --accent:#818cf8; --accent-light:#a5b4fc; --accent-dim:#5b63e0;
  --accent-soft:rgba(129,140,248,0.14); --accent-line:rgba(129,140,248,0.36);
}
html[data-theme="plum"] {
  --navy-950:#1a0a1d; --navy-900:#260f2a; --navy-800:#2f1335; --navy-700:#3c1944; --navy-600:#4d2156; --navy-500:#682d72;
  --accent:#f472b6; --accent-light:#f9a8d4; --accent-dim:#db5f9c;
  --accent-soft:rgba(244,114,182,0.13); --accent-line:rgba(244,114,182,0.34);
}

/* ============================================================
   TRIANGLE THEME + FLUIDITY
   ============================================================ */

/* hidden reusable sprite */
.tri-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- Lenis smooth scroll (vendored) ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---- generic stroke draw-in (hero triangle etc.) ---- */
svg[data-draw] { stroke-dasharray: 290; stroke-dashoffset: 290; transition: stroke-dashoffset 1.4s var(--ease); }
svg[data-draw].drawn { stroke-dashoffset: 0; }

/* ---- hero decorative triangle ---- */
.hero-tri {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(42vw, 520px); aspect-ratio: 1;
  top: 13%; right: 2%;
  --tri-stroke: var(--accent-light);
  opacity: 0.45;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 22%, transparent));
}
@media (max-width: 900px) { .hero-tri { opacity: 0.32; right: -12%; width: 60vw; } }

/* ---- faint background watermarks ---- */
.tri-watermark {
  position: absolute; z-index: 0; pointer-events: none;
  --tri-stroke: var(--accent-light);
  opacity: 0.08;
}
.hero-wm    { width: min(72vw, 880px); aspect-ratio: 1; bottom: -26%; left: -12%; }
.contact-wm { width: min(58vw, 720px); aspect-ratio: 1; top: -14%; right: -10%; opacity: 0.09; }

/* ---- triangle dividers between sections ---- */
.tri-divider { display: grid; place-items: center; padding: clamp(14px, 3vw, 40px) 0; position: relative; z-index: 1; }
.tri-divider svg {
  width: 30px; height: 30px;
  --tri-stroke: var(--accent-light);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 40%, transparent));
  stroke-dasharray: 290; stroke-dashoffset: 290;
  transition: stroke-dashoffset 1.2s var(--ease) 0.1s;
}
.tri-divider.in svg { stroke-dashoffset: 0; animation: triFloat 6.5s ease-in-out infinite 1.3s; }
@keyframes triFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---- triangle accent on card hover ---- */
.card, .hcard, .pcard, .icard { position: relative; overflow: hidden; }
.card::after, .hcard::after, .pcard::after, .icard::after {
  content: ""; position: absolute; top: -16px; right: -16px;
  width: 90px; height: 90px; pointer-events: none;
  background: var(--accent);
  -webkit-mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
          mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
  opacity: 0; transform: translate(8px, -8px);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}
.card:hover::after, .hcard:hover::after, .pcard:hover::after, .icard:hover::after {
  opacity: 0.16; transform: translate(0, 0);
}

/* ---- triangle in the scroll hint ---- */
.hscroll-progress .hint::before {
  content: ""; width: 10px; height: 10px; display: inline-block; flex: 0 0 auto;
  background: var(--accent-light);
  -webkit-mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
          mask: url(assets/brand/triangle-line.svg) center/contain no-repeat;
  opacity: 0.85;
}

/* ---- page-load intro (pure-CSS, self-hiding) ---- */
.intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--navy-950);
  animation: introOut 0.6s var(--ease) 1.15s forwards;
}
.intro-tri {
  width: 96px; height: 96px;
  color: var(--accent-light);
  filter: drop-shadow(0 0 20px color-mix(in srgb, var(--accent) 55%, transparent));
}
.intro-tri polygon {
  stroke-dasharray: 290; stroke-dashoffset: 290;
  animation: triDraw 0.95s var(--ease) 0.12s forwards;
}
@keyframes triDraw { to { stroke-dashoffset: 0; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.no-js .intro { display: none; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .orb, .tri-divider.in svg { animation: none !important; }
  svg[data-draw], .tri-divider svg, .intro-tri polygon { stroke-dashoffset: 0 !important; }
}
