/* ============================================================
   TAC PAL — site styles
   Plain CSS. No framework, no build step.
   Type + colour follow the TAC PAL company profile:
   Prompt (headings), DM Sans (body), Major Mono Display (labels),
   slate #34495E, yellow #F1C40F, green #39622E, blue #175786,
   red #BF2928 on white / #FAFAFA.
   Sections:
   1. Tokens        2. Base          3. Layout / type
   4. Buttons       5. Header        6. Hero
   7. Sections      8. Cards         9. Forms
   10. Footer       11. Article      12. Motion / responsive
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Major+Mono+Display&family=Prompt:wght@400;500;600;700&display=swap");


/* ---------- 1. Tokens ---------- */
:root {
  /* Company profile palette — dark industrial theme from PDF */
  --ink: #E2E8F0;
  --ink-soft: #CBD5E0;
  --paper: #0D0F12;
  --paper-2: #131720;
  --paper-3: #1A1F2B;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.18);
  --muted: #8A9BAB;
  --muted-2: #677585;

  /* TAC PAL green / TOOL PAL blue / accent red / profile yellow */
  --accent: #39622e;
  --accent-dark: #2a4a20;
  --accent-soft: rgba(57,98,46,0.20);
  --blue: #175786;
  --blue-dark: #10405f;
  --blue-soft: rgba(23,87,134,0.20);
  --red: #bf2928;
  --yellow: #f1c40f;
  --green: #39622e;

  --mark-green: #39622e;
  --mark-blue: #175786;

  --radius: 2px;
  --container: 1200px;
  --header-h: 72px;

  --font-sans: "DM Sans", "Segoe UI Variable Text", "Segoe UI", system-ui,
    -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Prompt", "DM Sans", "Segoe UI Variable Display", "Segoe UI",
    system-ui, sans-serif;
  --font-label: "Major Mono Display", "Cascadia Mono", ui-monospace, monospace;
  --font-mono: "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.14rem;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

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

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- 3. Layout / type ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 64px);
  margin-inline: auto;
  padding-inline: 32px;
}

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section--paper {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section--ink {
  background: #0a0c10;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--yellow);
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.section--ink .eyebrow {
  color: #a9b8c6;
}

.section--ink .lead {
  color: #c3ced9;
}

.section--ink .muted {
  color: #a9b8c6;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head--row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  max-width: none;
  gap: clamp(24px, 5vw, 72px);
}

.section-head--row .lead {
  padding-bottom: 4px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link svg {
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.section--ink .text-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

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

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn svg {
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--yellow);
  color: #0D0F12;
  border-color: var(--yellow);
  font-weight: 600;
}

.btn--primary:hover {
  background: #d4aa0d;
  border-color: #d4aa0d;
  color: #0D0F12;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--ghost {
  border-color: rgba(255,255,255,0.28);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
}

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--light:hover {
  background: #edf1f4;
  border-color: #edf1f4;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 15, 18, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px -24px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-label);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--mark-green);
  text-transform: uppercase;
}

.brand__name b {
  color: var(--mark-blue);
  font-weight: 400;
}

.brand__tag {
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.brand--light {
  --mark-green: #a9cf94;
  --mark-blue: #8cc0e0;
  color: #fff;
}

.brand--light .brand__name {
  color: #fff;
}

.brand--light .brand__name b {
  color: #8cc0e0;
}

.brand--light .brand__tag {
  color: #a6b4c2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav .btn {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span + span {
  margin-top: 4.5px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 68% 45%,
    #000 20%,
    transparent 80%
  );
  mask-image: radial-gradient(ellipse 80% 70% at 68% 45%, #000 20%, transparent 80%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(
      circle at 62% 38%,
      rgba(241, 196, 15, 0.08) 0%,
      rgba(57, 98, 46, 0.18) 0%,
      rgba(57, 98, 46, 0) 62%
    ),
    radial-gradient(
      circle at 28% 78%,
      rgba(23, 87, 134, 0.22) 0%,
      rgba(23, 87, 134, 0) 58%
    );
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(56px, 7vw, 92px);
}

.hero__copy {
  max-width: 640px;
}

.hero h1 {
  margin-bottom: 22px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: #a9cf94;
}

.hero__lead {
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: #c3ced9;
}

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

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stat {
  padding: 18px 18px 0 0;
}

.hero__stat b {
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__stat span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb0bf;
  line-height: 1.5;
}

.hero__art {
  position: relative;
  padding: 12px 0;
}

.hero__art img {
  width: 100%;
  height: auto;
}

.hero__tag {
  position: absolute;
  left: 0;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(28, 42, 56, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c6d2dd;
}

.hero__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--yellow);
}

/* Sector strip under hero */
.strip {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.strip__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 38px;
  padding-block: 16px;
}

.strip__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.strip__item::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--line-strong);
}

