/* ───────────────────────── Graphyte site styles ─────────────────────────
   Modern dark-graphite aesthetic with logo-yellow accent.
   Themes & variants are switched by data-* attrs on <html> set by Tweaks.
─────────────────────────────────────────────────────────────────────── */

:root {
  /* navy (default) — derived from logo */
  --bg: #1e3550;
  --bg-elev: #243d5c;
  --bg-elev-2: #2a4560;
  --bg-inset: #172a40;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);
  --fg: #f4f3ef;
  --fg-mute: rgba(244, 243, 239, 0.72);
  --fg-dim: rgba(244, 243, 239, 0.48);
  --fg-faint: rgba(244, 243, 239, 0.22);
  --accent: #e5d80e;       /* logo yellow */
  --accent-deep: #c4ba0c;
  --accent-soft: rgba(229, 216, 14, 0.16);
  --on-accent: #1e3550;

  --grain: 0.018;

  --shell: min(1240px, 92vw);
  --rad-sm: 8px;
  --rad: 14px;
  --rad-lg: 22px;
  --rad-pill: 999px;
}

html[data-theme="carbon"] {
  --bg: #14253a;
  --bg-elev: #1a2e47;
  --bg-elev-2: #213853;
  --bg-inset: #0e1c2d;
  --border: rgba(255, 255, 255, 0.08);
}
html[data-theme="paper"] {
  --bg: #f4f3ef;
  --bg-elev: #fbfaf6;
  --bg-elev-2: #ffffff;
  --bg-inset: #ecebe5;
  --border: rgba(30, 53, 80, 0.14);
  --border-strong: rgba(30, 53, 80, 0.28);
  --fg: #1e3550;
  --fg-mute: rgba(30, 53, 80, 0.72);
  --fg-dim: rgba(30, 53, 80, 0.52);
  --fg-faint: rgba(30, 53, 80, 0.22);
  --accent-soft: rgba(196, 186, 12, 0.18);
  --accent: #c4ba0c;
  --accent-deep: #8e8800;
  --on-accent: #1e3550;
}

