/* Tridan site styles. Dark, Tridan cyan accent, self-hosted fonts, no framework. */
/* Fonts: "Tech Startup" pairing Space Grotesk + DM Sans, self-hosted so nothing is requested from
   Google before consent. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/assets/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/assets/fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/assets/fonts/dm-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Redesign 2026-10 (ui-ux-pro-max: dark "Glassmorphism" + "Bento Box Grid" + "Aurora UI" accents,
   pattern Hero + Features + CTA, dials variance 7 / motion 5 / density 4).
   One accent family: Tridan cyan, with electric blue only inside gradients and glows.
   Contrast on --bg: text 18:1, text-soft 13:1, muted 7.9:1, accent 11:1. */

@property --start {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --bg: #05080f;
  --bg-2: #080d19;
  --surface: rgba(148, 163, 184, 0.045);
  --surface-2: rgba(148, 163, 184, 0.08);
  --surface-solid: #0c1322;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-strong: #67e8f9;
  --accent-2: #3b82f6;
  --accent-ink: #03222a;
  --accent-tint: rgba(34, 211, 238, 0.1);
  --grad: linear-gradient(120deg, #a5f3fc 0%, #22d3ee 45%, #3b82f6 100%);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.08rem, 1rem + 0.45vw, 1.28rem);
  --fs-h1: clamp(2.35rem, 1.3rem + 4.2vw, 4.4rem);
  --fs-h1-compact: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 220ms var(--ease-out);
  --max: 1200px;
  --header-h: 72px;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(148, 163, 184, 0.08);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base)/1.65 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t);
}
a:hover {
  color: var(--accent-strong);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: rgba(34, 211, 238, 0.3);
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-head);
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 650;
}
h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.08em 0.4em;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  transition: transform var(--t), background-color var(--t), border-color var(--t), box-shadow var(--t), color var(--t);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--t);
}
.btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(180deg, #67e8f9, #22d3ee);
  border-color: rgba(165, 243, 252, 0.7);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 10px 30px -8px rgba(34, 211, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.primary:hover {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #a5f3fc, #3ee0f5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 14px 40px -8px rgba(34, 211, 238, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.primary:hover svg {
  transform: translateX(3px);
}
.btn:active {
  transform: translateY(0);
}

/* ---------- header (transparent over the hero, glass after scrolling) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
}
.site-header.is-scrolled,
html:not(.js) .site-header {
  background: rgba(5, 8, 15, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
}
.brand:hover {
  color: var(--text);
}
.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35));
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  transition: color var(--t), background-color var(--t);
}
.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--text);
  background: var(--surface-2);
}
.site-nav .nav-lang {
  order: 1;
}
.site-nav li:has(.nav-cta) {
  order: 2;
  margin-left: 8px;
}
.site-nav a.lang {
  color: var(--muted);
  font-size: 0.9rem;
}
.site-nav a.nav-cta {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #67e8f9, #22d3ee);
  font-weight: 600;
  padding: 8px 18px;
  box-shadow: 0 6px 20px -8px rgba(34, 211, 238, 0.6);
}
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current] {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #a5f3fc, #3ee0f5);
}
.nav-toggle {
  display: none;
}

@media (max-width: 820px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-height: 44px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .nav-toggle .bars {
    width: 16px;
    height: 10px;
    position: relative;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transition: transform var(--t);
  }
  .nav-toggle[aria-expanded="true"] .bars {
    transform: rotate(90deg);
  }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 6px);
    background: rgba(8, 13, 25, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-lg);
  }
  .js .site-nav.is-open {
    display: block;
    animation: drop 220ms var(--ease-out);
  }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .js .site-nav a {
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }
  .js .site-nav li:has(.nav-cta) {
    margin: 6px 0 0;
  }
  .js .site-nav a.nav-cta {
    justify-content: center;
  }
  html:not(.js) .site-header {
    height: auto;
  }
  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
  }
  html:not(.js) .site-nav ul {
    flex-wrap: wrap;
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- hero ---------- */
main {
  display: block;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 72px) 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero.compact {
  padding: calc(var(--header-h) + 44px) 0 56px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(34, 211, 238, 0.1), transparent 60%), var(--bg);
  --cell: 56px;
}
.grid-lines,
.grid-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.grid-lines {
  --line: rgba(148, 163, 184, 0.07);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.grid-glow {
  --line: rgba(34, 211, 238, 0.45);
  opacity: 0;
  transition: opacity 400ms ease;
  -webkit-mask-image: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
  mask-image: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
}
.hero.is-glowing .grid-glow {
  opacity: 1;
}
.hero-bg .cell {
  position: absolute;
  left: calc(var(--x) * var(--cell) + 1px);
  top: calc(var(--y) * var(--cell) + 1px);
  width: calc(var(--cell) - 1px);
  height: calc(var(--cell) - 1px);
  background: rgba(34, 211, 238, 0.12);
  opacity: 0;
  animation: cell-pulse 4s ease-in-out infinite alternate;
  animation-delay: var(--d);
}
@keyframes cell-pulse {
  0%,
  40% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.aurora.a1 {
  width: 560px;
  height: 420px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora.a2 {
  width: 520px;
  height: 380px;
  left: -200px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.compact .aurora {
  opacity: 0.35;
}
@keyframes drift {
  to {
    transform: translate3d(-60px, 40px, 0) scale(1.08);
  }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
.has-visual .hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.compact.has-visual .hero-inner {
  grid-template-columns: minmax(0, 1fr) 280px;
}
.hero-copy {
  min-width: 0;
}
.hero.compact h1 {
  font-size: var(--fs-h1-compact);
}
.hero-home h1 {
  background: linear-gradient(180deg, #ffffff 20%, #b6eef7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.07);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0);
  }
}
.lead {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  max-width: 60ch;
  line-height: 1.6;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.updated {
  color: var(--muted);
  font-size: 0.95rem;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs [aria-current] {
  color: var(--text-soft);
}

/* home hero visual: services orbiting the Tridan core */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}
.hv-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.hv-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.06) 45%, transparent 70%);
}
.hv-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hv-orbit {
  stroke: rgba(148, 163, 184, 0.16);
  stroke-dasharray: 2 6;
}
.hv-orbit.inner {
  stroke: rgba(34, 211, 238, 0.2);
  stroke-dasharray: none;
}
.hv-path {
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1.2;
}
.hv-flow {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 100;
  stroke-dashoffset: 112;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.9));
  animation: flow 3.2s linear infinite;
}
.hv-flow.f2 {
  animation-delay: 0.8s;
}
.hv-flow.f3 {
  animation-delay: 1.6s;
}
.hv-flow.f4 {
  animation-delay: 2.4s;
}
@keyframes flow {
  to {
    stroke-dashoffset: 0;
  }
}
.hv-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 28%;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.22), rgba(8, 13, 25, 0.9));
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: breathe 5s ease-in-out infinite;
}
.hv-core svg {
  width: 62%;
  height: 62%;
}
@keyframes breathe {
  50% {
    box-shadow: 0 0 90px rgba(34, 211, 238, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}
.hv-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 21%;
  padding: 12px 6px 10px;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  background: rgba(12, 19, 34, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font: 600 0.78rem/1 var(--font-head);
  letter-spacing: 0.04em;
  animation: float 7s ease-in-out infinite;
}
.hv-node span {
  color: var(--text-soft);
}
.hv-node svg {
  width: 26px;
  height: 26px;
}
.hv-node.n1 {
  left: 23%;
  top: 27.5%;
}
.hv-node.n2 {
  left: 77%;
  top: 27.5%;
  animation-delay: -1.7s;
}
.hv-node.n3 {
  left: 23%;
  top: 72.5%;
  animation-delay: -3.4s;
}
.hv-node.n4 {
  left: 77%;
  top: 72.5%;
  animation-delay: -5.1s;
}
@keyframes float {
  50% {
    transform: translate(-50%, calc(-50% - 6px));
  }
}
.hv-term {
  position: absolute;
  left: -6%;
  bottom: -2%;
  width: 56%;
  padding: 0 14px 12px;
  border-radius: 14px;
  background: rgba(8, 13, 25, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.hv-term-bar {
  display: flex;
  gap: 6px;
  padding: 10px 0 8px;
}
.hv-term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
}
.hv-term code {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 2px 0;
  font-size: 0.74rem;
  color: var(--text-soft);
  white-space: nowrap;
}
.hv-term code b {
  color: var(--accent);
  font-weight: 600;
}
.hv-term code.ok {
  color: #86efac;
}
.hv-term code svg {
  width: 13px;
  height: 13px;
}

/* service page visual */
.svc-visual {
  position: relative;
  width: 240px;
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
}
.svc-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.svc-visual .r1 {
  inset: 0;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.2);
  animation: spin 40s linear infinite;
}
.svc-visual .r2 {
  inset: 16%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
}
.svc-tile {
  position: relative;
  width: 44%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28%;
  color: var(--accent-strong);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.25), rgba(8, 13, 25, 0.95));
  border: 1px solid rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: breathe 5s ease-in-out infinite;
}
.svc-tile svg {
  width: 48%;
  height: 48%;
}
.svc-tile.mark svg {
  width: 64%;
  height: 64%;
}
.svc-tile.quad {
  width: 52%;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  padding: 16%;
}
.svc-tile.quad svg {
  width: 100%;
  height: 100%;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* technology strip under the home hero */
.stack {
  position: relative;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.stack-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-list li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font: 500 0.8rem/1.4 var(--font-mono);
}

@media (max-width: 960px) {
  .hero-bg .cell {
    display: none;
  }
  .has-visual .hero-inner,
  .compact.has-visual .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    justify-self: center;
    max-width: 440px;
    margin-top: 8px;
  }
  .svc-visual {
    display: none;
  }
}
@media (max-width: 520px) {
  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 48px;
  }
  .hero-visual {
    max-width: 340px;
  }
  .hv-term {
    left: 0;
    width: 64%;
  }
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
  }
  .hv-node {
    border-radius: 12px;
    padding: 9px 4px 8px;
  }
  .hv-node svg {
    width: 20px;
    height: 20px;
  }
  .stack {
    margin-top: 44px;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: 104px 0;
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--max), 100% - 48px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}
.sec-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font: 500 0.82rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.sec-num::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.sec-head h2 {
  margin-bottom: 0.45em;
}
.sec-head.stacked {
  max-width: 760px;
  margin-bottom: 48px;
}
.sec-head.stacked p {
  color: var(--text-soft);
  font-size: 1.08rem;
}
.sec-head.stacked p:last-child {
  margin-bottom: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 64px;
  align-items: start;
}
.split .sec-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.prose > p {
  color: var(--text-soft);
  font-size: 1.08rem;
}
.prose > p:last-child {
  margin-bottom: 0;
}
.prose h3 {
  margin-top: 1.6em;
}
@media (max-width: 860px) {
  .section {
    padding: 72px 0;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split .sec-head {
    position: static;
  }
  .sec-head.stacked {
    margin-bottom: 32px;
  }
}

/* feature list with check marks */
ul.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
ul.list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: border-color var(--t), background-color var(--t);
}
ul.list li:hover {
  border-color: rgba(34, 211, 238, 0.3);
  background: var(--surface-2);
}
ul.list strong {
  color: var(--text);
  font-weight: 600;
}
.tick {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-tint);
  color: var(--accent);
}
.tick svg {
  width: 16px;
  height: 16px;
}

