/* ==========================================================================
   Shokrullahgarage — public site styles
   Mobile-first. Breakpoint enhancements live in responsive.css.

   Theme: light by default. A few sections (photo heroes, before/after
   showcase, footer) switch to a graphite "dark" token set — see the
   DARK SCOPE block below. Change colours only in these two token blocks.
   ========================================================================== */

:root {
  /* Brand accent */
  --c-accent: #1f5bd6;
  --c-accent-rgb: 31, 91, 214;
  --c-accent-hover: #1849b3;
  --c-accent-contrast: #ffffff;
  --c-whatsapp: #25d366;
  --c-success: #2f9e6a;
  --c-graphite: #1f2226;      /* the darkest tone used on the site */

  /* LIGHT tokens (default) */
  --c-bg: #f6f5f2;            /* page background (warm off-white) */
  --c-bg-alt: #ecebe6;        /* alternate section background */
  --c-surface: #ffffff;       /* cards, asides, form panels */
  --c-field: #ffffff;         /* form inputs */
  --c-media: #dcdad4;         /* image placeholder background */
  --c-text: #33363b;
  --c-text-strong: #17181b;
  --c-soft: #4a4d54;          /* secondary body text */
  --c-muted: #676b72;
  --c-label: #6e737b;         /* small caps labels */
  --c-border: rgba(23, 24, 27, 0.12);
  --c-border-strong: rgba(23, 24, 27, 0.26);
  --c-invert-bg: #1f2226;     /* hover fill for outline buttons / chips */
  --c-invert-fg: #ffffff;
  --c-accent-text: #1a4fbf;   /* accent used for text (AA on light) */
  --c-error: #c0182a;
  --c-header-bg: rgba(246, 245, 242, 0.92);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.75rem, 9vw, 6.5rem);
  --fs-h1: clamp(2.4rem, 6.5vw, 4.75rem);
  --fs-h2: clamp(2rem, 4.8vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 1.75rem);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 136px);
  --header-h: 68px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 20px 40px -24px rgba(23, 24, 27, 0.35);
  --overlay: 24, 26, 30;      /* rgb of the photo overlays */
}