/* ---------- 7. Sections & editorial blocks ---------- */

/* Page hero (inner pages) */
.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 76px) clamp(36px, 4vw, 56px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--line-strong);
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 18px;
}

.page-hero .lead {
  max-width: 58ch;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.page-hero__meta b {
  color: var(--ink);
  font-weight: 600;
}

/* Pillars */
.pillar {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.pillar__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.pillar h3 {
  margin-bottom: 10px;
}

.pillar p {
  font-size: 14.5px;
  color: var(--muted);
}

.pillar__list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.pillar__list li {
  position: relative;
  padding-left: 16px;
}

.pillar__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  background: var(--line-strong);
}

/* Stats row on light */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 22ch;
}

/* Split media block */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.split__media img {
  width: 100%;
  height: auto;
}

.split__body h2 {
  margin-bottom: 18px;
}

.split__body p + p {
  margin-top: 14px;
}

.split__body .btn-row {
  margin-top: 28px;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 22px;
  font-size: 14.5px;
}

.checklist li {
  display: flex;
  gap: 12px;
  color: var(--ink-soft);
}

.checklist svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.steps--light {
  border-top-color: var(--line-strong);
}

.step {
  padding: 22px 22px 0 0;
}

.step__num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--yellow);
}

.step h3 {
  margin: 12px 0 8px;
  font-size: 1.02rem;
}

.step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #b0bdc9;
}

.steps--light .step p {
  color: var(--muted);
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 26px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px -32px rgba(52, 73, 94, 0.5);
  transform: translateY(-2px);
}

/* Product */
.product {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.product:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -36px rgba(52, 73, 94, 0.55);
}

.product__media {
  display: grid;
  place-items: center;
  padding: 14px;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px 22px 20px;
}

.product__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.product__title {
  font-size: 1.05rem;
}

.product__desc {
  font-size: 13.8px;
  line-height: 1.6;
  color: var(--muted);
}

.specs {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
}

.specs dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.specs dd {
  margin: 0;
  text-align: right;
  color: var(--ink-soft);
}

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}

.product__foot svg {
  transition: transform 0.25s var(--ease);
}

.product:hover .product__foot svg {
  transform: translateX(4px);
  color: var(--accent);
}

