/* אורכל אלומיניום · כיוון 5 "הפרופיל בחלל" (SCENE, three.js), from the approved prototype v23 (FND-017).
   Tokens copied unchanged from docs/design/prototype/styles.css. */
:root {
  /* ground: deep navy from the existing site's #001C38 */
  --ground: #071423; --ground-2: #0C1F36; --panel: #10294A; --line-d: rgb(214 226 240 / .14);
  /* aluminium daylight bands */
  --paper: #F2F4F6; --alu: #E4E8EC; --line: #C9D0D8; --line-strong: #76828F;
  --text: #0E1B2B; --muted: #46556A; --text-d: #EEF2F6; --muted-d: #B3C0CF;
  /* the logo: red diamond = action only; blue diamonds = light only */
  --red: #D10A11; --red-h: #B0090F; --red-p: #8F070C; --on-red: #FBFBFC; --red-text: #B30A11;
  --blue: #4A5AA6;
  /* the wood-look coat */
  --wood: #D9A066; --wood-deep: #8E5A2E; --raw: #AEB7C1;
  --focus: #0C1F36; --focus-d: #F2C38A; --error: #A1080D; --error-bg: #FBE9EA; --success: #1E6B3A;
  /* type */
  --f-d: "Rubik", system-ui, sans-serif; --f: "Noto Sans Hebrew", "Rubik", system-ui, sans-serif;
  --fs-hero: clamp(3.25rem, 1rem + 6.4vw, 7rem); --fs-h1: clamp(2.6rem, 1.4rem + 3.4vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); --fs-h3: 1.25rem; --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1.0625rem; --fs-label: 1rem; --fs-small: .875rem;
  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(72px, 6vw + 40px, 128px);
  --container: 1240px; --gutter: clamp(20px, 4vw, 40px);
  --side: max(var(--gutter), calc((100% - var(--container)) / 2));
  --side-vw: max(var(--gutter), calc((100vw - var(--container)) / 2));
  /* radius: 4px = the corner of an extruded profile; pill = the capsule and its buttons */
  --r: 4px; --r-pill: 999px;
  --sh-card: 0 24px 48px -24px rgb(3 10 20 / .55); --sh-soft: 0 18px 40px -28px rgb(14 27 43 / .35);
  --glow-red: 0 14px 36px -10px rgb(209 10 17 / .62);
  /* motion */
  --dur-press: 120ms; --dur-ui: 220ms; --dur-reveal: 700ms; --dur-arrive: 1300ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dir: -1;
}
[dir="ltr"] { --dir: 1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 400 var(--fs-body)/1.7 var(--f); color: var(--text); background: var(--paper); overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-d); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark :focus-visible, .capsule :focus-visible, .menu :focus-visible, .hero :focus-visible, .cta :focus-visible, .footer :focus-visible, .lightbox :focus-visible, .phero :focus-visible { outline-color: var(--focus-d); }
.skip { position: fixed; z-index: 100; top: -80px; inset-inline-start: 16px; padding: 12px 20px; border-radius: var(--r-pill); background: var(--red); color: var(--on-red); text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }
.dark { background: var(--ground); color: var(--text-d); }
.light { background: var(--alu); }
.section { padding-block: var(--section); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--r-pill);
  font: 600 var(--fs-label)/1 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-ui), box-shadow var(--dur-ui), transform var(--dur-press) var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: var(--on-red); }
.btn--red:hover { background: var(--red-h); }
.btn--red:active { background: var(--red-p); }
.btn--glow { box-shadow: var(--glow-red); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgb(255 255 255 / .08); }
.btn--sm { min-height: 44px; padding: 0 20px; }
.btn .ic { transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) { .btn:hover .fwd, .link:hover .fwd { transform: translateX(calc(var(--dir) * 4px)); } }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: none; }
.tel:hover { text-decoration: underline; text-underline-offset: 5px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--red-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.dark .link, .cta .link { color: var(--wood); }
.link .ic { transition: transform var(--dur-ui) var(--ease-out); }

/* ── the floating capsule: tinted navy, blur keeps the menu legible over the scene ── */
.capsule { position: fixed; z-index: 50; top: 14px; inset-inline: max(12px, calc((100% - var(--container)) / 2 - 8px));
  display: flex; align-items: center; gap: var(--s-4); height: 64px; padding-inline: 8px 8px; border-radius: var(--r-pill);
  background: rgb(7 20 35 / .66); border: 1px solid var(--line-d); color: var(--text-d);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); transition: background-color var(--dur-ui); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .capsule { background: var(--ground-2); } }
