/* ============================================================
   HELP|NET.kz — design system
   Palette: graphite + orange intelligence + blue infrastructure
   ============================================================ */

:root {
  --bg:        #141619;
  --bg-2:      #181B20;
  --surface:   #1D2127;
  --surface-2: #242932;
  --border:    #303640;
  --border-2:  #414955;

  --text:      #F2F4F8;
  --dim:       #B4BAC6;
  --mute:      #969FAF;

  --accent:    #FF862F;
  --accent-2:  #FFA967;
  --accent-soft: rgba(255, 134, 47, 0.08);
  --accent-line: rgba(255, 134, 47, 0.3);

  --it:    #67A9F3;
  --it-soft: rgba(103, 169, 243, 0.08);
  --it-line: rgba(103, 169, 243, 0.3);
  --ai:    var(--accent);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:    1320px;
  --pad:     clamp(22px, 4vw, 56px);

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

  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }

/* subtle graphite grain + vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(255,134,47,0.035), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(103,169,243,0.035), transparent 55%);
  pointer-events: none; z-index: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #0B0D11;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
}
.section { position: relative; padding-block: clamp(64px, 9vw, 118px); }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- typography bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); display: inline-block;
  margin-bottom: 18px;
}
.accent { color: var(--accent); }
.accent-blue { color: var(--it); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--it); outline-offset: 5px; }
button[hidden] { display: none; }
.sec-lead { color: var(--dim); font-size: clamp(15px, 1.5vw, 17px); max-width: 62ch; margin-top: 14px; }

/* section header */
.sec-head {
  display: flex; justify-content: space-between; gap: 32px;
  align-items: flex-end; margin-bottom: clamp(30px, 4vw, 48px);
}
.sec-heading { min-width: 0; }
.sec-head h2 { font-size: clamp(28px, 3.7vw, 44px); max-width: 25ch; }
.section-actions { margin-top: 30px; }
.section-actions .btn { max-width: 100%; white-space: normal; text-align: left; }
.section-label { display: inline-flex; gap: 12px; align-items: center; margin-bottom: 20px; color: var(--dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.section-label .ui-icon { color: var(--it); width: 22px; height: 22px; }
#ai .section-label .ui-icon, #process .section-label .ui-icon { color: var(--accent); }
.section-note { color: var(--mute); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; padding-bottom: 6px; max-width: 19ch; text-align: right; flex: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease),
              border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
}
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-primary {
  background: var(--accent); color: #0B0D11;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 12px 30px -12px var(--accent-glow, rgba(255,122,41,0.6));
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(255,122,41,0.7); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent-line); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20,22,25,0.84); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border-2); background: rgba(20,22,25,0.96); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; font-family: var(--font); font-weight: 700; font-size: 21px; letter-spacing: -0.045em; }
.brand-mark { flex: none; width: 42px; height: 42px; }
.logo-wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; }
.logo-mark { color: var(--text); }
.logo-sep { color: var(--accent); margin: 0 3px; font-weight: 500; }
.logo-tld { color: var(--it); font-weight: 700; }
.logo-domain { color: var(--dim); font-size: 16px; font-weight: 500; }
.logo:hover .logo-mark { color: var(--accent); }
.logo:hover .logo-tld { color: var(--text); }
.logo { transition: color var(--t) var(--ease); }