/* ---------- DARK SCOPE (graphite, not black) ---------- */
.on-dark,
.hero,
.page-hero.has-image,
.case-hero,
.section-dark,
.site-footer,
.lightbox,
.has-hero .site-header:not(.is-scrolled):not(.is-open) {
  --c-bg: #1f2226;
  --c-bg-alt: #262a2f;
  --c-surface: #2a2e34;
  --c-field: #24272c;
  --c-media: #2e3238;
  --c-text: #e6e5e1;
  --c-text-strong: #ffffff;
  --c-soft: #cfd2d6;
  --c-muted: #aeb2b8;
  --c-label: #a2a7ae;
  --c-border: rgba(255, 255, 255, 0.12);
  --c-border-strong: rgba(255, 255, 255, 0.28);
  --c-invert-bg: #ffffff;
  --c-invert-fg: #1b1d21;
  --c-accent-text: #8fb3ff;
  --c-error: #ff7482;
  color: var(--c-text);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: 0.01em; color: var(--c-text-strong); text-transform: uppercase; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
hr.rule { border: 0; border-top: 1px solid var(--c-border); margin: 24px 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--c-graphite); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 980px; }
.section { padding-block: var(--section-y); position: relative; background: var(--c-bg); }
.section-tight-top { padding-top: clamp(32px, 5vw, 64px); }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-bg); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: var(--fs-h2); }
.section-title-sm { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--c-label); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-accent { color: var(--c-accent-text); }
.eyebrow-accent::before { background: var(--c-accent); }
.muted { color: var(--c-muted); }
.small { font-size: 0.875rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--c-soft); line-height: 1.6; }
.pre-line { white-space: pre-line; }
.mini-heading { font-size: 1rem; letter-spacing: 0.16em; color: var(--c-label); margin: 28px 0 14px; }
.plain-list { list-style: none; }
.empty-state {
  border: 1px dashed var(--c-border-strong); padding: 48px 24px; text-align: center; color: var(--c-muted);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-text-strong); --btn-bd: var(--c-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { --btn-bg: var(--c-accent); --btn-fg: var(--c-accent-contrast); --btn-bd: var(--c-accent); }
.btn-accent:hover { --btn-bg: var(--c-accent-hover); --btn-bd: var(--c-accent-hover); }
.btn-light { --btn-bg: #ffffff; --btn-fg: #17181b; --btn-bd: #ffffff; }
.btn-light:hover { --btn-bg: #f1f0ec; --btn-bd: #f1f0ec; }
.btn-outline:hover { --btn-bg: var(--c-invert-bg); --btn-fg: var(--c-invert-fg); --btn-bd: var(--c-invert-bg); }
.btn-ghost { --btn-bd: transparent; }
.btn-ghost:hover { --btn-bd: var(--c-border-strong); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .icon { flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem; text-decoration: none; color: var(--c-text-strong);
  padding-block: 6px; border-bottom: 1px solid transparent; transition: border-color 0.2s, gap 0.2s var(--ease);
}
.link-arrow:hover { border-color: var(--c-accent); gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--c-header-bg); border-bottom: 1px solid var(--c-border);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* Over the homepage photo: transparent with white text until the page scrolls. */
.has-hero .site-header { position: fixed; left: 0; right: 0; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) {
  background: linear-gradient(rgba(var(--overlay), .55), rgba(var(--overlay), 0));
  border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* backdrop-filter makes the header the containing block for the fixed mobile menu,
   which would squeeze the menu into the header's height, so drop it while open. */
.site-header.is-open { background: var(--c-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo { max-height: 40px; width: auto; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.16em;
  color: var(--c-text-strong); text-transform: uppercase; line-height: 1;
}
.brand-word-lg { font-size: 2rem; margin-bottom: 16px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }

/* Mobile navigation (overlay). Desktop layout in responsive.css */
.nav-toggle {
  width: 48px; height: 48px; display: inline-grid; place-items: center; background: transparent;
  border: 1px solid var(--c-border-strong); border-radius: var(--radius); cursor: pointer; padding: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--c-text-strong); position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-bg);
  padding: 24px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.nav-list { list-style: none; border-top: 1px solid var(--c-border); }
.nav-link {
  display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--c-border);
  font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--c-text-strong);
}
.nav-link.is-active { color: var(--c-accent-text); }
.nav-mobile-extra { display: grid; gap: 12px; }
body.nav-open { overflow: hidden; }

/* ---------- Flash messages ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; left: 16px; z-index: 150; display: grid; gap: 10px; pointer-events: none; }
.flash {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; justify-content: space-between;
  background: #ffffff; color: #17181b; padding: 14px 16px 14px 20px; border: 1px solid rgba(23,24,27,.1); border-left: 4px solid var(--c-success);
  box-shadow: var(--shadow); max-width: 520px; margin-left: auto; width: 100%;
  animation: flash-in 0.35s var(--ease);
}
.flash p { margin: 0; font-weight: 500; }
.flash-error { border-left-color: var(--c-accent); }
.flash-warning { border-left-color: #e0a100; }
.flash-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #555; min-width: 32px; min-height: 32px; }
.flash.is-hiding { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero (dark, over photography) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate;
  padding: calc(var(--header-h) + 48px) 0 clamp(72px, 12vh, 120px); overflow: hidden; background: var(--c-bg);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.04); animation: hero-zoom 14s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--overlay), .15) 0%, rgba(var(--overlay), .35) 45%, rgba(var(--overlay), .85) 100%),
              linear-gradient(90deg, rgba(var(--overlay), .6) 0%, rgba(var(--overlay), 0) 70%);
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-content { max-width: var(--container); }
.hero-title { font-size: var(--fs-hero); font-weight: 700; line-height: 0.92; letter-spacing: 0; max-width: 14ch; margin-bottom: 24px; }
.hero-title span { color: transparent; -webkit-text-stroke: 1.5px #ffffff; }
.hero-text { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--c-soft); max-width: 44ch; margin-bottom: 32px; }
.hero-scroll { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 1px solid var(--c-border-strong); border-radius: 14px; transform: translateX(-50%); display: none; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; background: #fff; transform: translateX(-50%); animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

.spec-strip { border-bottom: 1px solid var(--c-border); background: var(--c-surface); overflow: hidden; }
.spec-strip-inner { display: flex; gap: 32px; padding-block: 18px; overflow-x: auto; scrollbar-width: none; }
.spec-strip-inner::-webkit-scrollbar { display: none; }
.spec-strip span { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-label); white-space: nowrap; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 32px; }
.spec-strip span + span::before { content: ""; width: 6px; height: 6px; background: var(--c-accent); transform: rotate(45deg); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--c-border); isolation: isolate; overflow: hidden; background: var(--c-bg-alt); }
.page-hero.has-image { padding-top: clamp(96px, 16vw, 200px); background: var(--c-bg); border-bottom: 0; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--overlay), .45), rgba(var(--overlay), .9)); }
.page-title { font-size: var(--fs-h1); font-weight: 700; max-width: 18ch; }
.page-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--c-soft); max-width: 56ch; margin-top: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--c-muted); margin-bottom: 24px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-text-strong); text-decoration: underline; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); }
.service-card { background: var(--c-surface); display: flex; flex-direction: column; }
.service-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-media); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; filter: saturate(0.9); }
.service-card:hover .service-card-media img { transform: scale(1.05); filter: none; }
.service-card-body { padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card-body p { color: var(--c-muted); }
.service-card-body .link-arrow { margin-top: auto; align-self: flex-start; }
.service-index { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--c-accent-text); letter-spacing: 0.1em; }
.service-card-title { font-size: var(--fs-h3); }
.service-card-title a, .project-card-title a, .service-row-title a { text-decoration: none; }
.service-card-title a:hover, .project-card-title a:hover, .service-row-title a:hover { color: var(--c-accent-text); }

.service-rows { display: grid; gap: clamp(56px, 8vw, 112px); }
.service-row { display: grid; gap: 28px; align-items: center; }
.service-row-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-media); }
.service-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-row:hover .service-row-media img { transform: scale(1.03); }
.service-row-visual { display: grid; gap: 8px; }
.service-row-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.service-row-thumbs a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-media); }
.service-row-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.service-row-thumbs a:hover img { opacity: .8; }
.service-row-body { display: flex; flex-direction: column; gap: 14px; }
.service-row-title { font-size: clamp(2rem, 4vw, 3rem); }
.service-row-body .btn-row { margin-top: 16px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--c-accent); margin-top: 4px; flex-shrink: 0; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 18px; border: 1px solid var(--c-border-strong); background: var(--c-surface); text-decoration: none; font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.tag-list a:hover { background: var(--c-invert-bg); color: var(--c-invert-fg); border-color: var(--c-invert-bg); }

/* ---------- Project cards ---------- */
.project-grid { display: grid; gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.project-card { display: flex; flex-direction: column; }
.project-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-media); position: relative; }
.project-card-media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--c-border); pointer-events: none; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-body { padding-top: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card-body .eyebrow { margin-bottom: 0; }
.project-card-title { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.project-card-services { font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-soft); font-size: 0.95rem; margin: 0; }
.project-card-text { color: var(--c-muted); margin: 0; }
.project-card-body .link-arrow { margin-top: 8px; align-self: flex-start; }

.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 40px; scrollbar-width: thin; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--c-border-strong);
  background: var(--c-surface); text-decoration: none; white-space: nowrap; font-size: 0.9rem; font-weight: 500;
}
.chip:hover { border-color: var(--c-text-strong); }
.chip.is-active { background: var(--c-invert-bg); color: var(--c-invert-fg); border-color: var(--c-invert-bg); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 56px; flex-wrap: wrap; }
.pagination a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--c-border-strong); background: var(--c-surface); text-decoration: none; }
.pagination-status { color: var(--c-muted); }

