/* ==========================================================================
   TERBTO · terbtosolution.com
   Tokens follow TERBTO Brand Guidelines v1.0 (พ.ย. 2569)
   ========================================================================== */

:root {
  --navy: #1a2744;
  --navy-2: #222f50;
  --navy-line: #2d3a5c;
  --cream: #fbfbf8;
  --paper: #f5f5f2;
  --white: #ffffff;
  --ink: #4c5366;
  --muted: #7a8094;
  --line: #e3e3dc;
  --on-dark: #c9d2e6;
  --on-dark-muted: #8fa0c4;

  --hub: #5fbf8f;  --hub-d: #2e7d5b;
  --pot: #f2b544;  --pot-d: #a8730f;
  --pro: #ef7a5a;  --pro-d: #c4532f;
  --tech: #5aa0f2; --tech-d: #2f6fc0;
  --potential: var(--pot); --potential-d: var(--pot-d);
  --production: var(--pro); --production-d: var(--pro-d);

  /* page accent: default HUB green, overridden per brand page via body[data-brand] */
  --accent: var(--hub);
  --accent-d: var(--hub-d);

  --font: 'IBM Plex Sans Thai', Tahoma, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius: 12px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: 20px;
  --header-h: 72px;
}
body[data-brand="hub"]        { --accent: var(--hub);  --accent-d: var(--hub-d); }
body[data-brand="potential"]  { --accent: var(--pot);  --accent-d: var(--pot-d); }
body[data-brand="production"] { --accent: var(--pro);  --accent-d: var(--pro-d); }
body[data-brand="tech"]       { --accent: var(--tech); --accent-d: var(--tech-d); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.15; }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.4; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--tech-d); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(760px + var(--gutter) * 2); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); margin-bottom: 12px;
}
.eyebrow .num { font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--navy); }
.eyebrow.accent { color: var(--accent-d); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink); line-height: 1.7; }
.prose { display: grid; gap: 16px; color: var(--ink); }
.prose strong { color: var(--navy); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: #24345a; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { background: var(--white); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--navy-line); }
.btn-outline-light:hover { border-color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; color: var(--accent-d); transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Cards / icons ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.section-paper .card, .card.on-paper { background: var(--cream); }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--paper); color: var(--navy);
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box.accent { background: color-mix(in srgb, var(--accent) 18%, var(--white)); color: var(--accent-d); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 248, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 46px; width: auto; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; border-radius: 10px; color: var(--navy); cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .i-close { display: none; }
.is-open .menu-toggle .i-open { display: none; }
.is-open .menu-toggle .i-close { display: block; }

/* mobile nav panel (absolute: the header's backdrop-filter is its containing block) */
.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--cream);
  padding: 8px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 20px;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.is-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.nav > ul { display: flex; flex-direction: column; }
.nav > ul > li > a, .nav .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line); background: none;
  font: inherit; font-size: 20px; font-weight: 600; color: var(--navy); text-decoration: none; text-align: left; cursor: pointer;
}
.nav > ul a[aria-current="page"] { color: var(--accent-d); }
.sub-toggle svg { width: 20px; height: 20px; transition: transform .2s; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub { display: none; padding: 8px 0 8px 12px; border-bottom: 1px solid var(--line); }
.has-sub.is-open .sub { display: grid; gap: 2px; }
.sub a {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px;
  font-size: 16px; font-weight: 500; text-decoration: none; color: var(--navy);
}
.sub a img { width: 28px; height: 28px; }
.sub a small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.3; }
.sub a:hover { background: var(--paper); }
.nav-cta { width: 100%; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav {
    position: static; height: auto; overflow: visible; visibility: visible; opacity: 1; transform: none; transition: none;
    flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none;
  }
  .nav > ul { flex-direction: row; gap: 4px; align-items: center; }
  .nav > ul > li { position: relative; }
  .nav > ul > li > a, .nav .sub-toggle {
    width: auto; padding: 8px 14px; border: 0; border-radius: 10px; gap: 6px;
    font-size: 15px; font-weight: 500; color: var(--ink);
  }
  .nav > ul > li > a:hover, .sub-toggle:hover, .has-sub.is-open .sub-toggle { color: var(--navy); background: var(--paper); }
  .nav > ul a[aria-current="page"] { color: var(--navy); font-weight: 600; }
  .sub-toggle svg { width: 16px; height: 16px; }
  .sub {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 320px;
    padding: 8px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); box-shadow: 0 16px 40px rgba(26, 39, 68, .10);
  }
  .has-sub.is-open .sub { display: grid; }
  .sub a { padding: 10px; }
  .nav-cta { width: auto; min-height: 42px; padding: 0 18px; font-size: 15px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 48px 0 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { margin-top: 18px; max-width: 36em; }
.page-hero .actions { margin-top: 28px; }
@media (min-width: 900px) { .page-hero { padding: 80px 0 88px; } }
.brand-art { display: none; }
@media (min-width: 900px) {
  .brand-art {
    display: grid; place-items: center; width: 300px; height: 300px; opacity: 1;
    border-radius: 40px; background: color-mix(in srgb, var(--accent) 16%, var(--white));
  }
  .brand-art img { width: 150px; height: 150px; position: relative; z-index: 1; }
  .brand-art svg { position: absolute; left: 24px; right: 24px; bottom: 28px; width: calc(100% - 48px); }
  .brand-art svg path { stroke-width: 8; opacity: .45; }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

/* brand page hero */
.brand-hero .brand-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.brand-hero .brand-id img { width: 64px; height: 64px; }
.brand-hero .brand-id .name { font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--accent-d); }
.brand-hero .brand-id .tag { font-size: 15px; color: var(--muted); }
.brand-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--paper)), var(--paper)); }

/* ---------- Home hero (navy, real people) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 64px; background: var(--navy); color: var(--on-dark); }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.display { font-size: clamp(32px, 4vw, 48px); line-height: 1.18; margin-bottom: 22px; color: var(--cream); max-width: 13em; }
.hero .eyebrow { color: var(--on-dark-muted); }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--cream); font-weight: 500; max-width: 30em; }
.hero-sub { margin-top: 14px; color: var(--on-dark); max-width: 36em; }
.hero .btn-outline-light:hover { border-color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.hero + .stats-band { padding-top: 56px; }

/* ---------- Home: services index ---------- */
.svc-index { border-top: 1px solid var(--line); }
.svc-index > li { border-bottom: 1px solid var(--line); }
.svc-item { display: grid; gap: 12px; padding: 24px 0; text-decoration: none; color: inherit; position: relative; }
.svc-id { display: flex; align-items: center; gap: 14px; }
.svc-id img { width: 44px; height: 44px; flex: none; }
.svc-id b { display: block; font-size: 15px; letter-spacing: .08em; color: var(--accent-d); }
.svc-id small { display: block; font-size: 14px; color: var(--muted); }
.svc-what { display: grid; gap: 6px; }
.svc-what strong { font-size: clamp(19px, 2.2vw, 24px); color: var(--navy); line-height: 1.35; }
.svc-what span { font-size: 15px; color: var(--ink); }
.svc-go { display: none; }
.svc-item:hover .svc-what strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
@media (min-width: 900px) {
  .svc-item { grid-template-columns: 300px 1fr 48px; gap: 40px; align-items: center; padding: 32px 0; }
  .svc-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
  .svc-go svg { width: 18px; height: 18px; }
  .svc-item:hover .svc-go { background: var(--navy); border-color: var(--navy); color: var(--cream); }
}

