/* TyD IT — site styles. Palette taken from the logo badge (TY-D-ITFF_BADGE_ONLY.svg). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --navy: #212b5d;
  --navy-950: #0a0e24;
  --orange: #f68622;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #141a33;
  --muted: #4c5475;
  --border: #dde2ef;
  --heading: #212b5d;
  --accent: #f68622;
  --accent-ink: #a4520b;        /* orange dark enough for small text on light bg (AA) */
  --accent-soft: rgba(246, 134, 34, 0.12);
  --brand-soft: rgba(33, 43, 93, 0.07);
  --logo-ink: #212b5d;
  --shadow: 0 1px 2px rgba(20, 26, 51, 0.06), 0 8px 24px -12px rgba(20, 26, 51, 0.18);
  --shadow-lg: 0 2px 4px rgba(20, 26, 51, 0.06), 0 24px 48px -20px rgba(20, 26, 51, 0.32);

  /* the hero / CTA bands are always dark navy, in both themes */
  --band-bg: #0d1333;
  --band-text: #e9ecf8;
  --band-muted: #aab2d6;
  --band-border: rgba(255, 255, 255, 0.12);

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1440px;
  --gutter: 16px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090d22;
    --surface: #10163a;
    --surface-2: #0d1230;
    --text: #e6e9f6;
    --muted: #a3abcf;
    --border: #232b58;
    --heading: #f2f4fc;
    --accent-ink: #f8994a;
    --accent-soft: rgba(246, 134, 34, 0.14);
    --brand-soft: rgba(160, 175, 240, 0.07);
    --logo-ink: #e6e9f6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.8);
    --band-bg: #060920;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090d22;
  --surface: #10163a;
  --surface-2: #0d1230;
  --text: #e6e9f6;
  --muted: #a3abcf;
  --border: #232b58;
  --heading: #f2f4fc;
  --accent-ink: #f8994a;
  --accent-soft: rgba(246, 134, 34, 0.14);
  --brand-soft: rgba(160, 175, 240, 0.07);
  --logo-ink: #e6e9f6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.8);
  --band-bg: #060920;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
