/* ==========================================================================
   AiLab-JAPAN — design system / ver.2 (light)
   Direction: a well-lit laboratory. White paper, pale green air,
   Mincho for dignity, mono for measurement. No dark slabs.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --paper: #fcfcfa;
  --paper-2: #ffffff;
  --mist: #e1efeb;
  --mist-2: #d6e4dd;
  --ink: #16211d;
  --ink-2: #24332d;
  --body: #3c4a44;
  --muted: #71807a;
  --pine: #1e6b5c;
  --pine-deep: #175247;
  --pine-pale: #e3efea;
  --pine-line: rgba(30, 107, 92, 0.28);
  --brass: #a8843c;
  --line: rgba(22, 33, 29, 0.12);
  --line-soft: rgba(22, 33, 29, 0.07);

  --display: "Yu Mincho", "YuMincho", "游明朝", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 126px);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px -44px rgba(22, 33, 29, 0.45);
  --shadow-soft: 0 16px 40px -32px rgba(22, 33, 29, 0.3);
}

/* --- reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

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

::selection { background: var(--pine-pale); color: var(--pine-deep); }

/* --- utilities ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
}
.eyebrow::before,
.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 0 rgba(30, 107, 92, 0.4);
  animation: pulse 3.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(30, 107, 92, 0.35); }
  35% { box-shadow: 0 0 0 6px rgba(30, 107, 92, 0); }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* --- header ------------------------------------------------------------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(252, 252, 250, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-head.is-stuck {
  background: rgba(252, 252, 250, 0.93);
  border-bottom-color: var(--line-soft);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--pine);
}
.brand__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--body);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav__link:hover { color: var(--pine); background: var(--pine-pale); }

.nav__cta {
  margin-left: 14px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.nav__cta:hover { background: var(--pine-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 26px; }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  padding: 152px 0 0;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(115% 80% at 72% 20%, #000 25%, transparent 76%);
  -webkit-mask-image: radial-gradient(115% 80% at 72% 20%, #000 25%, transparent 76%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  width: 1000px;
  height: 760px;
  right: -260px;
  top: -220px;
  background: radial-gradient(circle, rgba(30, 107, 92, 0.1), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__eyebrow {
  color: var(--pine);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__title {
  -webkit-text-stroke: 0.35px currentColor;
  font-size: clamp(34px, 5.0vw, 58px);
  line-height: 1.42;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--ink);
}
.hero__title em {
  font-style: normal;
  color: var(--pine-deep);
}
.hero__title .ln { display: block; }

.hero__lead {
  margin-top: 32px;
  max-width: 34em;
  font-size: clamp(14.5px, 1.4vw, 16px);
  line-height: 2.05;
  color: var(--body);
  letter-spacing: 0.005em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.3s var(--ease), color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.btn svg { flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--solid { background: var(--pine); color: #fff; }
.btn--solid:hover { background: var(--pine-deep); transform: translateY(-2px); }

.btn--ink { background: var(--pine); color: #fff; }
.btn--ink:hover { background: var(--pine-deep); transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-2px); }

.btn--line {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--line:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-2px); }

/* monitor panel (signature) — a sheet of instrument paper */
.monitor {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.monitor__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}
.monitor__bar .mono { font-size: 9.5px; letter-spacing: 0.2em; }
.monitor__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pine);
}
.monitor__live::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s steps(1) infinite;
}
#scope { display: block; width: 100%; height: 208px; }
.monitor__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  background: #fbfcfb;
}
.monitor__ch {
  padding: 13px 16px;
  border-right: 1px solid var(--line-soft);
}
.monitor__ch:last-child { border-right: 0; }
.monitor__ch .mono { font-size: 8.5px; letter-spacing: 0.18em; color: var(--muted); }
.monitor__ch b {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

/* stat strip */
.stat-strip {
  margin-top: clamp(52px, 7vw, 88px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 4px 30px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.stat__num small {
  font-family: var(--sans);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--pine);
}
.stat__label {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* --- section scaffolding ------------------------------------------------ */
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--paper { background: var(--paper); }
.section--deep,
.section--mist { background: var(--mist); }
.section--ink { background: var(--mist); color: var(--ink); }

.section__head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(40px, 5.5vw, 68px);
}
.section__meta {
  padding-top: 10px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section__meta .mono { font-size: 10px; letter-spacing: 0.2em; }
.section__title {
  -webkit-text-stroke: 0.3px currentColor;
  font-size: clamp(23px, 2.8vw, 32px);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.section__title .thin {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.95;
}

/* --- about -------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about__lede {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.95;
  letter-spacing: 0.03em;
}
.about__lede mark {
  background: none;
  color: var(--pine);
  font-weight: 600;
}
.about__body {
  display: grid;
  gap: 20px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 2.1;
}
.about__sidebar {
  position: sticky;
  top: 106px;
}
.about__facts {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.about__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pine);
  border-bottom: 1px solid var(--pine-line);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.about__more:hover { color: var(--pine-deep); border-color: var(--pine-deep); }
.about__more svg { transition: transform 0.35s var(--ease); }
.about__more:hover svg { transform: translateX(4px); }

/* 代表プロフィール（長文） */
.profile-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.profile-head .mono { color: var(--pine); }
.profile-body { max-width: 720px; }
.profile-body p {
  font-size: 15px;
  line-height: 2.25;
  color: var(--body);
  margin: 0 0 1.9em;
}
.profile-body p.lead-in {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 2.1;
  color: var(--ink);
}
.profile-body strong { font-weight: 700; color: var(--ink); }
.profile-quote {
  margin: 2.4em 0;
  padding: 26px 0 26px 28px;
  border-left: 2px solid var(--pine-line);
}
.profile-quote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 2.1;
  color: var(--ink);
  margin: 0 0 0.9em;
}
.profile-quote p:last-child { margin-bottom: 0; }
.fact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.fact dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.fact dd { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* --- services (channel rows) ------------------------------------------- */
.channels { border-top: 1px solid var(--line); }
.channel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.12fr) minmax(0, 1.05fr) 40px;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(28px, 3.6vw, 40px) 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background 0.4s var(--ease);
}
.channel::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--pine);
  transition: width 0.6s var(--ease);
}
.channel:hover::after { width: 100%; }
.channel:hover { background: rgba(30, 107, 92, 0.028); }

