@charset "UTF-8";
/* =========================================================================
   Yolaiz Inc. — corporate site design system
   Dark precision-grid. Single stylesheet, no build step.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces */
  --bg:            #07080b;
  --surface-1:     #0e1117;   /* card / chart surface (validated for palette) */
  --surface-2:     #131720;
  --surface-3:     #1a1f2a;
  --surface-inset: #0a0c11;

  /* hairlines */
  --line:          rgba(255,255,255,.075);
  --line-2:        rgba(255,255,255,.13);
  --line-3:        rgba(255,255,255,.22);
  --grid-line:     rgba(255,255,255,.038);

  /* ink */
  --ink:           #edf0f5;
  --ink-2:         #98a2b6;
  --ink-3:         #6b748a;
  --ink-4:         #4a5265;

  /* brand + data series (validated: dark, surface #0e1117) */
  --accent:        #4c8dff;
  --accent-soft:   rgba(76,141,255,.14);
  --accent-line:   rgba(76,141,255,.38);
  --series-1:      #4c8dff;
  --series-2:      #d95926;
  --series-3:      #199e70;

  /* status */
  --good:          #0ca30c;
  --warning:       #fab219;
  --critical:      #d03b3b;

  /* type */
  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* metrics */
  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 48px);
  --nav-h: 68px;
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] .sec-title,
html[lang="ja"] .hero__lead,
html[lang="ja"] .sec-lead {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

html[lang="ja"] {
  --font-sans: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.38; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: rgba(76,141,255,.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 900px; }

.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--line { border-top: 1px solid var(--line); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* eyebrow / section head */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent); flex: none;
}
.sec-title {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -.02em;
  line-height: 1.32;
  max-width: 22em;
}
.sec-lead {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(14.5px, 1.15vw, 16px);
  max-width: 62ch;
  line-height: 1.95;
}
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--split {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: start; gap: 56px; }
  .sec-head--split .sec-lead { margin-top: 0; }
}

/* ---------- 4. Grid backdrop ---------- */
.grid-bg { position: relative; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}
.grid-bg > * { position: relative; z-index: 1; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,11,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header__in {
  height: 100%; display: flex; align-items: center; gap: 28px;
}
@media (max-width: 760px) {
  .site-header__in { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .btn--primary { display: none; }
  .lang-switch { padding: 7px 10px; }
  .logo svg { width: 23px; height: 23px; }
  .logo__latin { font-size: 13.5px; letter-spacing: .13em; }
  .logo__kana { font-size: 8.5px; }
}
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo svg { width: 26px; height: 26px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__latin {
  font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  letter-spacing: .16em; color: var(--ink);
}
.logo__kana {
  font-size: 9.5px; letter-spacing: .18em; color: var(--ink-3); margin-top: 4px;
}

.nav { margin-left: auto; display: none; align-items: center; gap: 2px; }
@media (min-width: 1080px) { .nav { display: flex; } }
.nav a {
  font-size: 13px; color: var(--ink-2); padding: 9px 13px; border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 1px; background: var(--accent); margin-top: 5px;
}

.nav-drop { position: relative; }
.nav-drop__panel {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 268px;
  background: var(--surface-1); border: 1px solid var(--line-2);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .22s var(--ease); box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.nav-drop:hover .nav-drop__panel,
.nav-drop:focus-within .nav-drop__panel { opacity: 1; visibility: visible; transform: none; }
.nav-drop__panel a { display: block; padding: 11px 13px; font-size: 13px; }
.nav-drop__panel .d-sub { display: block; font-size: 11px; color: var(--ink-4); margin-top: 3px; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 1080px) { .header-actions { margin-left: 12px; } }
.lang-switch {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  border: 1px solid var(--line-2); padding: 7px 12px; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.lang-switch:hover { color: var(--ink); border-color: var(--line-3); }

.burger {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 1px solid var(--line-2); cursor: pointer;
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger span { display: block; width: 16px; height: 1px; background: var(--ink); transition: .25s var(--ease); }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 88;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 28px var(--gut) 60px; overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav h4 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
  color: var(--ink-4); text-transform: uppercase; margin: 26px 0 8px;
}
.mobile-nav h4:first-child { margin-top: 0; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: all .22s var(--ease); white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #6ba0ff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,.04); }
.btn--sm { padding: 10px 18px; font-size: 12.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--accent);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.link-arrow:hover { border-color: var(--accent-line); }
.link-arrow svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; border-bottom: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, 128px) clamp(56px, 7vw, 96px);
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .95;
}
.hero__in { position: relative; z-index: 2; }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 72px); }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); align-items: center; } }

