/* ==========================================================================
   Architecture Dezine — main stylesheet
   Concept: "blueprint to reality" — dark drafting-room surfaces, paper-white
   sheets, and the logo's red construction lines as the single accent.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --red: #de0000;
  --red-deep: #a80000;
  --red-tint: rgba(222, 0, 0, .12);

  /* Neutrals (warm-biased toward the red) */
  --ink: #111010;
  --ink-2: #181716;
  --ink-3: #221f1e;
  --line-dark: #2e2a29;
  --paper: #f3f1ee;
  --paper-2: #ffffff;
  --line-light: #e2ddd7;
  --text: #5c5654;
  --text-dark: #a9a3a0;
  --white: #ffffff;

  /* Type */
  --f-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Fluid type scale */
  --fs-hero: clamp(3rem, 7.4vw, 7.5rem);
  --fs-h2: clamp(2.2rem, 4.4vw, 4.2rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lead: clamp(1rem, 1.25vw, 1.15rem);

  /* Layout */
  --container: 1320px;
  --gutter: max(20px, 4vw);
  --section: clamp(80px, 11vw, 160px);
  --radius: 4px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.center { text-align: center; }
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000;
  background: var(--red); color: var(--white); padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Typography ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
  margin-block: 18px 22px;
}
.lead { font-size: var(--fs-lead); color: var(--text); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow__code {
  font-family: var(--f-mono); font-weight: 500; letter-spacing: .05em;
  padding: 4px 8px; border: 1px solid currentColor; border-radius: 2px;
}
.section--dark .lead, .dark .lead { color: var(--text-dark); }

/* split text wrappers (created in JS) */
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; will-change: transform; }

/* ---------- 4. Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--white); --bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 26px; min-height: 50px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover-bg, var(--ink));
  transform: translateY(101%); border-radius: inherit;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--hover-fg, var(--white)); }
.btn--lg { padding: 18px 32px; min-height: 58px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { --bg: var(--red); --bd: var(--red); --hover-bg: var(--ink); }
.btn--ghost { --bd: rgba(255,255,255,.4); --hover-bg: var(--white); --hover-fg: var(--ink); }
.btn--ghost:hover { border-color: var(--white); }
.btn--white { --bg: var(--white); --fg: var(--red); --bd: var(--white); --hover-bg: var(--ink); }
.btn--line { --fg: var(--ink); --bd: var(--ink); --hover-bg: var(--ink); }
.btn:disabled { opacity: .35; pointer-events: none; }
.arrow { display: inline-block; width: 18px; height: 10px; position: relative; transition: transform .4s var(--ease-out); }
.arrow::before { content: ""; position: absolute; left: 0; right: 1px; top: 50%; height: 1.5px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(5px); }

/* ---------- 5. Preloader, cursor, progress ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
}
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__mark { width: 120px; height: 100px; }
.preloader__mark path { stroke: var(--red); stroke-width: 3; stroke-linecap: square; }
.preloader__mark path.thin { stroke-width: 1; }
.preloader__count { font-family: var(--f-display); font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.preloader__label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dark); }
.is-loaded .preloader { pointer-events: none; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 998; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--red); mix-blend-mode: normal;
  display: none; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s;
}
.has-cursor .cursor { display: grid; }
.cursor__label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity .2s; }
.cursor.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(222,0,0,.25); }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--red); }
.cursor.is-view .cursor__label { opacity: 1; }

.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 200; height: 3px; width: 100%;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- 6. Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform .5s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.topbar { background: var(--red); color: var(--white); font-size: .82rem; font-weight: 600; transition: margin .4s var(--ease); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__list { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__list a:hover { text-decoration: underline; }
.topbar__note { display: flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* transparent over the hero, solid once the page scrolls */
.nav { color: var(--white); border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.is-scrolled .nav, .menu-open .nav { background: rgba(17,16,16,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.nav__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; height: 88px; transition: height .4s var(--ease); }
.is-scrolled .nav__inner { height: 72px; }
.nav__logo img { height: 74px; width: auto; transition: height .4s var(--ease); }
.is-scrolled .nav__logo img { height: 60px; }
.nav__menu { display: flex; gap: clamp(18px, 2.4vw, 40px); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.nav__menu a { position: relative; color: rgba(255,255,255,.82); padding-block: 8px; transition: color .3s; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--white); }
.nav__menu a:hover::after, .nav__menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.4vw, 40px); }
.nav__talk {
  display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 20px; border-radius: 40px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .35s;
}
.nav__talk i { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--red); transition: transform .5s var(--ease-out); }
.nav__talk i::before, .nav__talk i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 1.5px; background: var(--white); }
.nav__talk i::after { transform: rotate(90deg); }
.nav__talk:hover { background: var(--red); }
.nav__talk:hover i { background: var(--ink); transform: rotate(90deg); }
.nav__toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-dark); border-radius: var(--radius); position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1; background: var(--ink); color: var(--white);
  padding: 150px max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mobile-menu ul { display: grid; gap: 6px; }
.mobile-menu li a { font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3.2rem); text-transform: uppercase; line-height: 1.15; display: inline-block; }
.mobile-menu li a:hover { color: var(--red); }
.mobile-menu__foot { display: grid; gap: 6px; color: var(--text-dark); margin-top: 40px; }

