/* ==========================================================================
   Aura Cam Balkon Sistemleri — style.css
   Matte black · smoked glass · brushed aluminium. Hairlines, no neon.
   Shared by all pages (index + sub-pages generated by scripts/build_pages.py).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #151517;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #ebebe8;
  --dim: #a0a1a5;
  --mute: #6a6b70;
  --alu: #c6c9ce;           /* brushed aluminium */
  --alu-2: #8f9298;         /* anodised, darker */
  --bronze: #a8957c;        /* rare warm accent */
  --glass: rgba(20, 20, 22, 0.58);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 68px;
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vh: 1vh;
  --drawer-p: 0;
  /* legacy aliases used by sub-pages */
  --text-dim: var(--dim);
  --text-mute: var(--mute);
  --border: var(--line);
  --border-strong: var(--line-2);
  --accent: var(--alu);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } body { overflow-x: clip; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.65; max-width: 100%; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Scroll lock (preloader + mobile drawer) */
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }
.no-js .preloader { display: none; }
img, canvas, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
.grid > *, .split > *, .two-col > *, .footer__grid > * { min-width: 0; }
:focus-visible { outline: 2px solid var(--alu); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(198, 201, 206, 0.28); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- 3. Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.6vw, 92px); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.2; }
h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
em, .grad-text { font-style: italic; color: var(--alu); background: none; -webkit-text-fill-color: currentColor; }
p { text-wrap: pretty; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--dim); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--alu-2); }
.eyebrow b { color: var(--alu); font-weight: 600; }

/* ---------- 4. Buttons & form controls ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.3s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary { background: var(--text); color: #0a0a0b; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--alu); background: var(--surface); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-wa { background: #1f6f4a; color: #fff; }
.btn-wa:hover { background: #25825a; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color 0.25s, gap 0.25s; }
.link-arrow:hover { border-color: var(--alu); gap: 12px; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label, .calc label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); display: block; margin: 0 0 8px; }
.field input, .field select, .field textarea,
.calc select, .calc input[type="number"], .calc input[type="text"], .calc textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color 0.2s, background 0.2s; appearance: none; -webkit-appearance: none;
}
.field select, .calc select {
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field select option, .calc select option { background: #17171a; color: var(--text); }
.field textarea, .calc textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .calc select:focus, .calc input:focus, .calc textarea:focus { outline: none; border-color: var(--alu); background: rgba(255, 255, 255, 0.05); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-2); border-radius: 2px; outline: none; margin: 18px 0 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--alu-2); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--alu-2); cursor: pointer; }

/* ---------- 5. Navigation ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 100;
  width: min(1240px, 100% - 24px); height: var(--nav-h); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 12px 0 22px;
  background: rgba(14, 14, 16, 0.5); border: 1px solid var(--line); border-radius: 16px;
  -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%);
  transition: height 0.4s var(--ease), top 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.nav.is-shrunk { height: 56px; top: 8px; background: rgba(10, 10, 11, 0.82); border-color: var(--line-2); }
body.drawer-open .nav { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.2em; font-size: 14px; flex-shrink: 0; }
.nav__brand img { width: 30px; height: 30px; filter: grayscale(1) brightness(1.15); }
.nav__brand small { display: block; font-weight: 500; letter-spacing: 0.26em; font-size: 8px; color: var(--dim); margin-top: 2px; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 9px 13px; font-size: 13.5px; font-weight: 500; color: var(--dim); border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav__cta { min-height: 40px; padding: 0 20px; font-size: 13px; }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.burger span { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--text); transition: transform 0.45s var(--ease), opacity 0.2s, top 0.45s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 6. Mobile drawer ---------- */
.drawer {
  /* z-index below .nav so brand + close button stay on top */
  position: fixed; inset: 0; z-index: 90;
  height: 100vh; height: calc(var(--vh) * 100); height: 100dvh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 36px) 24px max(22px, env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, 0.97);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  visibility: hidden; pointer-events: none;
  clip-path: inset(0 0 calc((1 - var(--drawer-p)) * 100%) 0);
  overscroll-behavior: contain; touch-action: pan-y;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.drawer__link { display: flex; align-items: baseline; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); }