.capsule.is-scrolled { background: rgb(7 20 35 / .88); }
.logo { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; text-decoration: none; white-space: nowrap; font: 800 1.05rem/1 var(--f-d); }
.logo-chip { display: grid; place-items: center; height: 48px; padding: 0 14px; border-radius: var(--r-pill); background: var(--paper); }
.logo-chip img { height: 34px; width: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--muted-d); text-decoration: none; font-weight: 500; transition: color var(--dur-ui), background-color var(--dur-ui); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-d); background: rgb(255 255 255 / .08); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { display: grid; place-items: center; width: 30px; height: 44px; margin-inline-start: -8px; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted-d); cursor: pointer; }
.sub-toggle .ic { width: 16px; height: 16px; transition: transform var(--dur-ui) var(--ease-out); }
.sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav .submenu { position: absolute; top: calc(100% + 16px); inset-inline-start: -60px; width: 440px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 12px;
  background: var(--ground-2); border: 1px solid var(--line-d); border-radius: 20px; box-shadow: var(--sh-card);
  opacity: 0; visibility: hidden; translate: 0 -6px; transition: opacity var(--dur-ui) var(--ease-out), translate var(--dur-ui) var(--ease-out), visibility var(--dur-ui); }
.submenu::before { content: ""; position: absolute; inset-inline: 0; top: -18px; height: 18px; }
.has-sub:hover .submenu, .submenu.open { opacity: 1; visibility: visible; translate: 0 0; }
.submenu a { color: var(--text-d); border-radius: 12px; }
.submenu .all { grid-column: 1 / -1; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-d); }
.submenu .all a { color: var(--wood); }
.cap-actions { display: flex; align-items: center; gap: 8px; }
.cap-tel { display: none; padding-inline: 10px; }
.menu-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-d); background: rgb(255 255 255 / .08); color: var(--text-d); cursor: pointer; }
.capsule .nav, .capsule .cap-actions .btn { display: none; }
@media (min-width: 1024px) {
  .capsule { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: var(--s-4); }
  .capsule .nav { display: block; justify-self: center; }
  .logo { margin-inline-end: 0; justify-self: start; }
  .cap-actions { justify-self: end; }
  .capsule .cap-actions .btn { display: inline-flex; }
  .menu-btn { display: none; }
}
@media (min-width: 1280px) { .cap-tel { display: inline-flex; } }
@media (max-width: 479px) { .logo-name { display: none; } }

/* phone menu */
.menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: var(--s-5); padding: 96px var(--gutter) 40px; overflow-y: auto;
  background: var(--ground); color: var(--text-d); opacity: 0; visibility: hidden; transition: opacity var(--dur-ui) var(--ease-out), visibility var(--dur-ui); }
.menu.open { opacity: 1; visibility: visible; }
.menu-top { position: absolute; top: 22px; inset-inline: 20px; display: flex; align-items: center; justify-content: space-between; }
.menu-list, .menu-subs { list-style: none; margin: 0; padding: 0; }
.menu-list > li > a { display: block; padding: 10px 0; font: 800 2rem/1.15 var(--f-d); text-decoration: none; border-bottom: 1px solid var(--line-d); }
.menu-list > li > a[aria-current="page"] { color: var(--wood); }
.menu-subs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 8px 0 12px; }
.menu-subs a { display: flex; align-items: center; min-height: 44px; color: var(--muted-d); text-decoration: none; }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-d); background: rgb(255 255 255 / .06); color: inherit; cursor: pointer; }

/* ── HERO: the scene is the first screen ── */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(640px, 100svh, 1080px);
  padding: 112px var(--side) clamp(40px, 7vh, 88px); color: var(--text-d);
  background: radial-gradient(55% 65% at 24% 34%, rgb(74 90 166 / .45), transparent 70%), radial-gradient(38% 36% at 30% 100%, rgb(209 10 17 / .2), transparent 72%), var(--ground); }
