/*
 * NDC All Interiors — public website.
 * Minimal, light and dark. Brand charcoal + gold, Ubuntu throughout.
 * Signature: the stitched seam (dashed gold thread) used sparingly as an underline and divider.
 */

:root {
    --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Ubuntu Mono", ui-monospace, Menlo, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --gold: #b08941;
    --red: #c43a31;
    --red-hover: #a92f27;
    --ok: #16a34a;
    --bad: #dc2626;

    --bg: #f8f7f4;
    --surface: #ffffff;
    --raised: #efede8;
    --ink: #1c1a1a;
    --ink-2: #57524c;
    --muted: #7a746c;
    --line: rgba(28, 26, 26, 0.1);
    --accent-ink: #7d6029;
    --header-bg: rgba(248, 247, 244, 0.86);

    --wrap: 1280px;
    --gutter: 32px;
    --section: 128px;
}

[data-theme="dark"] {
    --bg: #121111;
    --surface: #1a1919;
    --raised: #232121;
    --ink: #f1eee8;
    --ink-2: #b3ada4;
    --muted: #8c867d;
    --line: rgba(241, 238, 232, 0.1);
    --accent-ink: #d4b06e;
    --header-bg: rgba(18, 17, 17, 0.86);
    --ok: #4cc38a;
    --bad: #e5484d;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; transition: color 150ms var(--ease); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 400; line-height: 1.2; }
strong, b { font-weight: 500; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.h1 { font-size: 72px; line-height: 1.04; letter-spacing: -0.03em; font-weight: 300; }
.h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 300; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 400; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 36rem; }
.eyebrow { font-size: 13px; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background-image: linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 9px); background-size: 9px 2px; }