.hero__eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
  color: var(--ink-3); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(30px, 4.3vw, 54px);
  line-height: 1.24; letter-spacing: -.03em; font-weight: 600;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--ink-2); }
.hero__lead {
  margin-top: 30px; max-width: 54ch; color: var(--ink-2);
  font-size: clamp(14.5px, 1.15vw, 16.5px); line-height: 1.95;
}
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* status panel */
.status-panel {
  background: linear-gradient(180deg, var(--surface-1), var(--surface-inset));
  border: 1px solid var(--line-2);
  padding: 22px;
}
.status-panel__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.status-panel__title { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.status-panel__sub { font-size: 10.5px; color: var(--ink-4); font-family: var(--font-mono); letter-spacing: .06em; }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--good); margin-right: 7px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(12,163,12,.55); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(12,163,12,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(12,163,12,0); }
  100% { box-shadow: 0 0 0 0 rgba(12,163,12,0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.status-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  border-top: 1px solid var(--line); margin-top: 18px;
}
.status-cell {
  padding: 15px 4px 4px; border-bottom: 1px solid var(--line);
}
.status-cell:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.status-cell:nth-child(even) { padding-left: 16px; }
.status-cell:nth-last-child(-n+2) { border-bottom: 0; }
.status-cell__k {
  font-size: 10.5px; color: var(--ink-4); font-family: var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase;
}
.status-cell__v {
  font-family: var(--font-mono); font-size: clamp(19px, 2vw, 24px); font-weight: 500;
  margin-top: 7px; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.status-cell__v small { font-size: 12px; color: var(--ink-3); margin-left: 3px; font-weight: 400; }

.spark { margin-top: 20px; }
.spark__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10.5px; font-family: var(--font-mono); color: var(--ink-4);
  letter-spacing: .08em; margin-bottom: 8px;
}
.viz-note { font-size: 10.5px; color: var(--ink-4); margin-top: 14px; line-height: 1.7; }

/* ---------- 8. Pillars ---------- */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.pillar {
  background: var(--bg); padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; min-height: 100%;
  transition: background .3s var(--ease);
}
.pillar:hover { background: var(--surface-1); }
.pillar__num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  color: var(--accent); margin-bottom: 22px;
}
.pillar__icon { width: 40px; height: 40px; margin-bottom: 22px; color: var(--ink-2); }
.pillar h3 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -.01em; }
.pillar__sub {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink-4); margin-top: 9px; text-transform: uppercase;
}
.pillar p { margin-top: 18px; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; flex: 1; }
.pillar .link-arrow { margin-top: 26px; align-self: flex-start; }