.scene { position: absolute; inset: 0; z-index: -2; }
.scene > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms var(--ease-out); pointer-events: none; }
.scene.is-live > canvas { opacity: 1; }
.scene-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: opacity 400ms var(--ease-out); }
.webgl .scene-still, .scene.is-live > .scene-still { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--ground) 0%, rgb(7 20 35 / .82) 36%, rgb(7 20 35 / 0) 64%); }
.hero-copy { display: grid; gap: 20px; max-width: 40rem; }
.hero h1 { font-size: var(--fs-hero); line-height: .92; }
.hero h1 > span { display: block; }
.hero h1 .sub { margin-top: .32em; font-size: .4em; line-height: 1.15; color: var(--wood); }
.hero-copy > p { max-width: 34rem; font-size: var(--fs-lead); color: var(--muted-d); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (min-width: 1024px) {
  .hero { align-items: center; padding-block: 120px 80px; }
  .hero::after { background: linear-gradient(to left, var(--ground) 0%, rgb(7 20 35 / .86) 30%, rgb(7 20 35 / 0) 58%), linear-gradient(to top, var(--ground), rgb(7 20 35 / 0) 24%); }
  .hero-copy { justify-self: start; width: min(46%, 40rem); }
}
/* arrival: the words rise after the profiles have started to stand up */
.js .rise { animation: rise 900ms var(--ease-out) both; animation-delay: calc(450ms + var(--i, 0) * 90ms); }
/* BUG-003: the hero words move but never fade, so their contrast stays AA during the entrance */
@keyframes rise { from { translate: 0 28px; } }

/* reveal on scroll (only once JS runs) */
.js .rv { opacity: 0; translate: 0 24px; transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out); }
.js .rv.in { opacity: 1; translate: 0 0; }

/* section heads */
.head { display: grid; gap: 16px; margin-bottom: var(--s-7); }
.head h2 { font-size: var(--fs-h2); }
.head p { max-width: 44ch; font-size: var(--fs-lead); color: var(--muted); }
.dark .head p { color: var(--muted-d); }
@media (min-width: 900px) { .head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: var(--s-7); } }

/* ── products: a bento of the eight services, every tile a real job ── */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile-s { position: relative; isolation: isolate; display: block; min-height: 210px; overflow: hidden; border-radius: var(--r); background: var(--panel); color: var(--text-d); text-decoration: none; }
.tile-s img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 700ms var(--ease-out); }
.tile-s::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(7 20 35 / .94), rgb(7 20 35 / .4) 52%, rgb(7 20 35 / 0) 78%); }
.tile-s .cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 18px; }
.tile-s h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.75rem); }
.tile-s p { margin-top: 4px; font-size: .9375rem; line-height: 1.5; color: var(--muted-d); }
.tile-s .ic { width: 24px; height: 24px; color: var(--wood); transition: transform var(--dur-ui) var(--ease-out); }
.tile-s:first-child, .tile-s:last-child { grid-column: 1 / -1; }
@media (max-width: 899px) { .tile-s:not(:first-child):not(:last-child) p { display: none; } .tile-s .cap { padding: 14px; } }
@media (hover: hover) { .tile-s:hover img { transform: scale(1.04); } .tile-s:hover .ic { transform: translateX(calc(var(--dir) * 4px)); } }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(240px, 21vw, 320px); }
  .tile-s:first-child, .tile-s:last-child { grid-column: auto; }
  .tile-s.w2 { grid-column: span 2; }
  .tile-s .cap { padding: 24px; }
}
.more { margin-top: var(--s-5); }

/* ── about: two photos of the real work, the words beside them ── */
.about-grid { display: grid; gap: var(--s-7); }
.about h2 { font-size: var(--fs-h2); margin-bottom: var(--s-5); }
.about-copy { display: grid; gap: 16px; max-width: 58ch; color: var(--muted); }
.about-copy p:first-child { font-size: var(--fs-lead); color: var(--text); }
.duo { position: relative; margin: 0; padding-bottom: 16%; padding-inline-end: 16%; }
.duo .p1 { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 58% 50%; border-radius: var(--r); }
.duo .p2 { position: absolute; bottom: 0; inset-inline-end: 0; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--alu); border-radius: var(--r); box-shadow: var(--sh-card); }
.duo figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); max-width: 50%; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: center; column-gap: clamp(40px, 6vw, 96px); } }