.channel__no {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 8px;
}
.channel__title {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.65;
  letter-spacing: 0.02em;
}
.channel__title span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--pine);
  margin-top: 9px;
  text-transform: uppercase;
}
.channel__body {
  font-size: 15px;
  line-height: 2.05;
  color: var(--body);
}
.channel__body em {
  font-style: normal;
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.channel__arrow {
  justify-self: end;
  padding-top: 8px;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.channel:hover .channel__arrow { transform: translateX(6px); color: var(--pine); }

/* --- tools (the PR block) ---------------------------------------------- */
.tools-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.tools-head__note {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 32em;
  line-height: 2;
}
.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--pine-line);
  background: var(--pine-pale);
  color: var(--pine-deep);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}
.badge-free::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--pine);
}

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tool {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.tool:hover {
  border-color: var(--pine-line);
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -34px rgba(22, 33, 29, 0.4);
}
.tool__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px 0;
}
.tool__index { color: var(--pine); }
.tool__body {
  min-width: 0;
  padding: 18px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tool__title {
  font-size: clamp(19px, 1.95vw, 23px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.tool__title span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--pine);
  margin-top: 10px;
  text-transform: uppercase;
}
.tool__desc {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--body);
}
.tool__points {
  margin-top: 20px;
  display: grid;
  gap: 9px;
}
.tool__points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}
.tool__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--pine);
}
.tool__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pine);
  border-bottom: 1px solid var(--pine-line);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.tool__link:hover { color: var(--pine-deep); border-color: var(--pine-deep); }