/* ---------- Home: service tiles with animated scenes ---------- */
.eco { position: relative; display: grid; gap: 20px; }
@media (min-width: 900px) { .eco { grid-template-columns: 1fr 1fr; gap: 28px; } }
.eco-tile {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: var(--radius-xl);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.eco-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 28px 56px -28px rgba(26, 39, 68, .35); }
.eco-tile .illus { border-radius: 20px; }
.eco-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 0; }
.eco-head > img { width: 40px; height: 40px; flex: none; }
.eco-head > div { flex: 1; min-width: 0; }
.eco-arrow { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.eco-arrow svg { width: 18px; height: 18px; }
.eco-tile:hover .eco-arrow { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.eco-body { padding: 0 4px 6px; display: grid; gap: 10px; }
.eco-body h3 { font-size: clamp(19px, 2vw, 22px); }
.eco-items { display: flex; flex-wrap: wrap; gap: 6px; }
.eco-items li { padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--accent-d); background: color-mix(in srgb, var(--accent) 13%, var(--white)); }

.eco-head { flex-wrap: wrap; }
.eco-tile.is-product .eco-head .product-badge { order: 3; }
@media (min-width: 900px) { .eco-tile.is-product .eco-head .product-badge { order: 0; } }

/* ---------- Home: note from the founder ---------- */
.note-grid { display: grid; gap: 32px; align-items: center; }
.note-photo { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-lg); }
.founder-note blockquote { margin: 20px 0 0; display: grid; gap: 14px; }
.founder-note blockquote p:first-child { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.55; color: var(--navy); font-weight: 500; }
.founder-note blockquote p + p { color: var(--ink); font-size: 17px; }
.note-by { display: grid; gap: 2px; margin: 24px 0 20px; padding-left: 14px; border-left: 3px solid var(--navy); }
.note-by b { color: var(--navy); }
.note-by span { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .note-grid { grid-template-columns: 360px 1fr; gap: 72px; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark .eyebrow { color: var(--on-dark-muted); }
.section-dark .eyebrow .num { color: var(--cream); }
.section-dark .lead, .section-dark .prose { color: var(--on-dark); }
.section-dark .card { background: var(--navy-2); border-color: var(--navy-line); color: var(--cream); }
.section-dark .card p { color: var(--on-dark); }
.section-dark .icon-box { background: var(--navy-2); color: var(--cream); border: 1px solid var(--navy-line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .lead { margin-top: 16px; }
.section-head.split { max-width: none; display: grid; gap: 16px; align-items: end; }
.section-head.split .lead { margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
@media (min-width: 900px) {
  .section { padding: 112px 0; }
  .section-sm { padding: 64px 0; }
  .section-head { margin-bottom: 56px; }
  .section-head.split { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 16px; }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* feature / value cards */
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .icon-box { margin-bottom: 6px; }
.feature p { color: var(--ink); font-size: 15px; }
@media (min-width: 900px) { .feature { padding: 32px; } }

/* checklist */
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--navy); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px;
  background-color: var(--accent-d);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Brand cards (home + services) ---------- */
.brand-card {
  position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.brand-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 48px -20px rgba(26, 39, 68, .25); }
.brand-card-top {
  position: relative; height: 120px; padding: 22px 24px;
  background: color-mix(in srgb, var(--accent) 16%, var(--white));
  display: flex; align-items: flex-start; justify-content: space-between;
}
.brand-card-top img { width: 56px; height: 56px; position: relative; z-index: 1; }
.brand-card-n { font-family: var(--mono); font-size: 13px; color: var(--accent-d); position: relative; z-index: 1; }
.brand-card-top svg { position: absolute; right: 16px; bottom: 14px; width: 120px; height: 60px; transition: transform .35s; }
.brand-card-top svg path { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
a.brand-card:hover .brand-card-top svg { transform: translate(4px, -4px); }
.brand-card-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 26px; flex: 1; }
@media (min-width: 900px) { .brand-card-body { padding: 26px 28px 30px; } .brand-card-top { padding: 24px 28px; } }
.brand-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.brand-card-head img { width: 52px; height: 52px; flex: none; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--accent-d); line-height: 1.3; }
.brand-tag { font-size: 14px; color: var(--muted); line-height: 1.4; }
.brand-card-body > p { color: var(--ink); }
.brand-card .checks { padding: 14px 0 4px; border-top: 1px solid var(--line); }
.brand-card .link-arrow { margin-top: auto; }

/* services overview rows */
.svc-row {
  display: grid; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .brand-card-head img { width: 64px; height: 64px; }
.svc-row h2 { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 12px; }
.svc-row .prose { font-size: 16px; }
.svc-row .checks { margin-top: 8px; }
.svc-row .link-arrow { margin-top: 12px; }
.svc-aside { display: grid; gap: 12px; align-content: start; }
.svc-aside .card { padding: 20px; }
.svc-aside .card h4 { color: var(--accent-d); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.svc-aside .card p { color: var(--ink); font-size: 15px; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 1.3fr 1fr; gap: 64px; padding: 64px 0; }
}

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 14px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step-num {
  font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.step-num::after { content: ""; height: 1px; background: var(--line); width: 48px; }
.step p { color: var(--ink); font-size: 15px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .steps.rise .step:nth-child(1) { margin-top: 72px; }
  .steps.rise .step:nth-child(2) { margin-top: 48px; }
  .steps.rise .step:nth-child(3) { margin-top: 24px; }
  .steps.rise .step:nth-child(4) { border-color: var(--navy); }
}

/* ---------- Essence band / CTA band ---------- */
.band { background: var(--navy); color: var(--cream); border-radius: var(--radius-xl); padding: 40px 24px; position: relative; overflow: hidden; }
.band .eyebrow { color: var(--on-dark-muted); }
.band p { color: var(--on-dark); }
.band h2 { color: var(--cream); }
.band-grid { display: grid; gap: 24px; align-items: center; position: relative; }
.band-art { position: absolute; right: -40px; bottom: -40px; width: 320px; opacity: .18; pointer-events: none; }
.band-art path { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .band { padding: 64px; }
  .band-grid { grid-template-columns: 1.4fr auto; gap: 48px; }
}
.cta-band .actions { margin-top: 0; }

/* quote */
.quote { font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.45; color: var(--cream); max-width: 24em; }
.quote .accent-text { color: var(--accent); }

/* ---------- About page bits ---------- */
.story-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; } }
.arch { display: grid; gap: 14px; }
.arch-parent { display: flex; align-items: center; gap: 16px; }
.arch-parent img { height: 48px; width: auto; }
.arch-parent p { color: var(--ink); font-size: 15px; }
.arch-children { display: grid; gap: 12px; }
.arch-child { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; }
.arch-child img { width: 40px; height: 40px; }
.arch-child .brand-name { font-size: 13px; }
.arch-child .brand-tag { font-size: 13px; }
@media (min-width: 720px) { .arch-children { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .arch-children { grid-template-columns: repeat(4, 1fr); } .arch-child { flex-direction: column; align-items: flex-start; padding: 20px; } }

.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.facts div { display: grid; gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }

/* ---------- Brand pages ---------- */
.audience { display: grid; gap: 16px; }
.audience .card { display: flex; gap: 14px; align-items: flex-start; }
.audience .card p { color: var(--ink); font-size: 15px; }
@media (min-width: 720px) { .audience { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 900px) { .audience { grid-template-columns: repeat(3, 1fr); } }

.offer { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 6px; padding: 22px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.offer > :not(.n) { grid-column: 2; }
.offer .n { grid-row: span 2; padding-top: 3px; }
.offers-list { display: grid; gap: 0 48px; }
@media (min-width: 900px) { .offers-list { grid-template-columns: 1fr 1fr; } }
.offer .n { font-family: var(--mono); font-size: 13px; color: var(--accent-d); }
.offer p { color: var(--ink); font-size: 15px; }

.related { display: grid; gap: 12px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; }
.related a img { width: 40px; height: 40px; }
.related a .brand-name { font-size: 13px; }
.related a svg { width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
.related a:hover svg { color: var(--navy); }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.contact-list { display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list div { display: flex; flex-direction: column; min-width: 0; }
.contact-list .label { font-size: 13px; color: var(--muted); }
.contact-list a, .contact-list [data-contact] { font-size: 17px; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hours { margin-top: 28px; padding: 18px 20px; }
.hours h4 { margin-bottom: 4px; }
.hours p { color: var(--ink); font-size: 15px; }

.contact-form { display: grid; gap: 16px; padding: 24px; }
@media (min-width: 900px) { .contact-form { padding: 36px; } }
.form-note { font-size: 14px; color: var(--ink); margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8094' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 39, 68, .12);
}
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-error { font-size: 14px; color: var(--pro-d); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 64px 0 32px; font-size: 14px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-line); }
.footer-brand img { height: 52px; width: auto; }
.footer-brand .essence { margin-top: 16px; font-weight: 600; color: var(--cream); font-size: 17px; }
.footer-brand p { max-width: 28em; margin-top: 8px; }
.footer-col h4 { color: var(--cream); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-col .brand-list a { display: flex; align-items: center; gap: 10px; }
.footer-col .brand-list img { width: 24px; height: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }

.footer-legal { display: grid; gap: 6px; padding: 28px 0; border-bottom: 1px solid var(--navy-line); font-size: 13px; }
.footer-legal .legal-name { color: var(--cream); font-weight: 600; font-size: 14px; }
.footer-legal .legal-name span { color: var(--on-dark); font-weight: 400; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 24px; color: var(--on-dark-muted); font-size: 13px;
}
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); text-decoration: none; min-height: 44px; }
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { color: var(--cream); }

/* ---------- Services: sticky brand jump nav ---------- */
.svc-nav { position: sticky; top: var(--header-h); z-index: 20; margin: -16px calc(var(--gutter) * -1) 8px; padding: 12px var(--gutter); background: rgba(251, 251, 248, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.svc-nav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px;
  padding: 6px 16px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--navy); text-decoration: none;
  transition: border-color .15s, background .15s;
}
.svc-nav a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--white)); }
.svc-nav img { width: 24px; height: 24px; }
.svc-row { scroll-margin-top: calc(var(--header-h) + 80px); }
@media (min-width: 900px) { .svc-nav { margin-inline: 0; padding-inline: 0; } }

/* ---------- Scroll reveal (JS adds .reveal; no-JS stays visible) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Team (about page) ---------- */
.team { display: grid; gap: 20px; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.member-photo {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(160deg, #e6e9f2, var(--paper));
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.member-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; font-weight: 700; color: var(--navy); opacity: .25; }
.member-body { padding: 22px 24px 26px; display: grid; gap: 4px; }
.member-role { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--hub-d); }
.member-name { font-size: 24px; }
.member-full { color: var(--muted); font-size: 15px; }
.member-bio { color: var(--ink); margin-top: 10px; }

/* one person → wide featured card */
.team.is-solo { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .team.is-solo .member { flex-direction: row; align-items: stretch; }
  .team.is-solo .member-photo { flex: 0 0 42%; aspect-ratio: auto; min-height: 380px; }
  .team.is-solo .member-body { align-content: center; padding: 48px 56px; position: relative; }
  .team.is-solo .member-name { font-size: clamp(32px, 4vw, 44px); }
  .team.is-solo .member-bio { font-size: 18px; line-height: 1.7; max-width: 30em; margin-top: 16px; }
  .team.is-solo .member-body::after {
    content: ""; position: absolute; right: 40px; bottom: 36px; width: 140px; height: 70px; opacity: .35;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' fill='none' stroke='%235fbf8f' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 54 L38 30 L60 42 L114 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* ---------- Contact form extras ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 13px; color: var(--muted); text-align: center; }
.form-sent { display: grid; gap: 12px; align-content: start; }
.form-sent .icon-box { --accent: var(--hub); --accent-d: var(--hub-d); width: 52px; height: 52px; }
.form-sent .icon-box svg { width: 28px; height: 28px; }
.form-sent p { color: var(--ink); }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- 404 ---------- */
.notfound { position: relative; overflow: hidden; }
.notfound h1 { margin-top: 8px; }
.notfound .lead { margin-top: 16px; max-width: 34em; }
.notfound-links { display: grid; gap: 12px; margin-top: 48px; max-width: 760px; }
@media (min-width: 640px) { .notfound-links { grid-template-columns: 1fr 1fr; } }
.notfound-links a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; }
.notfound-links a > span { display: grid; }
.notfound-links .brand-name { font-size: 13px; }
.notfound-art { display: none; }
@media (min-width: 900px) {
  .notfound-art { display: block; position: absolute; right: var(--gutter); top: 40px; width: 300px; }
  .notfound-art path { fill: none; stroke: var(--line); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
}

/* ---------- Works ---------- */
.works-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.work-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 48px -20px rgba(26, 39, 68, .25); }
.work-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--accent) 16%, var(--white)); display: grid; place-items: center; }
.work-cover > img:not(.work-sym) { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-cover > img:not(.work-sym) { transform: scale(1.03); }
.work-sym { width: 72px; height: 72px; opacity: .9; }
.work-chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(251, 251, 248, .94); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--navy); }
.work-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-meta { font-size: 13px; color: var(--muted); }
.work-body h3 { font-size: 19px; }
.work-body > p:not(.work-meta) { color: var(--ink); font-size: 15px; }
.work-body .link-arrow { margin-top: auto; padding-top: 6px; }
.works-empty { display: grid; gap: 20px; justify-items: start; padding: 40px; }
.svc-nav a[aria-current] { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.work-hero-img { margin: 0 0 40px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); }
.work-hero-img img { width: 100%; max-height: 640px; object-fit: cover; }
.work-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .work-grid { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; } .work-facts { position: sticky; top: calc(var(--header-h) + 24px); } }
.work-facts { grid-template-columns: 1fr !important; }
.work-facts div { border-bottom: 1px solid var(--line) !important; }
.work-facts div:last-child { border-bottom: 0 !important; }
.work-facts a { color: var(--navy); }
.work-story { display: grid; gap: 40px; max-width: 720px; }
.work-part h2 { font-size: 24px; margin-bottom: 12px; }
.work-part.is-result { padding: 28px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 12%, var(--white)); border-left: 4px solid var(--accent); }

/* ---------- Clients & testimonials ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 48px; }
@media (min-width: 640px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logo-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logo-wall li { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.logo-wall img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote-card { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.quote-card .qmark { width: 32px; height: 24px; fill: var(--accent); }
.quote-card blockquote { margin: 0; font-size: 17px; line-height: 1.7; color: var(--navy); flex: 1; }
.quote-card figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.quote-card figcaption span { color: var(--muted); }
#sent, #contact-form { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Legal (privacy) ---------- */
.legal { display: grid; gap: 32px; }
@media (min-width: 900px) { .legal { grid-template-columns: 280px 1fr; gap: 64px; align-items: start; } .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.legal-toc ol { display: grid; gap: 6px; margin-top: 10px; font-size: 15px; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--navy); text-decoration: underline; }
.legal-body { display: grid; gap: 40px; max-width: 720px; }
.legal-body section { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body h2 { font-size: 22px; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.legal-body h2 .num { font-family: var(--mono); font-size: 14px; color: var(--muted); font-weight: 500; }
.legal-body a { color: var(--navy); }
.form-privacy a { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.footer-links a, .footer-links button { color: var(--on-dark); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; min-height: 44px; }
.footer-links a:hover, .footer-links button:hover { color: var(--cream); text-decoration: underline; }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; z-index: 80; left: 12px; right: 12px; bottom: 12px;
  display: grid; gap: 12px; padding: 16px 18px; max-width: 560px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(26, 39, 68, .35); font-size: 14px; color: var(--ink);
}
.consent a { color: var(--navy); }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; }
.consent .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (min-width: 640px) { .consent { left: 24px; bottom: 24px; } }
/* centre logos and reviews when there are only a few */
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; }
.logo-wall li { flex: 0 1 calc(50% - 6px); }
@media (min-width: 640px) { .logo-wall li { flex-basis: calc(25% - 9px); } }
@media (min-width: 1000px) { .logo-wall li { flex-basis: calc(16.666% - 10px); } }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; } }
.clients:not(.section-paper) .quote-card, .section-paper .logo-wall li { background: var(--white); }