.site-nav { display: flex; gap: 2px; margin-left: auto; }
.nav-link {
  padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 500; white-space: nowrap;
  color: var(--dim); position: relative; transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link[aria-current="location"], .nav-link[aria-current="page"] { color: var(--text); background: var(--it-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.btn-nav-cta { margin-left: 0; padding: 11px 16px; font-size: 13px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface);
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 6vw, 84px) 28px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -1px; z-index: 0;
  background:
    radial-gradient(50% 75% at 94% 35%, rgba(255,134,47,0.065), transparent 70%),
    radial-gradient(55% 85% at 56% 50%, rgba(103,169,243,0.055), transparent 70%);
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
          mask: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: center; position: relative; z-index: 1; }
.hero-copy, .hero-art { min-width: 0; }
.hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.16; font-weight: 700; letter-spacing: -0.045em; margin-bottom: 24px; }
.hero .lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.8; color: var(--dim); max-width: 52ch; }
.hero-eyebrow { font-size: 10px; letter-spacing: 0.13em; display: inline-flex; align-items: center; gap: 12px; color: var(--dim); margin-bottom: 26px; }
.eyebrow-line { width: 26px; height: 2px; background: linear-gradient(90deg, var(--it), var(--accent)); flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.legend-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--dim); transition: border-color var(--t), color var(--t);
}
.legend-chip:hover { border-color: var(--border-2); color: var(--text); }
.legend-plus { font-family: var(--mono); color: var(--mute); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-ai { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dot-it { background: var(--it); box-shadow: 0 0 0 4px var(--it-soft); }

.hero-art { display: flex; flex-direction: column; position: relative; }
.link-graph { width: 100%; height: auto; }
.art-heading { display: flex; align-items: center; gap: 16px; padding: 0 10px; }
.art-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--mute); white-space: nowrap; }
.art-heading-line { height: 1px; background: var(--border); flex: 1; }
.art-heading-symbol { color: var(--accent); font-family: var(--mono); font-size: 18px; }
.art-footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding: 16px 10px 0; }
.art-caption { color: var(--dim); font-size: 12px; }
.graph-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--dim); font-size: 11px; flex: none; }
.graph-toggle:hover { color: var(--text); border-color: var(--it-line); }
.graph-toggle-icon { font-size: 13px; width: 12px; }
.hero-baseline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 22px; font-size: 12px; color: var(--mute); }
.hero-baseline::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--border); }
.hero-baseline strong { font-weight: 500; color: var(--dim); }
.scroll-cue { display: flex; align-items: center; gap: 18px; }
.scroll-cue span { color: var(--it); font-size: 20px; }
.scroll-cue:hover { color: var(--text); }