.tool__link svg { transition: transform 0.35s var(--ease); }
.tool__link:hover svg { transform: translate(2px, -2px); }

/* CSS mock previews — light instrument UI */
.mock {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
  overflow: hidden;
  font-family: var(--mono);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.mock__dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(22, 33, 29, 0.16); }
.mock__url {
  margin-left: 6px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock--chat .mock__body { padding: 14px; display: grid; gap: 8px; }
.mock__msg {
  max-width: 86%;
  padding: 8px 11px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--line-soft);
}
.mock__msg--me {
  margin-left: auto;
  background: var(--pine-pale);
  border-color: var(--pine-line);
  color: var(--pine-deep);
}
.mock__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}
.chip-mini {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}
.chip-mini--on {
  border-color: var(--pine-line);
  color: var(--pine-deep);
  background: var(--pine-pale);
}

.mock--cam .mock__body {
  padding: 12px 12px 0;
  display: grid;
  grid-template-columns: 0.46fr 0.54fr;
  gap: 8px;
  min-height: 168px;
}
.mock__legend {
  display: grid;
  grid-template-columns: 0.46fr 0.54fr;
  gap: 8px;
  padding: 9px 12px 12px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

.pane {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  padding: 10px;
}
.pane__tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}
.pane--light {
  background: #fff;
  border: 1px solid var(--line);
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 0 22px 2px rgba(30, 107, 92, 0.07);
}
.pane--light .pane__tag {
  color: rgba(22, 33, 29, 0.55);
  font-weight: 500;
  font-size: 8.5px;
}
.pane--cam {
  background: linear-gradient(165deg, #1b2b25, #101a16);
}
.cam-frame {
  flex: 1;
  position: relative;
  border: 1px solid rgba(125, 191, 168, 0.75);
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.cam__qr {
  width: 76px;
  height: 76px;
  display: block;
}
.cam__hud {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
}
.cam__hud span {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(8, 15, 12, 0.82);
  border: 1px solid rgba(125, 191, 168, 0.45);
  color: #a8d4c4;
  line-height: 1.4;
}

.tool__foot {
  padding: 0 26px 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* --- company ------------------------------------------------------------ */
.company {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.company--list-first { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }

.company__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.company__list { border-top: 1px solid var(--line); }
.company__row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.company__row dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.company__row dd { margin: 0; font-size: 15px; line-height: 1.9; }
.company__row dd a { border-bottom: 1px solid var(--line); transition: border-color 0.3s, color 0.3s; }
.company__row dd a:hover { color: var(--pine); border-color: var(--pine); }

/* --- contact ------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact__lead {
  font-size: 15px;
  line-height: 2.1;
  color: var(--body);
  margin-top: 24px;
  max-width: 26em;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--pine);
  border-bottom: 1px solid var(--pine-line);
  padding-bottom: 6px;
  transition: color 0.3s, border-color 0.3s;
}
.contact__mail:hover { color: var(--pine-deep); border-color: var(--pine-deep); }

.form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.field { display: grid; gap: 8px; }
.field > label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field > label .req {
  color: var(--pine);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.field input,
.field textarea {
  width: 100%;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input::placeholder,
.field textarea::placeholder { color: #a9b4ae; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pine);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 107, 92, 0.09);
}
.field textarea { min-height: 128px; resize: vertical; }
.field__hint {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.field__hint b { color: var(--pine); font-weight: 700; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form__submit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.form__submit:hover { background: var(--pine-deep); transform: translateY(-2px); }
.form__note { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.9; }

/* --- footer ------------------------------------------------------------- */
.site-foot {
  background: var(--paper);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.site-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 32px;
  align-items: start;
}
.site-foot__brand { color: var(--ink); }
.site-foot__brand .brand__name { font-size: 15px; }
.site-foot__brand .brand__sub { color: var(--muted); }
.site-foot__desc {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.95;
  max-width: 26em;
}
.foot-nav { display: grid; gap: 11px; }
.foot-nav .mono { font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.foot-nav a { font-size: 13px; color: var(--body); transition: color 0.25s; }
.foot-nav a:hover { color: var(--pine); }
.site-foot__bottom {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* --- sub pages ---------------------------------------------------------- */
.page-hero {
  background: var(--mist);
  color: var(--ink);
  padding: 136px 0 clamp(48px, 6vw, 76px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 720px; height: 560px;
  right: -220px; top: -240px;
  background: radial-gradient(circle, rgba(30, 107, 92, 0.11), transparent 64%);
  pointer-events: none;
}
.page-hero__crumb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 22px;
}
.page-hero__crumb a { transition: color 0.25s; }
.page-hero__crumb a:hover { color: var(--pine); }
.page-hero__title {
  font-size: clamp(27px, 4.0vw, 44px);
  line-height: 1.45;
  letter-spacing: 0.03em;
}
.page-hero__lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 15px;
  line-height: 2.1;
  color: var(--body);
}

.prose-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.prose-rail {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 2px;
  align-content: start;
}
.prose-rail .mono { color: var(--muted); font-size: 9.5px; margin-bottom: 12px; }
.prose-rail a {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  padding: 8px 0 8px 14px;
  border-left: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.prose-rail a:hover { color: var(--pine); border-color: var(--pine); }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.prose h3 {
  font-size: 17px;
  margin-top: 32px;
}
.prose p { font-size: 15px; line-height: 2.15; color: var(--body); }
.prose ul { display: grid; gap: 10px; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 2;
  color: var(--body);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 10px; height: 1px;
  background: var(--pine);
}
.prose a { color: var(--pine); border-bottom: 1px solid var(--pine-line); }
.prose a:hover { border-color: var(--pine); }
.prose a.btn,
.prose a.btn:hover { color: #fff; border-bottom: 0; }

.callout {
  border-left: 2px solid var(--pine-line);
  padding: 4px 0 4px 22px;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--muted);
}

/* --- entrance ----------------------------------------------------------- */
.reveal { opacity: 1; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .monitor { max-width: 520px; }
  .about,
  .company,
  .contact { grid-template-columns: 1fr; }
  .company--list-first { grid-template-columns: 1fr; }
  .about__sidebar { position: static; }
  .prose-layout { grid-template-columns: 1fr; }
  .prose-rail { display: none; }
  .section__head { grid-template-columns: 1fr; gap: 14px; }
  .section__meta { flex-direction: row; align-items: center; gap: 14px; }
  .channel { grid-template-columns: 44px minmax(0, 1fr) 28px; }
  .channel__body { grid-column: 2 / 3; }
  .channel__arrow { grid-row: 1; grid-column: 3; }
  .tools { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .site-foot__grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--pad) 24px;
    background: rgba(252, 252, 250, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 13px 14px; font-size: 14px; }
  .nav__cta { margin: 10px 0 0; text-align: center; padding: 14px; }
  .nav-toggle { display: block; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  .form__row { grid-template-columns: 1fr; }
  .company__row { grid-template-columns: 92px 1fr; gap: 14px; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .tool__top, .tool__body, .tool__foot { padding-inline: 20px; }
  .monitor__legend { grid-template-columns: repeat(3, 1fr); }
  .monitor__ch { padding: 10px; }
  .monitor__ch b { font-size: 11px; }
  .monitor__ch .mono { font-size: 7.5px; letter-spacing: 0.1em; }
  #scope { height: 168px; }
  .hero { padding-top: 118px; }
  .page-hero { padding-top: 112px; }
  .hero__title { font-size: clamp(27px, 7.4vw, 36px); }
  .about__lede { font-size: clamp(18px, 5.0vw, 22px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
