/* =========================================================================
   Exprieltservice — Design System
   Concept: "Modern Trust" — open, stable, professional.
   Brand: burgundy #6B0E12 · steel #8E949C · light #DDE1E6 · stone #F6F7F8 · charcoal #1F2328
   Type: Manrope (self-hosted variable, 200–800)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Fonts
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------------------
   2. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand ramp */
  --brand-900: #40070A;
  --brand-800: #550B0E;
  --brand-700: #6B0E12;  /* primary burgundy */
  --brand-600: #86161C;
  --brand-500: #A31E26;
  --brand-100: #F6E8E9;
  --brand-050: #FCF5F5;

  --steel-700: #5B6067;
  --steel-600: #6E757D;
  --steel-500: #8E949C;  /* brand steel */
  --steel-300: #C3C8CE;
  --steel-200: #DDE1E6;  /* brand light gray */
  --steel-100: #ECEFF2;
  --steel-050: #F6F7F8;  /* brand stone */

  --char-900: #14171A;
  --char-800: #1F2328;  /* brand charcoal */
  --char-700: #2C3239;
  --char-600: #3B424A;

  /* Semantic surfaces */
  --bg:            #FFFFFF;
  --bg-subtle:     var(--steel-050);
  --bg-sunken:     var(--steel-100);
  --bg-inverse:    var(--char-800);
  --bg-brand:      var(--brand-700);
  --surface:       #FFFFFF;
  --surface-hover: var(--steel-050);

  /* Semantic text */
  --ink:        var(--char-800);
  --ink-muted:  #4A5058;
  --ink-subtle: var(--steel-600);
  --ink-onDark: #FFFFFF;
  --ink-onDark-muted: rgba(255,255,255,.68);
  --ink-brand:  var(--brand-700);

  /* Lines */
  --line:        #E4E7EB;
  --line-strong: var(--steel-200);
  --line-onDark: rgba(255,255,255,.14);

  /* Accent for focus / interactive */
  --focus: var(--brand-600);

  /* Type */
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(2.6rem, 1.5rem + 4.4vw, 5rem);
  --fs-h1:      clamp(2.1rem, 1.45rem + 2.7vw, 3.6rem);
  --fs-h2:      clamp(1.7rem, 1.3rem + 1.7vw, 2.6rem);
  --fs-h3:      clamp(1.3rem, 1.15rem + .65vw, 1.7rem);
  --fs-h4:      clamp(1.08rem, 1.02rem + .3vw, 1.25rem);
  --fs-lead:    clamp(1.06rem, 1rem + .38vw, 1.28rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.06;
  --lh-snug:  1.2;
  --lh-body:  1.68;

  --tracking-display: -0.028em;
  --tracking-head:    -0.02em;
  --tracking-eyebrow: 0.16em;

  /* Space (4px base) */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem;  --s-8: 2rem;    --s-10: 2.5rem;
  --s-12: 3rem;   --s-16: 4rem;   --s-20: 5rem;   --s-24: 6rem;
  --s-32: 8rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --gutter:    clamp(1.15rem, .6rem + 2.2vw, 2.5rem);
  --maxw:      1240px;
  --maxw-text: 68ch;

  /* Radii — architectural: near-square, never pill except chips */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;

  /* Elevation — soft, cool-toned, never heavy */
  --sh-1: 0 1px 2px rgba(31,35,40,.05), 0 1px 3px rgba(31,35,40,.04);
  --sh-2: 0 2px 4px rgba(31,35,40,.04), 0 6px 16px rgba(31,35,40,.06);
  --sh-3: 0 4px 8px rgba(31,35,40,.05), 0 16px 40px rgba(31,35,40,.09);
  --sh-brand: 0 6px 20px rgba(107,14,18,.22);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: 260ms;

  --header-h: 76px;
}

@media (max-width: 767px) { :root { --header-h: 64px; } }

/* -------------------------------------------------------------------------
   3. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-head);
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-500); }

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

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15em; }
li { margin-bottom: var(--s-2); }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }
small { font-size: var(--fs-sm); }

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

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 999;
  background: var(--brand-700); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: var(--s-4); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }
.container--wide   { max-width: 1440px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.section--subtle  { background: var(--bg-subtle); }
.section--sunken  { background: var(--bg-sunken); }
.section--inverse { background: var(--bg-inverse); color: var(--ink-onDark); }
.section--inverse h1, .section--inverse h2,
.section--inverse h3, .section--inverse h4 { color: var(--ink-onDark); }
.section--inverse p { color: var(--ink-onDark-muted); }

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr)); }

@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-8); }

/* Split: text + media */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.split--top { align-items: start; }
.split--media-first .split__media { order: -1; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; gap: var(--s-8); }
  .split--media-first .split__media { order: 0; }
}

