/* =====================================================================
   WEBIFY LAB · main stylesheet
   Black and red system on warm off-white. Mobile first.
   ===================================================================== */

/* ---------- Fonts (self-hosted, no third party requests) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F6F2;
  --bg-alt: #F0EEE8;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #0A0A0A;
  --ink-2: #171717;
  --muted: #4A4A4A;
  --muted-2: #5C5C5C;
  --muted-dark: #A6A6A6;
  --line: #E3E1DA;
  --line-soft: #EFEDE6;
  --line-strong: #D9D6CC;
  --line-dash: #CFCBBF;
  --red: #EC2B32;          /* accent: buttons, flows, dots, lines */
  --red-text: #B5121B;     /* red text on light backgrounds (AA contrast) */
  --red-hover: #F24A50;
  --red-tint: #FDECEC;
  --red-a16: rgba(236, 43, 50, .16);
  --red-a35: rgba(236, 43, 50, .35);
  --on-dark-line: rgba(247, 246, 242, .16);

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --gutter: 16px;
  --section: 72px;
  --header-h: 64px;
}
@media (min-width: 720px) { :root { --gutter: 40px; --section: 120px; --header-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--red-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.mono { font-family: var(--mono); }
strong { font-weight: 600; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.1; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.h1--md { font-size: clamp(32px, 4vw, 52px); }
.h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.h2--sm { font-size: clamp(26px, 3vw, 38px); }
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.h4 { font-size: 20px; line-height: 1.3; font-weight: 500; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 680px; }
.lead--sm { font-size: 18px; margin-top: 18px; }
.body-lg { font-size: 17px; line-height: 1.7; color: var(--muted); }
.body-lg + .body-lg { margin-top: 16px; }
.muted { color: var(--muted); }
.muted-dark { color: var(--muted-dark); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); font-weight: 500; }
.eyebrow + .h1, .eyebrow + .h2 { margin-top: 14px; }
.eyebrow--dark { color: var(--red-hover); }
.label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; }
.label--red { color: var(--red-text); }
.label--dark { color: var(--muted-dark); }
.label--red-dark { color: var(--red-hover); }
.label--spaced { margin-top: 32px; }
.meta { display: block; font-size: 12px; letter-spacing: .06em; color: var(--muted-2); }
.meta--red { color: var(--red-text); }
.meta--spaced { margin-top: 24px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 52px; padding: 0 24px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: var(--ink); }
.btn--primary:hover { background: var(--red-hover); color: var(--ink); }
.btn--ghost { border-color: var(--line-dash); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark { border-color: rgba(247, 246, 242, .3); color: var(--bg); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--bg); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon { flex-shrink: 0; }
.icon--red { color: var(--red-text); }
.icon--arrow { transition: transform .2s; }
a:hover > .icon--arrow, .card--link:hover .icon--arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; color: var(--red-text); text-decoration: none; }
.link-arrow:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__word { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .12em; }
.brand__lab { color: var(--red); }
.site-nav { flex: 1; }
.site-nav__list { display: flex; gap: 28px; }
.site-nav__link {
  display: inline-flex; align-items: center; height: var(--header-h);
  font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; padding-top: 2px;
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.site-nav__cta-mobile { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch__item {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 10px;
  border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none;
}
.lang-switch__item:hover { color: var(--ink); }
.lang-switch__item.is-active { background: var(--ink); color: var(--bg); }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; content: "";
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .site-header__cta { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__link { height: auto; min-height: 52px; width: 100%; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .js .site-nav__link[aria-current="page"] { color: var(--red-text); border-bottom-color: var(--line); }
  .js .site-nav__cta-mobile { display: flex; margin-top: 20px; width: 100%; }
  /* Without JavaScript the navigation wraps under the bar. */
  .no-js .site-header__bar { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 12px 24px; }
  .no-js .site-nav { order: 3; flex-basis: 100%; }
  .no-js .site-nav__list { flex-wrap: wrap; gap: 4px 20px; }
  .no-js .site-nav__link { height: 40px; }
}
@media (max-width: 420px) { .brand__word { font-size: 13px; letter-spacing: .08em; } .site-header__actions { gap: 8px; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--md { padding-block: calc(var(--section) * .66); }
.section--compact { padding-block: calc(var(--section) * .72); }
.section--tight-top { padding-top: 0; }
.section--hero-sm { padding-block: 56px 64px; }
.section--line { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--bg); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--split > div { max-width: 640px; }
.section-head__aside { max-width: 420px; color: var(--muted); font-size: 17px; }
.section--dark .section-head__aside { color: var(--muted-dark); }

.grid { display: grid; gap: 16px; }
.grid--250 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--340 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--440 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; }
.grid--460 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 20px; }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(10, 10, 10, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 10, 10, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card--pad { padding: 28px; }
.card--link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.card--link:hover { color: var(--ink); border-color: var(--red); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card--link:hover { transform: none; } }
.cards > li { display: flex; }
.cards > li > * { flex: 1; }
.card--pad .h4, .card--pad .h3 { margin-top: 16px; }
.card--pad .muted { margin-top: 8px; font-size: 15px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list--spaced { margin-top: 28px; }
.tag { font-size: 11px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px; }
.tag--white { background: var(--surface); font-size: 12px; padding: 6px 10px; }
.chip { font-size: 11px; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chip--red { color: var(--red-text); background: var(--red-tint); border-color: transparent; }
.pill-tag { font-size: 11px; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.pill-tag--line { background: transparent; border: 1px solid var(--line-strong); }
.pill-tag--white { background: var(--surface); border: 1px solid var(--line); }
.icon-box {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line);
}
.icon-box--dark { width: 44px; height: 44px; border-radius: 10px; background: transparent; border-color: rgba(236, 43, 50, .55); color: var(--red-hover); }
.icon-box--tint { background: var(--red-tint); border-color: transparent; color: var(--red-text); }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; padding-block: 64px 80px; }
@media (min-width: 720px) { .hero__inner { padding-block: 96px 112px; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.hero__title { margin-top: 28px; max-width: 1020px; }
.hero__title-muted { color: var(--muted-2); }
.hero__lead { margin-top: 24px; }
.hero__ctas { margin-top: 36px; }
.hero__position { margin: 48px auto 0; max-width: 760px; text-align: center; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.hero__diff { margin: 10px auto 0; max-width: 680px; text-align: center; color: var(--muted); }

.page-hero__inner { position: relative; padding-block: 72px 56px; }
@media (min-width: 720px) { .page-hero__inner { padding-block: 96px 72px; } }
.page-hero__inner .lead { margin-top: 24px; }
.page-hero__inner .h1 { max-width: 940px; }

.panel {
  margin-top: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 48px -32px rgba(10, 10, 10, .22);
}
.panel__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.panel__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.panel__body { padding: 28px 20px; }
.panel__foot { padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: live 2s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 43, 50, .45); } 50% { box-shadow: 0 0 0 6px rgba(236, 43, 50, 0); } }

/* ---------- Animated flow ---------- */
.flow { --step: 1.5s; display: flex; align-items: stretch; }
.flow--n4 { --n: 4; } .flow--n5 { --n: 5; } .flow--n6 { --n: 6; }
.flow__step { display: flex; align-items: stretch; flex: 1 1 0; min-width: 0; }
.flow__step:nth-child(1) { --i: 0; } .flow__step:nth-child(2) { --i: 1; } .flow__step:nth-child(3) { --i: 2; }
.flow__step:nth-child(4) { --i: 3; } .flow__step:nth-child(5) { --i: 4; } .flow__step:nth-child(6) { --i: 5; }
.flow__node {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  animation: flow-node calc(var(--n) * var(--step)) ease-in-out infinite both;
  animation-delay: calc(var(--i) * var(--step));
}
.flow--sm .flow__node { padding: 14px; }
.flow__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.flow__tag { font-size: 11px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow__icon { color: var(--red-text); }
.flow__title { font-size: 15px; line-height: 1.3; font-weight: 500; }
.flow--sm .flow__title { font-size: 14px; }
.flow__sub { font-size: 13px; line-height: 1.4; color: var(--muted); }
.flow__action {
  align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 7px; background: var(--red); color: var(--ink); font-size: 12px; font-weight: 500;
}
.flow__conn { position: relative; flex: 0 0 32px; height: 2px; align-self: center; background: var(--red-a35); }
.flow__dot {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--red-a16); opacity: 0;
  animation: flow-pulse calc(var(--n) * var(--step)) linear infinite both;
  animation-delay: calc(var(--i) * var(--step) + 1s);
}
@keyframes flow-node {
  0%, 2% { box-shadow: 0 0 0 0 rgba(236, 43, 50, 0), 0 0 0 0 rgba(236, 43, 50, 0); transform: translateY(0); }
  5%, 15% { box-shadow: 0 0 0 1.5px var(--red), 0 0 0 6px var(--red-a16); transform: translateY(-2px); }
  20%, 100% { box-shadow: 0 0 0 0 rgba(236, 43, 50, 0), 0 0 0 0 rgba(236, 43, 50, 0); transform: translateY(0); }
}
@keyframes flow-pulse {
  0% { left: 0; opacity: 0; } 1% { opacity: 1; }
  10% { left: calc(100% - 8px); opacity: 1; } 12%, 100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes flow-pulse-v {
  0% { top: 0; opacity: 0; } 1% { opacity: 1; }
  10% { top: calc(100% - 8px); opacity: 1; } 12%, 100% { top: calc(100% - 8px); opacity: 0; }
}
@media (max-width: 860px) {
  .flow, .flow__step { flex-direction: column; }
  .flow__conn { flex: 0 0 28px; width: 2px; height: 28px; }
  .flow__dot { top: 0; left: -3px; animation-name: flow-pulse-v; }
}
@media (prefers-reduced-motion: reduce) {
  .flow__node, .flow__dot, .live-dot { animation: none; }
}
.flow-card { margin-top: 56px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flow-card > .label { margin-bottom: 18px; }
.flow-card--flush { margin-top: 28px; }

/* ---------- Home: problems, offers ---------- */
.problem { gap: 20px; padding: 28px; min-height: 250px; }
.problem__top { display: flex; justify-content: space-between; gap: 12px; }
.problem__quote { flex: 1; font-size: 20px; line-height: 1.4; font-weight: 500; }
.problem__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.problem__foot .label { font-size: 10px; }
.problem__solution { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--red-text); }

.offer { gap: 20px; padding: 32px; }
.offer__text { flex: 1; color: var(--muted); }
.mini-flow, .sys-chain { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.mini-flow { padding-block: 20px; flex-wrap: nowrap; }
.mini-flow__chip { font-size: 11px; letter-spacing: .06em; border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 8px; background: var(--bg); white-space: nowrap; }
.mini-flow__chip--on { border-color: var(--red); color: var(--red-text); background: var(--red-tint); }
.mini-flow__line { flex: 1; min-width: 16px; height: 1px; background: var(--red); }
.sys-chain { margin-top: 10px; }
.sys-chain .mini-flow__line { flex: 0 0 20px; }

/* ---------- Connectors strip ---------- */
.strip-title { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.logo-slot {
  height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 8px;
  border: 1px dashed var(--line-dash); border-radius: 12px; background: var(--surface);
}
.logo-slot__name { font-size: 15px; font-weight: 500; }
/* Name only (no logo file yet) and logo slots use a solid border; dashed was for the mockup. */
.logo-slot { border-style: solid; border-color: var(--line); }
.logo-slot--img { padding: 16px 20px; }
.logo-slot--img img { max-width: 100%; max-height: 30px; width: auto; height: auto; object-fit: contain; }
.logo-slot--mark { flex-direction: row; gap: 10px; }
.logo-slot--mark img { width: 28px; height: 28px; flex-shrink: 0; }
.logo-slot--mark .logo-slot__name { font-size: 14px; white-space: nowrap; }
.logo-slot--compact img { max-height: 42px; }
.logo-slot--api { flex-direction: row; gap: 10px; border-style: dashed; border-color: var(--red-a35); background: var(--red-tint); }
.logo-slot--api .logo-slot__name { color: var(--red-text); font-size: 14px; }
.logo-slot__icon { color: var(--red-text); }

/* ---------- Reference cards ---------- */
.ref { display: flex; flex-direction: column; overflow: hidden; }
.ref__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.ref__body { display: flex; flex-direction: column; gap: 18px; padding: 24px; flex: 1; }
.ref__body .label { font-size: 10px; }
.ref__problem { margin-top: 6px; font-size: 16px; font-weight: 500; }
.ref__body .muted { margin-top: 6px; font-size: 15px; }
.ref__body .tag-list { margin-top: auto; }
.ref__result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; padding: 22px 24px; background: var(--ink); color: var(--bg); }
.ref__num { font-size: 40px; line-height: 1; font-weight: 500; color: var(--red); }
.ref__label { font-size: 14px; color: var(--muted-dark); }

/* ---------- Trust band, rail ---------- */
.trust-item { border-top: 1px solid var(--on-dark-line); padding-top: 28px; }
.trust-item .h4 { margin-top: 20px; }
.trust-item .muted-dark { margin-top: 8px; }
.trust-item > .h2 + .muted-dark { margin-top: 12px; }
.section--dark .trust-list { margin-top: 64px; }
.section--dark .section-head + .trust-list { margin-top: 0; }

.rail__step { position: relative; border-top: 2px solid var(--line-strong); padding-top: 32px; }
.rail__step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--bg); }
.rail__step .h3 { margin-top: 10px; }
.rail__step .muted { margin-top: 10px; }

/* ---------- CTA bands ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 80px);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(247, 246, 242, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 246, 242, .04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-band > * { position: relative; }
.cta-band__text { max-width: 640px; }
.cta-band__sub { margin-top: 16px; font-size: 17px; color: var(--muted-dark); }
.section--tight-top + .section, .section > .wrap > .cta-band { margin-bottom: 0; }

.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.inline-cta > div { max-width: 620px; }
.inline-cta .muted { margin-top: 8px; }
.inline-cta--dashed { background: transparent; border-style: dashed; border-color: var(--line-dash); margin-top: 36px; }

/* ---------- Solutions ---------- */
.jump { margin-top: 36px; }
.jump__list { display: flex; flex-wrap: wrap; gap: 10px; }
.jump__list--spaced { margin-top: 32px; }
.jump__chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px;
}
.jump__chip:hover { color: var(--ink); border-color: var(--red); }
.jump__chip .meta { display: inline; font-size: 11px; }
.compare__card { padding: 32px; border-radius: var(--radius); }
.compare__card--off { border: 1px dashed var(--line-dash); }
.compare__card--on { border: 1px solid var(--red); background: var(--surface); box-shadow: 0 0 0 4px rgba(236, 43, 50, .08); }
.compare__card .h3 { margin-top: 12px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check-list .icon { margin-top: 3px; }
.check-list--off li { color: var(--muted); }
.check-list--off .icon { color: var(--muted-2); }
.check-list--sm { gap: 8px; margin-top: 10px; }
.check-list--sm li { font-size: 15px; }
.offer-block { scroll-margin-top: calc(var(--header-h) + 8px); }
.offer-block .h2 { margin-top: 14px; }
.note { margin-top: 32px; padding: 20px 24px; background: var(--bg-alt); border-radius: 12px; }
.note p:last-child { margin-top: 8px; }
.offer-block .btn-row { margin-top: 32px; }
.deliver-list { margin-top: 16px; border-top: 1px solid var(--line); }
.deliver-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.deliver-list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--red); }
.deliver-list--plain { border-top: 0; margin-top: 24px; }
.deliver-list--plain li { border: 0; padding: 5px 0; font-size: 16px; }
.offer-block .tag-list { margin-top: 12px; gap: 8px; }

/* ---------- Use cases ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 20px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; cursor: pointer;
}
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab__count { font-size: 11px; opacity: .7; }
.dept { padding-top: 40px; scroll-margin-top: calc(var(--header-h) + 8px); }
.dept[hidden] { display: none; }
.dept__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.dept__head .muted { max-width: 520px; }
.usecase { display: flex; flex-direction: column; padding: 28px; }
.usecase__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.usecase__before, .usecase__after { padding: 18px 20px; border-radius: 12px; }
.usecase__before { background: var(--bg-alt); }
.usecase__before p:last-child { margin-top: 8px; color: var(--muted); }
.usecase__ai { display: flex; gap: 16px; padding: 0 20px; }
.usecase__ai > div { padding: 16px 0; }
.usecase__ai p:last-child { margin-top: 6px; }
.usecase__rail { position: relative; width: 10px; flex-shrink: 0; }
.usecase__rail::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--red-a35); }
.usecase__rail::after { content: ""; position: absolute; left: 0; top: 50%; margin-top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.usecase__after { background: var(--red-tint); border: 1px solid rgba(236, 43, 50, .3); }
.usecase__outcome { margin-top: 8px; font-size: 17px; font-weight: 500; }

/* ---------- References ---------- */
.case { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.case__main { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 36px); }
.case__main .label { font-size: 10px; }
.case__main .h3, .case__main .muted { margin-top: 8px; }
.case__link { margin-top: auto; }
.case__side { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 3vw, 36px); background: var(--ink); color: var(--bg); }
.case__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.case__num { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; font-weight: 500; }
.case__num--red { color: var(--red); }
.case__results dd { margin-top: 10px; font-size: 14px; }
.case__quote { padding-top: 24px; border-top: 1px solid var(--on-dark-line); }
.case__quote blockquote { font-size: 17px; line-height: 1.5; }
.case__quote figcaption { margin-top: 12px; font-size: 12px; }

/* ---------- Case study, docs ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; color: var(--muted-2); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--muted-2); }
.breadcrumb a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.section--hero-sm .h1 { margin-top: 20px; max-width: 960px; }
.section--hero-sm .lead { margin-top: 20px; }
.result-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; margin-top: 48px; background: rgba(247, 246, 242, .12); border-radius: 20px; overflow: hidden; }
.result-band__item { background: var(--ink); color: var(--bg); padding: 32px; }
.result-band__num { font-size: clamp(44px, 5vw, 68px); line-height: 1; font-weight: 500; color: var(--red); }
.result-band__item dd { margin-top: 14px; font-size: 15px; }
.doc-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.doc-layout__side { flex: 1 1 240px; max-width: 340px; min-width: 0; }
.doc-layout__main { flex: 999 1 560px; min-width: 0; }
.facts { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts__list { margin-top: 16px; }
.facts__list > div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.facts__list dd { margin-top: 4px; font-size: 15px; font-weight: 500; }
.facts .tag-list { margin-top: 10px; }
.prose-blocks { display: flex; flex-direction: column; gap: 56px; }
.prose-blocks .h3 { margin-top: 8px; }
.prose-blocks .body-lg { margin-top: 14px; }
.big-quote { padding: clamp(28px, 4vw, 40px); background: var(--bg-alt); border-radius: 20px; }
.big-quote blockquote { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; font-weight: 500; }
.big-quote blockquote::before { content: "“"; display: block; font-size: 64px; line-height: .8; color: var(--red); margin-bottom: 8px; }
.big-quote figcaption { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.big-quote figcaption .meta { display: block; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--line-strong); color: var(--muted-2); display: inline-flex; align-items: center; justify-content: center; }

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; padding: 8px 12px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; }
.toc__list { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.toc .label { padding-inline: 12px; }
.toc__link { display: flex; gap: 12px; align-items: baseline; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.toc__link:hover { color: var(--ink); background: var(--surface); }
.toc__link .meta { display: inline; font-size: 11px; }
@media (max-width: 860px) { .toc { max-width: none; } }
.doc-block { display: flex; gap: 20px; align-items: flex-start; padding-block: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-block:first-child { padding-top: 0; }
.doc-block__body { flex: 1; min-width: 0; }
.doc-block__body .h3 { margin-top: 6px; }
.doc-block__body .body-lg { margin-top: 12px; max-width: 680px; }
@media (max-width: 560px) { .doc-block { flex-direction: column; gap: 16px; } }
.practice { margin-top: 20px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.practice .label { font-size: 10px; }
.practice__tags { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.faq { padding-top: 56px; }
.faq__list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 12px;
  font-size: 17px; font-weight: 500; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { transition: transform .2s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__item p { padding-bottom: 22px; max-width: 680px; }

/* ---------- About ---------- */
.bg-list { margin-top: 16px; }
.bg-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.bg-list__tag { flex-shrink: 0; min-width: 72px; padding-top: 3px; font-size: 11px; letter-spacing: .08em; color: var(--red-text); }
.section .grid--440 .h2 { margin-bottom: 20px; }
.founder { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.founder__photo { flex: 1 1 280px; max-width: 380px; min-width: 0; }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.photo-slot {
  aspect-ratio: 4 / 5; border-radius: 20px; border: 1px dashed #BDB8AA; background: #E8E5DD; color: var(--muted-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.photo-slot__initials { font-size: clamp(64px, 9vw, 120px); font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.photo-slot__initials::after { content: ""; display: inline-block; width: .18em; height: .18em; margin-left: .06em; border-radius: 50%; background: var(--red); }
.founder__text { flex: 999 1 420px; min-width: 0; }
.founder__text .h2 { margin-top: 14px; }
.founder__text .meta { margin-top: 8px; }
.founder__text .body-lg { margin-top: 24px; max-width: 620px; }
.founder__quote { margin-top: 28px; padding-left: 20px; border-left: 2px solid var(--red); font-size: 19px; line-height: 1.5; font-weight: 500; max-width: 620px; }
.founder__text .link-arrow { margin-top: 20px; }
.presence { display: flex; flex-direction: column; gap: 14px; }
.presence .h3, .presence .muted { margin-top: 0; }
.presence__top { display: flex; align-items: center; justify-content: space-between; }
.presence__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.presence__dot--ink { background: var(--ink); }

/* ---------- AI Audit ---------- */
.audit-hero { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 64px 88px; }
@media (min-width: 720px) { .audit-hero { padding-block: 88px 104px; } }
.audit-hero__text { flex: 1 1 440px; min-width: 0; }
.audit-hero__text .h1 { margin-top: 16px; }
.audit-hero__text .lead { margin-top: 22px; max-width: 560px; }
.deliverables { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.deliverables__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.deliverables__num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--red-tint); color: var(--red-text); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.deliverables__title { display: block; font-size: 17px; font-weight: 500; }
.deliverables__item .muted { display: block; margin-top: 2px; font-size: 15px; }
.facts-row { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.facts-row__item { padding: 16px; border: 1px dashed var(--line-dash); border-radius: 12px; }
.facts-row__item .label { font-size: 10px; }
.facts-row__item dd { margin-top: 6px; font-weight: 500; }

.form-card {
  flex: 1 1 400px; min-width: 0; max-width: 540px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 3vw, 32px); box-shadow: 0 24px 48px -32px rgba(10, 10, 10, .22); scroll-margin-top: calc(var(--header-h) + 16px);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form .h3 + .muted { margin-top: 6px; font-size: 15px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; font-weight: 500; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-dash); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: 16px;
}
select.input {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input--area { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(236, 43, 50, .2); }
.input[aria-invalid="true"] { border-color: var(--red-text); }
.field__error { font-size: 13px; color: var(--red-text); }
.form-alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--red-tint); color: var(--red-text); font-size: 14px; font-weight: 500; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 24px; }
.form-success__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--red-tint); color: var(--red-text); display: flex; align-items: center; justify-content: center; }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.timeline__step { position: relative; padding: 0 32px 40px 0; }
.timeline__marker { position: relative; display: flex; align-items: center; margin-bottom: 28px; }
.timeline__marker span {
  position: relative; z-index: 1; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--red);
  background: var(--ink); color: var(--red-hover); font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.timeline__step.is-first .timeline__marker span { background: var(--red); color: var(--ink); }
.timeline__marker::after { content: ""; flex: 1; height: 2px; background: rgba(236, 43, 50, .45); }
.timeline__step:last-child .timeline__marker::after { background: transparent; }
.timeline__duration { display: inline-block; font-size: 11px; letter-spacing: .08em; color: var(--muted-dark); border: 1px solid rgba(247, 246, 242, .2); border-radius: 999px; padding: 4px 10px; }
.timeline__step .h3 { margin-top: 14px; }
.timeline__step .muted-dark { margin-top: 10px; }
.timeline__out { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--on-dark-line); }
.timeline__out .label { font-size: 10px; }
.timeline__out p:last-child { margin-top: 6px; font-size: 15px; }
.contact-cards { margin-top: 32px; }
.contact-card { flex-direction: row; align-items: center; gap: 18px; padding: 28px; }
.contact-card__value { display: block; margin-top: 4px; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Booking step ---------- */
.steps-bar { display: flex; gap: 8px; margin-bottom: 24px; }
.steps-bar__item {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.steps-bar__item .mono {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: var(--surface); border: 1px solid var(--line-strong);
}
.steps-bar__item.is-current { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.steps-bar__item.is-current .mono { background: var(--red); border-color: var(--red); color: var(--ink); }
.steps-bar__item.is-done .mono { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.form-card .form-success { padding-block: 4px 16px; }
.booking-recap { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.booking-recap dd { margin-top: 2px; font-weight: 500; overflow-wrap: anywhere; }
.booking-hint { margin: 10px 0 18px; font-size: 13px; color: var(--muted); }
.booking-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 12px; }
.booking-frame iframe { display: block; width: 100%; height: 640px; border: 0; }
.booking-note { margin-top: 10px; text-align: center; }
.booking-again { margin-top: 20px; }

/* ---------- Text pages ---------- */
.text-page { max-width: 820px; }
.text-page .meta { margin-top: 12px; }
.text-page__section { margin-top: 40px; }
.text-page__section .body-lg { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 72px 32px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
@media (min-width: 900px) { .site-footer__brand { grid-column: span 2; max-width: 380px; } }
.site-footer__tagline { margin-top: 16px; color: var(--muted); }
.site-footer__presence { margin-top: 20px; font-size: 12px; letter-spacing: .08em; color: var(--muted-2); }
.footer-title { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; }
.footer-title--spaced { margin-top: 28px; }
.footer-list { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--red-text); }
.footer-langs { display: flex; gap: 6px; margin-top: 10px; }
.footer-lang { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-lang:hover { color: var(--ink); }
.footer-lang.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- References: filters, featured case, image cards ---------- */
.ref-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.ref-toolbar[hidden] { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-chip__count { font-size: 11px; opacity: .7; }
[data-offer][hidden] { display: none !important; }

.ref-feature {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -48px rgba(10, 10, 10, .35);
}
@media (min-width: 980px) { .ref-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.ref-feature__media { position: relative; background: var(--ink); overflow: hidden; }
.ref-feature__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 980px) { .ref-feature__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; } }
.ref-feature__body { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.4vw, 44px); }
.ref-feature__title { margin-top: -4px; }
.ref-feature__outcome { padding: 20px 22px; border-radius: 14px; background: var(--red-tint); }
.ref-feature__outcome-text { margin-top: 8px; font-size: 18px; line-height: 1.45; font-weight: 500; }
.ref-feature__facts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ref-feature__facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ref-feature .btn { align-self: flex-start; margin-top: 4px; }

.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 20px; }
.ref-grid--home { margin-top: 0; }
.ref-card { display: flex; }
.ref-card__box {
  flex: 1; display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.ref-card__media { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; }
.ref-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ref-card__offer {
  position: absolute; left: 14px; top: 14px; font-size: 11px; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px;
  background: rgba(10, 10, 10, .78); color: var(--bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ref-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; flex: 1; }
.ref-card__meta { font-size: 11px; letter-spacing: .08em; color: var(--muted-2); }
.ref-card__title { font-size: 19px; line-height: 1.35; font-weight: 500; }
.ref-card__built { font-size: 15px; color: var(--muted); }
.ref-card__systems { margin-top: auto; padding-top: 4px; }
.ref-card__result { display: flex; align-items: flex-start; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--line-soft); background: var(--red-tint); }
.ref-card__result p { font-size: 15px; font-weight: 500; line-height: 1.45; }
.ref-card__check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: var(--ink); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ref-empty { margin-top: 24px; }

/* Sub references: modules of a larger reference */
.mod-section { margin-top: 56px; }
.mod-section__head { max-width: 720px; display: flex; flex-direction: column; gap: 8px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 24px; }
.mod-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; scroll-margin-top: 120px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.mod-card:target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.mod-card__head { display: flex; align-items: center; gap: 12px; }
.mod-card__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--red); display: flex; align-items: center; justify-content: center; }
.mod-card .ref-card__title { font-size: 18px; }
.mod-card__problem { font-size: 15px; font-weight: 500; color: var(--ink); }
.mod-card__result { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--red-tint); }
.mod-card__result p { font-size: 14px; font-weight: 500; line-height: 1.45; }
.mod-card__result .ref-card__check { width: 20px; height: 20px; }
.mod-card__link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 500; color: var(--red-text); text-decoration: none; align-self: flex-start; }
.mod-card__link:hover { text-decoration: underline; }
.ref-others-title { margin-top: 56px; }
.mod-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.mod-row { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); scroll-margin-top: 120px; }
.mod-row:target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.mod-row__head { display: flex; align-items: center; gap: 12px; }
.mod-row__title { font-size: 18px; line-height: 1.35; font-weight: 500; }
.mod-row__outcome { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 500; }
.mod-row__outcome .icon { flex-shrink: 0; margin-top: 3px; }

/* Module show page */
.mod-hero { display: flex; align-items: center; gap: 18px; }
.mod-card__icon--lg { width: 56px; height: 56px; border-radius: 16px; }
.mod-back { margin-top: 24px; width: 100%; justify-content: center; white-space: normal; text-align: center; padding-inline: 14px; height: auto; min-height: 44px; font-size: 14px; }
.mod-outcome { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--red-tint); font-size: 18px; font-weight: 500; line-height: 1.45; }
.mod-outcome .ref-card__check { margin-top: 2px; }
.mod-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 24px; }
.mod-link {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px; height: 100%;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.mod-link:hover { border-color: var(--red); }
.mod-link__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mod-link__name { font-size: 16px; font-weight: 500; line-height: 1.35; }
.mod-link .icon--arrow { color: var(--red-text); flex-shrink: 0; }
.mod-row__title a { color: inherit; text-decoration: none; }
.mod-row__title a:hover { color: var(--red-text); text-decoration: underline; }

.cs-cover { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.cs-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cs-cover + .result-band { margin-top: 20px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .grid-bg, .tabs { display: none !important; }
  .dept[hidden] { display: block !important; }
  .section--dark, .ref__result, .case__side, .result-band__item { background: #fff !important; color: #000 !important; }
  body { background: #fff; }
}