/* ---------- 7. Hero ---------- */
/* Cinematic: the render fills the screen, copy sits low and small */
.hero {
  position: relative; min-height: max(640px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden;
  padding-top: 146px; /* fixed header + breathing room above the quote card */
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transform-origin: 60% 50%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,9,9,.72) 0%, rgba(10,9,9,.35) 45%, rgba(10,9,9,0) 70%),
    linear-gradient(180deg, rgba(10,9,9,.6) 0%, rgba(10,9,9,0) 26%, rgba(10,9,9,0) 45%, rgba(10,9,9,.88) 100%);
}
/* blueprint crosshairs in the top corners of the frame */
.hero__mark {
  position: absolute; top: 150px; z-index: 2; width: 15px; height: 15px; opacity: .7;
  background: linear-gradient(var(--white), var(--white)) center / 15px 1px no-repeat, linear-gradient(var(--white), var(--white)) center / 1px 15px no-repeat;
}
.hero__mark--tl { left: calc(max(var(--gutter), (100% - var(--container)) / 2) - 7px); }
.hero__mark--tr { right: calc(max(var(--gutter), (100% - var(--container)) / 2) - 7px); }
.hero__content { position: relative; z-index: 2; padding-bottom: 26px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: end; gap: clamp(32px, 5vw, 80px); padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.25); }
.hero__copy { display: grid; justify-items: start; gap: 24px; padding-bottom: 6px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 40px;
  font-size: .82rem; font-weight: 600; background: rgba(17,16,16,.45); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero__ghost { padding: 14px 4px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1.5px solid rgba(255,255,255,.4); transition: border-color .3s; }
.hero__ghost:hover { border-color: var(--red); }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(222,0,0,.25); animation: blink 1.6s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(222,0,0,0); } }
.hero__title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  line-height: 1; text-transform: uppercase; letter-spacing: .005em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--red); }
.hero__title .nowrap { white-space: nowrap; }
.hero__lead { max-width: 52ch; font-size: clamp(.98rem, 1.15vw, 1.08rem); line-height: 1.65; color: #e6e1de; }
.hero__cta {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 26px; border-radius: 40px; background: var(--red);
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background .35s, color .35s;
}
.hero__cta:hover { background: var(--white); color: var(--ink); }
.hero__caption {
  display: flex; align-items: center; gap: 12px 36px; flex-wrap: wrap; padding: 18px 76px 0 0; /* clear of the WhatsApp button */
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.hero__caption-key { font-family: var(--f-mono); font-weight: 500; color: var(--red); margin-right: 12px; }
.hero__caption-note { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: rgba(255,255,255,.85); }
.hero__scroll span { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll span::after { content: ""; width: 1px; height: 22px; background: linear-gradient(var(--white), var(--white)) 0 0 / 1px 8px no-repeat, rgba(255,255,255,.3); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { from { background-position: 0 -8px; } to { background-position: 0 22px; } }

/* hero quick-quote card: soft, rounded, paper-warm */
.qcard {
  --q-radius: 24px; --q-line: #e7e1da; --q-soft: #f6f2ed;
  position: relative; color: var(--ink); background: #fbf9f6;
  border-radius: var(--q-radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08);
}
.qcard svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 24px 16px; background: var(--q-soft); border-bottom: 1px solid var(--q-line); }
.qcard__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 40px;
  background: var(--white); border: 1px solid var(--q-line);
  font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.qcard__badge .dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(222,0,0,.18); }
.qcard__title { margin-top: 10px; font-family: var(--f-body); font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.qcard__sub { margin-top: 2px; font-size: .84rem; color: var(--text); }
.qcard__rate { flex: none; text-align: right; font-size: .82rem; color: var(--text); line-height: 1.2; }
.qcard__rate strong { font-family: var(--f-display); font-weight: 500; font-size: 2rem; color: var(--red); line-height: 1; }
.qcard__rate small { display: block; margin-top: 6px; font-size: .7rem; color: #8e8784; }
.qcard__body { padding: 16px 24px 0; }
.qcard__progress p { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #8e8784; }
.qcard__progress b { color: var(--ink); }
.qcard__progress em { font-style: normal; color: var(--red); }
.qcard__bar { height: 4px; margin-top: 10px; border-radius: 4px; background: var(--q-line); overflow: hidden; }
.qcard__bar span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red-deep), var(--red)); transition: width .6s var(--ease); }
.qcard__step { display: none; min-width: 0; margin: 0; padding: 16px 0 0; border: 0; }
.qcard__step > :not(legend) { clear: both; }
.qcard__step.is-active { display: block; animation: qIn .5s var(--ease-out); }
@keyframes qIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qcard__step legend { float: left; width: 100%; padding: 0; font-weight: 800; font-size: 1rem; } /* float drops the legend's default gap */
.qcard__hint { margin-top: 2px; font-size: .8rem; color: var(--text); }
.qcard__hint.is-alert { color: var(--red); font-weight: 700; }
.qchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.qchip { position: relative; cursor: pointer; }
.qchip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.qchip span {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px;
  background: var(--white); border: 1px solid var(--q-line); border-radius: 14px;
  font-size: .84rem; font-weight: 700; line-height: 1.25;
  transition: border-color .25s, background .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.qchip svg { flex: none; width: 18px; height: 18px; color: #8e8784; transition: color .25s; }
.qchip small { margin-left: auto; padding-left: 8px; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; color: #8e8784; }
.qchip:hover span { border-color: #cfc7bf; transform: translateY(-1px); }
.qchip input:checked + span { border-color: var(--red); background: #fff5f5; box-shadow: 0 0 0 3px rgba(222,0,0,.1); }
.qchip input:checked + span svg, .qchip input:checked + span small { color: var(--red); }
.qchip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.qcard__total { margin-top: 12px; font-family: var(--f-display); font-weight: 500; font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.qcard__total::after { content: "+"; color: var(--red); font-size: .5em; vertical-align: .9em; margin-left: 2px; }
.qcard__step [data-q-recap] { margin-top: 10px; }
.qcard__fine { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .84rem; font-weight: 700; border-bottom: 1.5px solid var(--red); padding-bottom: 2px; }
.qcard__perks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--q-line); font-size: .76rem; color: var(--text); }
.qcard__perks li { display: flex; align-items: center; gap: 6px; }
.qcard__perks li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23de0000' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/8px no-repeat;
}
.qcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 24px; background: var(--q-soft); border-block: 1px solid var(--q-line); }
.qcard__foot p { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text); white-space: nowrap; }
.qcard__foot p svg { width: 16px; height: 16px; color: var(--red); }
.qcard__btns { display: flex; align-items: center; gap: 6px; }
.qcard__back { padding: 11px 14px; border-radius: 40px; font-size: .84rem; font-weight: 700; color: var(--text); transition: color .25s; }
.qcard__back:hover { color: var(--ink); }
.qcard__next {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 40px;
  background: var(--ink); color: var(--white); font-size: .86rem; font-weight: 700; white-space: nowrap;
  transition: background .3s, transform .3s var(--ease-out);
}
.qcard__next:hover { background: var(--red); transform: translateY(-1px); }
.qcard__alt { display: block; padding-top: 10px; text-align: center; font-size: .78rem; color: #8e8784; transition: color .25s; }
.qcard__alt:hover { color: var(--ink); }
.qcard__call {
  display: flex; align-items: center; gap: 14px; margin: 8px 12px 12px; padding: 10px 14px;
  border: 1px solid var(--q-line); border-radius: 16px; background: var(--white); transition: border-color .3s, box-shadow .3s;
}
.qcard__call:hover { border-color: var(--red); box-shadow: 0 10px 24px -14px rgba(222,0,0,.45); }
.qcard__call-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red-tint); color: var(--red); }
.qcard__call-icon svg { width: 20px; height: 20px; }
.qcard__call strong { display: block; font-size: .88rem; }
.qcard__call small { font-size: .76rem; color: #8e8784; }
.qcard__call .arrow { margin-left: auto; color: var(--red); }

/* ---------- 8. Generic sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--dark { background: var(--ink); color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(40px, 5vw, 70px); flex-wrap: wrap; }
.section-head > div { max-width: 820px; min-width: 0; }
.section-head__aside { max-width: 380px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.checklist { display: grid; gap: 14px; margin-top: 30px; }
.checklist li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.checklist li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23de0000' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- 9. Blueprint rules & statement ---------- */
/* ruler ticks along the top of each section, with crosshairs at both ends */
.section { --rule: rgba(17,16,16,.16); --mark: rgba(17,16,16,.5); --frame: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.section--dark { --rule: rgba(255,255,255,.13); --mark: rgba(255,255,255,.45); }
.section::before {
  content: ""; position: absolute; top: 0; left: var(--frame); right: var(--frame); height: 7px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 14px);
}
.section::after {
  content: ""; position: absolute; top: -7px; left: calc(var(--frame) - 7px); right: calc(var(--frame) - 7px); height: 15px; pointer-events: none;
  background:
    linear-gradient(var(--mark), var(--mark)) left 0 top 7px / 15px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left 7px top 0 / 1px 15px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right 0 top 7px / 15px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right 7px top 0 / 1px 15px no-repeat;
}

/* large statement whose words light up while scrolling (JS adds .w spans) */
.statement { background: var(--ink); color: var(--white); padding-block: var(--section); }
.statement__text {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 4.2rem);
  line-height: 1.12; text-transform: uppercase; text-wrap: pretty;
}
.statement__dot { display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--red); margin-right: .3em; vertical-align: .12em; }

/* ---------- 10. Clients marquee ---------- */
.clients { padding-block: 64px; background: var(--paper); border-block: 1px solid var(--line-light); overflow: hidden; }
.clients__title { text-align: center; font-family: var(--f-body); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #8e8784; margin-bottom: 38px; padding-inline: 16px; }
.marquee { display: flex; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(50px, 7vw, 110px); padding-right: clamp(50px, 7vw, 110px); flex: none; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 62px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .4s, opacity .4s; }
.marquee__track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- 11. About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 7vw, 100px); align-items: center; }
.about__media { position: relative; }
.clip { overflow: hidden; border-radius: var(--radius); }
.about__media .clip { aspect-ratio: 4 / 5; }
.clip img { width: 100%; height: 115%; object-fit: cover; }
.about__badge {
  position: absolute; right: clamp(-30px, -2vw, 0px); bottom: 50px;
  background: var(--red); color: var(--white); padding: 28px 32px; max-width: 260px;
}
.about__badge strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 3.4rem; line-height: 1; }
.about__badge > span { font-weight: 600; font-size: .92rem; }
.corner { position: absolute; width: 180px; height: 180px; pointer-events: none; }
.corner--tl { left: -22px; top: -22px; border-left: 2px solid var(--red); border-top: 2px solid var(--red); }
.corner--tl::before { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 38px; }
.feature { background: var(--paper-2); border: 1px solid var(--line-light); padding: 26px; border-radius: var(--radius); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(17,16,16,.35); border-color: transparent; }
.feature__icon { width: 46px; height: 46px; padding: 11px; background: var(--red-tint); border-radius: var(--radius); fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; color: var(--text); }