/* -------------------------------------------------------------------------
   5. Typography helpers
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-brand);
  margin: 0 0 var(--s-4);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: currentColor; flex: none;
}
.eyebrow--plain::before { display: none; }
.section--inverse .eyebrow { color: var(--steel-300); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: var(--maxw-text);
}
.section--inverse .lead { color: var(--ink-onDark-muted); }

.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); font-weight: 800; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

.section-head--split {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: var(--s-6); max-width: none;
}
@media (max-width: 767px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}

.text-muted { color: var(--ink-muted); }
.text-subtle { color: var(--ink-subtle); }
.text-brand { color: var(--ink-brand); }
.text-center { text-align: center; }
.measure { max-width: var(--maxw-text); }

/* Rich text block (service page bodies) */
.prose { max-width: var(--maxw-text); }
.prose h2 { margin-top: var(--s-12); }
.prose h3 { margin-top: var(--s-8); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul > li {
  position: relative; padding-left: 1.75rem; margin-bottom: var(--s-3);
}
.prose ul > li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; background: var(--brand-700);
}

/* -------------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  --btn-bd: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: .95rem 1.6rem;
  font: inherit; font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover {
  --btn-bg: var(--brand-600); --btn-bd: var(--brand-600); color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-brand);
}
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--secondary {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
}
.btn--secondary:hover {
  --btn-bg: var(--bg-subtle); --btn-bd: var(--steel-500);
  color: var(--ink); box-shadow: var(--sh-1);
}

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink-brand); --btn-bd: transparent;
  padding-inline: .5rem;
}
.btn--ghost:hover { --btn-bg: var(--brand-050); color: var(--brand-600); box-shadow: none; }

.btn--onDark {
  --btn-bg: #fff; --btn-fg: var(--char-800); --btn-bd: #fff;
}
.btn--onDark:hover { --btn-bg: var(--steel-100); --btn-bd: var(--steel-100); color: var(--char-800); box-shadow: 0 6px 20px rgba(0,0,0,.28); }

.btn--onDark-outline {
  --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.34);
}
.btn--onDark-outline:hover {
  --btn-bg: rgba(255,255,255,.1); --btn-bd: rgba(255,255,255,.6); color: #fff; box-shadow: none;
}

.btn--lg { padding: 1.1rem 2rem; font-size: var(--fs-body); }
.btn--sm { padding: .6rem 1.05rem; font-size: var(--fs-xs); }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: var(--fs-sm);
  color: var(--ink-brand); text-decoration: none;
}
.arrow-link svg { transition: transform var(--dur) var(--ease); flex: none; }
.arrow-link:hover svg { transform: translateX(4px); }
.section--inverse .arrow-link { color: #fff; }

/* -------------------------------------------------------------------------
   7. Header / navigation
   ------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(31,35,40,.05);
}

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}

/* Logo lockup — the official artwork ships as SVG, so it is never re-typeset.
   Aspect ratio is fixed at 1460:317; only the height is ever set. */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* Both dimensions are stated outright. `width:auto` is deliberately NOT used:
   .logo is an inline-flex box with flex:none, so a replaced element whose width
   is left to be derived can take its flex base size from the 1460px source and
   never shrink back. max-width from the global img rule stays as a backstop. */
.logo__img {
  display: block;
  width: 166px;
  height: 36px;
}
.logo__img--footer { width: 184px; height: 40px; }
@media (max-width: 599px) {
  .logo__img { width: 134px; height: 29px; }
  .logo__img--footer { width: 157px; height: 34px; }
}

/* Primary nav */
.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .8rem;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-radius: var(--r-md);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__link:hover { color: var(--ink-brand); background: var(--bg-subtle); }
.nav__link[aria-current="page"] { color: var(--ink-brand); }
.nav__link[aria-current="page"]::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .28rem;
  height: 2px; background: var(--brand-700);
}
.nav__caret { transition: transform var(--dur) var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: var(--s-4); }
.header__phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: var(--fs-sm); color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--ink-brand); }
.header__phone svg { color: var(--brand-700); flex: none; }