/* ---------- 9. Metrics ---------- */
.metrics { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 700px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--bg); padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 30px); }
.metric__v {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.metric__v .suffix { font-size: .55em; color: var(--accent); margin-left: 2px; }
.metric__k { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 10. Approach ---------- */
.approach { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .approach { grid-template-columns: repeat(3, 1fr); } }
.approach__item { background: var(--bg); padding: clamp(28px, 3vw, 40px); }
.approach__num {
  font-family: var(--font-mono); font-size: 30px; color: var(--surface-3);
  line-height: 1; letter-spacing: -.03em; margin-bottom: 24px; font-weight: 500;
}
.approach__item h3 { font-size: 16px; }
.approach__item p { margin-top: 15px; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }

/* ---------- 11. Cards / cases ---------- */
.card-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 780px) { .card-grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 780px) { .card-grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px) { .card-grid--3 { grid-template-columns: repeat(3,1fr); } }

.case-card {
  background: var(--bg); padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  transition: background .3s var(--ease);
}
.case-card:hover { background: var(--surface-1); }
.case-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--line-2); padding: 4px 9px;
}
.case-card .case-card__metric {
  font-family: var(--font-mono); font-size: clamp(28px,3vw,38px); font-weight: 500;
  letter-spacing: -.03em; color: var(--series-1); font-variant-numeric: tabular-nums; line-height: 1;
}
.case-card .case-card__metric span { font-size: .5em; }
.case-card .case-card__metric-k { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.case-card h3 { font-size: 16.5px; line-height: 1.6; }
.case-card .case-card__client, .case-block .case-card__client { font-size: 12px; color: var(--ink-4); font-family: var(--font-mono); letter-spacing: .06em; }
.case-card p { color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }

/* full case block (cases page) */
.case-block {
  border: 1px solid var(--line); background: var(--surface-1);
  padding: clamp(28px, 4vw, 52px); margin-bottom: 28px;
}
.case-block__head {
  display: grid; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 30px;
}
@media (min-width: 900px) { .case-block__head { grid-template-columns: minmax(0,1fr) 220px; align-items: start; gap: 48px; } }
.case-block h2 { font-size: clamp(19px, 2.2vw, 27px); line-height: 1.5; margin-top: 14px; }
.case-block__stat {
  border-left: 2px solid var(--series-1); padding-left: 20px;
}
.case-block__stat .v {
  font-family: var(--font-mono); font-size: clamp(32px,4vw,46px); font-weight: 500;
  letter-spacing: -.035em; color: var(--series-1); line-height: 1; font-variant-numeric: tabular-nums;
}
.case-block__stat .v span { font-size: .5em; }
.case-block__stat .k { font-size: 12px; color: var(--ink-3); margin-top: 10px; line-height: 1.6; }
.case-body { display: grid; gap: 28px; }
@media (min-width: 900px) { .case-body { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.case-body h4 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.case-body p { color: var(--ink-2); font-size: 13.5px; line-height: 1.95; }
.case-meta {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; gap: 16px; font-size: 12.5px;
}
@media (min-width: 760px) { .case-meta { grid-template-columns: 2fr 1fr; gap: 40px; } }
.case-meta dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-4); text-transform: uppercase; margin-bottom: 7px; }
.case-meta dd { margin: 0; color: var(--ink-2); line-height: 1.8; }

/* ---------- 12. Filter bar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn {
  background: none; border: 1px solid var(--line-2); color: var(--ink-2);
  padding: 8px 16px; font-size: 12.5px; cursor: pointer; transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--line-3); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- 13. News ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; gap: 6px 28px; padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease);
}
@media (min-width: 820px) { .news-item { grid-template-columns: 120px 150px minmax(0,1fr); align-items: baseline; padding: 26px 8px; } }
.news-item:hover { background: var(--surface-1); }
.news-item__date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.news-item__title { font-size: 15px; line-height: 1.7; font-weight: 500; }
.news-item__body { margin-top: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.9; grid-column: 1/-1; }
@media (min-width: 820px) { .news-item__body { grid-column: 3; } }


/* home compact news */
.news-compact { border-top: 1px solid var(--line); }
.news-compact a, .news-compact div.row {
  display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .news-compact a, .news-compact div.row { grid-template-columns: 110px 140px minmax(0,1fr); align-items: baseline; } }

/* ---------- 14. Tables (spec / profile) ---------- */
.spec-table { border-top: 1px solid var(--line); }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th, .spec-table td {
  text-align: left; vertical-align: top; padding: 18px 0; font-size: 13.5px; line-height: 1.85;
}
.spec-table th {
  font-weight: 500; color: var(--ink-3); width: 34%; padding-right: 24px;
  font-size: 12.5px;
}
.spec-table td { color: var(--ink); }
@media (max-width: 700px) {
  .spec-table th, .spec-table td { display: block; width: 100%; padding-block: 0; }
  .spec-table th { padding-top: 18px; }
  .spec-table td { padding-bottom: 18px; padding-top: 6px; }
}

/* ---------- 15. Service list ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 780px) { .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1120px) { .svc-grid { grid-template-columns: repeat(3,1fr); } }
.svc { background: var(--bg); padding: clamp(24px,2.6vw,34px); }
.svc__n { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); letter-spacing: .16em; }
.svc h3 { font-size: 15.5px; margin-top: 16px; line-height: 1.55; }
.svc p { margin-top: 14px; color: var(--ink-2); font-size: 13px; line-height: 1.9; }

/* ---------- 16. Process ---------- */
.process { border-top: 1px solid var(--line); }
.process__step {
  display: grid; gap: 10px 32px; padding: 30px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .process__step { grid-template-columns: 64px minmax(0,300px) minmax(0,1fr); align-items: start; gap: 40px; } }
.process__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; padding-top: 3px; }
.process__t h3 { font-size: 16.5px; }
.process__dur {
  display: inline-block; margin-top: 10px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3);
  border: 1px solid var(--line-2); padding: 3px 9px;
}
.process__step p { color: var(--ink-2); font-size: 13.5px; line-height: 1.95; }