/* ---------- bento (services) with pointer-tracking border glow ---------- */
.bento {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.bento .card:nth-child(1),
.bento .card:nth-child(4) {
  grid-column: span 7;
}
.bento .card:nth-child(2),
.bento .card:nth-child(3) {
  grid-column: span 5;
}
.card,
.project {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.07), rgba(148, 163, 184, 0.02));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 300ms var(--ease-out), border-color var(--t), box-shadow 300ms var(--ease-out);
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card:hover,
.project:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(34, 211, 238, 0.08), 0 20px 60px -30px rgba(34, 211, 238, 0.35);
}
/* Glow border adapted from 21st.dev "Glowing Effect" (Aceternity): a conic gradient masked to
   the border ring, rotated toward the pointer by site.js (--start, --active). */
.glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 1.5px;
  background: conic-gradient(from calc((var(--start) - 40) * 1deg), transparent 0deg, #22d3ee 30deg, #3b82f6 55deg, transparent 80deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--active, 0);
  transition: opacity 300ms ease, --start 600ms var(--ease-out);
}
.card-art {
  position: relative;
  height: 168px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(400px 160px at 50% 110%, rgba(34, 211, 238, 0.12), transparent 70%),
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px) 0 0 / 28px 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-body {
  position: relative;
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4em;
}
.card h3 a {
  color: var(--text);
  text-decoration: none;
}
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius-lg);
}
.card p {
  color: var(--muted);
  margin: 0 0 20px;
}
.card .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.card .more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t);
}
.card:hover .more svg {
  transform: translateX(4px);
}
.card:has(a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.card h3 a:focus-visible {
  outline: none;
}

/* mini illustrations */
.art {
  position: relative;
  width: min(86%, 380px);
}
.art-web {
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(8, 13, 25, 0.9);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  transform: translateY(18px);
  transition: transform 500ms var(--ease-out);
}
.card:hover .art-web {
  transform: translateY(8px);
}
.aw-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.aw-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
}
.aw-bar span {
  margin-left: 10px;
  height: 8px;
  flex: 0 1 45%;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.12);
}
.aw-body {
  display: flex;
  gap: 10px;
  padding: 10px;
}
.aw-side {
  display: grid;
  gap: 6px;
  flex: 0 0 22%;
  align-content: start;
}
.aw-side b,
.aw-kpis b {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.14);
}
.aw-side b:first-child {
  background: rgba(34, 211, 238, 0.5);
}
.aw-main {
  flex: 1;
  min-width: 0;
}
.aw-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.aw-kpis b {
  height: 24px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
}
.aw-main svg {
  display: block;
  width: 100%;
  height: 64px;
}
.aw-area {
  fill: rgba(34, 211, 238, 0.12);
}
.aw-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.art-int {
  display: flex;
  align-items: center;
}
.art-int svg {
  flex: 1;
  height: 80px;
  min-width: 0;
}
.ai-node {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(8, 13, 25, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  box-shadow: 0 0 30px -6px rgba(34, 211, 238, 0.4);
}
.ai-node svg {
  width: 24px;
  height: 24px;
}
.ai-wire {
  fill: none;
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.ai-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 14 100;
  stroke-dashoffset: 114;
  animation: flow 2.6s linear infinite;
}
.ai-flow.b {
  stroke: var(--accent-2);
  animation-delay: 1.3s;
}
.art-ops {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ao-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(8, 13, 25, 0.9);
  border: 1px solid var(--border-strong);
  color: #86efac;
  font: 500 0.82rem/1 var(--font-mono);
}
.ao-step i {
  font-style: normal;
  color: var(--text-soft);
}
.ao-step svg {
  width: 15px;
  height: 15px;
}
.ao-step.live {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.5);
}
.art-ai {
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.art-ai .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.art-ai .r1 {
  inset: 0;
  border-style: dashed;
  animation: spin 30s linear infinite;
}
.art-ai .r2 {
  inset: 18%;
  border-color: rgba(59, 130, 246, 0.35);
}
.art-ai .r3 {
  inset: 34%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
  border: 0;
}
.art-ai .core {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(8, 13, 25, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--accent-strong);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.45);
}
.art-ai .core svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 900px) {
  .bento .card:nth-child(n) {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento .card:nth-child(n) {
    grid-column: auto;
  }
  .card-art {
    height: 140px;
  }
  .card-body {
    padding: 22px;
  }
}

/* ---------- process steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, rgba(148, 163, 184, 0.2));
  opacity: 0.6;
}
.steps li {
  position: relative;
  padding-right: 8px;
}
.step-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--accent-strong);
  font: 600 0.92rem/1 var(--font-mono);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(34, 211, 238, 0.5);
}
.steps strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.steps span:not(.step-node) {
  color: var(--muted);
  font-size: 0.98rem;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps::before {
    left: 24px;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--accent), var(--accent-2) 60%, rgba(148, 163, 184, 0.2));
  }
  .steps li {
    padding-left: 72px;
    min-height: 48px;
  }
  .step-node {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
}

/* ---------- clients: logo-less wordmark strip ---------- */
.clients {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients li {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 16px;
  text-align: center;
  font: 600 clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem) / 1.1 var(--font-head);
  letter-spacing: -0.02em;
  color: rgba(203, 213, 225, 0.62);
  transition: color var(--t), background-color var(--t);
}
.clients li + li {
  border-left: 1px solid var(--border);
}
.clients li:hover {
  color: var(--text);
  background: radial-gradient(circle at 50% 120%, rgba(34, 211, 238, 0.12), transparent 70%);
}
.sec-split .clients {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) {
  .clients {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .clients li:nth-child(4) {
    border-left: 0;
  }
  .clients li:nth-child(n + 4) {
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 480px) {
  .clients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clients li {
    min-height: 84px;
  }
  .clients li:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .clients li:nth-child(-n + 2) {
    border-top: 0;
  }
  .clients li:nth-child(even) {
    border-left: 1px solid var(--border);
  }
}

/* ---------- project cards ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project {
  padding: 28px;
  overflow: hidden;
}
.project::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.project:hover::after {
  opacity: 1;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.project-num {
  font: 500 0.82rem/1 var(--font-mono);
  color: var(--muted);
}
.project h3 {
  margin-top: 0;
}
.project p {
  color: var(--muted);
  margin: 0;
}
.project p + p {
  margin-top: 0.8em;
}
@media (max-width: 960px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .projects {
    grid-template-columns: 1fr;
  }
  .project {
    padding: 22px;
  }
}

/* ---------- legal details ---------- */
.legal {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 28px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.legal dt,
.legal dd {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}
.legal dt:first-of-type,
.legal dd:first-of-type {
  border-top: 0;
}
.legal dt {
  color: var(--muted);
  padding-right: 0;
}
.legal dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  padding-left: 0;
}
@media (max-width: 520px) {
  .legal {
    grid-template-columns: 1fr;
  }
  .legal dt {
    padding: 14px 18px 0;
  }
  .legal dd {
    border-top: 0;
    padding: 2px 18px 14px;
  }
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--t), background-color var(--t);
}
.faq details:hover {
  border-color: var(--border-strong);
}
.faq details[open] {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(148, 163, 184, 0.03));
  border-color: rgba(34, 211, 238, 0.3);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px 16px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.chev {
  flex: none;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: transform 300ms var(--ease-out), background-color var(--t), border-color var(--t);
}
.chev::before,
.chev::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease-out);
}
.chev::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq details[open] .chev {
  transform: rotate(180deg);
  background: var(--accent-tint);
  border-color: rgba(34, 211, 238, 0.45);
}
.faq details[open] .chev::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-a p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-soft);
}
@supports (interpolate-size: allow-keywords) {
  .faq-list {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete;
  }
  .faq details[open]::details-content {
    height: auto;
  }
}