/* ---------- 12. Services list ---------- */
.service-list { border-top: 1px solid var(--line-dark); counter-reset: svc; }
.service { border-bottom: 1px solid var(--line-dark); position: relative; }
.service a {
  display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr) 60px; align-items: center; gap: 30px;
  padding-block: 34px; position: relative; z-index: 1;
}
.service::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.service:hover::before { transform: scaleY(1); transform-origin: top; }
.service__num { font-family: var(--f-mono); font-size: .9rem; color: var(--red); transition: color .4s; }
.service__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.8rem); text-transform: uppercase; line-height: 1.05; transition: transform .6s var(--ease-out); }
.service__desc { color: var(--text-dark); font-size: .96rem; transition: color .4s; }
.service__go { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-dark); position: relative; transition: background .4s, border-color .4s, transform .6s var(--ease-out); justify-self: end; }
.service__go::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-top: 1.5px solid var(--white); border-right: 1.5px solid var(--white); transform: translateX(-2px) rotate(45deg); }
.service:hover .service__num, .service:hover .service__desc { color: var(--white); }
.service:hover .service__title { transform: translateX(16px); }
.service:hover .service__go { background: var(--white); border-color: var(--white); transform: rotate(-45deg); }
.service:hover .service__go::before { border-color: var(--red); }
.service-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 340px; aspect-ratio: 4 / 3; pointer-events: none;
  border-radius: var(--radius); overflow: hidden; opacity: 0; transform: scale(.6); display: none;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}
.has-cursor .service-preview { display: block; }
.service-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 13. Process ---------- */
.process { background: var(--paper-2); overflow: hidden; }
.process__pin { padding-block: var(--section); }
.process__head { margin-bottom: 60px; }
.process__progress { height: 2px; background: var(--line-light); margin-top: 26px; max-width: 520px; }
.process__progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(.25); }
.process__track {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.step { position: relative; padding: 40px 32px; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); min-height: 380px; display: flex; flex-direction: column; overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.step:hover::after { transform: scaleX(1); }
.step__num { font-family: var(--f-display); font-size: clamp(4rem, 7vw, 6.5rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-h3); text-transform: uppercase; margin-block: 40px 12px; }
.step p { color: var(--text); font-size: .96rem; margin-bottom: 18px; }
.step .tag { margin-top: auto; } /* titles line up across cards; tags sit on the bottom edge */
.tag { align-self: flex-start; margin-top: 18px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); background: var(--red-tint); padding: 6px 10px; border-radius: 2px; }
/* horizontal mode (set by JS on wide screens) */
.process.is-horizontal .process__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 120px 40px; } /* top clears the fixed header */
.process.is-horizontal .process__head { margin-bottom: clamp(28px, 4vh, 60px); }
.process.is-horizontal .process__track { display: flex; width: max-content; max-width: none; margin: 0; gap: 32px; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: 30vw; }
.process.is-horizontal .step { width: clamp(340px, 30vw, 440px); min-height: clamp(340px, 48vh, 440px); flex: none; }

