/* AZERIA IT — consulting & engineering identity, r3 (2026-10-05).
   One stylesheet for every page. Old r1/r2 assets stay untouched for cached pages.
   Sections: 1 tokens · 2 base · 3 layout · 4 header · 5 components · 6 home · 7 inner pages
             8 contact · 9 footer · 10 legacy shell (legal, confirmation, 404) · 11 simulated demos · 12 motion/print */

/* 1. Tokens ------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --white: #fffefb;
  --ink: #16131f;
  --ink-2: #34303f;
  --muted: #5d5967;
  --rule: #d6d1c6;
  --rule-strong: #16131f;
  --accent: #4a2fc0;
  --accent-ink: #3a2499;
  --accent-soft: #e7e1fb;
  --on-dark: #f2efe8;
  --on-dark-muted: #b9b4c4;
  --accent-on-dark: #c3b6ff;
  --dark-rule: #3a3547;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 650; line-height: 1.12; letter-spacing: -0.02em; margin: 0; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.anchor { display: block; position: relative; top: -5.5rem; visibility: hidden; height: 0; }

/* 3. Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); border-top: 1px solid var(--rule); }
.band--tint { background: var(--paper-2); border-top-color: transparent; }
.band--dark { background: var(--ink); color: var(--on-dark); border-top: 0; }
.band--dark h2, .band--dark h3, .band--dark strong { color: #fff; }
.band--dark a { color: var(--accent-on-dark); }
.band--dark :focus-visible { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--accent-on-dark); }
.band--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* Editorial split: a heading column and a reading column. */
.split { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split__head { position: sticky; top: 6.5rem; align-self: start; }
}
.measure { max-width: 42rem; }

/* 4. Header ------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 238, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(8px);
}
@supports not (backdrop-filter: blur(8px)) { .navbar { background: var(--paper); } }
.nav-container {
  max-width: var(--wrap); margin-inline: auto; padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.nav-brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.nav-brand:hover { color: var(--ink); }
.nav-logo {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  background: var(--ink); color: var(--paper); font-weight: 800; font-size: 0.95rem; border-radius: var(--radius);
  position: relative;
}
.nav-logo::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; background: var(--accent); }
.nav-brand-text { font-weight: 800; letter-spacing: 0.08em; font-size: 0.95rem; }
.nav-brand-text .brand-it { color: var(--accent); }
.nav-brand-sub { display: none; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; border-left: 1px solid var(--rule); padding-left: 0.65rem; }
@media (min-width: 1100px) { .nav-brand-sub { display: inline; } }

.nav-menu { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.6rem; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-current { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  padding: 0.6rem 1rem; border-radius: var(--radius);
}
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--accent); color: #fff; }
.nav-toggle {
  display: none; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.4rem 0.8rem;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius);
  font: 700 0.9rem var(--font); cursor: pointer;
}
.menu-lines, .menu-lines::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-lines::before { content: ""; position: absolute; top: -6px; left: 0; }
.menu-lines { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .menu-lines { transform: rotate(45deg); margin-top: 0; }
.nav-toggle[aria-expanded="true"] .menu-lines::before { transform: rotate(-90deg); top: 0; }

/* Without JS the menu stays visible and wraps; with JS it collapses on small screens. */
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 1rem; }
  .js .nav-menu.active { display: flex; }
  .js .nav-menu li { border-top: 1px solid var(--rule); }
  .js .nav-link { display: block; padding: 0.9rem 0; border-bottom: 0; font-size: 1.05rem; }
  .js .nav-menu li:last-child { border-top: 0; padding-top: 1rem; }
  .js .nav-cta { justify-content: center; width: 100%; padding: 0.9rem 1rem; }
  .no-js .nav-menu { width: 100%; }
}

/* 5. Components --------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.25rem;
}
.kicker::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.band--dark .kicker { color: var(--on-dark-muted); }
.display {
  font-size: clamp(2.35rem, 6vw, 5.1rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.title { font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.title + .lede, .title + p { margin-top: 1.25rem; }
.subtitle { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.015em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.band--dark .lede, .band--dark p { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.35rem; border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.band--dark .btn--primary, .cta-band .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band--dark .btn--primary:hover, .cta-band .btn--primary:hover { background: #fff; color: var(--accent-ink); }
.band--dark .btn--ghost, .cta-band .btn--ghost { color: var(--paper); border-color: var(--on-dark-muted); }
.band--dark .btn--ghost:hover, .cta-band .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn .arrow, .link-arrow .arrow { transition: transform .15s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.link-arrow { display: inline-flex; gap: 0.4rem; align-items: baseline; font-weight: 700; text-decoration: none; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-2); background: var(--white);
}
.band--dark .tag { background: transparent; border-color: var(--dark-rule); color: var(--on-dark-muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }
.status--live::before { background: #1f7a4d; }
.status--beta::before { background: #b45309; }
.status--private::before { background: var(--muted); }
.band--dark .status { color: #fff; }

/* Ruled list of deliverables. */
.ticks { list-style: none; }
.ticks li { position: relative; padding: 0.6rem 0 0.6rem 1.6rem; border-top: 1px solid var(--rule); }
.ticks li:last-child { border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.8rem; height: 2px; background: var(--accent); }
.band--dark .ticks li { border-color: var(--dark-rule); }
.band--dark .ticks li::before { background: var(--accent-on-dark); }