/* ---------- 17. Timeline ---------- */
.timeline { border-left: 1px solid var(--line-2); padding-left: 0; margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 34px 34px; }
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 9px;
  width: 8px; height: 8px; background: var(--bg);
  border: 1px solid var(--accent); border-radius: 50%;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline__date { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; }
.timeline__body { margin-top: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }

/* ---------- 18. Prose ---------- */
.prose p { color: var(--ink-2); font-size: 14.5px; line-height: 2.05; }
.prose p + p { margin-top: 22px; }
.prose h2 { font-size: clamp(20px,2.2vw,28px); margin-top: 56px; margin-bottom: 20px; }
.prose h3 { font-size: 16px; margin-top: 40px; margin-bottom: 14px; }
.prose--lg p { font-size: 15.5px; }

.legal-sec { padding: 34px 0; border-bottom: 1px solid var(--line); }
.legal-sec:first-child { padding-top: 0; }
.legal-sec h2 { font-size: 16px; margin: 0 0 16px; }
.legal-sec p { color: var(--ink-2); font-size: 13.5px; line-height: 2; }
.legal-sec p + p { margin-top: 12px; }

/* ---------- 19. Values / bullets ---------- */
.bullets li {
  position: relative; padding-left: 26px; color: var(--ink-2);
  font-size: 14px; line-height: 1.9; margin-bottom: 14px;
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 12px; height: 1px; background: var(--accent);
}

/* ---------- 20. Positions ---------- */
.position {
  border: 1px solid var(--line); background: var(--surface-1);
  padding: clamp(24px,3vw,36px); margin-bottom: 16px;
}
.position__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.position h3 { font-size: 17px; }
.position p { margin-top: 16px; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }
.position__req {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3); line-height: 1.85;
}
.position__req strong { color: var(--ink-2); font-weight: 500; display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }

.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flow__step {
  border: 1px solid var(--line-2); padding: 11px 18px; font-size: 13px; color: var(--ink-2);
}
.flow__arrow { color: var(--ink-4); font-family: var(--font-mono); }

/* ---------- 21. Simulator ---------- */
.sim {
  border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-1), var(--surface-inset));
}
.sim__tabs { display: flex; border-bottom: 1px solid var(--line); }
.sim__tab {
  flex: 1; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 18px 20px; font-size: 13.5px; color: var(--ink-3); cursor: pointer;
  transition: all .2s var(--ease);
}
.sim__tab:hover { color: var(--ink); }
.sim__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); background: rgba(76,141,255,.05); }
.sim__panel { display: none; padding: clamp(24px,3vw,40px); }
.sim__panel.is-active { display: grid; gap: clamp(28px,3.4vw,48px); }
@media (min-width: 940px) { .sim__panel.is-active { grid-template-columns: minmax(0,1fr) minmax(0,360px); } }

.field { margin-bottom: 24px; }
.field__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 12.5px; color: var(--ink-2); margin-bottom: 11px;
}
.field__val { font-family: var(--font-mono); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; background: var(--surface-inset); border: 1px solid var(--line-2);
  padding: 12px 14px; font-size: 13.5px; color: var(--ink); border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
select:hover, input:hover, textarea:hover { border-color: var(--line-3); }
select:focus, input:focus, textarea:focus { border-color: var(--accent); outline: none; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4.5L6 8.5L10 4.5' stroke='%236b748a' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2px;
  background: var(--line-2); outline: none; margin: 12px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent);
}
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); flex: none; }