html[data-accent="lime"]   { --accent: #b3f300; --accent-deep: #8dc500; --accent-soft: rgba(179, 243, 0, 0.14); --on-accent: #0b0b0d; }
html[data-accent="amber"]  { --accent: #ff9d2b; --accent-deep: #d97816; --accent-soft: rgba(255, 157, 43, 0.14); --on-accent: #0b0b0d; }
html[data-accent="azure"]  { --accent: #5bb3ff; --accent-deep: #2f8fe8; --accent-soft: rgba(91, 179, 255, 0.16); --on-accent: #0b0b0d; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ─────────── splash / preloader (curtain reveal) ─────────── */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: #122036;
  pointer-events: none;
  animation: splash-curtain 1200ms cubic-bezier(.7,0,.3,1) 200ms both;
  transform-origin: bottom center;
  overflow: hidden;
}
.splash::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #1e3550 0%, #122036 60%, #0c1726 100%);
}
.splash::after {
  content: ""; position: absolute; left: 50%; bottom: 38%;
  width: 220px; height: 2px; margin-left: -110px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: splash-line 900ms cubic-bezier(.4,0,.2,1) 200ms both;
  transform-origin: center;
}

@keyframes splash-curtain {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
@keyframes splash-line {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}
/* splash old keyframes — superseded by splash-pop above */

html {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 90% -10%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(255,255,255,0.025), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* subtle film grain across the page */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  opacity: var(--grain);
  mix-blend-mode: overlay;
}

/* ─────────── typography ─────────── */

.display, h1, h2, h3 {
  font-family: "Inter", "Inter", "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}
h1, .h1 { font-size: clamp(48px, 6.4vw, 92px); font-weight: 600; letter-spacing: -0.035em; }
h2, .h2 { font-size: clamp(36px, 4.2vw, 60px); letter-spacing: -0.028em; }
h3, .h3 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.018em; }

.kicker {
  font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; display: inline-block; width: 18px; height: 1px;
  background: var(--accent);
}

.eyebrow {
  font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.lede {
  font-size: clamp(17px, 1.35vw, 21px);
  color: var(--fg-mute);
  line-height: 1.5;
  max-width: 60ch;
  text-wrap: pretty;
}

.body-text { color: var(--fg-mute); line-height: 1.65; }

.mono { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; }
.accent { color: var(--accent); }
.italic-accent { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

/* ─────────── layout primitives ─────────── */

.shell { width: var(--shell); margin: 0 auto; position: relative; }

section.section {
  position: relative;
  padding: clamp(80px, 9vw, 140px) 0;
  z-index: 2;
}
section.section.tight { padding: clamp(56px, 6vw, 96px) 0; }

/* alternating section backgrounds — Finaptive-style colour blocks */
section.section { background: var(--bg); transition: background 300ms ease; }
section.section.tone-deep,
section.section.tone-mid,
section.section.tone-bright {
  color: #f4f3ef;
}
section.section.tone-deep .why-card,
section.section.tone-mid .why-card,
section.section.tone-bright .why-card,
section.section.tone-deep .testimonial,
section.section.tone-mid .testimonial,
section.section.tone-bright .testimonial,
section.section.tone-mid .solutions-tabs,
section.section.tone-deep .solutions-tabs,
section.section.tone-bright .solutions-tabs {
  background:
    radial-gradient(circle at 100% 0%, rgba(228,217,8,0.22), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(228,217,8,0.18), transparent 38%),
    #0f1d31;
  border-color: rgba(228,217,8,0.18);
}
section.section.tone-mid .tabs-rail,
section.section.tone-deep .tabs-rail,
section.section.tone-bright .tabs-rail {
  border-right-color: rgba(255,255,255,0.06);
}
section.section.tone-mid .rdf,
section.section.tone-deep .rdf,
section.section.tone-bright .rdf {
  background: #ffffff;
  border-color: rgba(30,53,80,0.18);
}
section.section.tone-deep .tabs-panel,
section.section.tone-mid .tabs-panel,
section.section.tone-bright .tabs-panel {
  background: transparent;
}
section.section.tone-deep .contact-block,
section.section.tone-mid .contact-block,
section.section.tone-bright .contact-block {
  background: #0f1d31;
  border-color: rgba(228,217,8,0.18);
}
section.section.tone-mid .rdf h2,
section.section.tone-deep .rdf h2,
section.section.tone-bright .rdf h2 { color: #1e3550; }
section.section.tone-mid .rdf .lede,
section.section.tone-deep .rdf .lede,
section.section.tone-bright .rdf .lede { color: rgba(30,53,80,0.78); }
section.section.tone-mid .rdf .kicker,
section.section.tone-deep .rdf .kicker,
section.section.tone-bright .rdf .kicker { color: rgba(30,53,80,0.70); }
section.section.tone-mid .rdf-points li,
section.section.tone-deep .rdf-points li,
section.section.tone-bright .rdf-points li {
  color: #1e3550;
}
section.section.tone-deep .why-card:hover,
section.section.tone-mid .why-card:hover,
section.section.tone-bright .why-card:hover { background: rgba(255,255,255,0.06); }
section.section.tone-deep .tab-btn[data-active="1"],
section.section.tone-mid .tab-btn[data-active="1"],
section.section.tone-bright .tab-btn[data-active="1"] { background: rgba(255,255,255,0.05); color: #ffffff; }
section.section.tone-deep h1, section.section.tone-deep h2, section.section.tone-deep h3,
section.section.tone-mid h1, section.section.tone-mid h2, section.section.tone-mid h3,
section.section.tone-bright h1, section.section.tone-bright h2, section.section.tone-bright h3 {
  color: #ffffff;
}
section.section.tone-deep .italic-accent,
section.section.tone-mid .italic-accent,
section.section.tone-bright .italic-accent {
  color: var(--accent);
}
section.section.tone-deep p, section.section.tone-deep .lede, section.section.tone-deep .body-text,
section.section.tone-mid p, section.section.tone-mid .lede, section.section.tone-mid .body-text,
section.section.tone-bright p, section.section.tone-bright .lede, section.section.tone-bright .body-text {
  color: rgba(244,243,239,0.82);
}
section.section.tone-deep .eyebrow,
section.section.tone-mid .eyebrow,
section.section.tone-bright .eyebrow { color: var(--accent); }

section.section.tone-deep .kicker,
section.section.tone-mid .kicker,
section.section.tone-bright .kicker { color: rgba(244,243,239,0.72); }
section.section.tone-mid    { background: #243d5c; }
section.section.tone-bright { background: #2a4560; }
section.section.tone-deep   { background: #15263a; }
section.section.tone-accent { background: var(--accent); color: #1e3550; }
section.section.tone-accent .lede,
section.section.tone-accent .body-text,
section.section.tone-accent p { color: rgba(30,53,80,0.82); }
section.section.tone-accent .kicker { color: rgba(30,53,80,0.7); }
section.section.tone-accent .kicker::before { background: #1e3550; }
section.section.tone-accent .italic-accent { color: #1e3550; }
section.section.tone-accent .accent-bar { background: #1e3550; }
section.section.tone-accent .why-card,
section.section.tone-accent .testimonial,
section.section.tone-accent .solutions-tabs { background: rgba(30,53,80,0.06); border-color: rgba(30,53,80,0.18); }
section.section.tone-paper  { background: #f4f3ef; color: #1e3550; }
section.section.tone-paper .lede,
section.section.tone-paper .body-text,
section.section.tone-paper p { color: rgba(30,53,80,0.74); }
section.section.tone-paper .kicker { color: rgba(30,53,80,0.65); }
section.section.tone-paper .italic-accent { color: #c4ba0c; }
section.section.tone-paper .why-card,
section.section.tone-paper .testimonial,
section.section.tone-paper .solutions-tabs,
section.section.tone-paper .rdf,
section.section.tone-paper .contact-block { background: #ffffff; border-color: rgba(30,53,80,0.12); }
section.section.tone-paper .method-step { border-color: rgba(30,53,80,0.14); }
section.section#testimonials { overflow: hidden; }
section.section#testimonials::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,29,49,0.22) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}
section.section#testimonials::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,29,49,0.22) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}
section.section#testimonials > .shell { position: relative; z-index: 1; }
section.section.tone-paper .testimonial .who { border-top-color: rgba(30,53,80,0.12); }
section.section.tone-paper .testimonial .avatar { background: #1e3550; border-color: #1e3550; }
section.section.tone-paper .testimonial blockquote,
section.section.tone-paper .why-card h3,
section.section.tone-paper .tabs-panel h3,
section.section.tone-paper .tab-btn[data-active="1"],
section.section.tone-paper .tab-btn:hover,
section.section.tone-paper .method-step .step-num,
section.section.tone-paper .method-step h3,
section.section.tone-paper .panel-stats .s .v,
section.section.tone-paper .hero-stat-block .cell .v,
section.section.tone-paper .ticker-item,
section.section.tone-paper .testimonial .name,
section.section.tone-paper .module.lit { color: #1e3550; }
section.section.tone-paper .testimonial .role,
section.section.tone-paper .panel-stats .s .l,
section.section.tone-paper .step-time,
section.section.tone-paper .eyebrow,
section.section.tone-paper .hero-stat-block .cell .l { color: rgba(30,53,80,0.62); }
section.section.tone-paper .btn-ghost { color: #1e3550; border-color: rgba(30,53,80,0.28); }
section.section.tone-paper .btn-ghost:hover { border-color: #1e3550; background: rgba(30,53,80,0.04); }

.section-head { display: flex; flex-direction: column; gap: 22px; max-width: 880px; margin-bottom: 56px; }
.section-head .lede { margin: 0; }

.rule { height: 1px; background: var(--border); margin: 0; }

/* ─────────── buttons ─────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: var(--rad-pill);
  font-family: inherit; font-weight: 500; font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform 200ms cubic-bezier(.3,.7,.2,1); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--fg); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-weight: 500; font-size: 14px;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  padding-bottom: 2px;
  transition: border-color 160ms, color 160ms;
}
.btn-link:hover { color: var(--fg); border-color: var(--fg); }
.btn-link .arrow { transition: transform 200ms cubic-bezier(.3,.7,.2,1); }
.btn-link:hover .arrow { transform: translateX(2px); }

/* ─────────── nav ─────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: transparent;
  border-bottom: 0;
  transition: padding 200ms ease;
  pointer-events: none;
}
.nav .shell.nav-inner {
  background: transparent;
  border-radius: 10px;
  padding: 6px 18px;
  box-shadow: none;
  pointer-events: auto;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.nav[data-scrolled="1"] .shell.nav-inner {
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(30,53,80,0.18),
    0 10px 24px -10px rgba(15,28,48,0.22),
    0 22px 40px -24px rgba(15,28,48,0.16);
  width: 100%;
  border-radius: 0;
  padding: 8px max(4vw, calc((100vw - 1240px) / 2));
}
.nav[data-scrolled="1"] {
  padding: 0;
}
.nav:not([data-scrolled="1"]) .nav-links a { color: rgba(255,255,255,0.85); }
.nav:not([data-scrolled="1"]) .nav-links a:hover { color: #ffffff; background: rgba(255,255,255,0.10); }

.nav .nav-links a { color: rgba(30,53,80,0.78); }
.nav .nav-links a:hover { color: #1e3550; background: rgba(30,53,80,0.08); }
.nav .brand-name { color: #1e3550; }
.nav .nav-burger { background: rgba(30,53,80,0.06); border-color: rgba(30,53,80,0.18); color: #1e3550; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 22px; letter-spacing: -0.015em; }
.brand-mark {
  width: auto; height: 10.8mm;
  max-width: 220px;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid; place-items: center;
  overflow: visible;
  flex-shrink: 0;
}
.brand-mark { position: relative; transition: transform 200ms ease; transform-origin: left center; margin-top: -16px; }
.nav:not([data-scrolled="1"]) .brand-mark { transform: scale(1.21) translateY(8px); }
.nav[data-scrolled="1"] .brand-mark { transform: scale(0.85); }
.brand-mark img { width: auto; height: 100%; display: block; transition: opacity 200ms ease; }
.brand-mark .logo-light { position: absolute; inset: 0; opacity: 1; }
.brand-mark .logo-dark { opacity: 0; }
.nav[data-scrolled="1"] .brand-mark .logo-light { opacity: 0; }
.nav[data-scrolled="1"] .brand-mark .logo-dark { opacity: 1; }
.nav { padding: 14px 0; }
.brand-name { letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 10px 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  border-radius: var(--rad-pill);
  transition: color 160ms, background 160ms, transform 180ms cubic-bezier(.3,.7,.2,1);
  white-space: nowrap;
  display: inline-block;
  transform-origin: center;
}
.nav-links a:hover { color: var(--accent); background: rgba(255,255,255,0.05); transform: scale(1.12); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-burger { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--fg); cursor: pointer; place-items: center; }
.nav-burger svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn-text-only, .nav-cta .btn-primary { display: none; }
  .nav-burger { display: grid; }
  .nav-cta { gap: 0; }
  .brand-mark { height: 32px; max-width: 150px; margin-top: 0; overflow: hidden; }
  .brand-mark img { max-width: 100%; max-height: 100%; height: auto; width: auto; object-fit: contain; }
  .nav:not([data-scrolled="1"]) .brand-mark,
  .nav[data-scrolled="1"] .brand-mark { transform: none; height: 32px; }
  .nav-inner { gap: 16px; }
}

.mobile-menu {
  position: fixed; inset: 0; top: 70px; z-index: 99;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 24px var(--shell-pad, 4vw);
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu[data-open="1"] { display: flex; }
.mobile-menu a {
  padding: 14px 8px; font-size: 22px; font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

/* ─────────── hero ─────────── */

.hero {
  background: #122036;
  color: #f4f3ef;
  position: relative;
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(40px, 5vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.hero h1 {
  font-size: clamp(50px, 7.4vw, 104px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
  will-change: opacity, transform;
  transform-origin: center top;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(18,32,54,0.40) 60%, rgba(15,28,48,0.88) 100%),
    linear-gradient(180deg, rgba(15,28,48,0.08) 0%, rgba(15,28,48,0.60) 70%, #122036 100%);
  pointer-events: none;
  z-index: 1;
}
.hero .shell { position: relative; z-index: 2; }
.hero h1 .italic-accent { color: var(--accent); }
.hero .kicker { color: rgba(244,243,239,0.78); }
.hero .lede { color: rgba(244,243,239,0.85); }
.hero .hero-meta .item .l { color: rgba(244,243,239,0.62); }
.hero .hero-meta .item .v { color: #ffffff; }
.hero .btn-ghost { color: #1e3550; background: #ffffff; border-color: #ffffff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.88); border-color: #ffffff; color: #1e3550; }
.hero .hero-visual { display: none; }
.hero .hero-grid { grid-template-columns: 1fr; max-width: 880px; }
.hero h1 { font-size: clamp(54px, 7.4vw, 96px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 56px; margin-top: 32px; }
.hero-meta .item .v { font-size: clamp(14px, 1.05vw, 18px); }
@media (max-width: 900px) { .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; } }
@media (max-width: 560px) { .hero-meta { grid-template-columns: 1fr; gap: 22px; } }
.hero-meta .item .v { font-size: clamp(14px, 1.1vw, 18px); }
@media (max-width: 1100px) { .hero-meta { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .hero-meta { grid-template-columns: repeat(2, 1fr); } }
.hero-meta .item { display: flex; flex-direction: column; gap: 4px; position: relative; }
.hero-meta .item .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hero-meta .item .l { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; }

/* faint fading dividers between hero-meta cells */
.hero-meta .item::after,
.hero-meta .item::before {
  content: "";
  position: absolute;
  pointer-events: none;
}
/* vertical line to the right of each item — sits inside the column gap */
.hero-meta .item::after {
  top: 6%;
  bottom: 6%;
  right: -28px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(244,243,239,0) 0%, rgba(244,243,239,0.18) 20%, rgba(244,243,239,0.18) 80%, rgba(244,243,239,0) 100%);
}
/* horizontal line above each item — sits inside the row gap */
.hero-meta .item::before {
  left: -28px;
  right: -28px;
  top: -18px;
  height: 1px;
  background: linear-gradient(to right, rgba(244,243,239,0) 0%, rgba(244,243,239,0.18) 20%, rgba(244,243,239,0.18) 80%, rgba(244,243,239,0) 100%);
}
/* hide the dividers that would fall outside the grid (3-col layout, 6 items) */
.hero-meta .item:nth-child(3n)::after { display: none; }
.hero-meta .item:nth-child(-n+3)::before { display: none; }

/* 2-col layout */
@media (max-width: 1100px) and (min-width: 701px) {
  .hero-meta .item::after { display: block; }
  .hero-meta .item::before { display: block; }
  .hero-meta .item:nth-child(3n)::after { display: block; }
  .hero-meta .item:nth-child(-n+3)::before { display: block; }
  .hero-meta .item:nth-child(3n+3)::after { display: block; }
}
@media (max-width: 900px) {
  .hero-meta .item::after { right: -16px; }
  .hero-meta .item::before { left: -16px; right: -16px; top: -14px; }
  .hero-meta .item:nth-child(n)::after { display: block; }
  .hero-meta .item:nth-child(n)::before { display: block; }
  .hero-meta .item:nth-child(2n)::after { display: none; }
  .hero-meta .item:nth-child(-n+2)::before { display: none; }
}
@media (max-width: 560px) {
  .hero-meta .item::after { display: none; }
  .hero-meta .item::before { left: 0; right: 0; top: -11px; display: block; }
  .hero-meta .item:first-child::before { display: none; }
}

/* hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--rad-lg);
  background:
    radial-gradient(circle at 25% 20%, #ffffff, transparent 55%),
    radial-gradient(circle at 80% 90%, #b9c5d7, transparent 60%),
    linear-gradient(160deg, #dde4ee 0%, #a7b6cb 100%);
  border: 1px solid rgba(30,53,80,0.18);
  overflow: hidden;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, transparent 50%, rgba(30,53,80,0.08));
}
.hero-visual .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,53,80,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,53,80,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 40% 40%, black, transparent 75%);
}
.hero-visual .graph-svg .node { fill: #ffffff; stroke: rgba(30,53,80,0.35); }
.hero-visual .graph-svg .node.hot { fill: rgba(228,217,8,0.18); stroke: #c4ba0c; }
.hero-visual .graph-svg .edge { stroke: rgba(30,53,80,0.25); }
.hero-visual .graph-svg .edge.hot { stroke: #c4ba0c; }
.hero-visual .graph-svg text { fill: rgba(30,53,80,0.55) !important; }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* stat-grid hero variant */
html[data-hero="stats"] .hero-visual { display: none; }
html[data-hero="stats"] .hero-grid { grid-template-columns: 1fr; }
html[data-hero="stats"] .hero-stat-block { display: grid; }
.hero-stat-block { display: none; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--border); }
.hero-stat-block .cell { padding: 28px 24px 0 0; border-right: 1px solid var(--border); }
.hero-stat-block .cell:last-child { border-right: 0; }
.hero-stat-block .cell .v { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: clamp(36px, 3.6vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--fg); }
.hero-stat-block .cell .v sup { font-size: 0.55em; color: var(--accent); font-weight: 500; margin-left: 2px; vertical-align: super; }
.hero-stat-block .cell .l { margin-top: 14px; font-size: 13px; color: var(--fg-mute); line-height: 1.4; max-width: 22ch; }

/* split hero variant (no visual, copy fills wider) */
html[data-hero="bare"] .hero-visual { display: none; }
html[data-hero="bare"] .hero-grid { grid-template-columns: 1fr; max-width: 1000px; }
html[data-hero="bare"] .hero h1 { font-size: clamp(60px, 9vw, 140px); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4/3; }
  .hero-stat-block { grid-template-columns: repeat(2, 1fr); }
  .hero-stat-block .cell { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px 0; }
}

/* graph visual SVG styling */
.graph-svg .node { fill: var(--bg-elev); stroke: var(--fg-faint); stroke-width: 1.5; transition: stroke 200ms, fill 200ms; }
.graph-svg .node.hot { fill: var(--accent-soft); stroke: var(--accent); }
.graph-svg .node-inner { fill: var(--accent); }
.graph-svg .edge { stroke: var(--fg-faint); stroke-width: 1; fill: none; }
.graph-svg .edge.hot { stroke: var(--accent); stroke-width: 1.5; }
.graph-svg .pulse {
  fill: var(--accent); opacity: 0;
  animation: nodepulse 3.4s ease-in-out infinite;
}
@keyframes nodepulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(2.6); }
}

/* hero floating grid + scanline */
.hero-visual .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 40% 40%, black, transparent 75%);
}

/* ─────────── client logo strip (rolling marquee) ─────────── */

.logo-strip-wrap {
  background: #0f1d31;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
  padding: 28px 0;
}
.logo-strip {
  background: #0f1d31;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 70%;
  margin: 0 auto;
}
.logo-strip::before,
.logo-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.logo-strip::before { left: 0;  background: linear-gradient(90deg, #0f1d31, transparent); }
.logo-strip::after  { right: 0; background: linear-gradient(270deg, #0f1d31, transparent); }

@media (max-width: 1100px) {
  .logo-strip { width: 88%; }
}
@media (max-width: 700px) {
  .logo-strip { width: 96%; }
}

.logo-strip-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  animation: logoslide 100s linear infinite;
}
.logo-item {
  display: inline-flex; align-items: center; justify-content: center;
  width: 140px;
  height: 40px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 200ms ease;
}
.logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.logo-item:hover img { opacity: 1; }
.logo-item[href="#"] { pointer-events: none; }

@keyframes logoslide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

html[data-anim="off"] .logo-strip-track { animation: none; }

.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  position: relative;
  background: var(--bg-elev);
}
.ticker::before,
.ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: calc((100vw - var(--shell)) / 2 + 80px);
  z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, #243d5c 30%, transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, #243d5c 30%, transparent); }

/* push ticker down inside the solutions section */
section#solutions > .ticker { margin-top: clamp(64px, 8vw, 120px); }

/* ─────────── solutions: RDF-style white inner box ─────────── */
section#solutions .solutions-tabs {
  background: #ffffff !important;
  border: 0 !important;
  gap: 0 !important;
}

/* Match RDF: dark navy radial gradients in top-right & bottom-left of the white panel area */
section#solutions .tabs-panel { position: relative; isolation: isolate; }
section#solutions .tabs-panel::before,
section#solutions .tabs-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
}
section#solutions .tabs-panel::before {
  background: radial-gradient(ellipse 90% 90% at 100% 0%, rgba(15,29,49,0.28), transparent 70%);
}
section#solutions .tabs-panel::after {
  background: radial-gradient(ellipse 90% 90% at 0% 100%, rgba(15,29,49,0.28), transparent 70%);
}

/* Left rail = dark navy; active item = lighter navy */
section#solutions .tabs-rail {
  background:
    radial-gradient(circle at 100% 0%, rgba(228,217,8,0.18), transparent 50%),
    #15263a;
  border-right: 0 !important;
  padding: 14px 10px;
}
section#solutions .tab-btn .tabname { color: #ffffff; font-weight: 500; }
section#solutions .tab-btn .tabnum { color: rgba(255,255,255,0.55); }
section#solutions .tab-btn:hover { background: rgba(255,255,255,0.05) !important; }
section#solutions .tab-btn[data-active="1"] {
  background: #2a4560 !important;
  color: #ffffff !important;
}
section#solutions .tab-btn[data-active="1"] .tabname { color: var(--accent); font-weight: 700; }
section#solutions .tab-btn[data-active="1"] .tabnum { color: var(--accent); }
section#solutions .tab-btn[data-active="1"]::before { background: var(--accent); }

/* Right panel content = navy on white */
section#solutions .tabs-panel h3 { color: #1e3550; }
section#solutions .tabs-panel .panel-lede { color: rgba(30,53,80,0.78); }
section#solutions .panel-bullets li { color: #1e3550; }
section#solutions .tabs-panel .eyebrow { color: #3d5d83; }
section#solutions .panel-foot { border-top-color: rgba(30,53,80,0.14); }
section#solutions .panel-stats .s .v { color: #1e3550; }
section#solutions .panel-stats .s .l { color: #3d5d83; }
section#solutions .panel-bullets li::before { background: #3d5d83; }
section#solutions .btn-link { color: #1e3550; border-bottom-color: rgba(30,53,80,0.4); font-weight: 600; }
section#solutions .btn-link:hover { color: #3d5d83; border-bottom-color: #3d5d83; }

@media (max-width: 900px) {
  section#solutions .tabs-rail { padding: 6px 0; }
}
.ticker-track { display: inline-flex; gap: 36px; animation: tickslide 40s linear infinite; padding-right: 36px; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(9px, 0.84vw, 13px);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.018em;
}
.ticker-item .dot { display: none; }
.ticker-item.muted { color: rgba(255,255,255,0.55); font-weight: 300; opacity: 0.7; transform: scaleY(1.4); display: inline-block; }
.ticker-item:not(.muted) { color: #ffffff; }
.ticker-item .muted { color: var(--fg-dim); }
@keyframes tickslide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ─────────── why graphyte ─────────── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
.why-card {
  grid-column: span 6;
  background: var(--bg-elev);
  padding: 36px 36px 40px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  min-height: 280px;
  transition: background 200ms ease;
}
.why-card:hover { background: var(--bg-elev-2); }
.why-card .num {
  font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px; letter-spacing: 0.14em;
  color: var(--accent);
}
.why-card h3 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.018em; }
.why-card .accent-bar { width: 28px; height: 2px; background: var(--accent); margin-bottom: 14px; }
.why-card p { margin: 0; color: var(--fg-mute); line-height: 1.6; }

@media (max-width: 900px) {
  .why-card { grid-column: span 12; }
}

/* ─────────── solutions ─────────── */

.solutions-tabs {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  background: var(--bg-elev);
  overflow: hidden;
  min-height: 540px;
}
.tabs-rail { display: flex; flex-direction: column; padding: 8px; border-right: 1px solid var(--border); }
.tab-btn {
  appearance: none; background: transparent; border: 0;
  text-align: left; padding: 18px 22px;
  color: var(--fg-mute); font-family: inherit; font-size: 15px;
  border-radius: var(--rad); cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: background 160ms, color 160ms;
  position: relative;
}
.tab-btn .tabname { color: #ffffff; font-weight: 500; }
.tab-btn[data-active="1"] .tabname { color: var(--accent); font-weight: 700; }
.tab-btn:hover { background: rgba(255,255,255,0.04); }
section.section.tone-paper .tab-btn:hover { background: rgba(30,53,80,0.04); }
.tab-btn[data-active="1"] {
  background: var(--bg-elev-2);
  color: var(--fg);
}
.tab-btn[data-active="1"]::before {
  content: ""; position: absolute; left: 6px; top: 22px; bottom: 22px;
  width: 2px; background: var(--accent); border-radius: 1px;
}
.tab-btn .tabnum { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; font-weight: 500; }
.tab-btn[data-active="1"] .tabnum { color: var(--accent); }
section.section.tone-paper .tab-btn .tabnum { color: rgba(30,53,80,0.55); }
section.section.tone-paper .tab-btn[data-active="1"] .tabnum { color: var(--accent); }
.tab-btn .tabname { font-weight: 500; letter-spacing: -0.01em; }

.tabs-panel { padding: 48px 48px; display: none; flex-direction: column; gap: 28px; }
.tabs-panel[data-active="1"] { display: flex; }
.tabs-panel .panel-head { display: flex; align-items: center; gap: 18px; }
.tabs-panel .panel-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: #1e3550;
  border: 1px solid rgba(228,217,8,0.30);
  display: grid; place-items: center;
  color: var(--accent);
}
.tabs-panel .panel-icon svg { width: 28px; height: 28px; }
.tabs-panel h3 { font-size: 30px; letter-spacing: -0.022em; }
/* panel-lede overridden below */

.panel-bullets { column-count: 2; column-gap: 32px; margin-top: 8px; padding: 0; }
.panel-bullets li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #ffffff; margin-bottom: 14px; break-inside: avoid; }
.tabs-panel .panel-lede { color: rgba(255,255,255,0.85); font-size: 17px; line-height: 1.55; max-width: 56ch; }
section.section.tone-paper .panel-bullets li { color: #1e3550; }
section.section.tone-paper .tabs-panel .panel-lede { color: rgba(30,53,80,0.78); }
.panel-bullets li::before {
  content: ""; flex-shrink: 0; margin-top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.panel-foot {
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
  margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--border);
}
.panel-stats { display: flex; gap: 32px; }
.panel-stats .s { display: flex; flex-direction: column; gap: 2px; }
.panel-stats .s .v { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 26px; letter-spacing: -0.02em; font-weight: 600; }
.panel-stats .s .l { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-weight: 600; }

@media (max-width: 900px) {
  .solutions-tabs { grid-template-columns: 1fr; }
  .tabs-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .tab-btn { white-space: nowrap; }
  .tab-btn[data-active="1"]::before { left: 22px; right: 22px; top: auto; bottom: 4px; width: auto; height: 2px; }
  .tabs-panel { padding: 28px 24px; }
  .panel-bullets { column-count: 1; }
}

/* ─────────── RDF spotlight ─────────── */

.rdf {
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  background:
    radial-gradient(circle at 80% -10%, var(--accent-soft), transparent 50%),
    var(--bg-elev);
  padding: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.rdf::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 100% 0%, rgba(15,29,49,0.55), transparent 70%);
  pointer-events: none;
}
.rdf::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 0% 100%, rgba(15,29,49,0.55), transparent 70%);
  pointer-events: none;
}
.rdf .rdf-copy { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.rdf h2 .italic-accent { color: var(--accent); }
.rdf-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 12px; }
.rdf-points li { list-style: none; display: flex; gap: 10px; font-size: 14px; color: var(--fg-mute); align-items: flex-start; }
.rdf-points li::before { content: "→"; color: #1e3550; flex-shrink: 0; font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; }

.rdf-modules {
  position: relative; aspect-ratio: 1 / 1;
  border: 1px solid rgba(228,217,8,0.25);
  border-radius: var(--rad);
  background: #3d5d83;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  box-shadow: 0 20px 60px rgba(15,28,48,0.25);
}
.module {
  --grad-angle: 135deg;
  background: linear-gradient(var(--grad-angle), #122036 0%, #1e3550 50%, #2a4560 100%);
  border: 1px solid rgba(228,217,8,0.18);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 10px; letter-spacing: 0.06em;
  color: rgba(244,243,239,0.78);
  position: relative;
  overflow: hidden;
  transition: border-color 400ms, color 400ms, transform 400ms, box-shadow 400ms, background 600ms, --grad-angle 600ms;
  text-shadow: 0 1px 2px rgba(15,28,48,0.6);
}
.module.lit {
  --grad-angle: 315deg;
  background: linear-gradient(var(--grad-angle), #1e3550 0%, #2a4560 45%, #6b6a2a 80%, #e5d80e 100%);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(228,217,8,0.35);
  transform: scale(1.02);
  color: #ffffff;
}

@property --grad-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 135deg;
}
.module .name { font-weight: 500; line-height: 1.3; }
.module .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); align-self: flex-end; transition: background 200ms, box-shadow 200ms; }
.module.lit .dot { background: #ffffff; box-shadow: 0 0 12px #ffffff; }

/* override paper-section auto-darken so RDF graphic stays in brand colors */
section.section.tone-paper .module.lit { color: #ffffff; }

@media (max-width: 900px) {
  .rdf { grid-template-columns: 1fr; }
  .rdf-points { grid-template-columns: 1fr; }
  .rdf-modules { aspect-ratio: 3 / 2; }
}
@media (max-width: 700px) {
  .rdf-modules { display: none; }
}

/* ─────────── methodology ─────────── */

.method {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.method-step {
  padding: 32px 28px 36px 0;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.method-step:last-child { border-right: 0; }
.method-step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px;
  background: var(--accent);
  transition: width 400ms ease;
}
.method-step.in-view::before { width: 60%; }
.method-step .step-num {
  font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(48px, 4.6vw, 72px);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.04em; line-height: 1;
  display: flex; align-items: baseline; gap: 6px;
}
.method-step .step-num small { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.method-step h3 { font-size: 20px; letter-spacing: -0.018em; }
.method-step p { margin: 0; font-size: 14px; color: var(--fg-mute); line-height: 1.55; }
.method-step .step-time { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; font-weight: 600; }

@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; }
  .method-step { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px 0; }
  .method-step:last-child { border-bottom: 0; }
}

/* ─────────── testimonials ─────────── */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 32px 30px 28px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: 8px; left: 24px;
  font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 88px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}
.testimonial blockquote {
  margin: 0; padding-top: 28px;
  font-size: 17px; line-height: 1.55;
  color: var(--fg);
  font-weight: 400; letter-spacing: -0.005em;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 350ms ease;
}
.testimonial[data-expanded="1"] blockquote {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.testimonial {
  cursor: pointer;
}
.testimonial .read-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 4px;
  user-select: none;
}
.testimonial .read-toggle .arrow {
  transition: transform 200ms ease;
  display: inline-block;
}
.testimonial[data-expanded="1"] .read-toggle .arrow { transform: rotate(180deg); }
.testimonial:not(.is-overflowing) .read-toggle { display: none; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.testimonial .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-elev-2); border: 1px solid var(--border); display: grid; place-items: center; font-family: "Inter"; font-weight: 600; font-size: 14px; color: var(--accent); flex-shrink: 0; }
.testimonial .name { font-size: 14px; font-weight: 500; }
.testimonial .role { font-size: 12.5px; color: var(--fg-dim); }

@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ─────────── contact ─────────── */

.contact-block {
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: clamp(48px, 6vw, 88px);
  background:
    radial-gradient(circle at 90% 110%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 50%),
    var(--bg-elev);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.contact-block h2 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.03em; }
.contact-block h2 .italic-accent { color: var(--accent); }
.contact-block .lede { margin-top: 16px; }
.contact-actions { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.contact-actions .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-actions .row:last-of-type { border-bottom: 0; }
.contact-actions .row .l { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #ffffff; font-weight: 600; }
.contact-actions .row .v { font-size: 17px; font-weight: 500; }
.contact-actions .row .v a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .contact-block { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
}

/* ─────────── footer ─────────── */

footer.footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-grid .col h4 { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 500; }
.footer-grid .col a { display: block; padding: 6px 0; color: rgba(255,255,255,0.82); font-size: 14.5px; }
.footer-grid .col a:hover { color: var(--accent); }
.footer-brand-block { display: flex; flex-direction: column; gap: 18px; max-width: 360px; }
.footer-brand-block p { color: rgba(255,255,255,0.82); font-size: 14.5px; line-height: 1.6; margin: 0; }
footer.footer { background: #0f1f33; }
.footer-bottom { color: #ffffff; }
.footer-bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: #ffffff; }
.footer-bottom .geo { font-family: "Inter", "Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.08em; font-size: 11px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-block { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─────────── reveal animations ─────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

html[data-anim="off"] [data-reveal] { opacity: 1; transform: none; transition: none; }
html[data-anim="off"] .ticker-track { animation: none; }

/* progress bar (scroll) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  width: 0%; background: var(--accent);
  z-index: 110;
  transition: width 80ms linear;
}
html[data-progress="off"] .scroll-progress { display: none; }

/* misc */
::selection { background: var(--accent); color: var(--on-accent); }