/* ==========================================================================
   Brand illustrations (includes/illustrations.php) — sizes scale with the box
   ========================================================================== */
.illus {
  container-type: inline-size; position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 28px; background: color-mix(in srgb, var(--accent) 15%, var(--white));
  color: var(--navy); line-height: 1.35;
}
/* cq units resolve against the nearest container, i.e. .illus, only for its children */
.illus > :not(.illus-bg) { font-size: 3.3cqw; }
.illus > .ill-float { font-size: calc(3.3cqw * .82); }
.illus * { box-sizing: border-box; }
.illus svg:not(.illus-bg) { width: 1em; height: 1em; flex: none; }
.illus-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.illus-bg path { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .25; vector-effect: non-scaling-stroke; }
.ill-float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  padding: .6em .9em; border-radius: 999px; background: var(--white); font-weight: 600;
  box-shadow: 0 1em 2em -1em rgba(26, 39, 68, .35); animation: ill-float 5s ease-in-out infinite;
}
.ill-float svg { color: var(--accent-d); width: 1.3em !important; height: 1.3em !important; }
.ill-float-b { animation-delay: -2.5s; }
.ill-dot { width: .6em; height: .6em; border-radius: 999px; background: var(--hub); box-shadow: 0 0 0 .25em color-mix(in srgb, var(--hub) 30%, transparent); }
@keyframes ill-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.5em); } }