/* Dropdown (services mega menu) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(680px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: var(--s-3);
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown__item {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink);
  transition: background var(--dur) var(--ease);
}
.dropdown__item:hover { background: var(--bg-subtle); color: var(--ink); }
.dropdown__icon {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--brand-050); color: var(--brand-700);
  display: grid; place-items: center;
}
.dropdown__title { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; margin-bottom: 2px; }
.dropdown__desc { font-size: var(--fs-xs); color: var(--ink-subtle); line-height: 1.45; }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; place-items: center; color: var(--ink);
}
.burger:hover { background: var(--bg-subtle); }
.burger span {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity 140ms var(--ease);
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--bg);
  padding: var(--s-6) var(--gutter) var(--s-12);
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  overscroll-behavior: contain;
}
.drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
  font-size: 1.12rem; font-weight: 700; color: var(--ink); text-decoration: none;
}
.drawer__link[aria-current="page"] { color: var(--ink-brand); }
.drawer__sub { padding: var(--s-2) 0 var(--s-4) var(--s-4); }
.drawer__sub a {
  display: block; padding: var(--s-2) 0;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); text-decoration: none;
}
.drawer__sub a:hover { color: var(--ink-brand); }
.drawer__footer { margin-top: var(--s-8); display: grid; gap: var(--s-3); }

@media (max-width: 1023px) {
  .nav, .header__phone { display: none; }
  .burger { display: grid; }
}

/* On phones the logo + CTA + burger do not fit on one line (they need ~363px
   but a 375px screen offers ~338px). Drop the CTA — the drawer carries both
   "Обговорити проєкт" and the phone number as full-width buttons. */
@media (max-width: 599px) {
  .header__actions .btn { display: none; }
  .header__actions { gap: var(--s-2); }
}

/* -------------------------------------------------------------------------
   8. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--char-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(20,23,26,.95) 0%, rgba(20,23,26,.86) 42%, rgba(20,23,26,.5) 72%, rgba(20,23,26,.35) 100%);
}
@media (max-width: 899px) {
  .hero::after { background: linear-gradient(180deg, rgba(20,23,26,.86) 0%, rgba(20,23,26,.92) 100%); }
}

/* NB: never put max-width on an element that is also .container —
   its margin-inline:auto would re-centre the box off the page grid.
   Constrain the children instead. */
.hero__inner { padding-block: clamp(4rem, 2.5rem + 8vw, 9rem); }
.hero .eyebrow { color: var(--steel-300); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__lead { color: rgba(255,255,255,.8); font-size: var(--fs-lead); max-width: 60ch; }
.hero .btn-row { margin-top: var(--s-8); }

/* Hero credibility strip */
.hero__facts {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-6);
  max-width: 680px;
}
.hero__fact-num {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff;
}
.hero__fact-label {
  margin-top: var(--s-2); font-size: var(--fs-xs); line-height: 1.45;
  color: rgba(255,255,255,.62);
}
@media (max-width: 639px) {
  .hero__facts { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  position: relative; overflow: hidden;
}
.page-hero__inner { max-width: 800px; position: relative; }
.page-hero__weave {
  position: absolute; inset-block: 0; right: -60px; width: 420px;
  background: url('../img/brand/weave.svg') repeat;
  opacity: .55; z-index: 0;
  mask-image: linear-gradient(to left, #000, transparent);
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
}
@media (max-width: 899px) { .page-hero__weave { display: none; } }

/* -------------------------------------------------------------------------
   9. Breadcrumbs
   ------------------------------------------------------------------------- */
.breadcrumbs { margin-bottom: var(--s-5); font-size: var(--fs-xs); }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; color: var(--ink-subtle); }
.breadcrumbs li + li::before { content: '/'; color: var(--steel-300); }
.breadcrumbs a { color: var(--ink-subtle); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink-brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------------------
   10. Cards
   ------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card--link:hover {
  border-color: var(--steel-300);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.card__icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--brand-050); color: var(--brand-700);
  display: grid; place-items: center; margin-bottom: var(--s-5);
}
.card h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.card p { font-size: var(--fs-sm); color: var(--ink-muted); }
.card__foot { margin-top: var(--s-5); }
.stretched-link::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}

/* Service card with image */
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.service-card:hover { border-color: var(--steel-300); box-shadow: var(--sh-2); transform: translateY(-3px); }
.service-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-sunken); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: var(--s-5) var(--s-6) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.service-card__body p { font-size: var(--fs-sm); color: var(--ink-muted); margin-bottom: var(--s-5); }
.service-card__body .arrow-link { margin-top: auto; }