/* ---------- Before / After slider ---------- */
.ba { margin: 0; }
.ba-frame {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-media);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.ba-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--c-border); pointer-events: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); will-change: clip-path; }
.ba-label {
  position: absolute; top: 16px; z-index: 2; padding: 6px 12px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; background: rgba(var(--overlay), 0.75); color: #fff;
  pointer-events: none; transition: opacity 0.2s;
}
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; background: var(--c-accent); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 48px; transform: translateX(-50%);
  z-index: 3; display: flex; align-items: center; justify-content: center; cursor: ew-resize; outline: none;
}
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba-knob {
  position: relative; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #17181b;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform 0.2s var(--ease), background-color 0.2s;
}
.ba-handle:hover .ba-knob, .ba-frame.is-dragging .ba-knob { transform: scale(1.08); }
.ba-handle:focus-visible .ba-knob { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.ba-frame.is-dragging { cursor: grabbing; }
.ba-hint { color: var(--c-muted); font-size: 0.9rem; margin-top: 20px; text-align: center; }

.ba-list { display: grid; gap: clamp(48px, 8vw, 96px); }
.ba-feature { display: grid; gap: 24px; align-items: center; }
.ba-feature-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ba-feature-info .eyebrow { margin-bottom: 0; }
.ba-feature-title { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.ba-feature-flow { font-family: var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-label); margin: 0; }
.ba-feature-flow span { color: var(--c-accent-text); margin-inline: 6px; }
.ba-feature-services { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-strong); margin: 0; }
.ba-feature-info .btn { margin-top: 12px; }