/* Sector */
.sector {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.sector:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.sector__media {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.sector__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector__body {
  padding: 22px;
}

.sector__body h3 {
  margin-bottom: 8px;
}

.sector__body p {
  font-size: 13.8px;
  color: var(--muted);
}

.sector__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Blog */
.post {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post__media {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.post:hover .post__media img {
  transform: scale(1.025);
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.post__meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--line-strong);
}

.post h3 {
  font-size: 1.14rem;
}

.post h3 a {
  transition: color 0.2s var(--ease);
}

.post:hover h3 a {
  color: var(--accent);
}

.post p {
  font-size: 14px;
  color: var(--muted);
}

.post--feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.post--feature h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
}

.post--feature .post__media {
  aspect-ratio: 16 / 10;
}

/* Quote */
.quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
}

.quote p {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.quote footer {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Catalogue / document rows */
.docs {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.doc__main {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.doc__title {
  font-size: 15px;
  font-weight: 500;
}

.doc__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fb0bf;
}

.doc__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.doc__action:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.docs--light {
  border-top-color: var(--line-strong);
}

.docs--light .doc {
  border-bottom-color: var(--line);
}

.docs--light .doc__meta {
  color: var(--muted-2);
}

.docs--light .doc__action {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* CTA band */
.cta-band {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 76px);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  max-width: 22ch;
}

.cta-band p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 52ch;
}

/* Quick links (home) */
.quick {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: var(--paper-2);
  transition: background 0.2s var(--ease);
}

.quick__item:hover {
  background: var(--paper-3);
}

.quick__num {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.quick__item h3 {
  font-size: 15px;
}

.quick__item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.quick__arrow {
  margin-top: auto;
  color: var(--muted-2);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.quick__item:hover .quick__arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* Filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filter {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0D0F12;
}

.filter__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.filter-item {
  animation: fadeUp 0.32s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Services list */
.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.35fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 3px;
}

.service h3 {
  font-size: 1.25rem;
}

.service__body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.service__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 16px;
}

/* Info panel */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 26px;
}

.panel h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.panel p,
.panel li {
  font-size: 14px;
  color: var(--muted);
}

.panel ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

/* ---------- 9. Forms ---------- */
.form {
  display: grid;
  gap: 18px;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
  align-content: start;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field label .req {
  color: var(--accent);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-3);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235f6661' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(57, 98, 46, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--accent);
}

.field__error {
  font-size: 12px;
  color: var(--accent);
}

.check {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.field label.check {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.check input,
.field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  accent-color: var(--accent);
  flex: none;
}

.check .field__error {
  flex-basis: 100%;
  padding-left: 26px;
  margin: 0;
}

.form__note {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
}

.form-success {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  border-top: 2px solid var(--green);
}

.form-success h3 {
  font-size: 1.25rem;
}

.form-success p {
  font-size: 14px;
  color: var(--muted);
}

.form-success[hidden],
[hidden] {
  display: none !important;
}

/* Contact aside */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-list a,
.contact-list strong {
  font-size: 15px;
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--accent);
}

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}

.map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: #060709;
  color: #8A9BAB;
  padding-block: 60px 26px;
  font-size: 14px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: #a4b2c0;
}

.footer__addr {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b9aa9;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer h4 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b9aa9;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.footer a {
  transition: color 0.2s var(--ease);
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  font-size: 11.5px;
  color: #8b9aa9;
}

.footer__bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9EB3C2;
}

/* ---------- 11. Article ---------- */
.article-head {
  max-width: 820px;
}

.article-head h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.article-hero {
  margin-block: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.article {
  max-width: 720px;
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

.article > * + * {
  margin-top: 1.15em;
}

.article h2 {
  margin-top: 1.9em;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  color: var(--ink);
}

.article h3 {
  margin-top: 1.6em;
  color: var(--ink);
}

.article ul,
.article ol {
  display: grid;
  gap: 0.5em;
  padding-left: 1.2em;
}

.article li::marker {
  color: var(--accent);
}

.article a {
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.article a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.article blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: var(--paper-2);
  font-size: 1.06em;
  line-height: 1.6;
}

.article blockquote p {
  margin: 0;
}

.article .callout {
  margin: 1.8em 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.article .callout h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.article .callout p {
  margin: 0;
  font-size: 0.95em;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.93em;
}

.article th,
.article td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

.article-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.author strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.author span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 11b. Brand architecture / company blocks ---------- */
.brand-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.brand-card--toolpal {
  border-top-color: var(--blue);
}

.brand-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.brand-card h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.01em;
}

.brand-card h3 span {
  color: var(--accent);
}

.brand-card--toolpal h3 span {
  color: var(--blue);
}

.brand-card > p {
  font-size: 14.5px;
  color: var(--muted);
}

.brand-card__list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.brand-card__list li {
  position: relative;
  padding-left: 16px;
}

.brand-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.brand-card--toolpal .brand-card__list li::before {
  background: var(--blue);
}

.brand-card__foot {
  margin-top: auto;
  padding-top: 8px;
}

.brand-logo {
  width: min(230px, 78%);
  height: auto;
  margin: 4px 0 10px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.brand-logo--light {
  background: #fff;
  padding: 14px 18px;
}

/* Timeline */
.timeline {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.timeline__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(16px, 3vw, 36px);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.timeline__year {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 4px;
}

.timeline h3 {
  font-size: 1.08rem;
}

.timeline p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Compact feature list */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--paper-2);
  font-size: 13.8px;
  color: var(--ink-soft);
}

.feature-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* ---------- 12. Motion / responsive ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .service {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 18px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after {
    display: none;
  }

  .nav .btn {
    margin: 18px 0 0;
    justify-content: center;
    padding: 13px 18px;
    font-size: 14px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 48px 56px;
  }

  .hero__art {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .hero__tag {
    top: 0;
  }

  .section-head--row,
  .split,
  .post--feature,
  .contact-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .article-side {
    position: static;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .steps .step {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
  }

  .steps--light .step {
    border-top-color: var(--line);
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 20px;
  }

  .timeline__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }

  .timeline__year {
    padding-top: 0;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .service__num {
    padding-top: 0;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .quick {
    grid-template-columns: 1fr;
  }

  .strip__inner {
    gap: 10px 24px;
  }

  .cta-band__inner {
    align-items: flex-start;
  }

  .doc {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .article-layout {
    gap: 40px;
  }

  .article {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .brand__tag {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }

  .filter__count {
    display: none;
  }

  .hero__tag {
    font-size: 9px;
    padding: 7px 10px;
  }
}
