/* ============================================================
   הבנאים 770 — main.css
   Industrial, confident, built for RTL + mobile-first.
   ============================================================ */
:root {
	--orange: #D98218;
	--orange-deep: #B86A0E;
	--ink: #141618;
	--charcoal: #2B2F36;
	--charcoal-2: #3A3F48;
	--stone: #E8E2D6;
	--stone-2: #F4F1EA;
	--white: #FFFFFF;
	--muted: #6B6F78;
	--line: rgba(20, 22, 24, .12);
	--wa: #25D366;
	--font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--radius: 6px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.12; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { inset-inline-start: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.eyebrow .dot { width: 10px; height: 10px; background: var(--orange); clip-path: var(--hex); display: inline-block; }
.eyebrow a { color: inherit; }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; font-size: 16px; line-height: 1; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: rgba(0,0,0,.06); }
.hero .btn-ghost, .site-header.is-dark .btn-ghost { color: #fff; }
.btn-wa { background: var(--wa); color: #0b2e18; }
.btn-wa:hover { background: #1fbf5b; }
.btn-lg { padding: 16px 28px; font-size: 18px; }
.btn-block { width: 100%; margin-top: 10px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(43, 47, 54, .92); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand .logo { height: 48px; width: auto; }
.brand .logo-light { display: none; }
.brand .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.menu { display: flex; gap: 6px; }
.menu a { display: block; padding: 10px 12px; font-weight: 700; border-radius: 4px; opacity: .9; }
.menu a:hover, .menu .current-menu-item > a { opacity: 1; background: rgba(255,255,255,.08); }
.menu .sub-menu { display: none; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.burger span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 960px) {
	.burger { display: flex; }
	.nav { position: fixed; inset: 76px 0 0 0; z-index: 40; background: var(--charcoal); flex-direction: column; align-items: stretch; padding: 24px var(--gutter); gap: 16px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; overflow: auto; }
	.nav.is-open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
	.site-header { z-index: 50; }
	.menu { flex-direction: column; }
	.menu a { font-size: 20px; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
	.nav-cta { flex-direction: column; }
	.nav-cta .btn { padding: 16px; font-size: 18px; }
	.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
	.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff; background: var(--charcoal); isolation: isolate; overflow: hidden; }
.hero-media, .page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .img-ph.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,22,24,.95) 0%, rgba(20,22,24,.55) 45%, rgba(20,22,24,.25) 100%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, #000 40%); pointer-events: none; }
.hero-inner { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); max-width: 900px; }
.hero h1 { text-wrap: balance; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.stats li { display: flex; flex-direction: column; padding-inline-end: 36px; margin-inline-end: 36px; border-inline-end: 1px solid rgba(255,255,255,.18); }
.stats li:last-child { border: 0; margin: 0; padding: 0; }
.stats strong { font-size: clamp(32px, 4vw, 48px); font-weight: 900; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; opacity: .8; margin-top: 6px; }
.hero-badge { position: absolute; inset-inline-start: var(--gutter); top: 24px; width: clamp(80px, 10vw, 140px); opacity: .95; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.hero-badge img { width: 100%; height: auto; }
@media (max-width: 720px) { .hero-badge { display: none; } .stats li { padding-inline-end: 18px; margin-inline-end: 18px; } .hero { min-height: 0; } }

/* Page heroes */
.page-hero { position: relative; background: var(--charcoal); color: #fff; isolation: isolate; overflow: hidden; }
.page-hero .hero-inner { padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.page-hero.compact .hero-inner { padding: clamp(36px, 6vw, 64px) 0; }
.page-hero .hero-media::after { background: linear-gradient(to top, rgba(20,22,24,.96), rgba(20,22,24,.6)); }
.page-hero a:not(.btn) { color: var(--orange); }
.page-hero.thanks .hero-inner { text-align: center; max-width: none; margin-inline: auto; }
.page-hero.thanks .hex-lg { margin-inline: auto; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.hero, .page-hero { padding: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 60ch; }

/* Hex icon */
.hex { display: inline-grid; place-items: center; width: 72px; height: 80px; background: var(--charcoal); color: var(--orange); clip-path: var(--hex); flex: none; }
.hex svg { width: 38px; height: 38px; }
.hex-lg { width: 96px; height: 108px; background: var(--orange); color: #fff; margin-bottom: 18px; }
.hex-lg svg { width: 50px; height: 50px; }

/* Services */
.services { background: var(--stone-2); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.service-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,22,24,.12); }
.service-card:hover::before { transform: none; }
.service-card p { color: var(--muted); flex: 1; margin: 0; }
.service-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange); }
.service-card .more svg { width: 18px; height: 18px; }

/* Projects */
.projects-strip { background: var(--ink); color: #fff; }
.projects-strip.alt { background: var(--charcoal); }
.projects-strip .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.project-grid.cols-3 .project-card { grid-column: span 1; grid-row: span 1; }
.project-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--charcoal-2); }
.project-card.is-featured { grid-column: span 2; grid-row: span 2; }
.project-card img, .project-card .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-meta { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(to top, rgba(20,22,24,.95), transparent); }
.project-meta h3 { font-size: 20px; margin: 4px 0 0; }
.project-meta .loc { font-size: 13px; font-weight: 700; color: var(--orange); }
.project-meta .scope { display: block; font-size: 13px; opacity: .8; margin-top: 4px; }
.img-ph { background: repeating-linear-gradient(45deg, #3A3F48 0 12px, #33373f 12px 24px); }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; } .project-card.is-featured { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 520px) { .project-grid, .project-grid.cols-3 { grid-template-columns: 1fr; grid-auto-rows: 240px; } .project-card.is-featured { grid-column: span 1; } }

/* Why */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border: 0; }
.checks svg { width: 26px; height: 26px; color: #fff; background: var(--orange); border-radius: 50%; padding: 5px; flex: none; margin-top: 2px; }
.checks strong { display: block; font-size: 18px; }
.checks span { color: var(--muted); }
.checks.compact li { padding: 8px 0; }
.checks.compact svg { width: 22px; height: 22px; }
.why-media { position: relative; }
.why-media img, .why-media .img-ph { border-radius: var(--radius); aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.why-card { position: absolute; bottom: -24px; inset-inline-start: -24px; background: var(--orange); color: #fff; padding: 20px 26px; border-radius: var(--radius); display: flex; align-items: center; gap: 14px; box-shadow: 0 18px 40px rgba(20,22,24,.25); }
.why-card strong { font-size: 44px; line-height: 1; font-weight: 900; }
.why-card span { font-weight: 700; line-height: 1.2; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } .why-card { inset-inline-start: 12px; bottom: 12px; } }

/* Process */
.process { background: var(--stone); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { background: #fff; padding: 28px; border-radius: var(--radius); position: relative; }
.steps .num { display: block; font-size: 40px; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq-inner { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--orange); font-size: 26px; line-height: 1; flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 0 0 18px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--orange); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .92; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #000; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(40px, 6vw, 64px) 0 110px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 16px; margin-bottom: 12px; letter-spacing: .04em; }
.footer-grid li { padding: 4px 0; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand .logo { height: 56px; width: auto; margin-bottom: 12px; }
.footer-brand .tagline { color: var(--orange); font-weight: 900; font-size: 20px; margin: 0 0 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; opacity: .7; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 961px) { .site-footer { padding-bottom: 48px; } }

/* Floating WA + mobile bar */
.wa-float { position: fixed; bottom: 24px; inset-inline-start: 24px; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 40; transition: transform .2s; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.06); }
.mobile-bar { display: none; }
@media (max-width: 960px) {
	.wa-float { display: none; }
	.mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; bottom: 0; inset-inline: 0; z-index: 45; background: var(--charcoal); border-top: 1px solid rgba(255,255,255,.1); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; color: #fff; font-weight: 700; font-size: 15px; border-radius: 4px; background: rgba(255,255,255,.08); }
	.mobile-bar a svg { width: 20px; height: 20px; }
	.mobile-bar .is-primary { background: var(--orange); }
}

/* ---------- Inner pages ---------- */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.side-card { background: var(--stone-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.side-card h3 { font-size: 18px; margin-top: 18px; }
.side-card h3:first-child { margin-top: 0; }
.mini-steps { counter-reset: m; }
.mini-steps li { counter-increment: m; padding: 6px 0 6px 0; display: flex; gap: 10px; }
.mini-steps li::before { content: counter(m); width: 24px; height: 24px; border-radius: 50%; background: var(--charcoal); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; }
.prose { max-width: 70ch; font-size: 18px; }
.prose-wide { max-width: 80ch; }
.prose h2 { font-size: 30px; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { list-style: disc; padding-inline-start: 1.3em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-inline-start: 1.3em; margin-bottom: 1em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose a { color: var(--orange); font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 16px 24px; border-inline-start: 5px solid var(--orange); background: var(--stone-2); font-weight: 700; }
.prose .wp-block-image { margin: 1.5em 0; }
.prose figcaption { color: var(--muted); font-size: 14px; }

/* Project page */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0 0 36px; }
.facts div { background: var(--stone-2); border-radius: var(--radius); padding: 16px 18px; }
.facts dt { font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: .04em; }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 18px; }
.ba { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); margin-bottom: 40px; user-select: none; background: var(--charcoal); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 0 0 50%); }
[dir="rtl"] .ba-before { clip-path: inset(0 50% 0 0); }
.ba-label { position: absolute; top: 14px; padding: 6px 12px; background: rgba(20,22,24,.75); color: #fff; font-weight: 700; font-size: 14px; border-radius: 4px; }
.ba-after .ba-label { inset-inline-start: 14px; }
.ba-before .ba-label { inset-inline-end: 14px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 2; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba-handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 40px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff !important; }
.chip.is-active, .chip:hover { background: var(--orange); border-color: var(--orange); }
.pagination { margin-top: 32px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; }
.pagination .current { background: var(--orange); border-color: var(--orange); }
.empty { color: var(--muted); }

/* ---------- Quote form ---------- */
.quote-body { background: var(--stone-2); }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.hp { position: absolute; inset-inline-start: -9999px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 28px; counter-reset: p; }
.progress li { counter-increment: p; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.progress li::before { content: counter(p, decimal-leading-zero) " "; color: var(--orange); }
.progress li.is-active { border-color: var(--orange); color: var(--ink); }
.progress li.is-done { border-color: var(--charcoal); }
.step { display: none; border: 0; padding: 0; margin: 0; }
.step.is-active { display: block; }
legend { font-size: 24px; font-weight: 900; margin-bottom: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 18px 16px; border: 2px solid var(--line); border-radius: var(--radius); font-weight: 700; text-align: center; transition: border-color .15s, background .15s; }
.choice input:checked + span { border-color: var(--orange); background: rgba(217,130,24,.08); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field input:user-invalid { border-color: #c0392b; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.step-nav .btn-primary { margin-inline-start: auto; }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
	.reveal.is-in { opacity: 1; transform: none; }
}
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ============================================================
   v2 – motion, scene, polish
   ============================================================ */
:root { --ease-out: cubic-bezier(.16,1,.3,1); --ease-io: cubic-bezier(.65,0,.35,1); }

/* Header: transparent over hero, solid after */
.is-home .site-header { position: fixed; inset-inline: 0; top: 0; background: transparent; border-color: transparent; backdrop-filter: none; transition: background .35s, border-color .35s, min-height .35s; }
.is-home .site-header.is-solid { background: rgba(30,33,38,.92); backdrop-filter: blur(12px); border-color: rgba(255,255,255,.08); }
.site-header .header-inner { transition: min-height .35s var(--ease-out); }
.site-header.is-solid .header-inner { min-height: 64px; }
.site-header.is-solid .brand .logo { height: 40px; }
.brand .logo { transition: height .35s var(--ease-out); }

/* Scroll progress */
.scroll-bar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-bar i { display: block; height: 100%; background: var(--orange); transform-origin: right; transform: scaleX(0); }

/* Hero v2 */
.hero { min-height: 100svh; }
.hero-media { transform: scale(1.12); animation: heroIn 2.4s var(--ease-out) forwards; will-change: transform; }
@keyframes heroIn { to { transform: scale(1.02); } }
.hero-title { font-size: clamp(40px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; }
.hero-inner { padding-bottom: clamp(56px, 9vw, 110px); }
.hero-levels { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 90px; z-index: 0; pointer-events: none; }
.hero-levels path { fill: none; stroke-width: 2; }
.hero-levels .lv-rough { stroke: rgba(232,226,214,.25); stroke-dasharray: 2400; stroke-dashoffset: 0; animation: lvRough 2.6s 1.2s var(--ease-io) forwards; }
.hero-levels .lv-flat { stroke: var(--orange); stroke-dasharray: 1440; stroke-dashoffset: 1440; animation: lvFlat 1.6s 2.2s var(--ease-out) forwards; }
@keyframes lvRough { to { opacity: 0; transform: translateY(6px); } }
@keyframes lvFlat { to { stroke-dashoffset: 0; } }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; max-width: 860px; }
.proofs li { padding-inline-end: 24px; margin-inline-end: 24px; border-inline-end: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 4px; }
.proofs li:last-child { border: 0; margin: 0; padding: 0; }
.proofs strong { font-size: clamp(17px, 1.6vw, 21px); font-weight: 900; color: #fff; }
.proofs strong::before { content: ""; display: inline-block; width: 10px; height: 11px; background: var(--orange); clip-path: var(--hex); margin-inline-end: 8px; vertical-align: 1px; }
.proofs span { font-size: 14px; color: rgba(255,255,255,.72); }
@media (max-width: 720px) { .proofs { grid-template-columns: 1fr; gap: 14px; } .proofs li { border: 0; padding: 0; margin: 0; } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--orange); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 960px) { .scroll-cue { display: none; } }

/* Split text */
[data-split] .w, [data-split-words] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span, [data-split-words] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + var(--d0, 0ms)); }
.is-split-in .w > span { transform: none; }
[data-anim="fade"] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.is-loaded [data-anim="fade"] { opacity: 1; transform: none; }
[data-anim="badge"] { opacity: 0; transform: scale(.6) rotate(-30deg); transition: opacity 1s .8s var(--ease-out), transform 1.2s .8s var(--ease-out); }
.is-loaded [data-anim="badge"] { opacity: .95; transform: none; }

/* Image reveal */
[data-reveal-img] img, [data-reveal-img] .img-ph { clip-path: inset(0 0 100% 0); transform: scale(1.15); transition: clip-path 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
[data-reveal-img].is-in img, [data-reveal-img].is-in .img-ph { clip-path: inset(0 0 0 0); transform: none; }
.project-card[data-reveal-img].is-in:hover img { transform: scale(1.05); transition: transform .6s var(--ease-out); }

/* Marquee */
.marquee { background: var(--orange); color: var(--ink); overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(0,0,0,.1); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-weight: 900; font-size: clamp(18px, 2vw, 26px); white-space: nowrap; }
.marquee i { width: 12px; height: 13px; background: var(--ink); clip-path: var(--hex); flex: none; }
@keyframes marquee { to { transform: translateX(50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Services v2 */
.service-card { padding-top: 32px; }
.service-num { position: absolute; top: 18px; inset-inline-end: 22px; font-weight: 900; font-size: 44px; color: rgba(43,47,54,.07); line-height: 1; transition: color .3s; }
.service-card:hover .service-num { color: rgba(217,130,24,.25); }
.service-card .hex { transition: transform .5s var(--ease-out), background .3s, color .3s; }
.service-card:hover .hex { transform: rotate(30deg) scale(1.06); background: var(--orange); color: #fff; }
.service-card:hover .hex svg { transform: rotate(-30deg); }
.service-card .hex svg { transition: transform .5s var(--ease-out); }
.service-card .more svg { transition: transform .3s var(--ease-out); }
.service-card:hover .more svg { transform: translateX(-6px); }

/* Scene */
.scene { position: relative; height: 520vh; background: var(--charcoal); color: #fff; padding: 0; }
.scene-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.scene-layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.scene-copy h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 22px; }
.scene-steps { display: grid; gap: 6px; }
.scene-steps li { display: flex; gap: 14px; padding: 12px 14px; border-radius: var(--radius); opacity: .35; transition: opacity .4s, background .4s; }
.scene-steps li.is-active { opacity: 1; background: rgba(255,255,255,.05); }
.scene-steps .n { flex: none; width: 34px; height: 38px; display: grid; place-items: center; clip-path: var(--hex); background: var(--charcoal-2); color: var(--orange); font-weight: 900; font-size: 14px; transition: background .4s, color .4s; }
.scene-steps li.is-active .n { background: var(--orange); color: #fff; }
.scene-steps strong { display: block; font-size: 19px; }
.scene-steps p { margin: 2px 0 0; font-size: 15px; color: rgba(255,255,255,.75); max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.scene-steps li.is-active p { max-height: 120px; }
.scene-progress { height: 3px; background: rgba(255,255,255,.12); margin-top: 22px; border-radius: 2px; overflow: hidden; }
.scene-progress i { display: block; height: 100%; background: var(--orange); transform-origin: right; transform: scaleX(0); }
.scene-skip { display: inline-block; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 4px; }
.scene-skip:hover { color: var(--orange); }
.scene-stage { border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); aspect-ratio: 2/1; background: #23262C; }
.scene-svg { display: block; width: 100%; height: 100%; }
.scene.is-static { height: auto; }
.scene.is-static .scene-sticky { position: relative; height: auto; padding: 80px 0; }
.scene.is-static .scene-steps li { opacity: 1; }
.scene.is-static .scene-steps p { max-height: none; }
@media (max-width: 960px) {
	.scene { height: 420vh; }
	.scene-layout { grid-template-columns: 1fr; gap: 16px; align-content: center; }
	.scene-stage { order: -1; aspect-ratio: 2/1.05; }
	.scene-copy h2 { font-size: 28px; margin-bottom: 8px; }
	.scene-copy .eyebrow { display: none; }
	.scene-steps li { display: none; padding: 10px 0; background: none !important; }
	.scene-steps li.is-active { display: flex; }
	.scene-steps li.is-active p { max-height: none; }
	.scene-skip { margin-top: 8px; }
}

/* Projects v2 */
.section-sub.light { color: rgba(255,255,255,.7); }
.project-go { position: absolute; top: 16px; inset-inline-start: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .4s var(--ease-out); }
.project-go svg { width: 20px; height: 20px; }
.project-card:hover .project-go { transform: none; }

/* Why v2 */
.why-card { gap: 16px; padding: 16px 22px 16px 26px; max-width: 320px; }
.why-card .badge { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.why-card span { font-size: 16px; line-height: 1.35; }

/* Team */
.team { background: var(--ink); color: #fff; overflow: hidden; }
.team .section-head.row { align-items: flex-end; }
.team .section-sub { color: rgba(255,255,255,.72); max-width: 46ch; margin: 0; }
.team-strip { display: flex; gap: 16px; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.team-strip::-webkit-scrollbar { display: none; }
.team-strip figure { margin: 0; flex: 0 0 clamp(240px, 26vw, 360px); aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--charcoal-2); }
.team-strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .5s; }
.team-strip figure:hover img { filter: none; }
.team-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Process v2: connecting line */
.steps { position: relative; }
.steps li { transition: transform .4s var(--ease-out), box-shadow .4s; }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,22,24,.1); }

/* CTA band paver texture */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
	background-image: linear-gradient(90deg, var(--ink) 2px, transparent 2px), linear-gradient(var(--ink) 2px, transparent 2px);
	background-size: 64px 32px, 64px 32px; background-position: 0 0, 0 0; mask-image: linear-gradient(90deg, #000, transparent 70%); }

/* Magnetic buttons */
[data-magnetic] { transition: transform .35s var(--ease-out), background .2s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	[data-split] .w > span, [data-split-words] .w > span, [data-anim] { transform: none !important; opacity: 1 !important; }
	[data-reveal-img] img { clip-path: none !important; transform: none !important; }
	.marquee-track { animation: none; }
}