/* ---------- 14. Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter { padding: 11px 22px; border: 1.5px solid #3a3533; border-radius: 40px; font-size: .9rem; font-weight: 600; color: #c4bdba; transition: all .35s var(--ease); }
.filter:hover { border-color: var(--white); color: var(--white); }
.filter.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 22vw, 320px); grid-auto-flow: dense; gap: 20px; margin-bottom: 60px; }
.work { position: relative; }
.work.is-out { display: none; }
.work--tall { grid-row: span 2; }
.work--wide { grid-column: span 2; }
.works.is-filtered .work { grid-row: auto; grid-column: auto; }
.works:not(.is-filtered) .work--extra { display: none; } /* home grid: non-featured projects appear only under a category chip */
.work article { position: relative; height: 100%; border-radius: var(--radius); overflow: hidden; }
.work__img { position: absolute; inset: 0; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.work:hover .work__img img { transform: scale(1.14); }
.work article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,9,9,.88)); }
.work__cap { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; transition: transform .6s var(--ease-out); }
.work:hover .work__cap { transform: translateY(-8px); }
.work__tag { display: inline-block; background: var(--red); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; margin-bottom: 10px; }
.work__cap h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.55rem; text-transform: uppercase; line-height: 1.1; }
.work__cap p { color: #cfc9c6; font-size: .9rem; margin-top: 4px; }
.big-link {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: clamp(26px, 3vw, 40px); border-top: 1px solid var(--line-dark);
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 7.4vw, 7rem); line-height: 1; text-transform: uppercase;
  transition: color .4s;
}
.big-link__arrow { position: relative; flex: none; width: .9em; height: .5em; transition: transform .6s var(--ease-out); }
.big-link__arrow::before { content: ""; position: absolute; left: 0; right: .04em; top: 50%; height: max(2px, .035em); margin-top: -1px; background: currentColor; }
.big-link__arrow::after { content: ""; position: absolute; right: .02em; top: 50%; width: .36em; height: .36em; border-top: max(2px, .035em) solid; border-right: max(2px, .035em) solid; transform: translateY(-50%) rotate(45deg); }
.big-link:hover { color: var(--red); }
.big-link:hover .big-link__arrow { transform: translateX(.15em); }

/* ---------- 15. Pricing ---------- */
/* three packages: image on top, details below */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.way {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden;
}
.way__img { overflow: hidden; aspect-ratio: 16 / 10; }
.way__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.way:hover .way__img img { transform: scale(1.05); }
.way__body { display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 38px); }
.way__kicker { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.way__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.05; text-transform: uppercase; margin-top: 10px; }
.way__price { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-top: 14px; font-variant-numeric: tabular-nums; }
.way__price small { font-family: var(--f-body); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8e8784; }
.way__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding-bottom: 3px; border-bottom: 1.5px solid var(--red); font-weight: 700; font-size: .9rem; }
.way__list { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; font-size: .92rem; color: var(--text); }
.way__list li { display: flex; gap: 12px; }
.way__list li::before { content: "—"; color: var(--red); }
.way--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.way--dark .way__list { color: var(--text-dark); }
.ways__more { margin-top: 24px; text-align: center; color: var(--text); font-size: .95rem; }
.ways__more strong { color: var(--ink); }
.ways__more a { margin-left: 6px; color: var(--red); font-weight: 700; border-bottom: 1.5px solid currentColor; }