/* ── facts: four words, the logo's diamond between them ── */
.facts { padding-block: clamp(52px, 6vw, 88px); background: var(--ground-2); color: var(--text-d); }
.facts ul { display: grid; gap: 28px; list-style: none; margin: 0; padding: 0; }
.facts strong { display: flex; align-items: center; gap: 14px; font: 800 clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem)/1.05 var(--f-d); color: var(--wood); }
.facts strong::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); }
.facts span.d { display: block; margin-top: 8px; padding-inline-start: 26px; color: var(--muted-d); }
@media (min-width: 900px) { .facts ul { grid-template-columns: repeat(4, 1fr); gap: 0; } .facts li { padding-inline: 28px; } .facts li:first-child { padding-inline-start: 0; } .facts li + li { border-inline-start: 1px solid var(--line-d); } }

/* ── process: three steps on one line that runs from raw aluminium to the wood coat ── */
.steps-box { position: relative; }
.steps { display: grid; gap: 36px; list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; gap: 8px; }
.step-n { font: 800 clamp(3.5rem, 2.4rem + 3.4vw, 6rem)/1 var(--f-d); color: transparent; -webkit-text-stroke: 1.5px var(--wood-deep); }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--muted); max-width: 34ch; }
.rail { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; padding-top: 44px; }
  .rail { display: block; position: absolute; top: 0; inset-inline: 0; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .rail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, var(--raw), var(--wood) 70%, var(--wood-deep)); transform-origin: right; transform: scaleX(0); transition: transform 1200ms var(--ease-in-out) 150ms; }
  [data-rail].in .rail::after { transform: scaleX(1); }
  .steps li::before { content: ""; position: absolute; top: -50px; width: 16px; height: 16px; background: var(--alu); border: 3px solid var(--wood-deep); transform: rotate(45deg); }
  .steps li { position: relative; }
}

/* ── works: the jobs as vertical slats; the one you point at opens wide ── */
.slats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slat { margin: 0; }
.slat a { display: block; color: var(--text-d); text-decoration: none; }
.slat .ph { display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--r); }
.slat img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.slat figcaption { padding-top: 10px; font-size: .9375rem; line-height: 1.45; color: var(--muted-d); }
.slat b { display: block; font-weight: 600; color: var(--text-d); }
.slat:first-child { grid-column: 1 / -1; }
.slat:first-child .ph { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .slats { display: flex; gap: 12px; height: clamp(440px, 44vw, 620px); }
  .slat, .slat:first-child { flex: 1 1 0; min-width: 0; transition: flex-grow 650ms var(--ease-out); }
  .slat a { display: flex; flex-direction: column; height: 100%; }
  .slat .ph, .slat:first-child .ph { flex: 1; aspect-ratio: auto; }
  .slat figcaption { min-height: 4.6em; }
  .slats:not(:hover):not(:focus-within) .slat:first-child, .slat:hover, .slat:focus-within { flex-grow: 2.6; }
}

/* ── form ── */
.form-grid { display: grid; gap: var(--s-7); }
.form-grid h2 { font-size: var(--fs-h2); }
.form-intro { margin-top: 12px; font-size: var(--fs-lead); color: var(--muted); max-width: 44ch; }
.form-box { margin-top: var(--s-6); padding: clamp(22px, 3vw, 40px); background: var(--paper); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), var(--sh-soft); }
.form { display: grid; gap: 18px; }
.row2 { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #FCFDFE; color: var(--text); font-size: 1rem; }
.input[dir="ltr"] { text-align: right; }
.input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.hint { font-size: var(--fs-small); color: var(--muted); }
.err { display: none; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--error); }
.field.invalid .err { display: flex; }
.field.invalid .input { border: 2px solid var(--error); background: var(--error-bg); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-alt { color: var(--muted); }
.form-alt a { color: var(--red-text); font-weight: 600; }
.form[aria-busy="true"] .btn { opacity: .7; pointer-events: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.success { display: none; gap: 10px; justify-items: start; }
.success .ic { width: 40px; height: 40px; color: var(--success); }
.success h3 { font-size: 1.75rem; }
.success a { color: var(--red-text); font-weight: 600; }
.form-box.done .form { display: none; }
.form-box.done .success { display: grid; }
.aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.aside-h { font-size: 1.75rem; margin-bottom: 8px; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; }
.contact-list li > * { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-block: 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-list .ic { width: 24px; height: 24px; color: var(--red-text); }
.contact-list small { display: block; font-size: var(--fs-small); color: var(--muted); }
.contact-list .big { font: 800 1.6rem/1.1 var(--f-d); }
.muted { color: var(--muted); margin-top: 16px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .form-grid { grid-template-columns: 7fr 5fr; column-gap: clamp(40px, 5vw, 88px); align-items: start; } }

/* ── CTA band: a real cladded wall behind navy ── */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 9vw, 150px) var(--side); color: var(--text-d); background: var(--ground); }
.cta > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(7 20 35 / .84); }
.cta h2 { font-size: var(--fs-h2); max-width: 16ch; }
.cta p { max-width: 42ch; margin-top: 16px; font-size: var(--fs-lead); color: var(--muted-d); }
.cta .hero-actions { margin-top: 28px; }
@media (min-width: 900px) { .cta::after { background: linear-gradient(to left, rgb(7 20 35 / .95), rgb(7 20 35 / .82) 45%, rgb(7 20 35 / .38)); } }