/* ---------- Process ---------- */
.process { background: var(--c-bg-alt); }
.process-steps { list-style: none; display: grid; gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); }
.process-steps li { background: var(--c-surface); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.process-steps h3 { font-size: 1.5rem; }
.process-steps p { color: var(--c-soft); margin: 0; }
.process-num { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--c-accent); }

/* ---------- Follow / social ---------- */
.follow { border-top: 1px solid var(--c-border); }
.follow-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--c-border-strong); text-decoration: none; transition: background-color .2s, color .2s; }
.social-links a:hover { background: var(--c-invert-bg); color: var(--c-invert-fg); border-color: var(--c-invert-bg); }
.social-links span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.social-links-lg a { padding: 12px 22px; font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; background: var(--c-surface); }
.social-links-lg span { position: static; width: auto; height: auto; clip: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-accent); color: var(--c-accent-contrast); padding-block: clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.07); pointer-events: none;
}
.cta-inner { display: grid; gap: 32px; align-items: end; position: relative; }
.cta-band .eyebrow { color: rgba(255,255,255,.85); }
.cta-band .eyebrow::before { background: rgba(255,255,255,.85); }
.cta-title { font-size: var(--fs-h2); color: #fff; max-width: 16ch; }
.cta-text { color: rgba(255, 255, 255, 0.9); max-width: 52ch; margin-top: 16px; }
.cta-band .btn-accent { --btn-bg: #ffffff; --btn-bd: #ffffff; --btn-fg: #17181b; }
.cta-band .btn-accent:hover { --btn-bg: #f1f0ec; --btn-bd: #f1f0ec; }
.cta-band .btn-outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.75); }
.cta-band .btn-outline:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: #fff; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; gap: 40px; align-items: start; }
.prose { max-width: 70ch; }
.prose .lead { margin-bottom: 20px; }
.detail-aside, .spec-card, .quote-aside, .card-form {
  border: 1px solid var(--c-border); background: var(--c-surface); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start;
}
.aside-title { font-size: 1.75rem; }
.spec-list { margin: 0; display: grid; }
.spec-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--c-border); }
.spec-list > div:first-child { padding-top: 0; }
.spec-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt { font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-label); font-size: 0.9rem; }
.spec-list dd { margin: 0; font-weight: 500; color: var(--c-text-strong); }
.spec-list a { text-decoration: none; }
.spec-list a:hover { text-decoration: underline; }

.case-hero { position: relative; min-height: min(82svh, 820px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; padding: 120px 0 clamp(40px, 6vw, 72px); background: var(--c-bg); }
.case-hero-media { position: absolute; inset: 0; z-index: -1; }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--overlay), .1) 30%, rgba(var(--overlay), .88) 100%); }
.case-title { font-size: var(--fs-hero); font-weight: 700; line-height: 0.92; }
.case-subtitle { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.75rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-soft); margin-top: 16px; }

.stage-section + .stage-section { padding-top: 0; }
.stage-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.stage-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 0.9; color: var(--c-accent); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-item { margin: 0; }
.gallery-item:only-child, .gallery-grid > .gallery-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gallery-item a { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-media); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(var(--overlay), .75); color: #fff; opacity: 0; transition: opacity .2s; }
.gallery-item a:hover .gallery-zoom, .gallery-item a:focus-visible .gallery-zoom { opacity: 1; }
.gallery-item figcaption { font-size: 0.875rem; color: var(--c-muted); padding-top: 10px; }