/* TECH — browser + dashboard */
.ill-win { position: absolute; left: 8%; top: 12%; width: 84%; height: 74%; border-radius: .9em; background: var(--white); box-shadow: 0 2em 3em -1.5em rgba(26, 39, 68, .35); overflow: hidden; display: flex; flex-direction: column; }
.ill-bar { display: flex; align-items: center; gap: .35em; padding: .55em .8em; background: var(--paper); border-bottom: 1px solid var(--line); }
.ill-bar i { width: .6em; height: .6em; border-radius: 999px; background: var(--line); }
.ill-bar i:nth-child(1) { background: #ef7a5a; } .ill-bar i:nth-child(2) { background: #f2b544; } .ill-bar i:nth-child(3) { background: #5fbf8f; }
.ill-bar span { margin-left: .6em; flex: 1; padding: .15em .7em; border-radius: 999px; background: var(--white); font-size: .7em; color: var(--muted); font-family: var(--mono); }
.ill-win-body { flex: 1; display: flex; min-height: 0; }
.ill-side { width: 18%; padding: .9em .7em; display: grid; gap: .55em; align-content: start; background: var(--navy); }
.ill-side b { height: .5em; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.ill-side b:first-child { background: var(--accent); width: 80%; }
.ill-main { flex: 1; padding: .9em; display: flex; flex-direction: column; gap: .8em; min-width: 0; }
.ill-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.ill-kpis div { padding: .45em .55em; border-radius: .5em; border: 1px solid var(--line); display: grid; }
.ill-kpis small { font-size: .62em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ill-kpis strong { font-size: .95em; }
.ill-kpis div:first-child strong { color: var(--hub-d); }
.ill-chart { flex: none; height: 7.5em; display: flex; align-items: flex-end; gap: 5%; padding: .4em .2em 0; border-bottom: 1px solid var(--line); }
.ill-chart i { flex: 1; border-radius: .3em .3em 0 0; background: color-mix(in srgb, var(--accent) 45%, var(--white)); transform-origin: bottom; animation: ill-grow 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d); }
.ill-chart i:last-child { background: var(--accent); }
@keyframes ill-grow { from { transform: scaleY(.1); } }
.illus-tech .ill-float-a { right: 4%; top: 5%; }
.illus-tech .ill-float-b { left: 3%; bottom: 6%; font-family: var(--mono); background: var(--navy); color: var(--accent); font-size: 3.6cqw; }

/* HUB — phone */
.ill-phone { position: absolute; left: 50%; top: 8%; width: 42%; height: 112%; transform: translateX(-50%); border-radius: 2em; background: var(--white); border: .5em solid var(--navy); padding: 1.6em 1em 1em; box-shadow: 0 2em 3em -1.5em rgba(26, 39, 68, .4); display: flex; flex-direction: column; }
.ill-notch { position: absolute; top: .4em; left: 50%; transform: translateX(-50%); width: 34%; height: .7em; border-radius: 999px; background: var(--navy); }
.ill-hello { font-size: .7em; color: var(--muted); }
.ill-time { font-size: 2.3em; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ill-date { font-size: .65em; color: var(--muted); margin-bottom: .8em; }
.ill-btn { display: flex; align-items: center; justify-content: center; gap: .4em; padding: .6em; border-radius: .7em; background: var(--hub-d); color: var(--white); font-size: .72em; font-weight: 600; }
.ill-list { margin-top: .9em; display: grid; gap: .55em; }
.ill-list li { display: flex; align-items: center; gap: .5em; font-size: .62em; color: var(--ink); white-space: nowrap; }
.ill-list i { width: .9em; height: .9em; border-radius: .25em; border: 1.5px solid var(--line); flex: none; }
.ill-list li:first-child i { background: var(--hub); border-color: var(--hub); }
.illus-hub .ill-float-a { left: 4%; top: 30%; border-radius: 1em; padding: .7em .9em; }
.illus-hub .ill-float-a span { display: grid; line-height: 1.3; }
.illus-hub .ill-float-a small { font-weight: 400; color: var(--muted); font-size: .85em; }
.illus-hub .ill-float-b { right: 4%; bottom: 18%; }

/* PRODUCTION — video + timeline */
.ill-video { position: absolute; left: 13%; top: 9%; width: 74%; display: grid; gap: .6em; }
.ill-frame { position: relative; aspect-ratio: 16 / 9; border-radius: .9em; overflow: hidden; background: linear-gradient(135deg, var(--navy), #2b3f6b 60%, color-mix(in srgb, var(--accent) 60%, var(--navy))); box-shadow: 0 2em 3em -1.5em rgba(26, 39, 68, .45); }
.ill-frame::after { content: ""; position: absolute; inset: 12% 10%; border: 1px dashed rgba(255, 255, 255, .25); border-radius: .4em; }
.ill-rec { position: absolute; left: 5%; top: 8%; display: flex; align-items: center; gap: .35em; font-size: .62em; font-weight: 700; letter-spacing: .1em; color: var(--white); }
.ill-rec i { width: .7em; height: .7em; border-radius: 999px; background: #ef4444; animation: ill-blink 1.4s steps(1) infinite; }
@keyframes ill-blink { 50% { opacity: 0; } }
.ill-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 3.2em; height: 3.2em; border-radius: 999px; background: rgba(251, 251, 248, .95); display: grid; place-items: center; color: var(--accent-d); }
.ill-play svg { width: 1.8em !important; height: 1.8em !important; }
.ill-tc { position: absolute; right: 5%; bottom: 7%; font-family: var(--mono); font-size: .62em; color: rgba(255, 255, 255, .8); }
.ill-tl { position: relative; padding: .6em; border-radius: .7em; background: var(--white); display: grid; gap: .4em; box-shadow: 0 1em 2em -1em rgba(26, 39, 68, .3); }
.ill-track { display: flex; gap: .3em; height: 1.1em; }
.ill-track i { border-radius: .3em; background: color-mix(in srgb, var(--accent) 55%, var(--white)); }
.ill-track-b i { background: color-mix(in srgb, var(--tech) 40%, var(--white)); }
.ill-head { position: absolute; top: .2em; bottom: .2em; left: 40%; width: 2px; background: var(--navy); animation: ill-scrub 6s linear infinite; }
.ill-head::before { content: ""; position: absolute; top: -.2em; left: -.3em; width: .7em; height: .5em; border-radius: .15em; background: var(--navy); }
@keyframes ill-scrub { from { left: 6%; } to { left: 94%; } }
.illus-production .ill-float-a { right: 3%; top: 4%; }

/* POTENTIAL — skill card */
.ill-card { position: absolute; left: 14%; top: 12%; width: 72%; padding: 1.1em 1.2em; border-radius: 1em; background: var(--white); box-shadow: 0 2em 3em -1.5em rgba(26, 39, 68, .35); display: grid; gap: .7em; }
.ill-card-top { display: flex; align-items: center; gap: .7em; }
.ill-card-top span:last-child { display: grid; line-height: 1.3; }
.ill-card-top small { font-size: .65em; color: var(--muted); }
.ill-avatar { width: 2.4em; height: 2.4em; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 35%, var(--white)); color: var(--accent-d); }
.ill-avatar svg { width: 1.3em !important; height: 1.3em !important; }
.ill-card-label { font-size: .62em; color: var(--muted); letter-spacing: .06em; }
.ill-pills { display: flex; flex-wrap: wrap; gap: .35em; margin-top: -.3em; }
.ill-pills span { padding: .25em .7em; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, var(--white)); color: var(--accent-d); font-size: .66em; font-weight: 600; }
.ill-progress { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: .6em; }
.ill-progress small { font-size: .62em; color: var(--ink); }
.ill-progress span { height: .5em; border-radius: 999px; background: var(--paper); overflow: hidden; }
.ill-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; animation: ill-fill 1.4s cubic-bezier(.2, .7, .2, 1) both .3s; }
@keyframes ill-fill { from { transform: scaleX(0); } }
.illus-potential .ill-float-a { right: 4%; bottom: 8%; }
.illus-potential .ill-float-b { left: 4%; bottom: 20%; }

@media (prefers-reduced-motion: reduce) { .illus *, .illus *::before { animation: none !important; } }

/* real brand photo in place of the drawing */
.bvis { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: 28px; background: var(--paper); }
.bvis img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .bvis, .post-cover .illus { border-radius: 0; height: 100%; aspect-ratio: auto; }

/* page heroes that carry a visual (brand pages) */
.has-illus .hero-illus { margin-top: 32px; max-width: 460px; }
@media (min-width: 900px) {
  .has-illus .wrap { min-height: 320px; }
  .has-illus .hero-illus { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 400px; margin: 0; max-width: none; }
  .has-illus .wrap > :not(.hero-illus) { max-width: calc(100% - 450px); }
}

/* ---------- Stats band (home) ---------- */
.stats-band { padding: 8px 0 56px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 20px; } .stats-band { padding-bottom: 80px; } }
.stats li { position: relative; display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.stats li::after { content: ""; position: absolute; left: 22px; top: 0; width: 36px; height: 4px; border-radius: 0 0 4px 4px; }
.stats li:nth-child(4n+1)::after { background: var(--tech); } .stats li:nth-child(4n+2)::after { background: var(--hub); }
.stats li:nth-child(4n+3)::after { background: var(--pro); } .stats li:nth-child(4n+4)::after { background: var(--pot); }
.stat-value { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stats li span { font-size: 14px; color: var(--ink); }

/* ---------- Growth timeline (about) ---------- */
.timeline { position: relative; display: grid; gap: 20px; padding-left: 32px; max-width: 980px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--tech), var(--hub), var(--pro), var(--pot)); opacity: .5; }
.timeline li { position: relative; }
.tl-dot { position: absolute; left: -32px; top: 22px; width: 21px; height: 21px; border-radius: 999px; background: var(--accent); border: 5px solid var(--cream); box-shadow: 0 0 0 1px var(--line); }
.section-paper .tl-dot { border-color: var(--paper); }
.tl-card { display: grid; gap: 6px; }
.tl-year { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--navy); }
.tl-year::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 6px; border-radius: 3px; background: var(--accent); }
.tl-card h3 { font-size: 19px; }
.tl-card p:not(.tl-year) { color: var(--ink); font-size: 15px; }
@media (min-width: 900px) {
  .timeline { padding-left: 0; gap: 0; }
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline li { width: 50%; padding: 0 44px 32px 0; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 32px 44px; }
  .timeline li:nth-child(odd) .tl-card { text-align: right; }
  .timeline li:nth-child(odd) .tl-year::after { margin-left: auto; }
  .tl-dot { left: auto; right: -11px; }
  .timeline li:nth-child(even) .tl-dot { left: -10px; right: auto; }
}