/* The finished graph is visible without JS; enhancement adds the drawing sequence. */
.graph-orbits { fill: none; stroke: var(--border); stroke-width: 1; }
.graph-orbits ellipse { stroke-dasharray: 3 8; opacity: 0.7; }
.graph-orbits .orbit-dot { fill: var(--mute); stroke: none; }
.graph-wire { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.wires-it { stroke: var(--it); opacity: 0.45; }
.wires-ai { stroke: var(--accent); opacity: 0.45; }
.bridge { stroke: url(#flow); stroke-width: 2; }
.graph-node rect { fill: var(--surface); stroke-width: 1; }
.node-it rect { stroke: var(--it-line); }
.node-ai rect { stroke: var(--accent-line); }
.graph-node text { fill: var(--dim); font-family: var(--font); font-size: 12px; }
.graph-icon { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node-it .graph-icon, .hub-it .graph-icon { stroke: var(--it); }
.node-ai .graph-icon, .hub-ai .graph-icon { stroke: var(--accent); }
.graph-hub rect { fill: var(--surface); stroke-width: 1.5; }
.hub-it rect { stroke: var(--it); }
.hub-ai rect { stroke: var(--accent); }
.hub-halo { fill: none; stroke-width: 1; }
.hub-it .hub-halo { stroke: var(--it-line); }
.hub-ai .hub-halo { stroke: var(--accent-line); }
.hub-label { fill: var(--text); font-family: var(--font); font-weight: 600; font-size: 15px; }
.hub-sub { fill: var(--mute); font-family: var(--font); font-size: 11px; }
.chip-label { fill: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.graph-node .system-label { fill: var(--accent); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.bridge-label { font-family: var(--mono); fill: var(--dim); font-size: 9px; letter-spacing: 0.035em; }
.bridge-label circle { fill: var(--bg); stroke: var(--it); stroke-width: 1.2; }
.bridge-label circle:last-child { stroke: var(--accent); }
.graph-signal { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 97; opacity: 0; }
.signal-it { stroke: var(--it); }
.signal-ai { stroke: var(--accent); }
.signal-bridge { stroke: url(#flow); }
.graph-ready .graph-step { opacity: 0; transform: translateY(8px); }
.graph-ready .graph-wire { stroke-dasharray: 1; stroke-dashoffset: 1; }
.graph-ready.is-visible .graph-step { animation: node-appear 800ms var(--ease) var(--delay, 0s) both; }
.graph-ready.is-visible .graph-wire { animation: wire-appear 1s var(--ease) var(--delay, 0s) both; }
.graph-ready.is-visible .graph-signal { animation: signal-flow 4.8s linear var(--delay, 3.5s) infinite both; }
.hero-art.is-paused .graph-step, .hero-art.is-paused .graph-wire, .hero-art.is-paused .graph-signal { animation-play-state: paused; }
@keyframes node-appear { to { opacity: 1; transform: none; } }
@keyframes wire-appear { to { stroke-dashoffset: 0; } }
@keyframes signal-flow { 0% { opacity: 0; stroke-dashoffset: 0; } 8%, 75% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }

/* ---------- generic cards ---------- */
.grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card, .ex-card, .step, .project-card { --card-accent: var(--accent); --card-soft: var(--accent-soft); --card-line: var(--accent-line); }
.card:nth-child(even), .ex-card:nth-child(even), .step:nth-child(even), .project-card:nth-child(even) { --card-accent: var(--it); --card-soft: var(--it-soft); --card-line: var(--it-line); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--card-accent), transparent 90%);
  transform-origin: left;
}
.card:hover { transform: translateY(-4px); border-color: var(--card-line); background: var(--surface-2); }
#outsourcing .eyebrow { color: var(--it); }
.card-top { display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px; }
.service-icon, .step-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 14px; border: 1px solid var(--card-line); background: var(--card-soft); color: var(--card-accent); }
.service-icon .ui-icon, .step-icon .ui-icon { width: 25px; height: 25px; }
.card h3 { font-size: 18px; font-weight: 600; }
.card p { color: var(--dim); font-size: 15px; }
.card-ex, .card-out {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border-2); font-size: 14px;
}
.card-ex { background: var(--it-soft); border-color: var(--it-line); }
.card-out { background: var(--accent-soft); border-color: var(--accent-line); }
.card-ex span, .card-out span {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 6px;
}
.card-ex p, .card-out p { color: var(--text); }
.card-for { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.card-for span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--card-accent); margin-bottom: 6px; }
.card-highlight { border-color: var(--card-line); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }

/* ---------- infrastructure and AI routes ---------- */
.infra-panel { display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; gap: 28px; padding: 34px; margin-bottom: 28px; border: 1px solid var(--it-line); border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 85% 50%, var(--it-soft), transparent 65%), var(--surface); }
.infra-copy h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; }
.infra-copy p { color: var(--dim); font-size: 15px; max-width: 42ch; }
.tech-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tech-tags span { padding: 5px 9px; color: var(--dim); border: 1px solid var(--border-2); border-radius: 6px; font-size: 11px; line-height: 1.4; }
.infra-map { height: 260px; position: relative; min-width: 0; background-image: radial-gradient(var(--border-2) 1px, transparent 1px); background-size: 18px 18px; }
.infra-wires { position: absolute; width: 100%; height: 100%; inset: 0; overflow: visible; }
.circuit-wire { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wire-blue { stroke: var(--it); }
.wire-orange { stroke: var(--accent); }
.map-node, .map-core { position: absolute; display: flex; align-items: center; flex-direction: column; justify-content: center; transform: translate(-50%, -50%); }
.map-node { width: 112px; gap: 9px; color: var(--dim); font-size: 11px; text-align: center; }
.map-node .ui-icon { box-sizing: content-box; padding: 13px; width: 23px; height: 23px; border-radius: 13px; background: var(--surface); border: 1px solid var(--it-line); color: var(--it); }
.node-workplace { left: 13%; top: 25%; }
.node-network { left: 13%; top: 75%; }
.node-server { left: 87%; top: 25%; }
.node-backup { left: 87%; top: 75%; }
.node-server .ui-icon, .node-backup .ui-icon { border-color: var(--accent-line); color: var(--accent); }
.map-core { left: 50%; top: 50%; width: 148px; height: 128px; border: 1px solid var(--it-line); border-radius: 24px; background: var(--bg-2); box-shadow: 0 0 0 9px var(--surface), 0 0 0 10px var(--border); gap: 8px; font-weight: 600; font-size: 17px; }
.map-core > .ui-icon { color: var(--it); width: 30px; height: 30px; }
.map-core small { color: var(--mute); font-size: 10px; font-weight: 400; }
.reveal-ready .circuit-wire { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal-ready.in .circuit-wire { animation: wire-appear 1.6s var(--ease) 200ms both; }
.reveal-ready.in .wire-orange { animation-delay: 600ms; }
.workflow-panel { padding: 26px 30px; border: 1px solid var(--border); border-radius: 20px; margin-bottom: 28px; background: linear-gradient(120deg, var(--surface), var(--bg-2)); }
.workflow-heading { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.workflow-heading .eyebrow { margin: 0; font-size: 10px; }
.workflow-heading p { color: var(--dim); font-size: 13px; }
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; }
.workflow li { display: flex; align-items: center; gap: 12px; position: relative; min-width: 0; }
.workflow li > .ui-icon { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 11px; width: 46px; height: 46px; }
.workflow li:nth-child(even) > .ui-icon { color: var(--it); background: var(--it-soft); border-color: var(--it-line); }
.workflow strong, .workflow span { display: block; }
.workflow strong { font-size: 14px; font-weight: 500; }
.workflow span { font-size: 11px; color: var(--mute); margin-top: 3px; }
.workflow li:not(:last-child)::after { content: "→"; position: absolute; right: -20px; color: var(--border-2); }
.reveal-ready.in .workflow li { animation: route-appear 650ms var(--ease) both; }
.reveal-ready.in .workflow li:nth-child(2) { animation-delay: 150ms; }
.reveal-ready.in .workflow li:nth-child(3) { animation-delay: 300ms; }
.reveal-ready.in .workflow li:nth-child(4) { animation-delay: 450ms; }
@keyframes route-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- bento (AI) ---------- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  grid-auto-rows: minmax(150px, auto);
}
.bento h3 { margin-block: 16px 14px; }
.bento .card-lg { background: linear-gradient(145deg, var(--surface-2), var(--surface) 65%); }
.bento .card-lg::after { content: ""; position: absolute; width: 150px; height: 150px; right: -55px; top: -55px; border: 1px solid var(--card-line); border-radius: 30px; transform: rotate(45deg); box-shadow: 0 0 0 18px var(--card-soft); pointer-events: none; }
.card-lg { grid-column: span 2; grid-row: span 2; }
.card-highlight { grid-column: span 2; }
.bento > .card:nth-last-child(2) { grid-column: span 2; }

/* ---------- examples ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); transition: transform var(--t) var(--ease), border-color var(--t) var(--ease); }
.project-card:hover { border-color: var(--card-line); transform: translateY(-4px); }
.project-visual { height: 144px; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 50% 100%, var(--card-soft), transparent 75%), var(--bg); position: relative; }
.project-body { padding: 26px; }
.project-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--card-accent); }
.project-body h3 { margin-top: 12px; font-size: 24px; }
.project-body p { margin-top: 13px; font-size: 15px; color: var(--dim); max-width: 55ch; }
.project-link { display: inline-flex; align-items: center; gap: 20px; color: var(--text); font-size: 13px; margin-top: 22px; }
.project-link span { color: var(--card-accent); font-size: 18px; transition: transform var(--t); }
.project-link:hover span { transform: translate(3px, -3px); }
.project-flow { display: flex; align-items: center; justify-content: space-around; padding: 18px 30px; gap: 36px; }
.project-flow > span { display: flex; align-items: center; flex-direction: column; gap: 9px; position: relative; width: 80px; }
.project-flow > span:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: calc(100% - 8px); width: clamp(26px, 4vw, 75px); height: 1px; background: linear-gradient(90deg, var(--card-accent), var(--border)); }
.project-flow .ui-icon { width: 50px; height: 50px; padding: 12px; color: var(--card-accent); background: var(--surface); border: 1px solid var(--card-line); border-radius: 15px; }
.project-flow > span:nth-child(2) .ui-icon { box-shadow: 0 0 0 5px var(--card-soft); }
.project-flow small { font-size: 11px; color: var(--dim); white-space: nowrap; }
.subsection-heading { margin-block: 48px 24px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.subsection-heading h3 { font-size: 22px; max-width: 30ch; }
.subsection-heading p { font-size: 14px; color: var(--dim); max-width: 38ch; }
.industry-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-block: -8px 36px; padding-block: 26px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.industry-item { display: flex; gap: 18px; align-items: flex-start; }
.industry-icon { color: var(--it); flex: none; padding-top: 3px; }
.industry-item:nth-child(2) .industry-icon { color: var(--accent); }
.industry-item h3 { font-size: 19px; margin-bottom: 10px; }
.industry-item p { font-size: 14px; color: var(--dim); max-width: 54ch; }
.examples-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ex-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.ex-card:hover { transform: translateY(-4px); border-color: var(--card-line); }
.ex-card .service-icon { margin-bottom: 6px; }
.ex-card h3 { font-size: 18px; }
.ex-card p { color: var(--dim); font-size: 15px; }
.ex-card .ex-out { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); color: var(--card-accent); font-size: 14px; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--card-line); }
.step-icon { margin-bottom: 22px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -21px; width: 20px; height: 1.5px;
  background: linear-gradient(90deg, var(--it), var(--accent));
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--dim); font-size: 14.5px; }

/* ---------- CTA panel ---------- */
.service-hero { position: relative; overflow: hidden; padding-block: 30px clamp(60px, 6vw, 86px); }
.service-hero-it { background: radial-gradient(ellipse at 80% 50%, rgba(103,169,243,.09), transparent 60%); }
.service-hero-ai { background: radial-gradient(ellipse at 80% 50%, rgba(255,134,47,.07), transparent 60%); }
.service-hero::before { content: ""; position: absolute; height: 1px; left: 20%; right: 0; top: 50%; background: linear-gradient(90deg, transparent, var(--border), transparent); transform: rotate(-25deg); pointer-events: none; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; margin-bottom: clamp(36px, 5vw, 64px); }
.breadcrumbs a:hover { color: var(--text); }
.service-hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 36px; align-items: center; }
.service-intro h1 { font-size: clamp(36px, 4.2vw, 59px); max-width: 20ch; line-height: 1.06; }
.service-intro .lead { color: var(--dim); font-size: clamp(16px, 1.5vw, 18px); max-width: 56ch; margin-top: 24px; }
.service-art { min-width: 0; width: 100%; position: relative; }
.service-scene { width: 100%; height: auto; overflow: visible; }
.scene-caption { display: flex; gap: 10px; align-items: center; color: var(--dim); font-family: var(--mono); font-size: 10px; padding: 0 8px; }
.scene-caption-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--it); box-shadow: 0 0 0 4px var(--it-soft); flex: none; }
.service-art-ai .scene-caption-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.scene-code { font-size: 20px; color: var(--accent); margin-left: auto; }
.scene-orbits { fill: none; stroke: var(--border-2); stroke-width: 1; }
.scene-orbits ellipse { stroke-dasharray: 3 10; opacity: .65; }
.scene-orbits circle { stroke: var(--it-line); }
.service-art-ai .scene-orbits circle { stroke: var(--accent-line); }
.scene-blue { --scene-color: var(--it); --scene-line: var(--it-line); }
.scene-orange { --scene-color: var(--accent); --scene-line: var(--accent-line); }
.scene-wire { fill: none; stroke: var(--scene-color); stroke-width: 1.7; opacity: .65; }
.scene-pulse { fill: none; stroke: var(--scene-color); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .035 .965; opacity: 0; }
.scene-node rect, .scene-core rect { fill: var(--surface); stroke: var(--scene-line); stroke-width: 1.5; }
.scene-core rect { stroke: var(--scene-color); fill: var(--bg-2); }
.scene-icon { fill: none; stroke: var(--scene-color); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene-label { fill: var(--dim); font-family: var(--font); font-size: 15px; }
.scene-core-label { fill: var(--text); font-family: var(--font); font-weight: 600; font-size: 22px; }
.scene-legend { fill: var(--mute); font-family: var(--mono); font-size: 11px; }
.scene-legend circle:first-child { fill: var(--it); }
.scene-legend circle:last-child { fill: var(--accent); }
.service-art figcaption { border-top: 1px solid var(--border); padding: 16px 8px 0; color: var(--dim); font-size: 12px; }
.service-art.reveal-ready .scene-wire { stroke-dasharray: 1; stroke-dashoffset: 1; }
.service-art.reveal-ready.in .scene-wire { animation: wire-appear 1.2s var(--ease) var(--scene-delay) both; }
.service-art.reveal-ready.in .scene-node, .service-art.reveal-ready.in .scene-core { animation: route-appear 650ms var(--ease) var(--scene-delay) both; }
.service-art.reveal-ready.in .scene-pulse { animation: scene-pass 1.6s linear var(--scene-delay) both; }
@keyframes scene-pass { 0% { opacity: 0; stroke-dashoffset: 1; } 15%, 75% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: 0; } }
.service-list { margin-top: 18px; padding-left: 18px; color: var(--dim); font-size: 13px; }
.service-list li { padding-block: 4px; }
.service-list li::marker { color: var(--card-accent); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.detail-panel { --card-accent: var(--it); --card-soft: var(--it-soft); --card-line: var(--it-line); display: flex; align-items: flex-start; gap: 22px; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.detail-panel:nth-child(even) { --card-accent: var(--accent); --card-soft: var(--accent-soft); --card-line: var(--accent-line); }
.detail-panel h3 { font-size: 22px; margin-bottom: 14px; }
.detail-panel .project-tag + h3 { margin-top: 12px; }
.detail-panel p { color: var(--dim); font-size: 15px; max-width: 72ch; }
.faq-list { max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary { padding: 24px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-weight: 500; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span { font-family: var(--mono); font-size: 22px; color: var(--it); transition: transform var(--t); flex: none; }
.faq-item[open] summary > span { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--it); outline-offset: 4px; }
.faq-item p { padding-bottom: 24px; max-width: 74ch; color: var(--dim); font-size: 15px; }
.section-cta .cta-panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 40%; height: 200%;
  background: radial-gradient(closest-side, rgba(103,169,243,0.12), transparent); filter: blur(20px); pointer-events: none;
}
.cta-text, .cta-aside { position: relative; min-width: 0; }
.cta-text h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 16px; }
.cta-text p { color: var(--dim); font-size: clamp(15px, 1.5vw, 17px); max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.contact-link { align-items: stretch; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; padding: 15px 20px; white-space: normal; }
.contact-link-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; font-weight: 500; }
.contact-link-value { font-size: 14px; overflow-wrap: anywhere; }
.cta-aside { display: flex; flex-direction: column; gap: 14px; }
.fact {
  display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px;
}
.fact > .ui-icon { color: var(--it); width: 20px; height: 20px; }
.fact:nth-child(even) > .ui-icon { color: var(--accent); }
.fact p { color: var(--dim); font-size: 14.5px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: clamp(40px, 6vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { color: var(--mute); font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.footer-logo { display: inline-block; width: 220px; max-width: 100%; }
.footer-logo img { width: 100%; height: auto; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.footer-col { min-width: 0; }
.footer-col a { color: var(--dim); font-size: 14px; overflow-wrap: anywhere; transition: color var(--t) var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-mute { color: var(--mute); font-size: 14.5px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--mute); font-size: 13.5px;
}
.footer-top { color: var(--dim); transition: color var(--t) var(--ease); }
.footer-top:hover { color: var(--accent); }

/* ---------- reveal ---------- */
.reveal-ready { opacity: 0; transition: opacity 700ms var(--ease) var(--reveal-delay, 0ms), transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease); }
.reveal-ready.in { opacity: 1; transform: none; }
.card.reveal-ready.in:hover, .project-card.reveal-ready.in:hover, .ex-card.reveal-ready.in:hover, .step.reveal-ready.in:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* Short, scroll-triggered packet routes. Absolute SVGs never affect layout. */
.signal-node { position: relative; --signal-color: var(--card-accent, var(--it)); }
.signal-node.reveal-ready { opacity: 1; transform: none; }
.card.signal-node.reveal-ready.in:hover, .project-card.signal-node.reveal-ready.in:hover,
.ex-card.signal-node.reveal-ready.in:hover, .step.signal-node.reveal-ready.in:hover { transform: none; }
.signal-node.reveal-ready > :not(.signal-frame) { opacity: 0; }
.signal-node.reveal-ready.in > :not(.signal-frame) { animation: signal-content 650ms var(--ease) calc(var(--reveal-delay, 0ms) + 180ms) both; }
.signal-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; color: var(--signal-color); }
.signal-contour, .signal-packet { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.signal-contour { stroke-width: 1; stroke-dasharray: 1; opacity: .23; }
.signal-node.reveal-ready .signal-contour { stroke-dashoffset: 1; }
.signal-node.reveal-ready.in .signal-contour { animation: signal-contour 1.2s var(--ease) var(--reveal-delay, 0ms) both; }
.signal-packet { stroke-width: 2.5; stroke-dasharray: .045 .955; opacity: 0; }
.signal-node.reveal-ready.in .signal-packet { animation: scene-pass 1.65s linear calc(var(--reveal-delay, 0ms) + 120ms) both; }
.signal-terminal { fill: currentColor; opacity: .45; }
.signal-node.reveal-ready.in .signal-terminal { animation: signal-terminal 1.1s ease calc(var(--reveal-delay, 0ms) + 350ms) both; }
.signal-node.reveal-ready.in .service-icon, .signal-node.reveal-ready.in .step-icon,
.signal-node.reveal-ready.in .project-flow .ui-icon { animation: signal-icon 1.4s ease calc(var(--reveal-delay, 0ms) + 200ms) both; }
.signal-node.reveal-ready.in > .service-icon, .signal-node.reveal-ready.in > .step-icon { animation: signal-content 650ms var(--ease) calc(var(--reveal-delay, 0ms) + 180ms) both, signal-icon 1.4s ease calc(var(--reveal-delay, 0ms) + 200ms) both; }
.card.signal-node.reveal-ready.in::before { animation: signal-stripe 900ms var(--ease) var(--reveal-delay, 0ms) both; }
.signal-network { position: absolute; pointer-events: none; overflow: visible; z-index: 1; }
.signal-route { color: var(--signal-color, var(--it)); }
.signal-track, .signal-link-pulse { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.signal-track { stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .5; }
.signal-route.is-connected .signal-track { animation: wire-appear 700ms var(--ease) var(--reveal-delay, 0ms) both; }
.signal-link-pulse { stroke-width: 3; stroke-dasharray: .15 .85; opacity: 0; }
.signal-route.is-connected .signal-link-pulse { animation: scene-pass 650ms linear var(--reveal-delay, 0ms) both; }
.signal-source, .signal-port { fill: var(--bg); stroke: currentColor; stroke-width: 1; opacity: 0; }
.signal-route.is-connected .signal-source { opacity: .7; }
.signal-route.is-connected .signal-port { animation: signal-port 900ms ease calc(var(--reveal-delay, 0ms) + 400ms) both; }
.step.signal-node::after { display: none; }
.sec-head .section-label::after { content: ""; width: 46px; height: 1px; flex: none; background: linear-gradient(90deg, var(--it), var(--accent)); transform-origin: left; }
.sec-head.reveal-ready.in .section-label::after { animation: signal-stripe 1.1s var(--ease) both; }
.sec-head.reveal-ready.in .section-label .ui-icon { animation: signal-icon 1.4s ease both; }
@keyframes signal-content { from { opacity: 0; } to { opacity: 1; } }
@keyframes signal-contour { 0% { stroke-dashoffset: 1; opacity: .2; } 65% { opacity: .7; } 100% { stroke-dashoffset: 0; opacity: .23; } }
@keyframes signal-terminal { 0%, 100% { opacity: .45; } 45% { opacity: 1; } }
@keyframes signal-icon { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 6px var(--card-soft, var(--it-soft)), 0 0 22px -6px var(--card-accent, var(--it)); } }
@keyframes signal-stripe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes signal-port { 0% { opacity: 0; fill: var(--bg); } 35% { opacity: 1; fill: currentColor; } 100% { opacity: .7; fill: var(--bg); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-lg { grid-column: span 2; grid-row: span 1; }
  .card-highlight { grid-column: span 2; }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .infra-panel { grid-template-columns: 1fr 1.4fr; padding: 26px; gap: 22px; }
  .workflow { grid-template-columns: repeat(2, 1fr); gap: 24px 36px; }
  .workflow li:nth-child(2)::after { display: none; }
}
@media (max-width: 1020px) {
  .js .nav-toggle { display: flex; margin-left: auto; }
  .btn-nav-cta { display: none; }
  .js .site-nav {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; gap: 4px; margin: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 16px var(--pad);
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }
  .js .site-nav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  html:not(.js) .nav-inner { height: auto; min-height: 80px; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; margin-left: 0; }
  .nav-link { font-size: 16px; padding: 13px 14px; }
  .nav-link::after { display: none; }
  .section-cta .cta-panel { grid-template-columns: 1fr; }
  .cta-aside { flex-direction: row; }
  .fact { flex: 1; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 600px; margin: 0 auto; width: 100%; }
  .hero h1 { font-size: clamp(34px, 5.8vw, 50px); }
  .hero .lead { max-width: 62ch; }
  .hero { text-align: left; }
  .infra-panel { grid-template-columns: 1fr; }
  .infra-copy p { max-width: 62ch; }
  .infra-map { width: 100%; max-width: 600px; margin-inline: auto; }
  .section-note { display: none; }
  .service-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-intro h1 { max-width: 22ch; }
  .detail-grid { grid-template-columns: 1fr; }
  .industry-strip { grid-template-columns: 1fr; gap: 24px; }
  .service-art { max-width: 640px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .cards-3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card-lg, .card-highlight { grid-column: span 1; }
  .bento > .card:nth-last-child(2) { grid-column: span 1; }
  .examples-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sec-head { gap: 12px; }
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .infra-panel { padding: 24px 18px; }
  .infra-map { height: 240px; }
  .map-core { width: 112px; height: 110px; font-size: 14px; border-radius: 20px; }
  .map-core small { font-size: 8px; }
  .map-node { width: 90px; font-size: 9px; }
  .map-node .ui-icon { width: 20px; height: 20px; padding: 10px; }
  .workflow-panel { padding: 24px; }
  .workflow-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .workflow { grid-template-columns: 1fr; gap: 24px; }
  .workflow li:not(:last-child)::after { display: block; content: "↓"; left: 18px; top: 47px; right: auto; font-size: 13px; }
  .subsection-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .project-body { padding: 24px; }
  .service-intro h1 { font-size: clamp(31px, 8.3vw, 45px); }
  .scene-label { font-size: 20px; }
  .scene-core-label { font-size: 25px; }
  .scene-legend { font-size: 14px; }
  .scene-caption { font-size: 9px; }
  .service-hero .hero-cta { flex-wrap: wrap; }
  .detail-panel { flex-direction: column; padding: 24px; }
  .faq-item summary { font-size: 15px; }
  .project-flow { gap: 12px; padding-inline: 18px; }
  .project-flow > span:not(:last-child)::after { width: 24px; }
  .section-cta .cta-panel { grid-template-columns: 1fr; }
  .cta-aside { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn-lg { width: 100%; }
  .cta-actions { flex-direction: column; }
  .hero-baseline { margin-top: 36px; flex-wrap: wrap; font-size: 11px; gap: 8px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 0.09em; gap: 9px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { font-size: 13px; padding: 12px 16px; gap: 8px; }
  .art-kicker { font-size: 8px; }
  .graph-node text { font-size: 17px; }
  .graph-node .system-label { font-size: 18px; }
  .hub-label { font-size: 18px; }
  .hub-sub { font-size: 14px; }
  .art-caption { font-size: 11px; max-width: 22ch; }
  .contact-link { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready { opacity: 1; transform: none; }
  .signal-node.reveal-ready > :not(.signal-frame) { opacity: 1; }
  .signal-node.reveal-ready .signal-contour, .signal-track { stroke-dashoffset: 0; }
  .signal-source, .signal-port { opacity: .7; }
  .signal-packet, .signal-link-pulse { display: none; }
  .graph-ready .graph-step { opacity: 1; transform: none; }
  .graph-ready .graph-wire { stroke-dashoffset: 0; }
  .reveal-ready .circuit-wire { stroke-dashoffset: 0; }
  .service-art.reveal-ready .scene-wire { stroke-dashoffset: 0; }
  .graph-signal, .graph-toggle { display: none; }
}