/* ---------- Workshop videos & steering photos (utils/showcase.py) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.video-item { margin: 0; }
.video-item video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--c-media); }
.video-item figcaption { display: grid; gap: 2px; padding-top: 10px; font-size: 0.875rem; color: var(--c-muted); }
.video-item figcaption strong { color: var(--c-text-strong); font-weight: 600; }
.steering-photos { display: grid; gap: 8px 32px; }
.steering-photos .mini-heading { margin-top: 0; }
.steering-photos .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steering-photos .gallery-grid > .gallery-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.steering-photos .gallery-item a { aspect-ratio: 4 / 3; }
.media-note { margin-top: 20px; font-size: 0.875rem; color: var(--c-muted); }

/* Lightbox (built by gallery.js) */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(var(--overlay), 0.97); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity 0.25s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: var(--c-muted); font-size: 0.9rem; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 12px; min-height: 0; touch-action: pan-y pinch-zoom; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; transition: opacity 0.2s; }
.lightbox-caption { padding: 16px 20px 24px; text-align: center; color: var(--c-soft); min-height: 56px; }
.lightbox-btn { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--c-border); color: #fff; cursor: pointer; border-radius: var(--radius); }
.lightbox-btn:hover { background: rgba(255,255,255,.18); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
body.lightbox-open { overflow: hidden; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); }
.about-block { background: var(--c-surface); padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; align-content: start; }
.about-heading { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.about-block p { color: var(--c-soft); }

/* ---------- Forms (public) ---------- */
.field { display: grid; gap: 8px; align-content: start; }
.field-label, .field > label { font-weight: 600; font-size: 0.95rem; color: var(--c-text-strong); }
.field-hint { font-size: 0.875rem; color: var(--c-muted); margin: 0; }
.input, .quote-form input[type="text"], .quote-form input[type="number"], .quote-form textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--c-field); color: var(--c-text-strong);
  border: 1px solid var(--c-border-strong); border-radius: var(--radius); font-size: 1rem; /* 16px avoids iOS zoom */
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #8a8e95; }
.input:hover { border-color: var(--c-muted); }
.input:focus { outline: none; border-color: var(--c-text-strong); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), 0.25); }
.has-error .input { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: 0.9rem; font-weight: 500; margin: 0; }
.field-grid { display: grid; gap: 20px; }
.card-form { gap: 20px; }

/* ---------- Quote form ---------- */
.quote-layout { display: grid; gap: 40px; align-items: start; }
.quote-form { display: grid; gap: 28px; min-width: 0; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stepper-item { display: grid; gap: 8px; font-size: 0.75rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-display); }
.stepper-item::before { content: ""; height: 3px; background: var(--c-border-strong); transition: background-color .3s; }
.stepper-item.is-done::before, .stepper-item.is-current::before { background: var(--c-accent); }
.stepper-item.is-current { color: var(--c-text-strong); }
.stepper-num { display: none; }
.stepper-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.js-steps .step:not(.is-active) { display: none; }
.js-steps .step.is-active { animation: step-in 0.35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } }
.step-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--c-text-strong); padding: 0; margin-bottom: 4px; line-height: 1.05; }
.step-kicker { display: block; font-size: 0.95rem; letter-spacing: 0.2em; color: var(--c-accent-text); margin-bottom: 6px; }
.optional { color: var(--c-muted); font-size: 0.6em; letter-spacing: 0.1em; }
.step-actions { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--c-border); padding-top: 24px; }
.step-actions [data-step-next], .step-actions [data-step-submit] { margin-left: auto; }