/* ---------- final CTA ---------- */
.cta-band {
  padding: 24px 0 104px;
}
.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 72px);
  border-radius: 32px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  text-align: center;
  background: var(--bg-2);
  box-shadow: 0 40px 100px -40px rgba(34, 211, 238, 0.35);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px 300px at 50% 120%, rgba(34, 211, 238, 0.35), transparent 70%),
    radial-gradient(500px 260px at 0% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(500px 260px at 100% 0%, rgba(34, 211, 238, 0.16), transparent 70%);
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.cta-panel h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  margin-bottom: 0.35em;
}
.cta-panel p {
  color: var(--text-soft);
  font-size: var(--fs-lead);
  max-width: 54ch;
  margin: 0 auto;
}
.cta-panel .cta-row {
  justify-content: center;
}
@media (max-width: 520px) {
  .cta-band {
    padding-bottom: 72px;
  }
  .cta-panel {
    border-radius: 24px;
  }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), #03050a);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.footer-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 2px;
}
.site-footer li a,
.site-footer li .linklike {
  display: inline-block;
  padding: 10px 0; /* 44px tap target */
  line-height: 1.5;
}
.footer-tagline {
  margin-top: 16px;
  max-width: 36ch;
}
.site-footer a,
.linklike {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover,
.linklike:hover {
  color: var(--accent);
}
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.eco strong {
  color: var(--text);
  font-weight: 600;
}
.founder {
  margin-top: 14px;
}
.founder a {
  display: inline-block;
  padding: 10px 0;
}
.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}
.footer-legal p {
  margin: 0 0 6px;
}
.footer-mark {
  margin-top: 24px;
  margin-bottom: -0.2em;
  text-align: center;
  font: 700 clamp(4.5rem, 1rem + 17vw, 17rem) / 0.8 var(--font-head);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
  padding-bottom: 12px;
}

/* ---------- cookie banner (bottom-left) ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10001; /* above the chat embed (z 10000) when reopened from "Cookie settings" */
  width: min(390px, calc(100vw - 32px));
  background: rgba(12, 19, 34, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  padding: 18px;
  font-size: 0.93rem;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner p {
  margin: 0 0 14px;
  color: var(--text-soft);
}
.cookie-actions {
  display: flex;
  gap: 8px;
}
.cookie-actions .btn {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
}
@media (max-width: 560px) {
  .cookie-banner {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

/* ---------- scroll reveal (site.js adds .reveal-on only with IntersectionObserver and motion allowed) ---------- */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(min(var(--i, 0), 6) * 70ms);
}
.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-bg .cell {
    display: none;
  }
}