/* Definition strip for facts (role, status, period…). */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.facts > div { padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.facts dd { margin: 0; font-weight: 650; color: var(--ink); line-height: 1.4; }

/* Numbered points in columns. */
.points { list-style: none; display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); counter-reset: pt; }
.points > li { counter-increment: pt; border-top: 1.5px solid var(--ink); padding-top: 1.1rem; }
.points > li::before { content: counter(pt, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 0.9rem; }
.points h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.points p { color: var(--ink-2); font-size: 1rem; }
.band--dark .points > li { border-top-color: var(--on-dark-muted); }
.band--dark .points > li::before { color: var(--accent-on-dark); }
.band--dark .points p { color: var(--on-dark-muted); }

/* Schematic: an illustrative flow, plain HTML so it reads without CSS or JS. */
.schema { margin: 0; container-type: inline-size; }
.schema ol { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); border: 1.5px solid var(--ink); background: var(--white); }
.schema li { position: relative; min-width: 0; padding: 1.1rem 1.1rem 1.25rem; border-bottom: 1px solid var(--rule); overflow-wrap: break-word; }
.schema li:last-child { border-bottom: 0; }
.schema li span { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.45rem; }
.schema li strong { display: block; font-size: 1rem; line-height: 1.3; margin-bottom: 0.3rem; }
.schema li p { font-size: 0.88rem; line-height: 1.5; color: var(--muted); margin: 0; }
.schema li:not(:last-child)::after { content: ""; position: absolute; left: 1.35rem; bottom: -7px; width: 12px; height: 12px; background: var(--white); border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(135deg); z-index: 1; }
/* Horizontal only when the actual content column fits the entire flow. */
@container (min-width: 680px) {
 .schema ol { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
 .schema li { border-bottom: 0; border-right: 1px solid var(--rule); }
 .schema li:last-child { border-right: 0; }
 .schema li:not(:last-child)::after { left: auto; bottom: auto; right: -7px; top: 1.35rem; transform: rotate(45deg); }
}
.schema figcaption { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.7rem; letter-spacing: 0.03em; }

/* Notes about scope: calm, in-flow, not alarmist. */
.note { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1.1rem; color: var(--ink-2); font-size: 0.97rem; max-width: 44rem; }
.band--dark .note { border-left-color: var(--accent-on-dark); color: var(--on-dark-muted); }

/* FAQ with native disclosure. */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.25rem; max-width: 44rem; }