/* ── footer ── */
.footer { padding: clamp(56px, 6vw, 96px) 0 32px; background: var(--ground); color: var(--muted-d); border-top: 1px solid var(--line-d); }
.footer-grid { display: grid; gap: 36px; }
.footer h2 { margin-bottom: 10px; font: 600 1rem/1.4 var(--f); color: var(--text-d); }
.footer ul { display: grid; list-style: none; margin: 0; padding: 0; }
.footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; }
.footer a:hover { color: var(--text-d); text-decoration: underline; text-underline-offset: 4px; }
.footer-svc ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.f-brand { margin-bottom: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-d); font-size: var(--fs-small); }
.footer-bottom nav { display: flex; gap: 20px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }

/* ── inner pages: a navy panel and a real job, both to their screen edge ── */
.phero { display: grid; background: var(--ground); color: var(--text-d); }
.phero-copy { display: grid; gap: 18px; align-content: end; padding: 112px var(--gutter) 44px; }
.phero h1 { font-size: var(--fs-h1); }
.phero-copy > p { max-width: 36ch; font-size: var(--fs-lead); color: var(--muted-d); }
.phero-media { position: relative; min-height: 280px; overflow: hidden; }
.phero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.js .phero-media img { animation: wipe 1100ms var(--ease-in-out) 150ms both; }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--muted-d); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-d); }
.crumbs > span { display: inline-flex; align-items: center; }
@media (min-width: 960px) {
  .phero { grid-template-columns: 1fr 1fr; min-height: clamp(520px, 74svh, 780px); }
  .phero-copy { padding: 140px clamp(32px, 5vw, 96px) 72px var(--side-vw); padding-inline-start: var(--side-vw); }
}
.page-head { padding: 136px 0 56px; }
.page-head h1 { font-size: var(--fs-h1); margin-top: 14px; }
.page-head p { margin-top: 16px; max-width: 52ch; font-size: var(--fs-lead); color: var(--muted-d); }

/* service page */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: transparent; color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-ui), color var(--dur-ui); }
.chip:hover { background: rgb(14 27 43 / .06); }
.dark .chip { border-color: var(--muted-d); color: var(--text-d); }
.dark .chip:hover { background: rgb(238 242 246 / .08); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ground-2); border-color: var(--ground-2); color: var(--text-d); }
.svc-nav h2 { font: 600 1rem/1.4 var(--f); color: var(--muted); margin-bottom: 12px; }
@media (max-width: 767px) { .svc-nav .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } }
.intro { display: grid; gap: var(--s-5); margin-top: var(--s-8); }
.intro h2 { font-size: var(--fs-h2); }
.intro-copy { display: grid; gap: 14px; color: var(--muted); max-width: 60ch; }
.intro-copy p:first-child { font-size: var(--fs-lead); color: var(--text); }
@media (min-width: 960px) { .intro { grid-template-columns: 5fr 7fr; column-gap: clamp(40px, 6vw, 96px); } }
.types { display: grid; gap: 14px; }
.type { overflow: hidden; border-radius: var(--r); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.type img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--focus, 50% 50%); }
.type h3 { padding: 20px 20px 4px; font-size: 1.6rem; }
.type p { padding: 0 20px 22px; color: var(--muted); }
@media (min-width: 900px) { .types { grid-template-columns: 5fr 4fr 4fr; } .type:first-child img { aspect-ratio: 5 / 4; } }