/* lines that draw themselves when scrolled into view (timeline) */
[data-draw] path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.6, .1, .2, 1); }
[data-draw].is-drawn path[pathLength] { stroke-dashoffset: 0; }

/* header gets a soft shadow once scrolled */
.site-header { transition: border-color .2s, box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(26, 39, 68, .45); }
.brand img { transition: height .25s; }
@media (min-width: 900px) { .site-header.is-scrolled .brand img { height: 40px; } }

@media (prefers-reduced-motion: reduce) { [data-draw] path[pathLength] { stroke-dashoffset: 0 !important; } }

/* ---------- Brand photo gallery ---------- */
.gallery-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 20px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 24px 14px 10px; font-size: 13px; color: var(--cream); background: linear-gradient(transparent, rgba(19, 29, 52, .75)); }
.gallery.n1 { grid-template-columns: 1fr; } .gallery.n1 figure { aspect-ratio: 21 / 9; }
@media (min-width: 900px) {
  .gallery { gap: 16px; }
  .gallery.n2 { grid-template-columns: 1fr 1fr; }
  .gallery.n3 { grid-template-columns: 2fr 1fr; }
  .gallery.n3 figure:first-child { grid-row: span 2; aspect-ratio: auto; }
  .gallery.feature, .gallery.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery.feature figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Blog list ---------- */
.blog-tools { display: grid; gap: 12px; margin-bottom: 28px; }
@media (min-width: 900px) { .blog-tools { grid-template-columns: 1fr 300px; align-items: center; } }
.blog-tools .svc-nav { position: static; margin: 0; padding: 0; border: 0; background: none; }
.blog-search { position: relative; }
.blog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.blog-search input { width: 100%; min-height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: inherit; color: var(--navy); }
.blog-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 39, 68, .12); }
.blog-filter { margin-bottom: 20px; color: var(--ink); }
.blog-filter a { color: var(--navy); }
.posts-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-lead { margin-bottom: 24px; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 48px -20px rgba(26, 39, 68, .25); }
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--accent) 14%, var(--white)); }
.post-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-cover > img { transform: scale(1.03); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.post-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .08em; color: var(--accent-d); font-size: 12px; }
.post-brand.big { font-size: 14px; margin-bottom: 14px; }
.post-body h3 { font-size: 19px; line-height: 1.4; }
.post-ex { color: var(--ink); font-size: 15px; }
.post-body .link-arrow { margin-top: auto; padding-top: 6px; }
@media (min-width: 900px) {
  .post-card.is-big { flex-direction: row; }
  .post-card.is-big .post-cover { flex: 0 0 56%; aspect-ratio: 16 / 10; }
  .post-card.is-big .post-body { padding: 36px 40px; justify-content: center; }
  .post-card.is-big h3 { font-size: clamp(24px, 2.4vw, 30px); }
  .post-card.is-big .post-ex { font-size: 17px; }
}
.tag-cloud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tag-cloud span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.tag-cloud a, .article-tags a { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; color: var(--ink); text-decoration: none; }
.tag-cloud a:hover, .article-tags a:hover, .tag-cloud a[aria-current] { border-color: var(--navy); color: var(--navy); }