.sim__out {
  background: var(--surface-inset); border: 1px solid var(--line-2);
  padding: 26px; align-self: start; position: sticky; top: calc(var(--nav-h) + 20px);
}
.sim__out-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--ink-4); text-transform: uppercase; }
.sim__out-v {
  font-family: var(--font-mono); font-size: clamp(30px,3.6vw,40px); font-weight: 500;
  letter-spacing: -.035em; margin-top: 12px; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.sim__out-v .cur { font-size: .42em; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.sim__rows { margin-top: 24px; border-top: 1px solid var(--line); }
.sim__row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.sim__row span:first-child { color: var(--ink-3); }
.sim__row span:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sim__row--em span:last-child { color: var(--series-3); }
.sim__bar { height: 6px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.sim__bar i { display: block; height: 100%; background: var(--series-1); transition: width .4s var(--ease); }
.sim__bar--muted i { background: var(--ink-4); }

/* ---------- 22. CTA band ---------- */
.cta-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 120% at 15% 0%, rgba(76,141,255,.09), transparent 62%),
    var(--surface-inset);
}
.cta-band__in { display: grid; gap: 32px; }
@media (min-width: 940px) { .cta-band__in { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 60px; } }
.cta-band h2 { font-size: clamp(22px,2.8vw,34px); line-height: 1.45; letter-spacing: -.02em; }
.cta-band p { margin-top: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.95; max-width: 58ch; }

/* ---------- 23. Page hero ---------- */
.page-hero {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 50px); letter-spacing: -.03em; line-height: 1.25; }
.page-hero__lead { margin-top: 24px; max-width: 66ch; color: var(--ink-2); font-size: clamp(14px,1.1vw,15.5px); line-height: 2; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink-4); margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--ink-2); }
.breadcrumb span { color: var(--ink-4); }

/* ---------- 24. Contact ---------- */
.contact-grid { display: grid; gap: clamp(40px,5vw,72px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); } }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 9px; }
.req-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  color: var(--accent); border: 1px solid var(--accent-line); padding: 2px 6px; margin-left: 8px;
}
.opt-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  color: var(--ink-4); border: 1px solid var(--line-2); padding: 2px 6px; margin-left: 8px;
}
textarea { min-height: 168px; resize: vertical; line-height: 1.8; }
.form-msg { padding: 18px 20px; border: 1px solid var(--line-2); margin-bottom: 24px; display: none; }
.form-msg.is-on { display: block; }
.form-msg--ok { border-color: rgba(12,163,12,.5); background: rgba(12,163,12,.08); }
.form-msg--err { border-color: rgba(208,59,59,.5); background: rgba(208,59,59,.08); }
.form-msg h4 { font-size: 14px; margin-bottom: 7px; }
.form-msg p { font-size: 13px; color: var(--ink-2); line-height: 1.85; }

.contact-side { border: 1px solid var(--line); background: var(--surface-1); padding: clamp(24px,3vw,34px); align-self: start; }
.contact-side dl { margin: 0; }
.contact-side dt {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4); margin-top: 24px;
}
.contact-side dt:first-of-type { margin-top: 0; }
.contact-side dd { margin: 8px 0 0; font-size: 13.5px; line-height: 1.8; }
.contact-side dd a { border-bottom: 1px solid var(--line-2); }
.contact-side dd a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 25. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-inset); }
.footer-top { padding-block: clamp(48px,6vw,76px); display: grid; gap: 44px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0,1.4fr) repeat(4, minmax(0,1fr)); gap: 40px; } }
.footer-brand .logo { margin-bottom: 22px; }
.footer-brand p { color: var(--ink-3); font-size: 13px; line-height: 1.9; max-width: 34ch; }
.footer-brand address { font-style: normal; color: var(--ink-4); font-size: 12px; line-height: 1.9; margin-top: 20px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 13px; color: var(--ink-2); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--ink-4);
}
.footer-bottom .mono { font-family: var(--font-mono); letter-spacing: .08em; }

/* ---------- 26. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- 27. Utilities ---------- */
.is-hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mt-l { margin-top: clamp(36px,4vw,56px); }
.mt-m { margin-top: 28px; }
.mt-s { margin-top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* chart tooltip */
.viz-tip {
  position: absolute; pointer-events: none; z-index: 40;
  background: var(--surface-3); border: 1px solid var(--line-2);
  padding: 8px 11px; font-size: 11.5px; font-family: var(--font-mono);
  white-space: nowrap; opacity: 0; transition: opacity .12s;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.viz-tip.is-on { opacity: 1; }
.viz-wrap { position: relative; }