.i { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--alt { background: var(--surface-2); }
.section-head { max-width: 880px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.dot { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .i { transition: transform .2s ease; }
.btn:hover .i { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: var(--navy); box-shadow: 0 8px 22px -10px rgba(246, 134, 34, .9); }
.btn--primary:hover { color: var(--navy); background: #ff9638; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(246, 134, 34, .95); }
.btn--ghost { border-color: var(--border); color: var(--heading); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--heading); }
.band .btn--ghost { background: transparent; color: var(--band-text); border-color: rgba(255,255,255,.28); }
.band .btn--ghost:hover { border-color: var(--orange); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.link-arrow:hover { gap: 10px; }
.link-arrow { transition: gap .2s ease; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); margin-right: auto; }
.brand svg { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 10px;
  font-weight: 550; font-size: .97rem; color: var(--text); text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--heading); background: var(--brand-soft); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-link .i { width: 16px; height: 16px; transition: transform .2s ease; }
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(880px, 92vw);
  translate: -50% 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega:hover > .nav-link .i, .has-mega.is-open > .nav-link .i { transform: rotate(180deg); }
.mega-col { padding: 12px; border-radius: 10px; }
.mega-col:hover { background: var(--surface-2); }
.mega-title { display: block; font-family: var(--font-head); font-weight: 650; color: var(--heading); text-decoration: none; margin-bottom: 2px; }
.mega-sub { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: .92rem; text-decoration: none; color: var(--text); }
.mega li a .i { width: 18px; height: 18px; color: var(--accent-ink); }
.mega li a:hover { background: var(--accent-soft); color: var(--heading); }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 12px 4px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn .i { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.no-js .theme-toggle { display: none; }
.menu-toggle { display: none; }
.header-cta { padding: 10px 18px; min-height: 44px; font-size: .95rem; }

@media (max-width: 980px) {
  .js .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .nav { order: 3; width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .js .nav {
    position: fixed; inset: 72px 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 40px;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
  .no-js .nav > ul { flex-direction: row; flex-wrap: wrap; padding-bottom: 10px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .mega {
    position: static; translate: none; width: 100%; transform: none;
    grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 4px 0 8px; background: none;
    display: none; opacity: 1; visibility: visible;
  }
  .has-mega.is-open .mega { display: grid; }
  .has-mega:hover .mega { display: none; }
  .has-mega.is-open:hover .mega { display: grid; }
  .no-js .mega { display: none !important; }
  .nav .mobile-cta { display: flex; margin-top: 20px; }
}
.mobile-cta { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- dark bands (hero / page heads / CTA) ---------- */
.band {
  background: var(--band-bg);
  color: var(--band-text);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --logo-ink: #eef1fb;
}
.band h1, .band h2, .band h3 { color: #fff; }
.band p { color: var(--band-muted); }
.band .eyebrow { color: var(--orange); }
.band a:not(.btn):hover { color: var(--orange); }
.band::before {
  /* soft glows + fine grid, all CSS — no images */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(246, 134, 34, .18), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(86, 104, 214, .28), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

/* ---------- home hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero h1 .hl { background: linear-gradient(100deg, #ffb26b, var(--orange) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding: 0; list-style: none; font-size: .95rem; color: var(--band-muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { color: var(--orange); width: 18px; height: 18px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin-inline: auto; order: -1; }
}

/* the orbit illustration — riffs on the badge's orbiting arcs */
.orbit { width: 100%; height: auto; overflow: visible; }
.orbit .ring { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.2; }
.orbit .ring--dash { stroke-dasharray: 2 9; stroke: rgba(255,255,255,.22); }
.orbit .arc { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.orbit .spin, .orbit .spin-rev { transform-box: view-box; transform-origin: 300px 300px; }
.orbit .spin { animation: spin 90s linear infinite; }
.orbit .spin-rev { animation: spin 120s linear infinite reverse; }
.orbit .spin-fast { transform-box: view-box; transform-origin: 300px 300px; animation: spin 24s linear infinite; }
.orbit .upright { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite reverse; }
.orbit .spin-rev .upright { animation: spin 120s linear infinite; }
.orbit .node circle { fill: #141b45; stroke: rgba(255,255,255,.18); stroke-width: 1; }
.orbit .node use { color: #dfe4fa; }
.orbit .node--hot circle { fill: var(--orange); stroke: none; }
.orbit .node--hot use { color: var(--navy); }
.orbit .core { fill: url(#coreGlow); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit * { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin-top: -48px; position: relative; z-index: 2; }
.stat { padding: 24px 22px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--heading); line-height: 1; letter-spacing: -0.03em; }
.stat-num span { color: var(--accent); }
.stat-label { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- generic grids & cards ---------- */
.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--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px;
  position: relative;
}
.icon-tile .i { width: 26px; height: 26px; }
.icon-tile--navy { background: var(--navy); color: var(--orange); }

/* service card — whole card is the link */
.svc {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.svc::after {
  /* orbit arc accent from the logo, revealed on hover */
  content: ""; position: absolute; width: 180px; height: 180px; right: -90px; top: -90px;
  border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(.7);
  transition: opacity .3s ease, transform .4s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: inherit; }
.svc:hover::after { opacity: .5; transform: scale(1); }
.svc h3 { margin-bottom: 6px; }
.svc p { font-size: .97rem; margin-bottom: 18px; }
.svc .link-arrow { margin-top: auto; font-size: .93rem; }
.svc-tier { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- split / prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--text); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }

.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pillar .icon-tile { margin: 0; width: 46px; height: 46px; }
.pillar h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 980px) { .tiers { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }
.tier { display: flex; flex-direction: column; padding: 30px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.tier::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tier-color, var(--border)); }
.tier--1 { --tier-color: #8b97cf; }
.tier--2 { --tier-color: var(--orange); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--orange) 40%, var(--border)); }
.tier--3 { --tier-color: var(--navy); }
:root[data-theme="dark"] .tier--3 { --tier-color: #5f6fc6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tier--3 { --tier-color: #5f6fc6; } }
.tier-badge { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.tier-level { display: flex; gap: 5px; margin-bottom: 18px; }
.tier-level span { width: 26px; height: 6px; border-radius: 3px; background: var(--border); }
.tier-level span.on { background: var(--tier-color); }
.tier h3 { font-size: 1.6rem; margin-bottom: 4px; }
.tier-tag { color: var(--accent-ink); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.tier-for { color: var(--muted); font-size: .97rem; }
.tier-inc { font-size: .85rem; font-weight: 600; color: var(--heading); padding: 8px 12px; border-radius: 8px; background: var(--surface-2); margin: 4px 0 14px; display: flex; gap: 8px; align-items: center; }
.tier-inc .i { width: 16px; height: 16px; color: var(--accent-ink); }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 2px; }
.tier li a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 8px; text-decoration: none; font-size: .97rem; }
.tier li a:hover { background: var(--surface-2); color: var(--heading); }
.tier li .i { width: 20px; height: 20px; color: var(--accent-ink); }
.tier .btn { margin-top: auto; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .88rem; color: var(--band-muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--band-muted); text-decoration: none; }
.page-head-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-head-mark { width: clamp(120px, 16vw, 200px); color: var(--orange); }
@media (max-width: 760px) { .page-head-grid { grid-template-columns: 1fr; } .page-head-mark { display: none; } }

/* service page head */
.svc-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--band-border); color: var(--band-text); background: rgba(255,255,255,.04); }
.pill--hot { background: var(--orange); color: var(--navy); border-color: transparent; }
.svc-head-icon { width: clamp(110px, 14vw, 168px); aspect-ratio: 1; border-radius: 36px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(246,134,34,.22), rgba(246,134,34,.04)); border: 1px solid rgba(246,134,34,.35); color: var(--orange); position: relative; }
.svc-head-icon .i { width: 46%; height: 46%; }
.svc-head-icon::before, .svc-head-icon::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.12); }
.svc-head-icon::before { inset: -22px; }
.svc-head-icon::after { inset: -46px; border-style: dashed; border-color: rgba(255,255,255,.09); }
.hook { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--band-text) !important; max-width: 36em; font-style: italic; border-left: 3px solid var(--orange); padding-left: 16px; margin-top: 18px; }

/* service page body */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .svc-layout { grid-template-columns: 1fr; } }
.svc-main > section + section { margin-top: clamp(48px, 6vw, 72px); }
.svc-main h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 12px; }
.svc-main h2 .num { font-size: .8rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 4px 8px; letter-spacing: .04em; }
.overview { font-size: 1.15rem; line-height: 1.7; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: .98rem; line-height: 1.5; }
.checks .i { color: var(--accent-ink); width: 22px; height: 22px; margin-top: 1px; }
.fit { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fit li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); font-weight: 500; }
.fit .i { color: var(--accent-ink); }

.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 960px) { .aside { position: static; } }
.aside-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.15rem; }
.aside-card p { color: var(--muted); font-size: .95rem; }
.aside-card .btn { width: 100%; }
.aside-card--band { background: var(--band-bg); border-color: transparent; color: var(--band-text); }
.aside-card--band h3 { color: #fff; }
.aside-card--band p { color: var(--band-muted); }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; text-decoration: none; font-size: .93rem; }
.aside-list a:hover, .aside-list a[aria-current="page"] { background: var(--surface-2); color: var(--heading); }
.aside-list a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.aside-list .i { width: 18px; height: 18px; color: var(--accent-ink); }

/* comparison */
.compare { border-radius: 18px; border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--border); }
.compare-row:first-child { border-top: 0; }
.compare-name { font-weight: 600; color: var(--heading); display: flex; gap: 10px; align-items: center; }
.compare-name .i { width: 18px; height: 18px; color: var(--muted); }
.compare-price { color: var(--muted); font-size: .97rem; }
.compare-row--ours { background: var(--band-bg); color: var(--band-text); border-top: 0; padding-block: 22px; }
.compare-row--ours .compare-name { color: #fff; }
.compare-row--ours .compare-name .i { color: var(--orange); }
.compare-row--ours .compare-price { color: #fff; font-weight: 500; }
.compare-cap { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 14px 22px; background: var(--surface-2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
@media (max-width: 560px) {
  .compare-row, .compare-cap { grid-template-columns: 1fr; gap: 4px; }
  .compare-cap span:last-child { display: none; }
}

.tech { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border)); }
.tech .icon-tile { margin: 0; }
.tech p { margin: 0; }
@media (max-width: 560px) { .tech { flex-direction: column; } }

/* ---------- values / why cards ---------- */
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s ease; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.feature-num { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .1em; margin-bottom: 14px; display: block; }

/* open-source principles list */
.principles { counter-reset: p; display: grid; gap: 0; border-top: 1px solid var(--border); }
.principle { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--border); }
.principle .icon-tile { margin: 0; }
.principle h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 8px 0 0; }
.principle p { color: var(--muted); margin: 8px 0 0; font-size: 1.05rem; }
@media (max-width: 760px) { .principle { grid-template-columns: 52px 1fr; } .principle p { grid-column: 2; margin-top: 0; } }

/* ---------- CTA band ---------- */
.cta { padding-block: clamp(64px, 9vw, 112px); text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.cta p { max-width: 36em; margin: 0 auto 30px; font-size: 1.15rem; }
.cta .hero-actions { justify-content: center; }
.cta-mark { position: absolute; z-index: -1; width: 520px; right: -140px; bottom: -220px; opacity: .1; --logo-ink: #fff; }

/* ---------- contact ---------- */
.form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; color: var(--heading); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.contact-card .icon-tile { margin: 0; }
.contact-card strong { display: block; color: var(--heading); font-size: 1.05rem; }
.contact-card span { color: var(--muted); font-size: .93rem; }
a.contact-card:hover { border-color: var(--accent); color: inherit; }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-family: var(--font-head); }
.steps strong { color: var(--heading); display: block; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.notice .i { color: var(--accent-ink); margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-muted); padding-block: 64px 32px; --logo-ink: #eef1fb; position: relative; overflow: hidden; }
.site-footer a { color: var(--band-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 30em; font-size: .95rem; }
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--band-border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; }
.footer-contact { display: grid; gap: 8px; margin-top: 18px; font-size: .95rem; }
.footer-contact span, .footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .i { width: 18px; height: 18px; color: var(--orange); }

/* ---------- reveal on scroll (only when JS is running) ---------- */
/* site.js only marks elements that start below the fold, so nothing is ever hidden unless the script is running */
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal-pending.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) { .reveal-pending { opacity: 1; transform: none; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 10rem); font-weight: 700; line-height: 1; color: var(--orange); letter-spacing: -0.05em; }

/* service page tagline + misc */
.svc-tagline { color: #fff !important; font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 500; letter-spacing: -.01em; margin-bottom: 0; }
.page-head .hero-actions { margin-top: 30px; }
.intro-split { margin-bottom: clamp(48px, 7vw, 80px); }
.intro-split .section-head { margin: 0; }
.icon-tile--center { margin-inline: auto; }
.hero-actions--center { justify-content: center; margin-top: 28px; }
.steps-title { margin-top: 36px; }
.notfound h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; margin-inline: auto; }
.notfound .lead { max-width: 36em; margin-inline: auto; color: var(--muted); }
.tech .icon-tile, .pillar .icon-tile, .contact-card .icon-tile, .principle .icon-tile { flex: none; }
@media (max-width: 760px) { .svc-head-icon { display: none; } }
