:root {
  --ink: #171816;
  --text: #3f423d;
  --muted: #70746d;
  --line: #e4ded2;
  --paper: #ffffff;
  --ivory: #fbf8f1;
  --stone: #f2eee5;
  --warm: #d5b982;
  --oak: #9b7650;
  --moss: #315f4d;
  --moss-dark: #203f35;
  --clay: #8b5d4b;
  --shadow: 0 22px 70px rgba(23, 24, 22, .12);
  --shadow-soft: 0 12px 34px rgba(23, 24, 22, .08);
  --radius: 8px;
  --container: 1220px;
  --gutter: clamp(18px, 4vw, 56px);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
body.nav-lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(155, 118, 80, .75); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 120; padding: 10px 14px; border-radius: 6px; color: #fff; background: var(--ink); text-decoration: none; }
.skip-link:focus { top: 16px; }

h1, h2, h3 { color: var(--ink); letter-spacing: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 650; line-height: .98; }
h3 { font-weight: 750; line-height: 1.15; }
p { margin: 0; }
.prose { display: grid; gap: 16px; }
.prose h2, .prose h3 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(28px, 3vw, 42px); }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { margin: 0; padding-left: 1.1rem; }
.eyebrow { margin: 0 0 14px; color: var(--moss); font-size: 12px; font-weight: 850; line-height: 1.2; text-transform: uppercase; letter-spacing: .1em; }