.drawer__link[aria-current="page"] .drawer__title { color: var(--alu); }
.drawer__num { font-size: 11px; font-weight: 600; color: var(--mute); width: 22px; letter-spacing: 0.1em; }
.drawer__title { display: block; font-family: var(--serif); font-size: clamp(24px, 6.4vw, 32px); line-height: 1.15; }
.drawer__desc { display: block; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.drawer__status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--dim); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fae88; }
.pulse-dot.is-closed { background: #a86a6a; }

/* ---------- 7. Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; height: 100vh; height: 100dvh; background: var(--bg); transition: opacity 0.7s var(--ease), visibility 0.7s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(320px, 78vw); text-align: center; }
.preloader__logo { width: 64px; height: 64px; margin: 0 auto 30px; filter: grayscale(1) brightness(1.15); opacity: 0.9; }
.preloader__pct { font-family: var(--serif); font-size: 52px; font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1; }
.preloader__bar { height: 1px; background: var(--line-2); margin: 22px 0 14px; overflow: hidden; }
.preloader__fill { height: 100%; width: 100%; background: var(--alu); transform: scaleX(0); transform-origin: left; }
.preloader__stage { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }

/* ---------- 8. Pinned hero (canvas) ---------- */
.story-wrap { position: relative; z-index: 1; background: var(--bg); }
.story { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #060607; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.12) 34%, rgba(10, 10, 11, 0.2) 62%, rgba(10, 10, 11, 0.88) 100%); }
.story__hero { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0 0 clamp(84px, 13vh, 150px); }
.story__hero .container { display: grid; gap: 28px; }
.story__hero h1 { max-width: 15ch; }
.story__hero p { max-width: 52ch; color: #cfd0d3; font-size: clamp(16px, 1.45vw, 19px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.story__caps { position: absolute; left: 0; right: 0; bottom: clamp(36px, 8vh, 80px); pointer-events: none; }
.cap {
  position: absolute; left: 0; bottom: 0; width: min(420px, 100%); padding: 24px 26px;
  background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%);
  opacity: 0; visibility: hidden;
}
.cap__n { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--alu-2); margin-bottom: 12px; }
.cap h3 { margin-bottom: 8px; }
.cap p { font-size: 14.5px; color: var(--dim); }
.story__meter { position: absolute; right: max(24px, calc((100% - 1240px) / 2)); bottom: clamp(36px, 8vh, 80px); display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.story__meter i { display: block; width: 120px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.story__meter i::after { content: ""; position: absolute; inset: 0; background: var(--alu); transform: scaleX(var(--p, 0)); transform-origin: left; }
.story__cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); }
.story__cue::after { content: ""; display: block; width: 1px; height: 30px; margin: 10px auto 0; background: var(--alu-2); }

/* ---------- 9. Sections ---------- */
main > section:not(.story-wrap), .block { position: relative; z-index: 2; background: var(--bg); }
.section { padding: clamp(76px, 9vw, 132px) 0; }
.section--alt { background: var(--bg-2) !important; border-block: 1px solid var(--line); }
.section__head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { margin-bottom: 18px; }
.section__head p { color: var(--dim); font-size: 17px; max-width: 62ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 34px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 8px; }
.fact span { font-size: 13.5px; color: var(--dim); }

/* Photo helpers */
.ph { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ph--43 { aspect-ratio: 4 / 3; } .ph--45 { aspect-ratio: 4 / 5; } .ph--169 { aspect-ratio: 16 / 9; } .ph--32 { aspect-ratio: 3 / 2; }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-size: 12.5px; color: #d9dadc; background: linear-gradient(to top, rgba(8, 8, 9, 0.85), transparent); }

/* System cards */
.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.sys { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color 0.3s, transform 0.4s var(--ease); }
.sys:hover { border-color: var(--line-2); transform: translateY(-4px); }
.sys:hover .ph img { transform: scale(1.04); }
.sys .ph { border-radius: 0; aspect-ratio: 4 / 3; }
.sys__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sys__body p { font-size: 14px; color: var(--dim); }
.sys__body .link-arrow { margin-top: auto; align-self: flex-start; font-size: 13px; }
.sys__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--alu-2); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
.cmp tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.cmp td { color: #c3c4c7; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 14px; font-size: 12.5px; color: var(--mute); }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.specs th { width: 38%; color: var(--dim); font-weight: 500; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* Spec definition list */
.spec-list { border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.spec-list dd { color: var(--text); font-size: 15px; }
.spec-list dd small { display: block; color: var(--dim); font-size: 13px; margin-top: 3px; }

/* Profile cross-section */
.profile { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.profile__fig { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); padding: clamp(14px, 3vw, 34px); }
.profile__fig svg { width: 100%; height: auto; }
.profile__fig figcaption { margin-top: 14px; font-size: 12px; color: var(--mute); }
.legend { counter-reset: lg; border-top: 1px solid var(--line); }
.legend li { counter-increment: lg; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legend li::before { content: counter(lg); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--alu-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--alu); }
.legend b { display: block; font-weight: 600; font-size: 15px; }
.legend span { font-size: 13.5px; color: var(--dim); }

/* Climate */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.note { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.note h3 { font-size: 21px; margin-bottom: 10px; }
.note p { font-size: 14.5px; color: var(--dim); }

/* Price calculator */
.pricer { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.panel { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel + .panel { margin-top: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 22px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; display: grid; place-items: center; min-height: 46px; padding: 8px 10px; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--dim); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.seg input:checked + label { background: var(--text); border-color: var(--text); color: #0a0a0b; font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--alu); outline-offset: 2px; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-row output { font-family: var(--serif); font-size: 26px; }
.check { display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: 14.5px; margin-top: 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--alu); }
.quote { position: sticky; top: calc(var(--nav-h) + 28px); background: var(--bg-3); }
.quote__label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.quote__price { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.quote__sub { font-size: 13.5px; color: var(--dim); }
.bd { margin: 24px 0; border-top: 1px solid var(--line); }
.bd div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.bd b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.quote__note { margin-top: 14px; font-size: 12px; color: var(--mute); line-height: 1.5; }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { min-height: 40px; padding: 0 18px; font-size: 13px; font-weight: 500; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; transition: all 0.2s; }
.filters button:hover { color: var(--text); border-color: var(--alu-2); }
.filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0a0a0b; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proj { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.proj:nth-child(1), .proj:nth-child(4) { aspect-ratio: 4 / 3.4; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj:hover img { transform: scale(1.05); }
.proj figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(to top, rgba(8, 8, 9, 0.9), transparent); }
.proj figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.proj figcaption span { font-size: 12.5px; color: var(--dim); }
.proj.is-hidden { display: none; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: st; border-top: 1px solid var(--line-2); }
.step { counter-increment: st; padding: 28px 24px 8px 0; position: relative; }
.step::before { content: "0" counter(st); display: block; font-family: var(--serif); font-size: 15px; color: var(--alu-2); margin-bottom: 18px; }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--alu); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--dim); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 4px; font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-right: 1.5px solid var(--alu); border-bottom: 1.5px solid var(--alu); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--dim); padding: 0 4px 24px; max-width: 72ch; }

/* CTA / contact band */
.cta { position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.8) 55%, rgba(10, 10, 11, 0.6) 100%); }
.cta .container { position: relative; }
.cta__grid { display: grid; grid-template-columns: 1fr 480px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta__list { margin-top: 28px; display: grid; gap: 10px; font-size: 14.5px; color: var(--dim); }
.cta__list b { color: var(--text); font-weight: 500; }
.form-card { padding: clamp(22px, 3vw, 34px); background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--radius); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.form-card h3 { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Sub-page building blocks (legacy-compatible) */
.page-hero { padding: calc(var(--nav-h) + 110px) 0 72px; position: relative; overflow: hidden; background: radial-gradient(900px 420px at 85% -10%, rgba(198, 201, 206, 0.07), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 5.8vw, 76px); max-width: 16ch; }
.page-hero p { max-width: 62ch; margin-top: 22px; font-size: 18px; color: var(--dim); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.3s, transform 0.4s var(--ease); }
.tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tile h3 { font-size: 22px; }
.tile p { color: var(--dim); font-size: 14.5px; }
.tile .more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--alu); }
.tile__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--alu); font-size: 16px; }
.calc { margin-top: 24px; padding: 26px; max-width: 640px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.calc__out { margin-top: 18px; font-family: var(--serif); font-size: 32px; }
.calc__note { font-size: 12px; color: var(--mute); margin-top: 6px; }
.crumbs + .eyebrow { margin-top: 0; }
.ph--sticky { align-self: start; position: sticky; top: calc(var(--nav-h) + 36px); }

/* Sub-page hero with media, table helpers, CTA strip, map */
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-hero__grid > * { min-width: 0; }
.page-hero__grid--solo { grid-template-columns: 1fr; }
.page-hero__media { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; justify-self: end; border: 1px solid var(--line); }
.page-hero__actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.cmp tr.is-current th, .cmp tr.is-current td { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.cmp tbody th a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.cmp tbody th a:hover { border-color: var(--alu); }
.cmp--sm { min-width: 560px; }
.sec-sub { margin: clamp(36px, 5vw, 56px) 0 18px; font-size: clamp(22px, 2.4vw, 30px); }
.sec-sub + .table-wrap { margin-top: 0; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); }
.cta-strip h2 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 12px; }
.cta-strip p { color: var(--dim); max-width: 56ch; }
.cta-strip__actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.map-frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); aspect-ratio: 4 / 3; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.9) contrast(0.85) brightness(0.95); }
.map-frame--wide { aspect-ratio: 21 / 9; }
.map-caption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
.map-caption a { color: var(--dim); border-bottom: 1px solid var(--line-2); }
.map-caption a:hover { color: var(--text); }
.contact-list a { border-bottom: 1px solid var(--line-2); }
.contact-list a:hover { border-color: var(--alu); }