/* estimate builder + live summary */
.builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px 28px; align-items: start; margin-top: clamp(80px, 9vw, 130px); scroll-margin-top: 100px; }
.builder__intro { grid-column: 1 / -1; }
.builder__kicker { display: flex; align-items: center; gap: 14px; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8e8784; }
.builder__kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.builder__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.04; text-transform: uppercase; margin-top: 14px; max-width: 18ch; text-wrap: balance; }
.builder__form { background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(22px, 3.2vw, 46px); min-width: 0; }
.builder__head h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; }
.builder__head p { color: var(--text); font-size: .92rem; margin-top: 4px; }
.builder__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--line-light); }
.builder__steps li { display: grid; gap: 4px; padding: 12px 14px; border-right: 1px solid var(--line-light); min-width: 0; }
.builder__steps li:last-child { border-right: 0; }
.builder__steps span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.builder__steps em, .builder__group legend em { font-style: normal; color: var(--red); margin-right: 6px; }
.builder__steps strong { font-weight: 500; font-size: .84rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.builder__group { min-width: 0; margin: 30px 0 0; padding: 26px 0 0; border: 0; border-top: 1px dashed var(--line-light); }
.builder__group legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.builder__group > :not(legend) { clear: both; }
.qty-list { display: grid; gap: 8px; }
.qty {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 12px 12px 18px;
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); transition: border-color .3s, background .3s;
}
.qty.is-on { background: var(--paper-2); border-color: var(--ink); }
.qty p { display: grid; min-width: 0; }
.qty strong { font-size: .98rem; }
.qty p span { font-size: .84rem; color: var(--text); }
.stepper { flex: none; display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); font-size: 1.25rem; line-height: 1; transition: background .3s, color .3s, opacity .3s; }
.stepper button:first-child { border: 1px solid var(--line-light); color: var(--text); }
.stepper button:first-child:hover { border-color: var(--ink); color: var(--ink); }
.stepper button:last-child { background: var(--ink); color: var(--white); }
.stepper button:last-child:hover { background: var(--red); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.builder__hint { font-size: .84rem; color: var(--text); margin-top: 12px; }
.builder__hint.is-alert { color: var(--red); font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tile span {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px;
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); transition: background .3s, border-color .3s, color .3s;
}
.tile:hover span { border-color: #b9b2ae; }
.tile strong { font-size: .94rem; }
.tile small { flex: none; font-family: var(--f-mono); font-size: .74rem; color: var(--text); }
.tile input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tile input:checked + span small { color: var(--text-dark); }
.tile input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.summary {
  position: sticky; top: 110px; overflow: hidden;
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(26px, 2.8vw, 40px);
  box-shadow: 0 50px 90px -40px rgba(17,16,16,.55);
}
.summary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }
.summary__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.summary__label { display: flex; align-items: center; gap: 14px; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.summary__label::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.summary__reset { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark); transition: color .3s; }
.summary__reset:hover { color: var(--white); }
.summary__empty { margin-top: 26px; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.1; text-transform: uppercase; color: #d6d1ce; }
.summary__lines { margin-top: 18px; }
.summary__lines li { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px dashed var(--line-dark); font-size: .9rem; color: #d6d1ce; }
.summary__lines li span:last-child { flex: none; color: var(--white); font-variant-numeric: tabular-nums; }
.summary__lines li.is-mod { color: var(--text-dark); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.summary__total > span { font-size: .82rem; color: var(--text-dark); }
.summary__total strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 3.4vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.summary__note { font-size: .78rem; color: var(--text-dark); margin-block: 18px 22px; }
.summary__link { display: block; margin-top: 14px; text-align: center; font-size: .86rem; color: var(--text-dark); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.summary__link:hover { color: var(--white); }
.est-bar { display: none; }
@media (max-width: 1024px) {
  .est-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--ink); color: var(--white); border-top: 3px solid var(--red); box-shadow: 0 -20px 40px -20px rgba(0,0,0,.5);
    transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
  }
  .est-bar.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .est-bar p { display: grid; line-height: 1.1; }
  .est-bar p > span { font-size: .74rem; color: var(--text-dark); }
  .est-bar strong { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
  .est-bar__btn { padding: 12px 20px; border-radius: 40px; background: var(--red); font-weight: 700; font-size: .86rem; white-space: nowrap; }
  .has-est-bar .whatsapp, .has-est-bar .to-top.is-visible { transform: translateY(-74px); }
}
/* "hover" vs "tap" wording for pointer types */
.touch-only { display: none; }
@media (hover: none), (pointer: coarse) {
  .hover-only { display: none; }
  .touch-only { display: inline; }
}

/* ---------- 16. Why us ---------- */
.why__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(50px, 7vw, 100px); align-items: center; }
.why__media { position: relative; padding: 0 0 40px 40px; }
.why__media .clip { aspect-ratio: 5 / 6; }
.why__float {
  position: absolute; left: 0; bottom: 0; background: var(--paper-2); color: var(--ink);
  display: grid; grid-template-columns: repeat(2, auto); gap: 22px 44px; padding: 28px 32px;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); border-radius: var(--radius);
}
.why__float div { display: flex; flex-direction: column-reverse; }
.why__float dt { font-size: .8rem; color: #8e8784; font-weight: 600; }
.why__float dd { font-family: var(--f-display); font-size: 2.3rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.skills { display: grid; gap: 26px; margin-top: 34px; }
.skill p { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.skill p span { font-family: var(--f-mono); color: var(--red); }
.skill__track { height: 4px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.skill__track span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--red-deep), var(--red)); transform-origin: left; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.office { border: 1px solid var(--line-dark); padding: 22px 24px; border-radius: var(--radius); display: grid; gap: 2px; transition: border-color .4s; }
.office:hover { border-color: var(--red); }
.office__country { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.office__time { color: var(--text-dark); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.office strong { font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; }
.office a { color: var(--text-dark); font-size: .92rem; }

/* ---------- 16b. Team ---------- */
.team { background: var(--paper-2); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); }
.member { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; transition: border-color .4s, box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.member:hover { border-color: transparent; box-shadow: 0 30px 50px -30px rgba(17,16,16,.35); transform: translateY(-4px); }
.member__photo { margin: 0; aspect-ratio: 7 / 8; overflow: hidden; background: var(--ink-3); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1s var(--ease-out), filter .6s; }
.member:hover .member__photo img { transform: scale(1.04); filter: grayscale(.3); }
.member__body { position: relative; flex: 1; padding: 20px 22px 24px; border-top: 3px solid var(--red); }
.member__role { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); padding-right: 40px; }
.member__name { margin-top: 6px; font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; padding-right: 40px; }
.member__bio { margin-top: 10px; font-size: .88rem; line-height: 1.6; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.member:hover .member__bio, .member:focus-within .member__bio { -webkit-line-clamp: unset; }
.member__in { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.member__in svg { width: 15px; height: 15px; fill: currentColor; }
.member__in:hover { background: #0a66c2; border-color: #0a66c2; color: var(--white); }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .member { flex-direction: row; }
  .member__photo { flex: none; width: 38%; aspect-ratio: auto; }
  .member__body { padding: 14px 14px 16px; border-top: 0; border-left: 3px solid var(--red); }
  .member__name { font-size: 1.15rem; }
  .member__bio { -webkit-line-clamp: 3; font-size: .82rem; }
  .member__in { right: 10px; top: 10px; width: 30px; height: 30px; }
}
@media (hover: none) { .member__bio { -webkit-line-clamp: unset; } }

/* ---------- 17. Testimonials ---------- */
.slider-btns { display: flex; gap: 10px; }
.round-btn { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 1.1rem; transition: background .35s, color .35s, border-color .35s; }
.round-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 52px) / 3); gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(30px, 3vw, 42px); display: flex; flex-direction: column; position: relative; }
.t-card::before { content: "\201C"; font-family: var(--f-display); font-size: 6rem; line-height: .7; color: var(--red); height: 44px; }
.t-card__stars { color: var(--red); letter-spacing: .2em; margin: 6px 0 18px; }
.t-card blockquote { margin: 0; flex: 1; font-size: 1.04rem; line-height: 1.75; color: #3a3533; }
.t-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-light); color: #8e8784; font-size: .88rem; }
.t-card figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-family: var(--f-display); font-size: 1.1rem; flex: none; }
.t-card--dark { background: var(--ink); border-color: var(--ink); }
.t-card--dark blockquote { color: #d3cdca; }
.t-card--dark figcaption { border-color: var(--line-dark); }
.t-card--dark figcaption strong { color: var(--white); }
.t-card--dark .avatar { background: var(--red); }

/* ---------- 18. FAQ ---------- */
.faq { background: var(--paper-2); }
.faq__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.accordion { margin-top: 26px; }
.qa { border-bottom: 1px solid var(--line-light); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 24px; font-weight: 700; font-size: clamp(1rem, 1.3vw, 1.15rem); transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-light);
  background:
    linear-gradient(var(--red), var(--red)) center/12px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center/2px 12px no-repeat;
  transition: transform .45s var(--ease), background-color .3s;
}
.qa[open] summary::after { transform: rotate(135deg); }
.qa summary:hover { color: var(--red); }
.qa__body { overflow: hidden; }
.qa__body p { padding-bottom: 24px; color: var(--text); max-width: 64ch; }
.ask {
  position: sticky; top: 110px; background: var(--ink); color: var(--white);
  padding: clamp(32px, 3vw, 44px); border-radius: var(--radius); overflow: hidden;
}
.ask::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border: 28px solid rgba(222,0,0,.18); border-radius: 50%; }
.ask h3 { font-family: var(--f-display); font-weight: 500; font-size: 2rem; text-transform: uppercase; line-height: 1.1; }
.ask > p { color: var(--text-dark); margin-block: 14px 26px; }
.ask__list { display: grid; gap: 12px; margin-bottom: 28px; font-weight: 600; position: relative; z-index: 1; }
.ask__list a { display: inline-flex; gap: 12px; align-items: center; }
.ask__list a::before { content: ""; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.ask__list a:hover { color: var(--red); }

/* ---------- 19. Regions ---------- */
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.region {
  position: relative; overflow: hidden; min-height: 150px; padding: 28px 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2);
  transition: border-color .4s;
}
.region::before { content: ""; position: absolute; inset: 0; background: var(--red); clip-path: circle(0% at 100% 0%); transition: clip-path .7s var(--ease); }
.region::after { content: ""; position: absolute; right: 24px; top: 24px; width: 10px; height: 10px; border-top: 1.5px solid var(--red); border-right: 1.5px solid var(--red); transform: rotate(45deg); transition: border-color .4s; }
.region:hover::before { clip-path: circle(150% at 100% 0%); }
.region:hover::after { border-color: var(--white); }
.region h3, .region p { position: relative; }
.region h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; text-transform: uppercase; }
.region p { color: var(--text-dark); font-size: .88rem; transition: color .4s; }
.region:hover p { color: var(--white); }

/* ---------- 20. Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 10px; margin-top: 30px; }
.contact-list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.contact-list span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #8e8784; }
.contact-list a { font-weight: 700; font-size: 1.1rem; transition: color .3s; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--red); }
.contact-form { background: var(--paper-2); padding: clamp(28px, 3.5vw, 48px); border-radius: var(--radius); border-top: 4px solid var(--red); box-shadow: 0 40px 80px -50px rgba(17,16,16,.4); }
.contact-form h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.8rem; text-transform: uppercase; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-bottom: 26px; }
.field { position: relative; min-width: 0; }
.field--full { grid-column: 1 / -1; }
/* underline-only fields */
.field input, .field select, .field textarea {
  width: 100%; padding: 26px 0 10px; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-light); border-radius: 0;
  color: var(--ink); font-size: 1rem; outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field textarea + label { white-space: normal; }
.field label { position: absolute; left: 0; top: 22px; color: #8e8784; pointer-events: none; transition: all .3s var(--ease); transform-origin: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 24px); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-value + label { top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--red); }
.field--select::after { content: ""; position: absolute; right: 4px; top: 30px; width: 8px; height: 8px; border-right: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(45deg); pointer-events: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.checks { display: flex; gap: 28px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .94rem; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border: 1.5px solid #b9b2ae; border-radius: 3px; margin: 0; cursor: pointer; transition: all .25s; }
.check input:checked { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--red); }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: #1f7a3a; }

/* ---------- 21. CTA ---------- */
.cta { position: relative; padding-block: clamp(90px, 10vw, 140px); color: var(--white); overflow: hidden; background: var(--red-deep); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 125%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(160,0,0,.96) 0%, rgba(120,0,0,.88) 45%, rgba(17,16,16,.75) 100%); }
.cta__inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.02; text-transform: uppercase; max-width: 14ch; text-wrap: balance; }
.cta p { font-size: 1.1rem; margin-top: 16px; color: #f2dede; }
.cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 22. Footer ---------- */
.footer { background: #0b0a0a; color: var(--text-dark); padding-top: clamp(70px, 8vw, 110px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(30px, 5vw, 70px); padding-bottom: 60px; }
.footer__brand img { height: 96px; width: auto; margin: -10px 0 16px -14px; }
.footer__brand p { max-width: 36ch; font-size: .94rem; }
.footer__title { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; color: var(--white); margin-bottom: 22px; }
.footer__title::after { content: ""; display: block; width: 28px; height: 2px; background: var(--red); margin-top: 10px; }
.footer ul li { margin-bottom: 11px; font-size: .94rem; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--white); }
.footer address { display: grid; gap: 11px; font-size: .94rem; overflow-wrap: anywhere; }
.footer__cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--white); font-weight: 700; border-bottom: 1.5px solid var(--red); padding-bottom: 4px; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials li { margin: 0 !important; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--white); font-size: .8rem; font-weight: 800; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__giant {
  display: flex; justify-content: space-between; gap: 2vw; flex-wrap: nowrap;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; line-height: .85;
  font-size: clamp(3rem, 10.5vw, 10.5rem); letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px #2e2a29; padding-block: 20px 30px; user-select: none; white-space: nowrap;
}
.footer__giant span:last-child { -webkit-text-stroke-color: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid #1e1b1a; font-size: .86rem; }
.footer__bottom ul { display: flex; gap: 24px; }
.footer__bottom li { margin: 0 !important; }

/* floating buttons */
.whatsapp, .to-top {
  position: fixed; z-index: 90; display: grid; place-items: center; border-radius: 50%;
  right: max(22px, env(safe-area-inset-right, 0px)); transition: transform .4s var(--ease-out), opacity .4s;
}
.whatsapp { bottom: max(22px, env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; background: #25d366; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.whatsapp svg { width: 30px; height: 30px; fill: var(--white); }
.whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.whatsapp:hover { transform: scale(1.08); }
.whatsapp.is-away { opacity: 0; transform: scale(.6); pointer-events: none; } /* hidden over the home hero so it never covers the quote card */
.to-top { bottom: calc(max(22px, env(safe-area-inset-bottom, 0px)) + 74px); width: 46px; height: 46px; margin-right: 7px; background: var(--ink); color: var(--white); border: 1px solid var(--line-dark); opacity: 0; transform: translateY(20px); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); border-color: var(--red); }

/* ---------- 22b. Project tiles (home grid + projects index) ---------- */
.work > a { display: block; height: 100%; }
.work > a:focus-visible { outline-offset: 4px; }
.works--even { grid-auto-rows: clamp(260px, 25vw, 360px); margin-bottom: 0; }
.filter sup { font-family: var(--f-mono); font-size: .68em; opacity: .6; margin-left: 2px; }

/* ---------- 22c. Page hero (projects index) ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--white); padding: clamp(170px, 18vw, 230px) 0 clamp(50px, 6vw, 80px); }
.page-hero__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.2rem, 11vw, 10rem); line-height: .9; text-transform: uppercase; margin-top: 26px; }
.page-hero__title .line { display: block; overflow: hidden; }
.page-hero__title .line > span { display: inline-block; }
.page-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.page-hero .lead { color: var(--text-dark); }
.page-hero__count { flex: none; display: grid; justify-items: end; line-height: 1; }
.page-hero__count strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 6vw, 5rem); color: var(--red); }
.page-hero__count span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark); margin-top: 6px; }
.projects-list { padding-top: clamp(40px, 5vw, 70px); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); }
.crumbs span[aria-hidden] { color: var(--red); }

/* ---------- 22d. Case study pages ---------- */
.case-hero { min-height: max(600px, 92svh); padding-top: 160px; }
.case-hero .hero__shade { background: linear-gradient(180deg, rgba(10,9,9,.55) 0%, rgba(10,9,9,0) 28%, rgba(10,9,9,.15) 50%, rgba(10,9,9,.9) 100%); }
.case-hero__content { position: relative; z-index: 2; padding-bottom: clamp(30px, 4vw, 50px); }
.case-hero__code { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.case-hero__code span { font-family: var(--f-mono); font-weight: 500; letter-spacing: .05em; color: var(--red); padding: 4px 8px; border: 1px solid currentColor; border-radius: 2px; }
.case-hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6.6vw, 6.4rem); line-height: .98; text-transform: uppercase; margin-top: 16px; max-width: 16ch; text-wrap: balance; }
.case-hero__sub { margin-top: 18px; max-width: 56ch; font-size: clamp(1rem, 1.2vw, 1.12rem); color: #e6e1de; }
.case-facts { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.2); background: rgba(17,16,16,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.case-facts__grid { display: grid; grid-template-columns: .8fr .8fr 1.6fr 1fr; }
.case-facts__grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 20px 24px; border-right: 1px solid rgba(255,255,255,.12); }
.case-facts__grid > div:first-child { padding-left: 0; }
.case-facts__grid > div:last-child { border-right: 0; }
.case-facts dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark); }
.case-facts dd { font-weight: 600; font-size: .95rem; line-height: 1.4; }

/* drawing-led projects: paper hero, drawing contained on the right */
.nav-solid .nav { background: rgba(17,16,16,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.hero--paper { background: var(--paper); color: var(--ink); }
.hero--paper .hero__media { background: var(--paper-2); }
.hero--paper .hero__media img { object-fit: contain; object-position: right center; padding: 150px max(var(--gutter), 4vw) 150px 48%; }
.hero--paper .case-hero__title { font-size: clamp(2.4rem, 4.6vw, 4.6rem); max-width: 13ch; }
.hero--paper .case-hero__content { max-width: min(100%, calc(var(--container) * .5 + var(--gutter))); margin-left: max(0px, calc((100% - var(--container)) / 2 - var(--gutter))); }
.hero--paper .hero__shade { background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 30%, rgba(243,241,238,0) 52%); }
.hero--paper .crumbs, .hero--paper .crumbs [aria-current] { color: var(--text); }
.hero--paper .case-hero__sub { color: var(--text); }
.hero--paper .case-facts { background: rgba(255,255,255,.75); border-color: var(--line-light); }
.hero--paper .case-facts__grid > div { border-color: var(--line-light); }
.hero--paper .case-facts dt { color: #8e8784; }

.case-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.case-split > :first-child { position: sticky; top: 120px; }
.case-label { margin-top: 18px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); text-transform: uppercase; line-height: 1.1; }
.case-lead { font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.5; letter-spacing: -.01em; color: #2b2725; text-wrap: pretty; }
.case-mini { margin-top: 44px; font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #8e8784; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.case-tags li { padding: 9px 16px; border: 1px solid var(--line-light); border-radius: 40px; background: var(--paper-2); font-weight: 600; font-size: .88rem; }

.case-steps { border-top: 1px solid var(--line-dark); }
.case-steps li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 24px; padding-block: 30px; border-bottom: 1px solid var(--line-dark); }
.case-steps__num { grid-row: span 2; font-family: var(--f-mono); color: var(--red); padding-top: 6px; }
.case-steps h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2rem); text-transform: uppercase; line-height: 1.1; }
.case-steps p { color: var(--text-dark); max-width: 60ch; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.gallery__item:first-child, .gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; }
.gallery__link { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--ink); }
.gallery__item:first-child .gallery__link { aspect-ratio: 16 / 8; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery__link:hover img { transform: scale(1.04); }
.gallery figcaption, .sheet figcaption { display: flex; gap: 12px; margin-top: 12px; font-size: .88rem; color: var(--text); }
.gallery figcaption span { font-family: var(--f-mono); color: var(--red); }

.case-drawings { background: var(--paper-2); }
.compare, .sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.compare + .compare, .compare + .sheets { margin-top: clamp(30px, 4vw, 50px); }
.sheets--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.sheet { position: relative; }
.sheet__label { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 10px; background: var(--ink); color: var(--white); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
.sheet:nth-child(2) .sheet__label { background: var(--red); }
.sheet__link { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: clamp(16px, 2vw, 28px); background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; }
.sheet__link:hover { border-color: var(--ink); box-shadow: 0 30px 50px -36px rgba(17,16,16,.4); }
.sheet__link img { width: 100%; height: 100%; object-fit: contain; }

.case-deliv { margin-top: 26px; }
.case-deliv li { align-items: flex-start; font-weight: 500; color: #e6e1de; }
.case-results .h2 { margin-bottom: 30px; }
.case-results__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.result { padding: 26px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); transition: border-color .4s; }
.result:hover { border-color: var(--red); }
.result h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; }
.result h3::before { content: ""; display: block; width: 26px; height: 2px; background: var(--red); margin-bottom: 16px; }
.result p { margin-top: 8px; font-size: .92rem; color: var(--text-dark); }

.case-next { padding-block: clamp(70px, 8vw, 120px); background: var(--paper); }
.case-next__kicker { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #8e8784; }
.case-next__kicker span:first-child { color: var(--red); }
.case-next .big-link { border-color: var(--line-light); font-size: clamp(2rem, 6.4vw, 6rem); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; padding: 60px 10px; background: rgba(10,9,9,.95); color: var(--white); }
.lightbox[hidden] { display: none; }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; margin: 0; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100svh - 170px); object-fit: contain; border-radius: var(--radius); background: var(--white); }
.lightbox__figure figcaption { font-size: .92rem; color: #d6d1ce; text-align: center; }
.lightbox__close, .lightbox__nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); position: relative; transition: background .3s, border-color .3s; justify-self: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__close::before, .lightbox__close::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 1.5px; background: var(--white); transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }
.lightbox__nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-top: 1.5px solid var(--white); border-right: 1.5px solid var(--white); transform: translateX(-2px) rotate(45deg); }
.lightbox__nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.lightbox__count { position: absolute; left: 24px; top: 32px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; color: var(--text-dark); }