/* Numbered feature card */
.numbered {
  counter-reset: step;
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(250px,100%),1fr));
}
.numbered__item {
  counter-increment: step;
  border-top: 2px solid var(--line-strong);
  padding-top: var(--s-5);
  transition: border-color var(--dur) var(--ease);
}
.numbered__item:hover { border-top-color: var(--brand-700); }
.numbered__item::before {
  content: '0' counter(step);
  display: block; font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: var(--tracking-eyebrow); color: var(--brand-700);
  margin-bottom: var(--s-3);
}
.numbered__item h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.numbered__item p { font-size: var(--fs-sm); color: var(--ink-muted); }
.section--inverse .numbered__item { border-top-color: rgba(255,255,255,.2); }
.section--inverse .numbered__item:hover { border-top-color: #fff; }
.section--inverse .numbered__item::before { color: var(--steel-300); }

/* -------------------------------------------------------------------------
   11. Stats
   ------------------------------------------------------------------------- */
.stats {
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(200px,100%),1fr));
}
.stat { padding: var(--s-6) 0; border-top: 2px solid var(--brand-700); }
.stat__num {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.5; }
.stat__note { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--ink-subtle); }
.section--inverse .stat { border-top-color: var(--steel-500); }
.section--inverse .stat__num { color: #fff; }
.section--inverse .stat__label { color: rgba(255,255,255,.72); }
.section--inverse .stat__note { color: rgba(255,255,255,.5); }

/* -------------------------------------------------------------------------
   12. Media
   ------------------------------------------------------------------------- */
.media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-sunken);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4/3; }
.media--3x2 { aspect-ratio: 3/2; }
.media--1x1 { aspect-ratio: 1/1; }
.media--16x9 { aspect-ratio: 16/9; }
.media--portrait { aspect-ratio: 3/4; }

.media-caption {
  margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--ink-subtle);
  display: flex; gap: .4rem; align-items: baseline;
}

/* Framed media: burgundy corner bracket peeking out behind the image.
   Must be a WRAPPER around .media — .media clips its own overflow. */
.media-frame { position: relative; isolation: isolate; }
.media-frame::before {
  content: ''; position: absolute; left: -18px; top: -18px;
  width: 120px; height: 120px;
  border-left: 3px solid var(--brand-700);
  border-top: 3px solid var(--brand-700);
  z-index: -1; pointer-events: none;
}
@media (max-width: 639px) { .media-frame::before { display: none; } }

/* Mosaic gallery */
.mosaic {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
}
.mosaic > * { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-sunken); }
.mosaic > * img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__lg { grid-column: span 2; grid-row: span 2; }
.mosaic__tall { grid-row: span 2; }
.mosaic__wide { grid-column: span 2; }
@media (max-width: 767px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic__lg { grid-column: span 2; grid-row: span 1; aspect-ratio: 4/3; }
}

/* -------------------------------------------------------------------------
   13. Accordion
   ------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: var(--fs-h4); font-weight: 700; text-align: left;
  color: var(--ink); letter-spacing: var(--tracking-head);
  transition: color var(--dur) var(--ease);
}
.accordion__trigger:hover { color: var(--ink-brand); }
.accordion__icon {
  flex: none; width: 22px; height: 22px; position: relative;
  transition: transform var(--dur) var(--ease); color: var(--brand-700);
}
.accordion__icon::before, .accordion__icon::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 2px; background: currentColor;
  transform: translateY(-50%); transition: opacity var(--dur) var(--ease);
}
.accordion__icon::after { transform: translateY(-50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { opacity: 0; }
/* Panels are open by default so the answers remain readable without JS.
   main.js adds .accordion--js and drives an explicit height transition —
   interpolating grid-template-rows between 0fr/1fr is not reliable enough. */
.accordion__panel { overflow: hidden; }
.accordion--js .accordion__panel {
  height: 0;
  transition: height var(--dur) var(--ease);
}
.accordion__panel .accordion__body {
  padding-bottom: var(--s-6);
  max-width: var(--maxw-text);
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------
   14. Forms
   ------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 639px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: var(--s-2); }
.field__label { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.field__label .req { color: var(--brand-700); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-subtle); }
.field__error {
  font-size: var(--fs-xs); color: var(--brand-600); font-weight: 600;
  display: none;
}
.field.has-error .field__error { display: block; }

.input, .select, .textarea {
  width: 100%;
  padding: .85rem 1rem;
  font: inherit; font-size: var(--fs-sm);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--steel-500); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel-500); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(107,14,18,.12);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--brand-600); }

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

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238E949C' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}

