/* IngaboTech — site styles
   Brand: shield mark, deep navy ink, emerald green.
   Type: Poppins (headings, matches the logo wordmark), IBM Plex Sans (text),
   IBM Plex Mono (diagram labels and step numbers only).
   Layout language: rules and columns, flat surfaces, no decorative icons. */

:root {
  --ink: #0c1824;
  --ink-2: #16273b;
  --text: #0c1824;
  --muted: #4b5a68;
  --subtle: #6d7b88;
  --line: #dfe5e2;
  --line-strong: #c3ccc8;
  --bg: #ffffff;
  --surface: #f3f6f4;

  --green-700: #066743;
  --green-600: #08784e;
  --green-500: #0b9a63;
  --mint: #2ee6a6;

  --on-dark: #e6ecf1;
  --on-dark-muted: #9eafbf;
  --dark-line: rgba(255, 255, 255, 0.14);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  --head: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -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; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.025em; }
.h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.dark .lead, .dark .muted { color: var(--on-dark-muted); }
a.text-link { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.text-link:hover { color: var(--ink); }
.dark a.text-link { color: var(--mint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 6px;
  font-weight: 500; font-size: 15.5px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-green { background: var(--mint); color: var(--ink); }
.btn-green:hover { background: #63efbe; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.dark .btn-ghost:hover { border-color: #fff; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--green-600); }
.more svg { width: 15px; height: 15px; transition: transform .15s; }
.more:hover svg { transform: translateX(3px); }
.dark .more { color: var(--mint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px;
  font-size: 15px; color: var(--ink); background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { background: var(--surface); }
.nav > a[aria-current="page"] { color: var(--green-600); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-item { position: relative; }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: -12px; width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 16px 40px -20px rgba(12,24,36,.35);
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; visibility: hidden; transition: opacity .12s, visibility .12s;
}
.nav-item.open .mega { opacity: 1; visibility: visible; }
.mega a { display: block; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mega a:nth-child(odd) { border-right: 1px solid var(--line); }
.mega a:hover { background: var(--surface); }
.mega a[aria-current="page"] strong { color: var(--green-600); }
.mega strong { display: block; font-weight: 500; font-size: 15px; }
.mega span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.mega .mega-foot { grid-column: 1 / -1; padding: 14px 20px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.mega .mega-foot a { padding: 0; border: 0; display: inline; color: var(--green-600); font-weight: 500; }
.mega .mega-foot a:hover { background: none; text-decoration: underline; }
.header-cta .btn { height: 40px; font-size: 14.5px; padding: 0 16px; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: #fff; padding: 8px var(--gutter) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s;
  }
  body.menu-open .mobile-nav { visibility: visible; opacity: 1; }
  body.menu-open { overflow: hidden; }
  .mobile-nav .group { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mobile-nav .label { font-size: 13px; color: var(--subtle); margin: 8px 0 2px; }
  .mobile-nav a { display: block; padding: 10px 0; font-size: 18px; font-family: var(--head); }
  .mobile-nav .btn { display: flex; width: 100%; margin-top: 20px; font-size: 16px; font-family: var(--font); padding: 0 20px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.split { max-width: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.surface { background: var(--surface); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero .place { font-size: 15px; color: var(--subtle); }
.hero h1 { margin: 16px 0 22px; max-width: 17ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 36px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.hero-note img { width: 20px; height: auto; }

.entry-list { border-top: 1px solid var(--ink); }
.entry-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.entry-list strong { font-family: var(--head); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.015em; }
.entry-list span { grid-column: 1; font-size: 15px; color: var(--muted); line-height: 1.5; }
.entry-list svg { grid-row: 1; grid-column: 2; width: 18px; height: 18px; margin-top: 6px; color: var(--subtle); transition: transform .15s, color .15s; }
.entry-list a:hover strong { color: var(--green-600); }
.entry-list a:hover svg { transform: translateX(4px); color: var(--green-600); }
.entry-list .later { padding: 16px 0; font-size: 14.5px; color: var(--subtle); border-bottom: 1px solid var(--line); }

/* Brand mark: the three stripes from the shield, drawn large and static */
.stripes { position: absolute; z-index: -1; pointer-events: none; }
.stripes path { fill: none; stroke-linecap: round; }
.hero .stripes { right: -10%; top: -26%; width: 62%; max-width: 900px; opacity: .1;
  mask-image: linear-gradient(105deg, transparent 20%, #000 55%); -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 55%); }
.cta .stripes { right: -14%; bottom: -60%; width: 70%; opacity: .22; }

/* ---------- Clients ---------- */
.clients .label { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-grid figure {
  margin: 0; height: 88px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff;
}
.logo-grid img { max-height: 40px; max-width: 100%; width: auto; border-radius: 4px; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-grid figure:hover img { filter: none; opacity: 1; }
.logo-grid .named img { max-height: 44px; }
.logo-grid .named span { font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.3; }

/* ---------- Services list (home) ---------- */
.svc-list { border-top: 1px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.svc-row h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.025em; }
.svc-row .more { margin-top: 14px; }
.svc-row p { color: var(--muted); }
.svc-row ul li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.svc-row ul li:first-child { padding-top: 0; }
.svc-row ul li:last-child { border-bottom: 0; }
.svc-later { padding: 20px 0; color: var(--subtle); font-size: 15px; border-bottom: 1px solid var(--line); }

/* ---------- Package chooser (3D) ---------- */
.pk { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pk-scene { position: relative; height: 580px; perspective: 1700px; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pk-scene.dragging { cursor: grabbing; }
.pk-stack {
  --rx: 52; --rz: -34;
  position: relative; width: 200px; height: 240px; margin-top: 260px; margin-left: 150px;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg)) rotateZ(calc(var(--rz) * 1deg));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.pk-scene.dragging .pk-stack { transition: none; }
.pk-layer {
  position: absolute; inset: 0; transform-style: preserve-3d; cursor: pointer;
  transform: translate3d(0, calc(var(--i) * -64px), calc(var(--i) * 70px));
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.pk-layer.on { transform: translate3d(0, calc(var(--i) * -64px), calc(var(--i) * 70px + 24px)); }
.pk-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pk-edge { transform: translateZ(-9px); }
.pk-edge path { fill: #cdd6d2; }
.pk-plate path { fill: #fff; stroke: var(--line-strong); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.pk-layer:hover .pk-plate path { stroke: var(--ink); }
.pk-layer.on .pk-plate path { fill: var(--mint); stroke: var(--green-700); }
.pk-layer.on .pk-edge path { fill: var(--green-600); }
/* labels face the viewer whatever the rotation */
.pk-label {
  position: absolute; left: -12px; top: 30%; white-space: nowrap;
  font-family: var(--head); font-weight: 500; font-size: 15px; color: var(--muted);
  padding: 4px 10px; border-radius: 4px; background: #fff; border: 1px solid var(--line);
  transform-origin: right center;
  transform: translateX(-100%) rotateZ(calc(var(--rz) * -1deg)) rotateX(calc(var(--rx) * -1deg));
  transition: color .3s, border-color .3s;
}
.pk-layer.on .pk-label { color: var(--ink); border-color: var(--green-500); }
.pk-cap { position: absolute; left: 50%; top: 50%; width: 120px; margin: -70px 0 0 -60px; transform: translate3d(0, calc(var(--i) * -64px), calc(var(--i) * 70px + 30px)); pointer-events: none; filter: drop-shadow(0 6px 10px rgba(12,24,36,.12)); }
.pk-hint { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 13.5px; color: var(--subtle); }

.pk-panel { display: grid; gap: 22px; }
.pk-field { border: 0; margin: 0; padding: 0; }
.pk-field legend { font-family: var(--head); font-weight: 500; font-size: 1.05rem; margin-bottom: 10px; }
.pk-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-toggle { font: inherit; font-size: 15px; padding: 9px 14px; border-radius: 6px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; }
.pk-toggle:hover { border-color: var(--ink); }
.pk-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pk-levels { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #fff; }
.pk-levels label { position: relative; cursor: pointer; }
.pk-levels label + label { border-left: 1px solid var(--line-strong); }
.pk-levels input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.pk-levels span { display: block; padding: 12px 14px; font-size: 13.5px; color: var(--muted); line-height: 1.4; height: 100%; }
.pk-levels b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.pk-levels input:checked + span { background: var(--ink); color: var(--on-dark-muted); }
.pk-levels input:checked + span b { color: #fff; }
.pk-levels input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: -2px; }
.pk-summary { border-top: 1px solid var(--ink); }
.pk-summary h3 { font-family: var(--font); font-size: 14.5px; font-weight: 600; letter-spacing: 0; padding: 14px 0 6px; }
.pk-summary ul { display: grid; gap: 0; }
.pk-summary li { padding: 6px 0 6px 18px; position: relative; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); }
.pk-summary li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 7px; height: 2px; background: var(--green-500); }
.pk-summary .empty { padding: 14px 0; color: var(--subtle); }
#pk-cta { justify-self: start; }
#pk-cta[aria-disabled="true"] { opacity: .45; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .pk-stack, .pk-layer, .pk-plate path { transition: none; }
}

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.stack { border: 1px solid var(--dark-line); font-size: 15px; }
.stack > div { display: grid; grid-template-columns: 2.4rem 1fr; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--dark-line); }
.stack > div:last-child { border-bottom: 0; }
.stack .n { font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted); padding-top: 2px; }
.stack strong { display: block; font-family: var(--head); font-weight: 500; color: #fff; font-size: 1.05rem; }
.stack span { color: var(--on-dark-muted); }
.stack .core { background: rgba(46,230,166,.08); box-shadow: inset 3px 0 0 var(--mint); }
.stack-cap { font-size: 13.5px; color: var(--on-dark-muted); margin-top: 12px; }
.shield-box { border: 2px solid var(--mint); border-radius: 6px; padding: 14px; background: rgba(46,230,166,.05); }
.shield-label { font-family: var(--mono); font-size: 13px; color: var(--mint); margin: 2px 4px 12px; }
.shield-box .stack > div { padding: 15px 18px; }
.points { margin-top: 32px; display: grid; gap: 18px; }
.points li { color: var(--on-dark-muted); }
.points strong { color: #fff; font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 24px 28px 0 0; }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.steps h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 4px; background: var(--ink); }
.portrait figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; font-size: 15px; }
.portrait figcaption span { color: var(--muted); }
.creds { margin-top: 32px; border-top: 1px solid var(--line); }
.creds div { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.creds dt { font-weight: 600; }
.creds dd { color: var(--muted); }

/* ---------- Training ---------- */
.train { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.topics { border-top: 1px solid var(--ink); }
.topics li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.topics strong { font-family: var(--head); font-weight: 500; font-size: 1.05rem; }
.topics span { color: var(--muted); font-size: 15.5px; }
.formats { margin-top: 24px; font-size: 15px; color: var(--muted); }
.formats b { color: var(--ink); font-weight: 600; }

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.prod { display: flex; flex-direction: column; gap: 12px; padding: 28px 40px 8px 0; }
.prod + .prod { padding-left: 40px; border-left: 1px solid var(--line); }
.prod .domain { font-size: 14px; color: var(--subtle); }
.prod h3 { font-size: 1.6rem; }
.prod p { color: var(--muted); }
.prod .more { margin-top: 6px; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.quote { margin: 0; border-left: 3px solid var(--green-500); padding-left: 24px; }
.quote blockquote { margin: 0; font-family: var(--head); font-size: 1.3rem; line-height: 1.45; letter-spacing: -0.015em; }
.quote figcaption { margin-top: 18px; font-size: 15px; }
.quote figcaption span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { border-radius: 8px; padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid img { height: 44px; width: auto; }
.foot-grid .about p { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 34ch; }
.foot-grid h4 { font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.foot-grid li { margin-bottom: 8px; font-size: 15px; color: var(--muted); }
.foot-grid li a:hover { color: var(--green-600); }
.socials { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; font-size: 14.5px; }
.socials a { color: var(--muted); }
.socials a:hover { color: var(--green-600); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--subtle); }

/* ---------- Service pages ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--subtle); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero h1 { margin-bottom: 22px; }
.glance { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 8px 24px; }
.glance h2 { font-family: var(--font); font-size: 14px; font-weight: 600; padding: 16px 0 8px; letter-spacing: 0; }
.glance div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.glance dt { color: var(--muted); }

.caps { border-top: 1px solid var(--ink); }
.cap { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cap h3 { font-size: 1.2rem; }
.cap p { color: var(--muted); }
.cap .tags { font-size: 14.5px; color: var(--subtle); }
.cap-group { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 34px 0 12px; border-bottom: 1px solid var(--line-strong); }
.cap-group:first-child { padding-top: 22px; }
.cap-group h3 { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--green-700); }
.cap-group span { font-size: 15px; color: var(--muted); }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.5); }
.way { padding: 26px 32px 4px 0; }
.way + .way { padding-left: 32px; border-left: 1px solid var(--dark-line); }
.way .n { font-family: var(--mono); font-size: 13px; color: var(--mint); }
.way h3 { margin: 10px 0 8px; font-size: 1.3rem; }
.way p { color: var(--on-dark-muted); }
.way ul { margin-top: 16px; }
.way li { padding: 8px 0; border-top: 1px solid var(--dark-line); font-size: 15.5px; }

.plain-list { columns: 2; column-gap: 48px; border-top: 1px solid var(--ink); }
.plain-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plain-list strong { font-weight: 600; }
.plain-list span { color: var(--muted); }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 16px; }
.inline-list li:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--subtle); }
.aside { margin-top: 40px; padding: 4px 0 4px 22px; border-left: 3px solid var(--green-500); max-width: 760px; }
.aside h3 { font-size: 1.1rem; margin-bottom: 6px; }
.aside p { color: var(--muted); }

.diagram { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: clamp(12px, 2vw, 24px); overflow-x: auto; }
.diagram svg { min-width: 760px; width: 100%; height: auto; }
.diagram-cap { margin-top: 12px; font-size: 14.5px; color: var(--muted); max-width: 70ch; }

.faq { max-width: 860px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-family: var(--head); font-size: 1.08rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--subtle); transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }

.see-also { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.see-also h2 { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.see-also a { font-family: var(--head); font-size: 1.15rem; display: inline-flex; gap: 6px; align-items: center; }
.see-also a svg { width: 16px; height: 16px; }
.see-also a:hover { color: var(--green-600); }
.see-also span { color: var(--subtle); font-size: 15px; }

/* ---------- Company ---------- */
.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story p + p { margin-top: 16px; }
.word { border-radius: 6px; padding: 36px; background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.word .term { font-family: var(--head); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; color: #fff; line-height: 1; }
.word .pron { font-size: 14px; color: var(--on-dark-muted); margin-top: 10px; }
.word .def { font-size: 1.1rem; margin-top: 56px; max-width: 28ch; }
.word img { position: absolute; right: -36px; bottom: -28px; width: 200px; opacity: .12; z-index: -1; }
.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--surface); }
.member strong { display: block; font-weight: 600; font-size: 15px; margin-top: 10px; line-height: 1.35; }
.member span { font-size: 14px; color: var(--muted); }
.member:hover strong { color: var(--green-600); }
.crew { columns: 3; column-gap: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.crew li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.crew span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); }
.contact-info { margin-top: 32px; border-top: 1px solid var(--ink); }
.contact-info div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.contact-info dt { color: var(--muted); }
.contact-info a:hover { color: var(--green-600); text-decoration: underline; }
.form { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14.5px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 15.5px; width: 100%; padding: 11px 13px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(11,154,99,.15); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.opts label { cursor: pointer; position: relative; }
.opts input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; font-size: 14.5px; padding: 7px 13px; border-radius: 4px; border: 1px solid var(--line-strong); background: #fff; }
.opts input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opts input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 2px; }
.form-note { font-size: 14px; color: var(--subtle); }
.form-status { font-size: 14.5px; color: var(--green-700); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .pk { grid-template-columns: 1fr; }
  .pk-scene { height: 420px; }
  .hero-grid, .page-hero-grid, .approach, .founder, .train, .cta-grid, .story, .contact-grid { grid-template-columns: 1fr; }
  .head.split { grid-template-columns: 1fr; gap: 16px; }
  .hero .stripes { width: 120%; right: -60%; top: -10%; }
  .svc-row { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
  .svc-row > div:first-child { grid-column: 1 / -1; }
  .cap { grid-template-columns: 1fr 1.4fr; gap: 8px 32px; }
  .cap .tags { grid-column: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .ways { grid-template-columns: 1fr; }
  .way, .way + .way { padding: 24px 0 8px; border-left: 0; }
  .way + .way { border-top: 1px solid var(--dark-line); }
  .cta-actions { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .about { grid-column: 1 / -1; }
  .portrait { max-width: 420px; }
  .crew { columns: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svc-row, .cap, .topics li, .creds div, .glance div { grid-template-columns: 1fr; gap: 6px; }
  .cap .tags { grid-column: 1; }
  .steps, .prod-grid, .quotes { grid-template-columns: 1fr; }
  .prod, .prod + .prod { padding: 24px 0 12px; border-left: 0; }
  .prod + .prod { border-top: 1px solid var(--line); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .plain-list { columns: 1; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .crew { columns: 1; }
  .form .row { grid-template-columns: 1fr; }
  .contact-info div { grid-template-columns: 1fr; gap: 2px; }
  .faq details p { padding-right: 0; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
  .pk-scene { height: 440px; }
  .pk-stack { width: 140px; height: 168px; margin-top: 190px; margin-left: 70px; }
  .pk-layer { transform: translate3d(0, calc(var(--i) * -46px), calc(var(--i) * 50px)); }
  .pk-layer.on { transform: translate3d(0, calc(var(--i) * -46px), calc(var(--i) * 50px + 16px)); }
  .pk-cap { width: 90px; margin: -54px 0 0 -45px; transform: translate3d(0, calc(var(--i) * -46px), calc(var(--i) * 50px + 22px)); }
  .pk-label { font-size: 13px; }
  .pk-levels span { padding: 10px; }
}