@media (max-width: 1024px) {
  .case-split { grid-template-columns: minmax(0, 1fr); }
  .case-split > :first-child { position: static; }
  .case-facts__grid { grid-template-columns: 1fr 1fr; }
  .case-facts__grid > div:nth-child(2) { border-right: 0; }
  .case-facts__grid > div:nth-child(3) { padding-left: 0; }
  .case-facts__grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero--paper .case-facts__grid > div:nth-child(-n+2) { border-color: var(--line-light); }
  .hero--paper .hero__media img { padding: 130px var(--gutter) 46% 30%; object-position: right top; }
  .hero--paper .case-hero__content { max-width: none; margin-left: 0; }
  .hero--paper .hero__shade { background: linear-gradient(180deg, rgba(243,241,238,0) 30%, var(--paper) 62%); }
}
@media (max-width: 680px) {
  .case-hero { padding-top: 130px; }
  .case-hero .hero__shade { background: linear-gradient(180deg, rgba(10,9,9,.55) 0%, rgba(10,9,9,0) 22%, rgba(10,9,9,.55) 42%, rgba(10,9,9,.94) 70%); }
  .case-facts__grid > div { padding: 14px 12px 14px 0; }
  .case-facts__grid > div:nth-child(even) { padding-left: 12px; }
  .hero--paper .hero__media img { padding: 120px 16px 80% 16px; object-position: center top; }
  .hero--paper .hero__shade { background: linear-gradient(180deg, rgba(243,241,238,0) 30%, var(--paper) 48%); }
  .gallery, .compare, .sheets, .case-results__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery__item:first-child .gallery__link { aspect-ratio: 3 / 2; }
  .case-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; }
  .page-hero__foot { flex-direction: column; align-items: flex-start; }
  .page-hero__count { justify-items: start; }
  .works--even { grid-auto-rows: 300px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 70px 12px 20px; gap: 16px; }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav { grid-row: 2; }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1200px) {
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { grid-template-columns: auto minmax(0, 1fr); }
  .nav__logo img { margin-left: -12px; }
  .nav__actions { gap: 12px; }
  .service a { grid-template-columns: 60px minmax(0, 1fr) 56px; }
  .service__desc { grid-column: 2; grid-row: 2; }
  .service__go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 1024px) {
  .about__grid, .why__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__mark { display: none; }
  .qcard { width: 100%; max-width: 560px; }
  .ways, .builder { grid-template-columns: 1fr; }
  .way { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); grid-template-rows: none; }
  .way__img { aspect-ratio: auto; min-height: 280px; }
  .summary { position: static; }
  .process__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work--wide { grid-column: auto; } /* plain 2-column grid: no holes beside tall/wide cards */
  .work--tall { grid-row: auto; }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-track { grid-auto-columns: calc((100% - 26px) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .ask { position: static; }
  .about__media { max-width: 560px; }
}
@media (max-width: 680px) {
  .topbar__note, .hide-sm { display: none; }
  .nav__talk { display: none; }
  .nav__inner { height: 74px; }
  .nav__logo img { height: 60px; }
  .hero { padding-top: 114px; }
  .hero__mark { top: 130px; }
  .hero__caption { gap: 10px 20px; }
  .hero__caption-type { display: none; }
  .hero:not(.case-hero) .hero__shade { background: linear-gradient(180deg, rgba(10,9,9,.55) 0%, rgba(10,9,9,.62) 30%, rgba(10,9,9,.7) 60%, rgba(10,9,9,.9) 100%); }
  .hero__pill { font-size: .76rem; }
  .qcard { --q-radius: 20px; }
  .qcard__head, .qcard__body, .qcard__foot { padding-inline: 18px; }
  .qcard__head { flex-direction: column; gap: 10px; }
  .qcard__rate { text-align: left; }
  .qcard__rate small { display: inline; margin: 0 0 0 8px; }
  .hero__scroll { display: none; }
  .features, .form-grid, .offices, .tiles { grid-template-columns: 1fr; }
  .way { grid-template-columns: 1fr; }
  .way__img { aspect-ratio: 16 / 9; min-height: 0; }
  .builder__steps { grid-template-columns: 1fr; }
  .builder__steps li { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .builder__steps li:last-child { border-bottom: 0; }
  .builder__steps strong { text-align: right; }
  .qty { padding-left: 14px; }
  .process__track, .works, .footer__grid { grid-template-columns: 1fr; }
  .works { grid-auto-rows: 300px; }
  /* category chips: one swipeable row instead of six wrapped rows */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .step { min-height: 0; }
  .step h3 { margin-top: 28px; }
  .cta__btns .btn { flex: 1 1 100%; }
  .topbar__list { gap: 18px; flex-wrap: nowrap; }
  .region-grid { grid-template-columns: 1fr; gap: 12px; }
  .region { min-height: 0; padding: 22px 56px 22px 22px; }
  .region::after { right: 24px; top: 50%; margin-top: -5px; }
  .t-track { grid-auto-columns: 88%; }
  .service a { grid-template-columns: 1fr 48px; gap: 10px 16px; padding-block: 26px; }
  .service__num { grid-column: 1; }
  .service__title { grid-column: 1; }
  .service__desc { grid-column: 1; grid-row: auto; }
  .service__go { grid-column: 2; grid-row: 1 / span 3; width: 46px; height: 46px; }
  .about__badge { right: 0; bottom: 20px; padding: 20px 22px; }
  .why__media { padding: 0 0 30px 0; }
  .why__float { position: relative; margin-top: -60px; margin-inline: 16px; grid-template-columns: 1fr 1fr; }
  .corner { width: 110px; height: 110px; }
  .corner--tl { left: -10px; top: -10px; }
  .footer__giant { font-size: 12.5vw; flex-direction: column; gap: 0; }
}

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}
/* laptop-height screens: keep the whole quote card in the first view */
@media (min-width: 1025px) and (max-height: 860px) {
  .qcard__sub, .qcard__perks { display: none; }
  .hero__copy { gap: 20px; }
}
@media (max-width: 480px) {
  .qchips { grid-template-columns: 1fr; }
  .qcard__foot p { display: none; }
  .qcard__btns { width: 100%; justify-content: flex-end; }
  .qcard__back { margin-right: auto; }
}
@media (max-width: 380px) {
  .topbar { font-size: .76rem; }
  .topbar__list { gap: 14px; }
}