/* Checkbox / radio */
.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); }
.check input {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: var(--brand-700); cursor: pointer;
}
.check span { color: var(--ink-muted); line-height: 1.5; }
.check-group { display: grid; gap: var(--s-3); }

.form__consent { font-size: var(--fs-xs); color: var(--ink-subtle); }
.form__consent a { color: var(--ink-muted); }

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Form status */
.form-status {
  display: none; padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 600;
}
.form-status[data-state="ok"] { display: block; background: #ECF6EE; color: #1E5C2E; border: 1px solid #C6E3CE; }
.form-status[data-state="error"] { display: block; background: var(--brand-050); color: var(--brand-700); border: 1px solid #E9CDCF; }

/* Form panel */
.form-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  box-shadow: var(--sh-2);
}

/* -------------------------------------------------------------------------
   15. Tables
   ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 520px; }
.table th, .table td { padding: var(--s-4) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); }
.table th {
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-subtle); border-bottom-color: var(--line-strong);
  white-space: nowrap;
}
.table td { color: var(--ink-muted); vertical-align: top; }
.table td:first-child { color: var(--ink); font-weight: 600; }
.table tbody tr:hover { background: var(--bg-subtle); }

/* -------------------------------------------------------------------------
   16. Chips / filters / badges
   ------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .95rem; border-radius: 100px;
  font-size: var(--fs-xs); font-weight: 700;
  background: var(--surface); color: var(--ink-muted);
  border: 1px solid var(--line-strong);
  cursor: pointer; font-family: inherit;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--steel-500); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--char-800); border-color: var(--char-800); color: #fff;
}

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem; border-radius: var(--r-sm);
  font-size: 0.7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--brand-050); color: var(--brand-700);
}
.badge--neutral { background: var(--bg-sunken); color: var(--ink-muted); }
.badge--onDark { background: rgba(255,255,255,.14); color: #fff; }

/* -------------------------------------------------------------------------
   17. Callouts
   ------------------------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--brand-700);
  background: var(--bg-subtle);
  padding: var(--s-5) var(--s-6);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.callout strong { color: var(--ink); }
.callout--note { border-left-color: var(--steel-500); }

/* Placeholder / to-fill marker (portfolio scaffolding) */
.placeholder-note {
  border: 1px dashed var(--steel-300);
  background: repeating-linear-gradient(135deg, var(--steel-050), var(--steel-050) 10px, #fff 10px, #fff 20px);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.placeholder-note h3 { font-size: var(--fs-h4); }

/* -------------------------------------------------------------------------
   18. CTA band
   ------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand-700); color: #fff;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('../img/brand/weave.svg') repeat;
  opacity: .5; filter: invert(1) brightness(2);
  mix-blend-mode: soft-light;
}
.cta-band__inner {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); align-items: center;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; }
@media (max-width: 899px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   19. Footer
   ------------------------------------------------------------------------- */
.footer { background: var(--char-900); color: rgba(255,255,255,.66); font-size: var(--fs-sm); }
.footer a { color: rgba(255,255,255,.66); text-decoration: none; }
.footer a:hover { color: #fff; }

.footer__main {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  display: grid; gap: var(--s-10);
  grid-template-columns: 1.6fr repeat(3, 1fr);
}
@media (max-width: 1023px) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .footer__main { grid-template-columns: 1fr; gap: var(--s-8); } }

.footer__brand-text { margin-top: var(--s-5); max-width: 36ch; line-height: 1.65; }
.footer__title {
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: #fff; margin-bottom: var(--s-5);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.footer__list li { margin: 0; }

.footer__contact { display: grid; gap: var(--s-4); }
.footer__contact-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer__contact-item svg { flex: none; margin-top: 3px; color: var(--steel-500); }
.footer__contact-item strong { display: block; color: #fff; font-weight: 700; }

.socials { display: flex; gap: var(--s-3); margin-top: var(--s-6); }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
}
.socials a:hover { background: #fff; color: var(--char-900); border-color: #fff; }

.footer__legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--s-6);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: rgba(255,255,255,.46);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--s-5); }

/* -------------------------------------------------------------------------
   20. Utilities
   ------------------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
.mb-0 { margin-bottom: 0 !important; }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   21. Motion
   ------------------------------------------------------------------------- */
/* Only hide reveal targets when scripting is available to un-hide them.
   With JS off (or in a browser that ignores this query) content stays visible. */
@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------------------
   22. Print
   ------------------------------------------------------------------------- */
@media print {
  .header, .footer, .cta-band, .drawer, .burger, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