/* ---------- Article ---------- */
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--pot); color: var(--navy); font-size: 14px; font-weight: 600; }
.preview-bar svg { width: 18px; height: 18px; }
.preview-bar a { color: var(--navy); }
.article-head { padding: 40px 0 32px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--hub)) 8%, var(--paper)), var(--cream)); }
@media (min-width: 900px) { .article-head { padding: 72px 0 48px; } }
.wrap-article { max-width: calc(820px + var(--gutter) * 2); }
.article-head h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.25; }
.article-head .lead { margin-top: 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; font-size: 14px; color: var(--ink); }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 18px; height: 18px; color: var(--muted); }
.article-author img, .article-author .ini { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; object-position: center 20%; flex: none; }
.article-author .ini { display: grid; place-items: center; background: var(--navy); color: var(--cream); font-weight: 600; }
.article-author > span:last-child { display: grid; line-height: 1.3; }
.article-author small { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.article-cover { margin: 0 auto 8px; }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-xl); border: 1px solid var(--line); }
.article-grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 1000px) {
  .article-grid { grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; padding-top: 56px; padding-bottom: 104px; }
  .article-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 20px; }
}
.article-side { display: grid; gap: 16px; }
@media (max-width: 999px) { .article-side { order: 2; } }
.article-toc { padding: 18px 20px; }
.article-toc ol { display: grid; gap: 8px; margin-top: 10px; font-size: 14px; counter-reset: toc; }
.article-toc li { counter-increment: toc; display: grid; grid-template-columns: 22px 1fr; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.article-toc a { color: var(--ink); text-decoration: none; }
.article-toc a:hover { color: var(--navy); text-decoration: underline; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share .eyebrow { width: 100%; margin-bottom: 0; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 13px; color: var(--ink); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy); color: var(--navy); }
.share svg { width: 16px; height: 16px; }

.prose-article { font-size: 17px; line-height: 1.85; color: var(--ink); min-width: 0; }
.prose-article > * + * { margin-top: 1.1em; }
.prose-article h2 { font-size: clamp(23px, 2.6vw, 28px); line-height: 1.35; color: var(--navy); margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose-article h3 { font-size: 20px; color: var(--navy); margin-top: 1.5em; }
.prose-article strong, .prose-article b { color: var(--navy); }
.prose-article a { color: var(--accent-d, var(--navy)); text-decoration: underline; text-underline-offset: 3px; }
.prose-article ul, .prose-article ol { padding-left: 1.4em; display: grid; gap: .4em; }
.prose-article ul { list-style: disc; } .prose-article ol { list-style: decimal; }
.prose-article li::marker { color: var(--accent, var(--hub)); }
.prose-article blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-left: 4px solid var(--accent, var(--hub)); border-radius: 0 var(--radius) var(--radius) 0; background: color-mix(in srgb, var(--accent, var(--hub)) 10%, var(--white)); font-size: 19px; font-weight: 500; color: var(--navy); }
.prose-article img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.prose-article figure { margin: 1.6em 0; }
.prose-article figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose-article hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em !important; }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 2.4em !important; font-size: 15px; line-height: 1.7; }
.author-box img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; object-position: center 20%; flex: none; }
.author-name { font-weight: 700; color: var(--navy); font-size: 17px; }
.author-name span { font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-left: 6px; }