.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(228, 222, 210, .82); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(23, 24, 22, .08); }
.site-header__bar { width: min(100%, 1460px); min-height: 82px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 24px; line-height: 1; font-weight: 800; }
.brand small { color: var(--muted); font-size: 11px; line-height: 1.1; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.2vw, 18px); }
.nav-link, .primary-nav a { color: var(--ink); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.nav-link { min-height: 42px; display: inline-flex; align-items: center; }
.nav-link:hover, .nav-link:focus-visible, .primary-nav a:hover { color: var(--moss); }
.nav-link--cta { min-height: 44px; padding: 0 16px; border: 1px solid var(--moss); border-radius: 999px; color: var(--moss) !important; }
.nav-link--cta:hover, .nav-link--cta:focus-visible { background: var(--moss); color: #fff !important; }
.nav-group { position: relative; display: flex; align-items: center; }
.nav-link--dropdown:after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-menu { position: absolute; top: calc(100% + 15px); left: 50%; width: 300px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.nav-menu:before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.nav-menu a { display: block; padding: 12px 14px; border-radius: 6px; color: var(--text); font-size: 13px; line-height: 1.25; font-weight: 700; text-transform: none; letter-spacing: 0; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--ivory); color: var(--moss); outline: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 800; line-height: 1.1; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--moss); border-color: var(--moss); color: #fff; }
.button--primary:hover { background: var(--moss-dark); border-color: var(--moss-dark); }
.button--secondary { background: transparent; border-color: rgba(49, 95, 77, .36); color: var(--moss); }
.button--secondary:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.button--hero { border-color: rgba(255,255,255,.58); color: #fff; }
.button--hero:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }
.button--light { border-color: #fff; background: #fff; color: var(--moss-dark); }
.button--ghost-light { border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
.button--ghost-light:hover { background: rgba(255,255,255,.12); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding: clamp(58px, 8vw, 112px) var(--gutter); }
.section > * { width: min(100%, var(--container)); margin-left: auto; margin-right: auto; }
.section--soft { background: var(--ivory); }
.section-heading { max-width: 850px; margin: 0 auto clamp(34px, 5vw, 58px); text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 6vw, 76px); }
.section-heading p:last-child { max-width: 680px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }
.section-heading--split { max-width: var(--container); display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; text-align: left; }
.section-heading--split h2 { max-width: 780px; }
.section-heading--split p:last-child { max-width: 430px; margin: 0; }
.split-intro { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(300px, .72fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.split-intro h2 { margin: 0; font-size: clamp(38px, 5.6vw, 74px); }
.lead-copy { font-size: 17px; }

.home-hero { position: relative; min-height: calc(100svh - 82px); display: grid; align-items: end; padding: clamp(104px, 13vh, 156px) var(--gutter) clamp(28px, 4vw, 54px); overflow: hidden; isolation: isolate; background: #141511; }
.home-hero__image { position: absolute; inset: 0; z-index: -2; }
.home-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 64%; filter: saturate(.94) contrast(1.03); }
.home-hero:after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 8, 7, .9), rgba(7, 8, 7, .62) 42%, rgba(7, 8, 7, .16) 78%), linear-gradient(180deg, rgba(9, 10, 9, .06), rgba(9, 10, 9, .68)); }
.home-hero__content { width: min(100%, 790px); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.26); }
.home-hero__content .eyebrow { color: #e8cd90; }
.home-hero h1 { margin: 0; color: #fffaf0; font-size: clamp(48px, 8vw, 102px); line-height: .94; }
.home-hero__content p:not(.eyebrow) { max-width: 660px; margin-top: 22px; color: rgba(255,255,255,.82); font-size: clamp(17px, 1.55vw, 22px); }
.home-hero__proof { width: min(100%, var(--container)); margin-top: clamp(38px, 6vw, 78px); display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.24); background: rgba(16, 17, 15, .58); backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.home-hero__proof span { min-height: 76px; display: grid; place-items: center; padding: 16px; border-right: 1px solid rgba(255,255,255,.18); color: #fff; text-align: center; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.home-hero__proof span:last-child { border-right: 0; }
.reveal-on-load { opacity: 0; transform: translateY(18px); animation: revealUp .75s ease .18s forwards; }
@keyframes revealUp { to { opacity: 1; transform: none; } }

.solution-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; }
.image-card { position: relative; min-height: 430px; display: grid; align-content: end; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; background: #222; box-shadow: var(--shadow-soft); }
.image-card--large { grid-column: span 2; grid-row: span 2; min-height: 620px; }
.image-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.image-card:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.76)); }
.image-card span, .project-card span { position: relative; z-index: 1; display: block; margin: 0 24px 8px; color: #e4c47e; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.image-card h3 { position: relative; z-index: 1; margin: 0 24px 24px; color: #fff; font-size: clamp(24px, 2.7vw, 38px); }
.image-card:hover img, .image-card:focus-visible img, .project-card:hover img { transform: scale(1.045); }
.image-card, .project-card, .content-card { will-change: transform; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-grid article, .process-grid article, .spec-grid article, .detail-card, .material-cards article, .hours-card { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.feature-grid span, .process-grid span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--moss); color: #fff; font-size: 12px; font-weight: 850; }
.feature-grid h3, .process-grid h3, .spec-grid h3, .detail-card h3, .material-cards h3 { margin: 0; color: var(--ink); font-size: 23px; }
.feature-grid p, .process-grid p, .spec-grid p, .detail-card p, .material-cards p { margin-top: 12px; color: var(--muted); }

.section--portfolio { background: var(--stone); }
.project-showcase { position: relative; margin: 0 auto 28px; padding: clamp(16px, 2.4vw, 26px); overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, #151614, #264238 54%, #7a6147); box-shadow: var(--shadow); color: #fff; }
.project-showcase:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 12%, rgba(213,185,130,.2), transparent 28%), linear-gradient(180deg, rgba(255,255,255,.08), transparent 42%); pointer-events: none; }
.project-showcase__viewport { position: relative; min-height: clamp(360px, 48vw, 560px); perspective: 1300px; }
.project-showcase__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.project-showcase__slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(260px, .92fr) minmax(300px, .72fr); gap: clamp(18px, 4vw, 54px); align-items: end; opacity: 0; pointer-events: none; transform: translate3d(0, 32px, -160px) rotateY(0) scale(.86); transition: opacity .65s ease, transform .65s ease, filter .65s ease; filter: saturate(.76) brightness(.76); }
.project-showcase__slide.is-active { opacity: 1; z-index: 3; pointer-events: auto; transform: translate3d(0, 0, 90px) rotateY(0) scale(1); filter: none; }
.project-showcase__slide.is-prev { opacity: .34; z-index: 1; transform: translate3d(-29%, 12px, -120px) rotateY(18deg) scale(.82); }
.project-showcase__slide.is-next { opacity: .42; z-index: 2; transform: translate3d(29%, 12px, -110px) rotateY(-18deg) scale(.84); }
.project-showcase__media { position: relative; height: clamp(330px, 46vw, 540px); overflow: hidden; border: 0; border-radius: var(--radius); background: #23241f; box-shadow: 0 28px 80px rgba(0,0,0,.34); cursor: zoom-in; }
.project-showcase__media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transform: scale(1.03); transition: transform 6s ease; }
.project-showcase__slide.is-active .project-showcase__media img { transform: scale(1.1) translate3d(1.5%, -1.5%, 0); }
.project-showcase__copy { position: relative; z-index: 4; max-width: 430px; padding: clamp(20px, 3vw, 34px); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(17, 18, 16, .62); backdrop-filter: blur(14px); box-shadow: 0 20px 56px rgba(0,0,0,.22); }
.project-showcase__copy span { display: block; margin-bottom: 10px; color: #e4c47e; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.project-showcase__copy h3 { margin: 0; color: #fffaf0; font-family: var(--display); font-size: clamp(36px, 5.4vw, 70px); font-weight: 650; line-height: .96; }
.project-showcase__copy p { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; }
.project-showcase__bar { position: relative; z-index: 5; min-height: 54px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px auto; gap: 10px; align-items: center; margin-top: 16px; }
.project-showcase__control, .project-showcase__pause, .project-showcase__dot { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; transition: background .18s ease, transform .18s ease; }
.project-showcase__control { width: 48px; height: 48px; border-radius: 8px; font-size: 30px; line-height: 1; }
.project-showcase__pause { min-height: 42px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.project-showcase__dots { display: flex; justify-content: center; gap: 8px; }
.project-showcase__dot { width: 11px; height: 11px; padding: 0; border-radius: 999px; font-size: 0; }
.project-showcase__dot.is-active { width: 34px; background: #e4c47e; border-color: #e4c47e; }
.project-showcase__control:hover, .project-showcase__pause:hover, .project-showcase__dot:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.portfolio-tabs { max-width: var(--container); margin: 0 auto 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.portfolio-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; }
.portfolio-tabs button span { min-width: 28px; padding: 3px 8px; border-radius: 999px; background: var(--ivory); color: var(--moss); font-size: 11px; line-height: 1; }
.portfolio-tabs button.is-active, .portfolio-tabs button:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.portfolio-tabs button.is-active span, .portfolio-tabs button:hover span { background: rgba(255,255,255,.18); color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 18px; }
.project-card { position: relative; min-height: 340px; overflow: hidden; border-radius: var(--radius); background: #ddd; box-shadow: var(--shadow-soft); transition: transform .22s ease, box-shadow .22s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card--feature { grid-column: span 2; grid-row: span 2; min-height: 520px; }
.project-card.is-hidden { display: none; }
.gallery-trigger { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; display: block; cursor: zoom-in; }
.gallery-trigger img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform .45s ease; }
.project-card > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 0 20px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); pointer-events: none; }
.project-card h3 { position: relative; z-index: 1; margin: 0 24px; color: #fff; font-family: var(--display); font-size: 31px; font-weight: 650; }

.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.comparison-section { background: #fff; }
.before-after { position: relative; width: min(100%, 920px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--stone); box-shadow: var(--shadow); }
.before-after > img, .before-after__after img { width: 100%; height: 100%; object-fit: cover; }
.before-after__after { position: absolute; inset: 0 auto 0 0; overflow: hidden; border-right: 2px solid #fff; }
.before-after__after img { width: 920px; max-width: none; }
.before-after input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.before-after__handle { position: absolute; top: 0; bottom: 0; left: 54%; width: 2px; background: #fff; pointer-events: none; }
.before-after__handle:after { content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; border: 2px solid #fff; border-radius: 50%; background: rgba(32,63,53,.86); box-shadow: 0 10px 28px rgba(0,0,0,.24); transform: translate(-50%, -50%); }
.material-story { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(320px, 1fr); gap: clamp(30px, 6vw, 84px); align-items: center; background: var(--ink); color: #fff; }
.material-story > * { width: auto; max-width: none; }
.material-story h2 { margin: 0; color: #fffaf0; font-size: clamp(40px, 5.4vw, 76px); }
.material-story p:not(.eyebrow) { max-width: 640px; margin-top: 16px; color: rgba(255,255,255,.74); }
.material-story .eyebrow { color: #e4c47e; }
.material-cards { display: grid; gap: 14px; }
.material-cards article { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); box-shadow: none; }
.material-cards span { color: #e4c47e; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.material-cards h3 { color: #fff; }
.material-cards p { color: rgba(255,255,255,.7); }
.final-cta { text-align: center; color: #fff; background: linear-gradient(135deg, var(--moss-dark), #554238 58%, var(--clay)); }
.final-cta h2 { margin: 0 auto; max-width: 860px; color: #fffaf0; font-size: clamp(42px, 6vw, 78px); }
.final-cta p:not(.eyebrow) { max-width: 690px; margin: 16px auto 0; color: rgba(255,255,255,.78); }
.final-cta .hero-actions { justify-content: center; }
.final-cta .eyebrow { color: #e4c47e; }

.page-hero { min-height: clamp(460px, 60vh, 660px); padding: clamp(54px, 7vw, 92px) var(--gutter); display: grid; grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr); gap: clamp(30px, 6vw, 86px); align-items: center; background: linear-gradient(120deg, var(--ivory), #fff 58%, var(--stone)); }
.page-hero > * { min-width: 0; }
.page-hero__copy h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 82px); }
.page-hero__copy > p:not(.eyebrow) { max-width: 600px; margin-top: 16px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); }
.page-hero__media { position: relative; margin: 0; }
.page-hero__media:before { content: ""; position: absolute; inset: 8% -3% -7% 8%; border: 1px solid rgba(49,95,77,.16); border-radius: var(--radius); background: rgba(255,255,255,.52); }
.page-hero__media img { position: relative; width: 100%; height: clamp(330px, 50vh, 560px); object-fit: cover; object-position: center; border-radius: var(--radius); box-shadow: var(--shadow); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.breadcrumbs a { color: var(--moss); text-decoration: none; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.content-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.content-card:hover { transform: translateY(-4px); border-color: rgba(49,95,77,.28); box-shadow: var(--shadow); }
.content-card .gallery-trigger { aspect-ratio: 4 / 3; background: #eee8dc; }
.content-card .gallery-trigger img { min-height: 0; }
.content-card--panorama .gallery-trigger { aspect-ratio: 16 / 9; padding: 10px; background: #151614; }
.content-card--panorama .gallery-trigger img { object-fit: contain; background: #151614; border-radius: 4px; }
.content-card__badge { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; background: rgba(21,22,20,.72); color: #fff; font-size: 11px; font-weight: 850; line-height: 1; text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(8px); }
.content-card__body { display: grid; gap: 10px; padding: clamp(20px, 2.4vw, 28px); }
.content-card h3 { margin: 0; font-size: clamp(22px, 2.2vw, 29px); }
.content-card p { color: var(--muted); }
.text-link, .detail-card span { display: inline-flex; margin-top: 4px; color: var(--moss); font-weight: 850; text-decoration: none; }
.text-link:hover, .detail-card:hover span { text-decoration: underline; text-underline-offset: 4px; }
.detail-card { color: inherit; text-decoration: none; }
.product-grid .content-card .gallery-trigger { aspect-ratio: 5 / 4; }
.card-grid--materials .content-card .gallery-trigger { aspect-ratio: 4 / 3; background: var(--stone); }
.spec-section { padding-top: 0; background: var(--ivory); }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }

.contact-layout { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(320px, 1.15fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
.contact-layout > * { width: auto; max-width: none; }
.contact-panel h2, .contact-form h2 { margin: 0; font-size: clamp(34px, 4.5vw, 62px); }
.contact-methods { display: grid; gap: 12px; margin-top: 28px; }
.contact-methods a { display: grid; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; box-shadow: var(--shadow-soft); }
.contact-methods strong { color: var(--ink); font-size: 18px; }
.contact-methods span { color: var(--muted); }
.hours-card { margin-top: 18px; }
.hours-card h3 { margin: 0 0 10px; }
.contact-form { display: grid; gap: 14px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 800; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px; background: #fbfaf7; color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.checkbox-label { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; color: var(--text) !important; font-weight: 650 !important; }
.checkbox-label input { width: auto; margin-top: 5px; }
.form-messages { display: grid; gap: 8px; }
.form-messages p { margin: 0; padding: 12px 14px; border-radius: 6px; font-weight: 700; }
.form-messages .success { background: #e7f4eb; color: #17462d; }
.form-messages .error { background: #fff0ed; color: #7a2b1e; }

.site-footer { padding: clamp(46px, 6vw, 76px) var(--gutter) 24px; background: #151614; color: rgba(255,255,255,.74); }
.site-footer__grid { width: min(100%, var(--container)); margin: 0 auto; display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, .7fr)); gap: clamp(28px, 5vw, 70px); }
.site-footer h2 { margin: 0 0 16px; color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 850; line-height: 1.2; text-transform: uppercase; letter-spacing: .1em; }
.site-footer section { display: grid; align-content: start; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { max-width: 420px; }
.brand--footer strong { color: #fff; }
.brand--footer small { color: rgba(255,255,255,.62); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.site-footer__bottom { width: min(100%, var(--container)); margin: 42px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 18px; color: rgba(255,255,255,.58); font-size: 13px; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px; background: #1d7f4b; color: #fff; font-size: 13px; font-weight: 850; text-decoration: none; box-shadow: 0 14px 34px rgba(0,0,0,.22); transition: transform .18s ease, background .18s ease; }
.whatsapp-float:hover { transform: translateY(-2px); background: #176a3f; }
.reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .62s ease, transform .62s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 120; display: none; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 22px; background: rgba(10,12,10,.92); backdrop-filter: blur(10px); }
.lightbox.is-open { display: grid; }
.lightbox__stage { position: relative; min-height: 0; display: grid; place-items: center; }
.lightbox img { width: auto; max-width: min(1120px, 88vw); max-height: calc(100svh - 150px); object-fit: contain; background: #fff; box-shadow: 0 26px 70px rgba(0,0,0,.38); touch-action: pan-y; }
.lightbox__panel { width: min(100%, 920px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(23,24,22,.78); box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.lightbox__caption { min-width: 0; color: #fff; }
.lightbox__caption-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 850; line-height: 1.25; }
.lightbox__caption-detail { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; line-height: 1.25; }
.lightbox__controls { display: inline-flex; align-items: center; gap: 8px; }
.lightbox__count { min-width: 48px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 850; text-align: center; }
.lightbox__close, .lightbox__nav { border: 1px solid rgba(255,255,255,.42); border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.lightbox__close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.lightbox__nav { width: 52px; height: 52px; font-size: 34px; line-height: 1; }
.lightbox__stage .lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__stage .lightbox__nav--prev { left: 0; }
.lightbox__stage .lightbox__nav--next { right: 0; }
.lightbox__panel .lightbox__nav { display: none; }
.lightbox__close:hover, .lightbox__close:focus-visible, .lightbox__nav:hover, .lightbox__nav:focus-visible { background: rgba(255,255,255,.26); }
.lightbox__nav:active { transform: scale(.96); }
.lightbox__stage .lightbox__nav:active { transform: translateY(-50%) scale(.96); }

.sitemap-page, .error-page { background: var(--ivory); }
.sitemap-hero, .error-hero { padding: clamp(58px, 8vw, 110px) var(--gutter); }
.sitemap-grid { width: min(100%, var(--container)); margin: 0 auto; padding: 0 var(--gutter) clamp(58px, 8vw, 110px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sitemap-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.sitemap-card h2 { margin: 0 0 14px; font-family: var(--display); font-size: 34px; }
.sitemap-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sitemap-card a { text-decoration: none; color: var(--text); }

@media (max-width: 1180px) {
  .primary-nav { position: fixed; inset: 82px 0 auto 0; display: none; max-height: calc(100svh - 82px); overflow: auto; padding: 16px var(--gutter) 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
  .site-header.is-open .primary-nav { display: grid; justify-content: stretch; gap: 6px; }
  .nav-toggle { display: inline-flex; }
  .nav-link, .primary-nav a { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 6px; font-size: 13px; }
  .nav-link:hover, .primary-nav a:hover { background: var(--ivory); }
  .nav-group { display: grid; align-items: stretch; }
  .nav-menu { position: static; width: auto; margin: 0 0 8px 14px; padding: 4px 0 4px 12px; border: 0; border-left: 2px solid var(--line); border-radius: 0; background: var(--ivory); box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-menu:before { display: none; }
  .nav-link--cta { border-radius: 6px; }
  .feature-grid, .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .section-heading--split, .split-intro, .material-story, .page-hero, .contact-layout { grid-template-columns: 1fr; display: grid; text-align: left; }
  .section-heading--split p:last-child { max-width: 720px; }
  .page-hero__media img { height: auto; aspect-ratio: 16 / 10; }
  .home-hero__proof, .process-grid, .spec-grid, .site-footer__grid { grid-template-columns: 1fr; }
  .home-hero__proof span { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .home-hero__proof span:last-child { border-bottom: 0; }
  .site-footer__bottom { display: grid; }
}
@media (max-width: 640px) {
  .site-header__bar { min-height: 72px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 20px; }
  .brand small { display: none; }
  .primary-nav { inset: 72px 0 auto 0; max-height: calc(100svh - 72px); }
  .home-hero { min-height: auto; padding-top: 92px; }
  .home-hero__content p:not(.eyebrow) { font-size: 17px; }
  .before-after { aspect-ratio: 3 / 4; }
  .before-after__after img { width: calc(100vw - 36px); }
  .home-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-actions .button { width: 100%; }
  .solution-grid, .feature-grid, .portfolio-grid, .card-grid, .sitemap-grid { grid-template-columns: 1fr; }
  .content-card--panorama .gallery-trigger { aspect-ratio: 4 / 3; padding: 8px; }
  .content-card__badge { left: 12px; bottom: 12px; min-height: 28px; padding: 0 10px; font-size: 10px; }
  .project-showcase { padding: 14px; }
  .project-showcase__viewport { min-height: 560px; perspective: 900px; }
  .project-showcase__slide { grid-template-columns: 1fr; align-content: end; gap: 0; }
  .project-showcase__slide.is-prev { opacity: .18; transform: translate3d(-22%, 8px, -120px) rotateY(14deg) scale(.84); }
  .project-showcase__slide.is-next { opacity: .22; transform: translate3d(22%, 8px, -120px) rotateY(-14deg) scale(.84); }
  .project-showcase__media { height: 560px; }
  .project-showcase__copy { align-self: end; max-width: none; margin: -170px 12px 18px; padding: 18px; }
  .project-showcase__copy h3 { font-size: 38px; }
  .project-showcase__bar { grid-template-columns: 54px minmax(0, 1fr) 54px; }
  .project-showcase__control { width: 54px; height: 52px; }
  .project-showcase__pause { grid-column: 1 / -1; justify-self: center; }
  .image-card, .image-card--large, .project-card, .project-card--feature { grid-column: auto; grid-row: auto; min-height: 360px; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .page-hero { min-height: 0; padding-top: 38px; padding-bottom: 42px; }
  .page-hero__copy h1 { font-size: clamp(38px, 12vw, 56px); }
  .lightbox { padding: 62px 10px 12px; gap: 10px; }
  .lightbox img { max-width: 96vw; max-height: calc(100svh - 184px); }
  .lightbox__close { top: 10px; right: 10px; width: 48px; height: 48px; background: rgba(23,24,22,.68); }
  .lightbox__stage .lightbox__nav { display: none; }
  .lightbox__panel { width: 100%; grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .lightbox__caption-title, .lightbox__caption-detail { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; }
  .lightbox__caption-title { -webkit-line-clamp: 2; font-size: 14px; }
  .lightbox__caption-detail { -webkit-line-clamp: 2; font-size: 12px; }
  .lightbox__controls { width: 100%; display: grid; grid-template-columns: 58px minmax(54px, 1fr) 58px; gap: 10px; }
  .lightbox__panel .lightbox__nav { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 52px; font-size: 32px; background: rgba(255,255,255,.18); }
  .lightbox__count { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.08); }
  .lightbox__nav:active { transform: scale(.96); }
  .whatsapp-float { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .project-showcase__slide, .project-showcase__media img { transition: none; }
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal-on-load { opacity: 1; transform: none; }
}