/* Closing call-to-action band. */
.cta-band { background: var(--accent); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ebe6ff; }
.cta-band .kicker { color: #d9d0ff; }
.cta-band :focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px #fff; }
.cta-band__grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.cta-band__direct { display: grid; gap: 0.35rem; font-weight: 700; }
.cta-band__direct a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); justify-self: start; }
.cta-band__direct a:hover { border-bottom-color: #fff; color: #fff; }

/* 6. Home --------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; } }
.home .hero .display { font-size: clamp(2.35rem, 5.2vw, 4.65rem); }
.hero .lede { margin-top: 1.75rem; }
@media (min-width: 1000px) { .proofline li a strong { min-height: 2.8em; } }

.entry { border-top: 1.5px solid var(--ink); }
.entry .kicker { margin: 1rem 0 0.25rem; }
.entry__list { list-style: none; }
.entry__list li { border-bottom: 1px solid var(--rule); }
.entry__list a {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.2rem 0.5rem;
  padding: 1.1rem 0; text-decoration: none; color: var(--ink);
}
.entry__n { grid-row: span 2; font-family: var(--mono); font-size: 0.78rem; color: var(--accent); padding-top: 0.25rem; }
.entry__q { font-size: 1.05rem; line-height: 1.4; color: var(--ink-2); }
.entry__a { font-weight: 750; color: var(--ink); display: inline-flex; gap: 0.4rem; }
.entry__list a:hover .entry__a { color: var(--accent); }
.entry__list a:hover .entry__a .arrow { transform: translateX(3px); }
.entry__a .arrow { transition: transform .15s ease; color: var(--accent); }

.proofline { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); }
.proofline__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 1rem 0 0.25rem; }
.proofline ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.proofline li a { display: block; padding: 0.9rem 1rem 0.9rem 0; text-decoration: none; color: var(--ink-2); font-size: 0.95rem; line-height: 1.4; }
.proofline li a strong { display: block; color: var(--ink); }
.proofline li a:hover strong { color: var(--accent); }
@media (min-width: 1000px) { .proofline { grid-template-columns: 11rem minmax(0, 1fr); } .proofline__label { padding-top: 1.05rem; } }

.section-intro { display: grid; gap: 1.5rem 4rem; grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .section-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

/* Offers as editorial rows, not cards. */
.offers { list-style: none; border-top: 1.5px solid var(--ink); }
.offer { display: grid; gap: 1.25rem 2.5rem; grid-template-columns: minmax(0, 1fr); padding: 2.25rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 1000px) { .offer { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); } }
.offer__n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); display: block; margin-bottom: 0.8rem; }
.offer h3 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.offer__problem { color: var(--ink-2); }
.offer__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; display: block; }
.offer__who { margin-top: 1.25rem; font-size: 0.97rem; }
.offer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; }
.offer .ticks li { font-size: 0.98rem; }

/* Path / method steps. */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); counter-reset: st; }
.steps li { counter-increment: st; padding: 1.25rem 1.5rem 1.5rem 0; border-top: 1.5px solid var(--ink); position: relative; }
.steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 0.9rem; margin-bottom: 1rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.steps p { font-size: 0.98rem; }
.band--dark .steps li { border-top-color: var(--on-dark-muted); }
.band--dark .steps li::before { background: var(--accent-on-dark); color: var(--ink); }