/* ---------- Products (HUB) ---------- */
.sub-label { padding: 10px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.footer-tag { margin-left: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--navy-line); font-size: 11px; color: var(--on-dark-muted); }
.product-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.product-badge img { width: 18px; height: 18px; }
.brand-hero .brand-id { flex-wrap: wrap; }
.product-feature { display: grid; gap: 32px; align-items: center; padding: 28px; border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); }
.section-paper .product-feature { background: var(--cream); }
@media (min-width: 900px) { .product-feature { grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 48px; } }
.product-copy { display: grid; gap: 14px; justify-items: start; }
.product-copy h2 { font-size: clamp(24px, 3vw, 34px); }
.product-copy .actions { margin-top: 8px; }
.product-by { font-size: 14px; color: var(--muted); }
.product-by a { color: var(--accent-d); font-weight: 600; }
.arch-product { border-style: dashed; }
.brand-hero .brand-id .product-badge img { width: 18px; height: 18px; }

/* ==========================================================================
   Article page (v2)
   ========================================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 4px; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--tech), var(--hub), var(--pro), var(--pot)); }

.article-hero { position: relative; overflow: hidden; padding: 36px 0 72px; background: var(--navy); color: var(--cream); }
.article-hero-inner { position: relative; max-width: calc(860px + var(--gutter) * 2); text-align: center; }
.article-hero .crumbs { justify-content: center; }
.article-hero .crumbs, .article-hero .crumbs a { color: var(--on-dark-muted); }
.article-hero .crumbs li + li::before { color: var(--navy-line); }
.article-kicker { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 8px; font-size: 14px; color: var(--on-dark); }
.article-kicker > span { display: inline-flex; align-items: center; gap: 6px; }
.article-kicker svg { width: 16px; height: 16px; }
.kicker-brand { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: rgba(251, 251, 248, .1); border: 1px solid rgba(251, 251, 248, .18); color: var(--cream); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }
.kicker-brand:hover { background: rgba(251, 251, 248, .18); }
.article-hero h1 { margin-top: 22px; color: var(--cream); font-size: clamp(30px, 5vw, 54px); line-height: 1.22; letter-spacing: -.005em; }
.article-dek { margin: 20px auto 0; max-width: 36em; font-size: clamp(17px, 2vw, 20px); line-height: 1.7; color: var(--on-dark); }
.article-byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; text-align: left; }
.byline-avatar { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: var(--cream); color: var(--navy); font-weight: 700; box-shadow: 0 0 0 3px rgba(251, 251, 248, .25); flex: none; }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.byline-text { display: grid; line-height: 1.35; }
.byline-text b { color: var(--cream); font-size: 16px; }
.byline-text small { color: var(--on-dark-muted); font-size: 13px; }

.article-visual { position: relative; z-index: 2; margin: -110px auto 0; max-width: calc(1040px + var(--gutter) * 2); }
.article-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-xl); box-shadow: 0 40px 80px -40px rgba(26, 39, 68, .55); }

.article-layout { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 80px; }
@media (min-width: 1040px) {
  .article-layout { grid-template-columns: 220px minmax(0, 700px); justify-content: center; gap: 72px; padding-top: 72px; padding-bottom: 112px; }
  .article-rail { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
}
.article-rail { display: grid; gap: 28px; }
@media (max-width: 1039px) { .article-rail .rail-share { display: none; } }
.rail-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.article-toc { padding: 0; border: 0; background: none; }
@media (max-width: 1039px) { .article-toc { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); } }
.article-toc ol { display: grid; gap: 2px; margin: 0; counter-reset: none; }
.article-toc li { display: block; }
.article-toc li::before { content: none; }
.article-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 7px 10px 7px 0; border-left: 2px solid var(--line); padding-left: 12px; font-size: 14px; line-height: 1.5; color: var(--ink); text-decoration: none; transition: color .15s, border-color .15s; }
.article-toc a span { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.article-toc a:hover { color: var(--navy); }
.article-toc a.is-active { color: var(--navy); font-weight: 600; border-left-color: var(--accent); }
.article-toc a.is-active span { color: var(--accent-d); }
.rail-share > div { display: flex; gap: 8px; }
.rail-share a, .rail-share button { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.rail-share a:hover, .rail-share button:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.rail-share svg { width: 16px; height: 16px; }

/* body typography */
.prose-article { font-size: 18px; line-height: 1.9; counter-reset: h2; }
.prose-article > p:first-child { font-size: 20px; line-height: 1.85; color: var(--navy); }
.prose-article h2 { counter-increment: h2; position: relative; margin-top: 2.2em; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(24px, 2.8vw, 30px); }
.prose-article h2::before { content: counter(h2, decimal-leading-zero); display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--accent-d); }
.prose-article blockquote { position: relative; margin: 2em 0; padding: 30px 32px 30px 36px; border: 0; border-radius: var(--radius-lg); background: var(--navy); color: var(--cream); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.6; font-weight: 600; }
.prose-article blockquote::before { content: "“"; position: absolute; left: 22px; top: -18px; font-size: 90px; line-height: 1; color: var(--accent); font-family: Georgia, serif; }
.prose-article blockquote::after { content: ""; position: absolute; left: 36px; bottom: 0; width: 64px; height: 4px; border-radius: 4px 4px 0 0; background: var(--accent); }
.prose-article ul li::marker { content: "●  "; font-size: .7em; }
.prose-article ol { counter-reset: li; list-style: none; padding-left: 0; }
.prose-article ol > li { counter-increment: li; position: relative; padding-left: 44px; }
.prose-article ol > li::before { content: counter(li); position: absolute; left: 0; top: .25em; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--white)); color: var(--accent-d); font-size: 14px; font-weight: 700; line-height: 1; }
.prose-article figure img { box-shadow: 0 24px 48px -28px rgba(26, 39, 68, .35); }