/* gallery tiles (service page + gallery page) */
.grid-g { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.grid-g.three { grid-template-columns: 1fr; }
.gtile { margin: 0; }
.lb-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: start; cursor: zoom-in; }
.lb-trigger .ph { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r); }
.lb-trigger img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 700ms var(--ease-out); }
@media (hover: hover) { .lb-trigger:hover img { transform: scale(1.04); } }
.cap-s { display: block; padding-top: 8px; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.dark .cap-s { color: var(--muted-d); }
.cap-s b { display: block; font-weight: 600; color: var(--text); }
.dark .cap-s b { color: var(--text-d); }
@media (min-width: 900px) { .grid-g { grid-template-columns: repeat(4, 1fr); } .grid-g.three { grid-template-columns: 6fr 5fr 5fr; } }
.feature { display: grid; gap: 10px; }
.feature .gtile:first-child .ph { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .feature { grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; } .feature .gtile:first-child { grid-row: span 2; } .feature .gtile:first-child .ph { aspect-ratio: auto; height: calc(100% - 3.4em); } }
.filter-bar { display: grid; gap: 14px; margin-bottom: var(--s-6); }
.count { font-size: var(--fs-small); color: var(--muted); }
.empty { display: grid; gap: 14px; justify-items: start; padding: 40px; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.empty h3 { font-size: 1.5rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* map placeholder: the area is the whole country until an address is approved */
.map-grid { display: grid; gap: 14px; }
.map-grid img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: var(--r); }
.map { display: grid; place-items: center; min-height: 300px; padding: 32px; border-radius: var(--r); background: var(--ground-2); color: var(--text-d); text-align: center; }
.map .ic { width: 32px; height: 32px; color: var(--wood); margin-inline: auto; }
.map strong { display: block; margin: 10px 0 6px; font: 800 1.75rem/1.1 var(--f-d); }
.map p { color: var(--muted-d); margin-bottom: 18px; }
@media (min-width: 900px) { .map-grid { grid-template-columns: 7fr 5fr; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 16px; background: rgb(4 12 22 / .95); color: var(--text-d); opacity: 0; visibility: hidden; transition: opacity var(--dur-ui), visibility var(--dur-ui); }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 76svh; object-fit: contain; border-radius: var(--r); }
.lb-cap { text-align: center; }

/* ── parts the prototype did not show, in its grammar ── */
.phero h1 > span { display: block; }
.phero h1 .sub { margin-top: .3em; font-size: .5em; line-height: 1.15; color: var(--wood); }
.tile-s .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--wood); }
.form-alert { display: grid; gap: 6px; margin-bottom: 18px; padding: 14px 16px; border: 2px solid var(--error); border-radius: var(--r); background: var(--error-bg); color: var(--error); font-weight: 600; }
.form-alert ul { margin: 0; padding-inline-start: 20px; }
.form-alert a { color: inherit; }
.form-alert .ic { width: 22px; height: 22px; }
.form-fail { font-size: var(--fs-small); font-weight: 600; color: var(--error); }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 26rem); gap: 24px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quote { scroll-snap-align: start; padding: 28px; border-radius: var(--r); background: var(--panel); }
.quote blockquote { margin: 0; font-size: var(--fs-lead); color: var(--text-d); }
.quote-by { margin-top: 16px; color: var(--muted-d); }
.quotes-nav { display: flex; gap: 8px; justify-self: end; }
.doc { display: grid; gap: 14px; max-width: 72ch; color: var(--text); }
.doc h2 { margin-top: 20px; font-size: 1.75rem; }
.doc h3 { margin-top: 12px; font-size: var(--fs-h3); }
.doc ul { margin: 0; padding-inline-start: 22px; }
.nf-links { display: grid; gap: 4px; list-style: none; margin: 24px 0 0; padding: 0; }
.nf-links .link { color: var(--wood); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .phero-media img { animation: none; }
  .js .rv { opacity: 1; translate: none; transition: none; }
  .rail::after { transform: scaleX(1); transition: none; }
  .slat, .tile-s img, .lb-trigger img, .capsule, .menu, .submenu, .lightbox, .btn, .btn .ic { transition-duration: 1ms !important; }
}