.choice-grid { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice-input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-box {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 18px; border: 1px solid var(--c-border-strong);
  background: var(--c-field); color: var(--c-text-strong); font-weight: 500; transition: border-color .2s, background-color .2s;
}
.choice-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-label); flex-shrink: 0; position: relative; transition: border-color .2s; }
.choice-input:checked + .choice-box { border-color: var(--c-accent); background: rgba(var(--c-accent-rgb), 0.06); }
.choice-input:checked + .choice-box .choice-mark { border-color: var(--c-accent); }
.choice-input:checked + .choice-box .choice-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-accent); }
.choice-input:focus-visible + .choice-box { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.choice:hover .choice-box { border-color: var(--c-muted); }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
html:not(.js) .file-input { position: static; width: auto; height: auto; opacity: 1; margin-bottom: 8px; }
html:not(.js) .dropzone { display: none; }
.dropzone {
  display: grid; place-items: center; gap: 8px; text-align: center; padding: 40px 20px; border: 1px dashed var(--c-border-strong);
  background: var(--c-field); cursor: pointer; transition: border-color .2s, background-color .2s; color: var(--c-soft);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--c-accent); background: rgba(var(--c-accent-rgb), 0.04); }
.file-input:focus-visible + .dropzone { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.dropzone-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-strong); }
.dropzone-text { font-size: 0.9rem; color: var(--c-muted); }
.file-previews { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 8px; }
.file-previews:empty { display: none; }
.file-preview { position: relative; border: 1px solid var(--c-border); background: var(--c-surface); }
.file-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.file-preview-meta { padding: 8px 10px; font-size: 0.78rem; display: grid; gap: 2px; }
.file-preview-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-strong); }
.file-preview-size { color: var(--c-muted); }
.file-preview-remove {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(var(--overlay), .8); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; border-radius: var(--radius);
}
.file-preview-remove:hover { background: var(--c-accent); }

.review-list { margin: 0; display: grid; border: 1px solid var(--c-border); background: var(--c-surface); }
.review-list > div { display: grid; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--c-border); }
.review-list > div:last-child { border-bottom: 0; }
.review-list dt { font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-label); font-size: 0.85rem; }
.review-list dd { margin: 0; white-space: pre-line; word-break: break-word; color: var(--c-text-strong); }
.review-edit { background: none; border: 0; color: var(--c-accent-text); cursor: pointer; padding: 0; font-size: 0.85rem; text-decoration: underline; justify-self: start; min-height: 32px; }

.next-steps { padding-left: 20px; color: var(--c-soft); display: grid; gap: 8px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 40px; align-items: start; }
.contact-cards { list-style: none; display: grid; gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); margin-bottom: 32px; }
.contact-card { background: var(--c-surface); display: flex; gap: 18px; padding: 22px 20px; align-items: flex-start; }
.contact-card-primary .contact-icon { background: var(--c-whatsapp); color: #06301a; border-color: var(--c-whatsapp); }
.contact-icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--c-border-strong); color: var(--c-text-strong); }
.contact-label { font-size: 0.9rem; letter-spacing: 0.18em; color: var(--c-label); margin-bottom: 4px; }
.contact-card a { font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--c-text-strong); word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .link-arrow { font-size: 0.85rem; margin-top: 6px; }

/* ---------- Confirmation / errors ---------- */
.confirm-inner { text-align: center; display: grid; justify-items: center; gap: 12px; }
.confirm-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent); color: #fff; margin-bottom: 12px; }
.confirm .page-title, .error-page .page-title { margin-inline: auto; }
.confirm .btn-row { margin-top: 24px; }
.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 12rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 2px var(--c-border-strong); margin: 0; }

/* ---------- Footer (graphite) ---------- */
.site-footer { background: var(--c-bg); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
.footer-text { color: var(--c-muted); max-width: 36ch; }
.footer-heading { font-size: 1rem; letter-spacing: 0.2em; color: var(--c-label); margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 4px; }
.footer-links a, .footer-contact a { text-decoration: none; color: var(--c-soft); display: inline-flex; min-height: 36px; align-items: center; }
.footer-links a:hover, .footer-contact a:hover { color: var(--c-text-strong); text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--c-soft); }
.footer-contact .icon { color: var(--c-label); flex-shrink: 0; }
.social-links-footer { margin-top: 20px; }
.footer-bottom { border-top: 1px solid var(--c-border); padding-block: 24px 96px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.85rem; color: var(--c-muted); }
.footer-bottom p { margin: 0; }
.footer-tagline { font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-whatsapp); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.45); transition: transform 0.2s var(--ease);
  bottom: max(16px, env(safe-area-inset-bottom));
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--c-text-strong); outline-offset: 3px; }

/* ---------- Scroll reveal (progressive; only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