.prose { color: var(--ink-2); font-size: 18px; line-height: 1.75; max-width: 40rem; }
.prose > * + * { margin-top: 18px; }
.prose h2, .prose h3 { color: var(--ink); font-weight: 400; margin-top: 36px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 400; letter-spacing: 0.01em; cursor: pointer; white-space: nowrap; transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 150ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-lg { height: 52px; padding: 0 28px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--raised); color: var(--ink); }
.on-dark .btn-secondary, .hero .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.on-dark .btn-secondary:hover, .hero .btn-secondary:hover { border-color: #fff; color: #fff; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover svg { transform: translateX(4px); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar (optional) ---------- */
.topbar { background: var(--raised); color: var(--ink-2); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 14px; height: 14px; }
.topbar-links { display: flex; gap: 20px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease); }
.header .wrap { display: flex; align-items: center; gap: 40px; height: 88px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); line-height: 1; flex: none; }
.brand:hover { color: var(--ink); }
.brand img { height: 58px; width: auto; max-width: 200px; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 500; }
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-light { display: none; }
[data-theme="dark"] .logo-on-dark { display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { position: relative; color: var(--ink-2); font-size: 15px; padding: 8px 14px; transition: color 200ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background-image: linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 9px); background-size: 9px 2px; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.controls { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 999px; border: 1px solid var(--line); }
.lang { display: inline-flex; gap: 2px; }
.lang a { font-size: 13px; color: var(--muted); padding: 6px 8px; border-radius: 6px; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 200ms var(--ease); }
.icon-btn:hover { background: var(--raised); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; }

.header.scrolled { box-shadow: 0 1px 0 var(--line); }

/* Home: the header sits inside the hero window, over the video */
.has-hero .header { position: fixed; top: 20px; left: 20px; right: 20px; background: transparent; border-bottom: 0; backdrop-filter: none; box-shadow: none; }
.has-hero .header:not(.scrolled) .wrap { max-width: none; padding: 0 64px; height: 104px; } /* same 64px inset as .hero-inner, so the logo lines up with the copy and the button with the sector list */
.has-hero .header:not(.scrolled) .brand, .has-hero .header:not(.scrolled) .nav a, .has-hero .header:not(.scrolled) .lang a, .has-hero .header:not(.scrolled) .icon-btn { color: rgba(255, 255, 255, 0.86); }
.has-hero .header:not(.scrolled) .nav a:hover, .has-hero .header:not(.scrolled) .nav a[aria-current="page"], .has-hero .header:not(.scrolled) .lang a[aria-current="true"] { color: #fff; }
.has-hero .header:not(.scrolled) .icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.has-hero .header:not(.scrolled) .controls { border-color: rgba(255, 255, 255, 0.22); }
.has-hero .header:not(.scrolled) .logo-on-light { display: none; }
.has-hero .header:not(.scrolled) .logo-on-dark { display: block; }
/* Sticky: once the page scrolls, the menu docks to the top as a solid bar */
.has-hero .header.scrolled { top: 0; left: 0; right: 0; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); animation: dock 400ms var(--ease); }
@keyframes dock { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section.bg-muted { background: var(--raised); }
.section.bg-dark, .on-dark { background: #121111; color: #b3ada4; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .h1, .on-dark .h2, .on-dark .h3 { color: #f1eee8; }
.on-dark .lede { color: #b3ada4; }
.on-dark .eyebrow, .on-dark .muted { color: #8c867d; }
.on-dark a:not(.btn) { color: #f1eee8; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.section-head .lede { margin-top: 16px; }

/* Hero: the reel sits in a framed window below the header; copy bottom-left, sectors bottom-right */
.hero { padding: 20px; }
.has-hero .hero-progress { top: 104px; } /* header band is 104px with the 58px logo centered: equal space above and below the logo */
.hero-frame { position: relative; height: calc(100svh - 40px); min-height: 600px; max-height: 960px; border-radius: 20px; overflow: hidden; background: #121111; color: #fff; isolation: isolate; }
.hero.hero-short .hero-frame { height: 64svh; min-height: 460px; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1200ms var(--ease), transform 7000ms linear; }
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 12, 11, 0.88) 0%, rgba(14, 12, 11, 0.45) 40%, rgba(14, 12, 11, 0.05) 75%), linear-gradient(90deg, rgba(14, 12, 11, 0.45) 0%, rgba(14, 12, 11, 0) 60%); }
.hero-inner { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: end; padding: 64px; }
.hero-content { max-width: 760px; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero h1, .hero .h1 { color: #fff; font-weight: 500; letter-spacing: -0.025em; }
.hero .lede { color: rgba(255, 255, 255, 0.8); margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero .btn-primary svg { transition: transform 200ms var(--ease); }
.hero .btn-primary:hover svg { transform: translateX(3px); }
.hero-sectors { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.hero-sectors a { display: grid; grid-template-columns: 28px 1fr 16px; align-items: center; gap: 8px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.82); font-size: 15px; transition: color 200ms var(--ease), padding 300ms var(--ease); }
.hero-sectors a .mono { font-size: 12px; color: var(--gold); }
.hero-sectors a .icon { width: 16px; height: 16px; opacity: 0.5; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.hero-sectors a:hover { color: #fff; padding-left: 6px; }
.hero-sectors a:hover .icon { opacity: 1; transform: translateX(2px); }
.hero-progress { position: absolute; left: 64px; right: 64px; top: 28px; height: 2px; background: rgba(255, 255, 255, 0.16); border-radius: 1px; overflow: hidden; }
.hero-progress span { display: block; height: 100%; width: 0; background-image: linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px); background-size: 10px 2px; }

/* Inner page header */
.page-hero { padding: 120px 0 72px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 20px; }
.breadcrumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }

/* Sectors: image tiles, caption below */
.sectors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.sector { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; color: inherit; }
.sector:nth-child(1), .sector:nth-child(2) { grid-column: span 3; }
.sector:hover { color: inherit; }
.sector-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--raised); }
.sector:nth-child(1) .sector-img, .sector:nth-child(2) .sector-img { aspect-ratio: 16 / 10; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.sector:hover .sector-img img { transform: scale(1.04); }
.sector-body { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sector-body h3 { font-size: 21px; }
.sector-body p { display: none; }
.sector-meta { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Projects */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.project-card { display: flex; flex-direction: column; gap: 18px; color: inherit; }
.project-card:hover { color: inherit; }
.project-card .ph { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--raised); }
.project-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.project-card:hover .ph img { transform: scale(1.04); }
.project-card h3 { font-size: 20px; margin-top: 6px; }
.project-meta { display: flex; gap: 8px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.project-meta span + span::before { content: "·"; margin-right: 8px; }

/* Image + text */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: 96px; align-items: center; }
.split-img { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--raised); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split .prose { margin-top: 28px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 0; margin: 0; }
.step { border-top: 1px solid var(--line); padding-top: 28px; }
.step-num { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); }
.step h3 { margin-top: 20px; font-size: 20px; }
.step p { margin-top: 10px; font-size: 16px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.stat-value { font-size: 56px; font-weight: 300; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.on-dark .stat-value { color: #f1eee8; }
.stat-label { margin-top: 12px; font-size: 15px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; }
.quote-card { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.quote-card blockquote { margin: 0; font-size: 24px; font-weight: 300; line-height: 1.45; color: var(--ink); }
.quote-by { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.quote-by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-by strong { color: var(--ink); display: block; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 96px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; font-size: 19px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 300ms var(--ease); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 40rem; }

/* CTA */
.cta-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.cta-band .lede { margin-top: 16px; }
.cta-band .hero-actions { margin-top: 0; flex: none; }

/* Services */
.svc-group + .svc-group { margin-top: 112px; }
.svc-group-head { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; }
.svc-list { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); color: inherit; align-items: center; transition: padding 300ms var(--ease); }
.svc-row:hover { color: inherit; padding-left: 8px; }
.svc-row h3 { font-size: 20px; }
.svc-row p { font-size: 16px; margin-top: 6px; }
.svc-price { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-size: 14px; border: 1px solid transparent; transition: border-color 200ms var(--ease), color 200ms var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--line); }
.chip[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.chip .mono { font-size: 12px; opacity: 0.6; }
.search { position: relative; }
.search .icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { height: 40px; width: 260px; padding: 0 0 0 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.search input:focus { box-shadow: none; border-bottom-color: var(--ink); }

.pagination { display: flex; gap: 4px; list-style: none; padding: 0; margin: 72px 0 0; justify-content: center; flex-wrap: wrap; }
.page-link { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; align-items: center; justify-content: center; border-radius: 999px; color: var(--ink-2); font-size: 14px; }
.page-item.active .page-link { background: var(--ink); color: var(--bg); }
.page-item.disabled .page-link { opacity: 0.35; }
nav[role="navigation"] > div:first-child, nav[role="navigation"] p.small { display: none; }

/* Project detail */
.project-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 48px 0 0; }
.fact-label { font-size: 13px; color: var(--muted); }
.fact-value { color: var(--ink); margin: 6px 0 0; }
.cover { overflow: hidden; border-radius: 6px; margin-top: 56px; aspect-ratio: 16 / 8; background: var(--raised); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery a { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; display: block; background: var(--raised); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.detail-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 96px; margin-top: 72px; }
.aside-card { position: sticky; top: 112px; padding-top: 28px; border-top: 1px solid var(--ink); }
.aside-card h3 { font-size: 20px; }
.aside-card p { font-size: 16px; margin: 10px 0 24px; }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn, .aside-card .btn + form, .aside-card form + .btn { margin-top: 10px; }
.aside-card .btn.btn-sm { width: auto; margin-top: 0; }

/* Forms */
.form-card { padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.field .error { font-size: 13px; color: var(--bad); margin-top: 8px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], select, textarea {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400;
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background-color 300ms var(--ease);
}
textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 137, 65, 0.18); }
[data-theme="dark"] input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1); }
.is-invalid { border-color: var(--bad) !important; }
input[type=file] { font-size: 14px; color: var(--ink-2); }
.drop { border: 1px dashed var(--line); border-radius: 8px; padding: 24px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--muted); }
.notice { display: flex; gap: 12px; padding: 18px 20px; border-radius: 8px; background: rgba(22, 163, 74, 0.08); color: var(--ink); margin-bottom: 32px; font-size: 16px; }
.notice .icon { color: var(--ok); margin-top: 3px; }
.notice.error { background: rgba(220, 38, 38, 0.08); }
.notice.error .icon { color: var(--bad); }
.hp { position: absolute; left: -9999px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--ink); cursor: pointer; transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.slot span:hover { border-color: var(--ink); }
.slot input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slot input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { margin: 0; }

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 96px; }
.contact-list { display: flex; flex-direction: column; gap: 28px; margin-top: 48px; }
.contact-item { display: grid; grid-template-columns: 20px 1fr; gap: 16px; }
.contact-item .icon { margin-top: 4px; color: var(--muted); }
.contact-item .label { font-size: 13px; color: var(--muted); }
.contact-item .value { color: var(--ink); }
.map { margin-top: 40px; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Documents */
.doc { background: var(--surface); border-radius: 8px; padding: 56px; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 16px; }
.doc th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--ink); }
.doc td { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.doc .r { text-align: right; padding-left: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.totals { width: 100%; max-width: 320px; margin-left: auto; margin-top: 20px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 16px; }
.totals .grand { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 14px; font-size: 20px; color: var(--ink); }
.totals .due { color: var(--accent-ink); }
.pay-box { display: flex; flex-direction: column; gap: 10px; }
.status-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.status-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-tag.paid, .status-tag.accepted { color: var(--ok); }
.status-tag.overdue, .status-tag.rejected { color: var(--bad); }
.status-tag.partial, .status-tag.sent { color: var(--accent-ink); }
.stat-value.due-figure { font-size: 40px; margin: 8px 0 24px; }

/* Footer */
.footer { background: #121111; color: #b3ada4; padding: 112px 0 40px; font-size: 15px; }
[data-theme="dark"] .footer { background: #0c0b0b; }
.footer a { color: #b3ada4; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 5fr 2fr 3fr 3fr; gap: 56px; }
.footer .brand img { height: 72px; }
.footer .brand .logo-on-light { display: none; }
.footer .brand .logo-on-dark { display: block; }
.footer-about { margin-top: 28px; max-width: 24rem; }
.footer h4 { color: #f1eee8; font-size: 14px; font-weight: 400; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: #8c867d; width: 16px; height: 16px; }
.socials { display: flex; gap: 4px; margin-top: 28px; }
.socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; transition: background-color 200ms var(--ease); }
.socials a:hover { background: rgba(255, 255, 255, 0.08); }
.footer-bottom { margin-top: 96px; padding-top: 28px; border-top: 1px solid rgba(241, 238, 232, 0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8c867d; }
.footer-bottom a { color: #b3ada4; }
.footer-seam { display: none; }

.empty { padding: 64px; text-align: center; color: var(--muted); }

/* ---------- Motion: reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Hidden from first paint (the .js class is set inline in <head>), shown by site.js when in view */
    .js main .section-head, .js main .sector, .js main .project-card, .js main .step, .js main .split > *, .js main .faq-wrap > *, .js main .cta-band > *, .js main .svc-row, .js main .quote-card, .js main .gallery figure, .js main .cover, .js main .project-facts, .js main .detail-grid > *, .js main .contact-grid > * { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--delay, 0ms); }
    .js main .section-head.is-visible, .js main .sector.is-visible, .js main .project-card.is-visible, .js main .step.is-visible, .js main .split > *.is-visible, .js main .faq-wrap > *.is-visible, .js main .cta-band > *.is-visible, .js main .svc-row.is-visible, .js main .quote-card.is-visible, .js main .gallery figure.is-visible, .js main .cover.is-visible, .js main .project-facts.is-visible, .js main .detail-grid > *.is-visible, .js main .contact-grid > *.is-visible { opacity: 1; transform: none; }
    .rise { animation: rise 1000ms var(--ease) both; }
    .rise-2 { animation-delay: 120ms; }
    .rise-3 { animation-delay: 240ms; }
    @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    
    .hero-media video { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .h1 { font-size: 56px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { gap: 56px; }
}
@media (max-width: 900px) {
    :root { --section: 88px; --gutter: 20px; }
    .h1 { font-size: 42px; line-height: 1.08; }
    .h2 { font-size: 32px; }
    .lede { font-size: 17px; }
    .hero { padding: 12px; }
    .hero-frame { height: auto; min-height: calc(100svh - 24px); border-radius: 16px; }
    .has-hero .header:not(.scrolled) { top: 12px; left: 12px; right: 12px; }
    .has-hero .header:not(.scrolled) .wrap { padding: 0 24px; height: 88px; }
    .has-hero .hero-progress { top: 88px; }
    .hero-inner { padding-top: 120px; }
    .has-hero .nav.open { border-radius: 0 0 16px 16px; }
    .has-hero .nav.open a { color: var(--ink-2); }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px; }
    .hero-progress { left: 24px; right: 24px; top: 20px; }
    .brand img { height: 46px; }
    .split, .faq-wrap, .contact-grid, .detail-grid, .svc-group-head { grid-template-columns: 1fr; gap: 48px; }
    .sectors { grid-template-columns: 1fr 1fr; }
    .sector, .sector:nth-child(1), .sector:nth-child(2) { grid-column: auto; }
    .sector:nth-child(1) { grid-column: 1 / -1; }
    .grid-3, .gallery { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; gap: 32px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; }
    .project-facts { grid-template-columns: 1fr 1fr; }
    .aside-card { position: static; }
    .nav-toggle { display: inline-flex; }
    .nav { display: none; position: absolute; top: 88px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; gap: 0; }
    .nav.open { display: flex; }
    .nav a { padding: 14px 0; font-size: 17px; }
    .nav a::after { left: 0; right: auto; width: 40px; }
    .header .header-cta { display: none; }
    .header-actions { margin-left: auto; }
    .search input { width: 100%; }
    .filters { flex-direction: column; align-items: stretch; }
    .page-hero { padding: 72px 0 48px; }
    .doc { padding: 24px; }
}
@media (max-width: 600px) {
    .grid-3, .gallery, .sectors, .form-grid, .stats, .steps { grid-template-columns: 1fr; }
    .sector:nth-child(1) { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .project-facts { grid-template-columns: 1fr; }
    .topbar-links a span { display: none; }
    .lang { display: none; }
}

@media print {
    .topbar, .header, .footer, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    .doc { padding: 0; }
}