/* Proof: one featured mission, then indexed products. */
.feature-case { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--dark-rule); }
@media (min-width: 1000px) { .feature-case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.feature-case h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; margin: 0.5rem 0 1.25rem; }
.feature-case__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark-muted); }
.case-index { list-style: none; }
.case-index li { border-bottom: 1px solid var(--rule); }
.band--dark .case-index li { border-bottom-color: var(--dark-rule); }
.case-row { display: grid; gap: 0.5rem 2rem; grid-template-columns: minmax(0, 1fr); padding: 1.6rem 0; text-decoration: none; color: inherit; }
@media (min-width: 900px) { .case-row { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); align-items: baseline; } }
.case-row__name { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.band--dark .case-row__name { color: #fff; }
.case-row__what { color: var(--ink-2); }
.band--dark .case-row__what { color: var(--on-dark-muted); }
.case-row__meta { display: grid; gap: 0.3rem; font-size: 0.88rem; }
.case-row__offer { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.band--dark .case-row__offer { color: var(--on-dark-muted); }
a.case-row:hover .case-row__name { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.band--dark a.case-row:hover .case-row__name { color: var(--accent-on-dark); }

/* Founder. */
.founder { display: grid; gap: 2.5rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.founder__card { background: var(--white); border: 1px solid var(--rule); padding: 1.75rem; }
.founder__card .facts { border-top-width: 0; grid-template-columns: minmax(0, 1fr); }
.founder__card .facts > div { padding: 0.85rem 0; }
.founder__name { font-size: 1.35rem; font-weight: 750; color: var(--ink); margin-bottom: 0.2rem; }
.founder__role { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }

/* 7. Inner pages -------------------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-hero .display { font-size: clamp(2.2rem, 5.2vw, 4.3rem); max-width: 18ch; }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero .facts { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.crumbs { font-size: 0.88rem; margin-bottom: 1.5rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { margin-inline: 0.4rem; }

.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.1em; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.35rem; }

.duo { display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.duo h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }

.related { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); border-top: 1.5px solid var(--ink); }
.related li { border-bottom: 1px solid var(--rule); }
.related a { display: block; padding: 1.1rem 1rem 1.1rem 0; text-decoration: none; color: var(--ink); font-weight: 700; }
.related a small { display: block; font-weight: 500; color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }
.related a:hover { color: var(--accent); }
.band--dark .related { border-top-color: var(--on-dark-muted); }
.band--dark .related li { border-bottom-color: var(--dark-rule); }
.band--dark .related a { color: #fff; }
.band--dark .related a small { color: var(--on-dark-muted); }
.band--dark .related a:hover { color: var(--accent-on-dark); }

.sim-link { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; padding: 1rem 1.25rem; border: 1px dashed var(--muted); background: var(--white); max-width: 44rem; }
.sim-link .tag { background: var(--paper-2); }
.band--dark .sim-link { background: transparent; border-color: var(--on-dark-muted); }
.band--dark .sim-link .tag { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }

/* 8. Contact ------------------------------------------------------------ */
.contact-layout { display: grid; gap: 3rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact-direct { display: grid; gap: 1rem; margin-block: 1.75rem; }
.contact-direct a { font-size: 1.2rem; font-weight: 750; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; }
.contact-direct a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-direct span { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.contact-form { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-group { margin-bottom: 1.35rem; }
.form-group label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.45rem; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid #a9a39a; border-radius: var(--radius); padding: 0.8rem 0.9rem; min-height: 48px;
}
.form-group textarea { min-height: 11rem; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #6b6673; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.form-submit { width: 100%; margin-top: 0.25rem; }
.form-submit:disabled { opacity: 0.7; cursor: progress; }
.form-privacy { font-size: 0.88rem; color: var(--muted); margin-top: 1.25rem; }
#formMessage { font-size: 0.95rem; }
.entry-map { list-style: none; border-top: 1.5px solid var(--ink); }
.entry-map li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.entry-map strong { display: block; }
.entry-map span { color: var(--muted); font-size: 0.93rem; }

/* 9. Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 0.95rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--accent-on-dark); }
.footer .nav-brand, .footer .nav-brand:hover { color: #fff; text-decoration: none; }
.footer .nav-logo { background: var(--paper); color: var(--ink); }
.footer .nav-brand-text .brand-it { color: var(--accent-on-dark); }
.footer-top { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-brand { display: grid; gap: 0.6rem; align-content: start; }
.footer-brand p { margin: 0.4rem 0 0.6rem; }
.footer-section h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 400; margin-bottom: 1rem; }
.footer-section ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--dark-rule); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* 10. Legacy shell: legal notice, confirmation and 404 keep their own markup and inline styles.
   These compatibility tokens let their original rules render on the light theme. */
.shell-legacy {
  --card-bg: var(--white);
  --border-color: var(--rule);
  --border-subtle: var(--rule);
  --surface-glass: var(--white);
  --surface-glass-hover: var(--paper-2);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--muted);
  --azeria-violet: var(--accent);
  --azeria-violet-light: var(--accent-ink);
  --azeria-cyan: var(--accent);
  --gradient-primary: linear-gradient(var(--accent), var(--accent));
  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 1.5rem; --space-lg: 2rem; --space-xl: 3rem; --space-2xl: 4rem; --space-3xl: 6rem;
  --radius-sm: 4px; --radius-md: 4px; --radius-lg: 6px; --radius-xl: 6px; --radius-full: 9999px;
  --transition-base: 150ms ease;
}
.shell-legacy main { max-width: var(--wrap); margin-inline: auto; padding: 1.5rem var(--gutter) var(--band); }
.shell-legacy .breadcrumb, .shell-demo .breadcrumb { display: inline-block; font-size: 0.88rem; color: var(--muted); text-decoration: none; margin: 0.5rem 0 1rem; }
.shell-legacy .breadcrumb:hover { color: var(--accent); }
.shell-legacy .hero { padding-block: 2rem 1rem; }
.shell-legacy .hero[style] { min-height: 0 !important; }
.shell-legacy .hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.035em; line-height: 1.05; }
.shell-legacy .text-gradient { color: var(--accent); }
.shell-legacy .hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.shell-legacy .btn-primary { background: var(--ink); color: var(--paper); }
.shell-legacy .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.shell-legacy .btn-outline { background: transparent; color: var(--ink); }
.shell-legacy .btn-outline:hover { background: var(--ink); color: var(--paper); }
.shell-legacy .legal-content { padding-inline: 0; }
.shell-legacy .legal-section { border-radius: 0; border-top: 3px solid var(--ink); }
.shell-legacy .legal-section h2 { color: var(--ink); border-bottom-color: var(--rule); }
.shell-legacy .legal-section h2 .bi { color: var(--accent); margin-right: 0.35rem; }
.shell-legacy .confirmation-box h1, .shell-legacy .error-title { color: var(--ink); }
.shell-legacy .confirmation-icon { animation: none; }
.shell-legacy .error-container { min-height: 0; padding-block: 2rem 1rem; }

/* 11. Simulated demos: the original widgets run inside a dark "bench" with their original tokens,
   visibly separated from the commercial pages and labelled as simulations. */
.shell-demo {
  --azeria-deep: #0f0a1e; --azeria-purple: #6366f1; --azeria-violet: #8b5cf6; --azeria-fuchsia: #d946ef;
  --azeria-pink: #f472b6; --azeria-cyan: #22d3ee; --azeria-blue: #3b82f6;
  --gradient-primary: linear-gradient(135deg, #5b45d6 0%, #7c4bb8 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  --surface-card: rgba(15, 10, 30, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(139, 92, 246, 0.5);
  --card-bg: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.62);
  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 1.5rem; --space-lg: 2rem; --space-xl: 3rem; --space-2xl: 4rem; --space-3xl: 6rem;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 14px; --radius-full: 9999px;
  --shadow-glow: none; --shadow-card: none; --shadow-button: 0 6px 20px rgba(91, 69, 214, 0.35);
  --transition-fast: 150ms ease; --transition-base: 200ms ease; --transition-smooth: 300ms ease;
}
.shell-demo main { background: #121019; color: rgba(255, 255, 255, 0.86); padding-bottom: var(--band); }
.shell-demo main h1, .shell-demo main h2, .shell-demo main h3, .shell-demo main h4, .shell-demo main strong { color: #fff; }
.shell-demo main a { color: var(--accent-on-dark); }
.shell-demo main :focus-visible { box-shadow: 0 0 0 3px #121019, 0 0 0 5px var(--accent-on-dark); }
.shell-demo .demo-notice {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: baseline;
  max-width: var(--wrap); margin-inline: auto; padding: 1.1rem var(--gutter);
  background: #fff4d6; color: #3b2a00; border-bottom: 2px solid #b45309;
}
.shell-demo main .demo-notice strong { color: #3b2a00; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; font-family: var(--mono); }
.shell-demo main .demo-notice a { color: #3b2a00; font-weight: 700; }
.shell-demo .demo-notice-wrap { background: #fff4d6; }
.shell-demo .breadcrumb { display: block; max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--gutter) 0; color: var(--on-dark-muted); }
.shell-demo .section { max-width: var(--wrap); margin-inline: auto; padding: 2rem var(--gutter) 0; }
.shell-demo .section[style] { padding-top: 2rem !important; }
.shell-demo .section-header { max-width: 46rem; }
.shell-demo .section-label { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 0.75rem; }
.shell-demo .section-title { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 0.75rem; }
.shell-demo .section-desc { color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; }
.shell-demo .text-gradient { color: var(--accent-on-dark); }
.shell-demo .demo-container { padding-inline: 0; }
.shell-demo .btn { border-color: rgba(255,255,255,.5); }
.shell-demo .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.shell-demo .btn-outline { background: transparent; color: #fff; }
.shell-demo .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.shell-demo input, .shell-demo textarea, .shell-demo select, .shell-demo button { font-family: var(--font); }
.shell-demo main button:focus-visible, .shell-demo main input:focus-visible, .shell-demo main [tabindex]:focus-visible { box-shadow: 0 0 0 3px #121019, 0 0 0 5px var(--accent-on-dark); }

/* Real device QA: constrain legacy grid min-content; tables scroll inside their own panels. */
.shell-demo .main-grid > *, .shell-demo .plu-layout > *, .shell-demo .video-studio > * { min-width: 0; }
.shell-demo .panel-body { max-width: 100%; overflow-x: auto; }
.shell-demo .address-input { min-width: 0; }
.shell-demo #pluQuestion { min-width: 0; width: 100%; flex: 1 1 0; }
.shell-demo .form-group label { color: var(--text-secondary); }
@media (max-width: 900px) {
 .shell-demo .main-grid, .shell-demo .plu-layout, .shell-demo .video-studio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
 .shell-demo .plu-card, .shell-demo .studio-panel, .shell-demo .panel-body { padding: 1rem; }
 .shell-demo .template-btn, .shell-demo .zone-btn { padding: 0.75rem; }
 .shell-demo .address-search { flex-direction: column; align-items: stretch; }
 .shell-demo .address-input, .shell-demo .search-btn { width: 100%; }
 .shell-demo .zone-selector, .shell-demo .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .shell-demo .ratio-grid { flex-wrap: wrap; }
 .shell-demo .ratio-btn { flex: 1 1 5rem; min-width: 0; padding: 0.75rem; }
 .shell-demo .pipeline { display: flex; flex-wrap: wrap; }
 .shell-demo .pipeline-stage { flex: 1 1 100%; min-width: 0; }
 .shell-demo .panel-header { flex-wrap: wrap; gap: 0.75rem; }
}

/* 12. Motion & print ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
  .navbar, .footer, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .band--dark { background: #fff; color: #000; }
}