/* end of article */
.article-end { display: grid; gap: 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-end .article-tags { margin: 0 !important; }
.end-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 20px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 10%, var(--white)); }
.end-share span { flex: 1 1 240px; font-weight: 600; color: var(--navy); }
.end-share a, .end-share button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; cursor: pointer; }
.end-share a:hover, .end-share button:hover { border-color: var(--navy); }
.end-share svg { width: 16px; height: 16px; }
.author-card { display: flex; gap: 22px; align-items: flex-start; padding: 26px; border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); }
.author-photo { width: 88px; height: 88px; border-radius: 22px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--navy); color: var(--cream); font-size: 32px; font-weight: 700; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.author-card .rail-title { margin-bottom: 4px; }
.author-card .author-name { font-size: 20px; font-weight: 700; color: var(--navy); }
.author-card .author-name .muted { font-size: 15px; font-weight: 500; }
.author-role { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent-d); margin-top: 2px; }
.author-bio { margin-top: 10px; color: var(--ink); font-size: 15px; line-height: 1.7; }
@media (max-width: 520px) { .author-card { flex-direction: column; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* filter pills: never shrink (icons have max-width:100%, so they could collapse and overlap) */
.svc-nav li { flex: none; }
@media (max-width: 899px) {
  .blog-tools .svc-nav { margin-inline: calc(var(--gutter) * -1); }
  .blog-tools .svc-nav ul { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
.blog-tools { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .blog-tools { grid-template-columns: minmax(0, 1fr) 300px; } }
.brand-strip img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(251, 251, 248, .28); }
.article-hero:has(+ .article-visual) { padding-bottom: 150px; }
.nw { white-space: nowrap; }
h1, h2, h3 { text-wrap: pretty; }

/* ---------- Trust pass: calmer article details ---------- */
.prose-article h2::before { content: none; }
.prose-article h2 { padding-top: 0; border-top: 0; }
.prose-article blockquote { padding: 4px 0 4px 24px; border-radius: 0; background: none; color: var(--navy); border-left: 3px solid var(--accent); font-size: clamp(20px, 2.4vw, 23px); font-weight: 500; }
.prose-article blockquote::before, .prose-article blockquote::after { content: none; }
.offer.card { background: none; box-shadow: none; }
@media (min-width: 900px) { .product-feature.is-solo { grid-template-columns: 1fr; } .product-feature.is-solo .product-copy { max-width: 46em; } }
.hero-grid > * { min-width: 0; }
@media (max-width: 599px) { .nw { white-space: normal; } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }


/* ---------- Home hero: icon watermark grid ---------- */
.hero-mark {
  position: absolute; inset: -12px; z-index: -1; pointer-events: none;
  display: grid; grid-template-columns: repeat(auto-fill, 72px); grid-auto-rows: 72px; justify-content: center;
  color: var(--cream); opacity: .07;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 85%);
}
.hero-mark span { display: grid; place-items: center; }
.hero-mark svg { width: 24px; height: 24px; }

.page-hero h1 .grow { white-space: nowrap; } /* keep the accent phrase on one line */

/* ---------- Home hero: TECH dashboard at work (10s loop) ---------- */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.sys { --t: 10s; container-type: inline-size; position: relative; width: 100%; padding-bottom: 8%; }
.sys > * { font-size: 2.7cqw; }
.sys * { box-sizing: border-box; }
.sys-win { border-radius: 1.1em; background: var(--paper); color: var(--navy); overflow: hidden; box-shadow: 0 2.4em 4.8em -2em rgba(0, 0, 0, .6); }
.sys-bar { display: flex; align-items: center; gap: .45em; padding: .75em 1em; border-bottom: 1px solid var(--line); background: var(--white); }
.sys-bar i { width: .65em; height: .65em; border-radius: 999px; background: var(--line); }
.sys-bar span { margin-left: .8em; padding: .2em 1em; border-radius: 999px; background: var(--paper); font-family: var(--mono); font-size: .8em; color: var(--muted); }
.sys-body { display: grid; grid-template-columns: 24% 1fr; }
.sys-side { padding: 1em .7em; background: var(--navy); }
.sys-brand { display: flex; align-items: center; gap: .5em; margin: 0 0 1.1em .3em; color: var(--cream); font-weight: 700; letter-spacing: .1em; font-size: .9em; }
.sys-brand img { width: 2em; height: 2em; border-radius: .45em; box-shadow: 0 0 0 1px rgba(251, 251, 248, .25); }
.sys-nav { display: grid; gap: .25em; }
.sys-nav li { display: flex; align-items: center; gap: .55em; padding: .5em .6em; border-radius: .55em; color: var(--on-dark-muted); font-size: .82em; }
.sys-nav li svg { width: 1.3em; height: 1.3em; flex: none; }
.sys-nav li.on { background: rgba(251, 251, 248, .1); color: var(--cream); box-shadow: inset .2em 0 0 var(--tech); }
.sys-main { display: grid; gap: .85em; padding: 1em 1.1em 1.1em; min-width: 0; }
.sys-hi { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1.05em; }
.sys-hi small { font-weight: 500; font-size: .75em; color: var(--muted); }
.sys-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.sys-kpis > div { display: grid; gap: .1em; padding: .65em .75em; border-radius: .7em; background: var(--white); border: 1px solid var(--line); animation: sys-in var(--t) calc(var(--i) * .15s) infinite both; }
.sys-kpis small { font-size: .72em; color: var(--muted); }
.sys-kpis strong { font-size: 1.35em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sys-kpis em { font-style: normal; font-size: .72em; font-weight: 600; color: var(--hub-d); }
.sys-kpis em.u { display: none; }
.sys-kpis .cnt { --n: var(--to); counter-reset: n var(--n); animation: sys-count var(--t) infinite; }
.sys-kpis .cnt::after { content: counter(n); }
.sys-kpis > div:nth-child(3) .cnt::after { content: counter(n) "%"; }
@keyframes sys-count { 0% { --n: 0; } 22%, 100% { --n: var(--to); } }
@keyframes sys-in { 0% { opacity: 0; transform: translateY(.5em); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.sys-chart { padding: .75em .85em .6em; border-radius: .8em; background: var(--white); border: 1px solid var(--line); }
.sys-chart > p { display: flex; justify-content: space-between; font-size: .8em; font-weight: 600; margin-bottom: .5em; }
.sys-chart > p span { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; color: var(--muted); }
.sys-chart > p i { width: .7em; height: .7em; border-radius: .2em; background: var(--tech); }
.sys-plot { position: relative; height: 7.2em; background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 25%); }
.sys-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4%; padding: 0 2%; }
.sys-bars i { flex: 1; height: var(--h); border-radius: .3em .3em 0 0; background: color-mix(in srgb, var(--tech) 45%, var(--white)); transform-origin: bottom; animation: sys-bar var(--t) calc(.3s + var(--i) * .07s) infinite both; }
.sys-bars i:last-child { background: var(--tech); }
@keyframes sys-bar { 0% { transform: scaleY(0); } 14%, 94% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.sys-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sys-plot path { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; animation: sys-line var(--t) infinite; }
@keyframes sys-line { 0%, 12% { stroke-dashoffset: 1; } 34%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sys-feed { display: grid; gap: .1em; }
.sys-feed li { display: flex; align-items: center; gap: .6em; padding: .45em .2em; border-bottom: 1px solid var(--line); font-size: .8em; animation: sys-feed var(--t) calc(2.4s + var(--i) * .9s) infinite both; }
.sys-feed li:last-child { border-bottom: 0; }
.sys-feed svg { width: 1.4em; height: 1.4em; flex: none; padding: .2em; border-radius: .4em; color: var(--tech-d); background: color-mix(in srgb, var(--tech) 14%, var(--white)); }
.sys-feed span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-feed time { color: var(--muted); font-size: .9em; }
@keyframes sys-feed { 0% { opacity: 0; transform: translateX(-.6em); } 5%, 70% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; } }
.sys-toast {
  position: absolute; right: -3%; bottom: 0; display: flex; align-items: center; gap: .8em; padding: .8em 1.1em; border-radius: .9em;
  background: var(--white); color: var(--navy); box-shadow: 0 1.4em 2.8em -1em rgba(0, 0, 0, .55);
  animation: sys-toast var(--t) infinite both;
}
.sys-toast p { display: grid; line-height: 1.35; }
.sys-toast b { font-size: .95em; }
.sys-toast small { font-size: .8em; color: var(--muted); }
.sys-live { width: .8em; height: .8em; border-radius: 999px; background: var(--hub); box-shadow: 0 0 0 .3em color-mix(in srgb, var(--hub) 25%, transparent); }
@keyframes sys-toast { 0%, 40% { opacity: 0; transform: translateY(.8em); } 45%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-.4em); } }
@media (max-width: 899px) { .sys { max-width: 560px; } .sys > * { font-size: 3.1cqw; } }
@media (prefers-reduced-motion: reduce) {
  .sys *, .sys-toast { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}