/* ---------- 10. Footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 84px 0 32px; background: #070708; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
.footer h4 { color: var(--dim); margin-bottom: 20px; }
.footer li { margin-bottom: 11px; font-size: 14.5px; color: var(--dim); }
.footer li a:hover { color: var(--text); }
.footer__brand img { filter: grayscale(1) brightness(1.1); }
.footer__brand p { color: var(--dim); font-size: 14.5px; margin-top: 18px; max-width: 340px; }
.footer__bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }

/* ---------- 11. Reveal helper ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav { padding: 0 10px 0 18px; }
}
@media (max-width: 1024px) {
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .cta__grid, .pricer, .profile, .two-col, .split, .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 3 / 2; max-height: none; justify-self: stretch; }
  .ph--sticky { position: static; }
  .map-frame--wide { aspect-ratio: 4 / 3; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .quote { position: static; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__bg::after { background: rgba(10, 10, 11, 0.86); }
}
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  body { font-size: 15.5px; }
  .container { width: calc(100% - 32px); }
  .nav { top: 8px; width: calc(100% - 16px); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 18px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sys-grid, .notes, .proj-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); }
  .step { padding: 0 0 28px 26px; }
  .step::after { top: 4px; left: -4px; }
  .spec-list > div { grid-template-columns: 1fr; gap: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .story__hero { padding-bottom: 92px; }
  .story__hero h1 { max-width: 12ch; }
  .hero-cta .btn { flex: 1 1 100%; }
  .cap { width: 100%; padding: 20px; }
  .story__meter { display: none; }
  .story__cue { display: none; }
  .btn-block-sm { width: 100%; }
}
@media (hover: none) { .sys:hover, .tile:hover { transform: none; } .sys:hover .ph img, .proj:hover img { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 16. Floating Quick Contact Badges ---------- */
.float-badge {
  position: fixed;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s, opacity 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

html.is-locked .float-badge {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.float-badge--phone {
  left: 24px;
  background: rgba(18, 18, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.float-badge--phone:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 201, 206, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(198, 201, 206, 0.18);
  color: #fff;
}

.float-badge--phone .float-badge__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}

.float-badge--phone:hover .float-badge__icon {
  background: rgba(198, 201, 206, 0.2);
  border-color: var(--alu);
}

.float-badge--whatsapp {
  right: 24px;
  background: rgba(10, 26, 17, 0.88);
  border: 1px solid rgba(37, 211, 102, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 211, 102, 0.15);
  color: #fff;
}

.float-badge--whatsapp:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.float-badge--whatsapp .float-badge__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.45);
  flex-shrink: 0;
}

.float-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.float-badge__sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.float-badge--whatsapp .float-badge__sub {
  color: #8ce6ad;
}

.float-badge__main {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

@keyframes waPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.float-badge--whatsapp .float-badge__icon svg {
  animation: waPulse 3s ease-in-out infinite;
}

@media (max-width: 720px) {
  .float-badge {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
  }
  .float-badge--phone {
    left: 16px;
  }
  .float-badge--whatsapp {
    right: 16px;
  }
  .float-badge__text {
    display: none;
  }
  .float-badge__icon {
    width: 48px !important;
    height: 48px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .float-badge--whatsapp .float-badge__icon {
    background: #25D366 !important;
  }
}

