:root {
    color-scheme: dark;
    --ink: #111212;
    --ink-soft: #1a1b1b;
    --panel: #222323;
    --paper: #f2efe8;
    --paper-dark: #e6e1d7;
    --gold: #c69f54;
    --gold-light: #dfbd79;
    --white: #fffdf8;
    --text: #d6d2c9;
    --muted: #a7a39a;
    --line: rgba(255,255,255,.11);
    --page: 1240px;
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
#reviews { scroll-margin-top: 104px; }
body {
    margin: 0;
    padding-top: 104px;
    background: var(--ink);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.container { width: min(var(--page), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3000; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); background: var(--gold); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

/* Soft cross-page motion where the browser supports view transitions. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-leave 180ms ease both; }
::view-transition-new(root) { animation: page-arrive 360ms cubic-bezier(.2,.65,.3,1) both; }
@keyframes page-leave {
    to { opacity: 0; transform: translateY(-5px); }
}
@keyframes page-arrive {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shared header */
.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    min-height: 104px;
    background: rgba(17,18,18,.94);
    border-bottom: 1px solid rgba(198,159,84,.35);
    backdrop-filter: blur(16px);
}
.header-inner { width: min(1360px, calc(100% - 52px)); min-height: 104px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 164px; height: 96px; object-fit: contain; border: 0; border-radius: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(15px, 2.1vw, 31px); }
.site-nav a { color: #e5e1d8; font-size: .9rem; font-weight: 650; letter-spacing: .07em; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-light); }
.site-nav .nav-quote { padding: 14px 21px; color: var(--ink); background: var(--gold); border-radius: 4px; font-size: .82rem; letter-spacing: .09em; }
.site-nav .nav-quote[aria-current="page"] { color: var(--ink); }
.site-nav .nav-quote:hover { color: var(--ink); background: var(--gold-light); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid rgba(198,159,84,.42); border-radius: 5px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; flex: 0 0 auto; margin: 0; background: var(--gold-light); transform-origin: center; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.active span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Shared type and section structure */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--gold-light); font-size: .7rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--white); }
h1 { font-size: clamp(3rem, 6.1vw, 5.8rem); line-height: .99; letter-spacing: -.045em; }
h1 span, .gold-text { color: var(--gold-light); }
h2 { margin-bottom: 15px; font-size: clamp(2rem, 3.7vw, 3.45rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.section { padding: clamp(70px, 8vw, 116px) 0; }
.section-head { max-width: 690px; margin: 0 auto 46px; text-align: center; }
.section-head > p:last-child { margin-bottom: 0; color: var(--muted); }
.section-head .eyebrow { justify-content: center; }
.section-dark { background: var(--ink); }
.section-soft { background: var(--ink-soft); }
.section-light { background: var(--paper); color: #393833; }
.section-light h2, .section-light h3 { color: #191a19; }
.section-light .section-head > p:last-child { color: #69665f; }
.section-light .eyebrow { color: #85652d; }
.section-light .eyebrow::before { background: var(--gold); }
.section-action { display: flex; justify-content: center; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 23px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #171714; font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.52); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: var(--white); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #85652d; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link::after { content: "\2197\FE0E"; font-size: 1rem; font-variant-emoji: text; transition: transform .2s; }
.text-link:hover::after { transform: translate(3px,-2px); }

/* Home hero */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(760px, calc(100svh - 104px));
    overflow: hidden;
    background: linear-gradient(90deg, rgba(12,13,13,.97) 0%, rgba(12,13,13,.88) 39%, rgba(12,13,13,.45) 72%, rgba(12,13,13,.22) 100%), url("images/hero-bg.jpg") 58% center/cover no-repeat;
}
.home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(transparent, rgba(12,13,13,.45)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: min(var(--page), calc(100% - 48px)); margin: 0 auto; padding: 84px 0 116px; }
.hero-copy { max-width: 740px; }
.hero-copy h1 { margin-bottom: 23px; }
.hero-copy .hero-lead { max-width: 560px; margin-bottom: 29px; color: #ddd8ce; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.hero-stats { display: flex; gap: clamp(25px, 5vw, 62px); margin-top: 51px; }
.hero-stat { padding-left: 15px; border-left: 2px solid var(--gold); }
.hero-stat strong { display: block; color: var(--white); font-size: 2.15rem; line-height: 1.05; }
.hero-stat > span { color: #c9c4bb; font-size: .88rem; letter-spacing: .035em; }
.hero-seal { position: absolute; right: max(24px, calc((100vw - var(--page)) / 2)); bottom: 36px; z-index: 2; display: flex; align-items: center; gap: 10px; color: #eee7da; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-seal::before { content: "✦"; color: var(--gold-light); font-size: 1.25rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { position: relative; min-height: 256px; padding: 29px 24px 25px; background: linear-gradient(145deg, #222323, #1a1b1b); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, border-color .25s; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(198,159,84,.65); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.service-icon { display: grid; width: 48px; height: 48px; place-items: center; color: var(--gold-light); background: rgba(198,159,84,.09); border: 1px solid rgba(198,159,84,.25); border-radius: 6px; }
.service-icon svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-number { display: block; color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.service-card h3 { margin-bottom: 11px; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }

/* Home project tiles and full portfolio */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.project-card { position: relative; display: block; min-height: 280px; overflow: hidden; background: #252625; border-radius: 6px; }
.project-card img { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; transition: transform .55s cubic-bezier(.2,.65,.3,1); }
.project-card::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(9,10,10,.9)); }
.project-card:hover img { transform: scale(1.045); }
.project-label { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; display: flex; align-items: end; justify-content: space-between; gap: 15px; color: var(--white); }
.project-label strong { font-size: 1rem; }
.project-label small { display: block; margin-bottom: 5px; color: var(--gold-light); font-size: .62rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.project-arrow { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 1rem; transition: background .2s, color .2s; }
.project-card:hover .project-arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.project-card--feature { grid-column: span 2; }
.portfolio-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: none; text-align: left; }
.portfolio-intro .section-head-copy { max-width: 610px; }
.portfolio-intro .eyebrow { justify-content: flex-start; }
.portfolio-intro .text-link { color: var(--gold-light); white-space: nowrap; }

/* About and story */
.story-grid { display: grid; grid-template-columns: .98fr 1.02fr; align-items: center; gap: clamp(40px, 8vw, 108px); }
.story-image { position: relative; margin: 8px; }
.story-image img { display: block; width: 100%; aspect-ratio: 1.18; object-fit: cover; border-radius: 5px; }
.story-image::after { content: ""; position: absolute; z-index: 0; inset: -8px; border: 1px solid var(--gold); border-radius: 5px; pointer-events: none; }
.story-content { position: relative; z-index: 1; }
.story-content h2 { margin-bottom: 20px; }
.story-content > p:not(.eyebrow) { color: #656159; }
.story-content .text-link { margin-top: 7px; }
.story-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 33px; }
.value-card { padding: 18px 16px; background: rgba(17,18,18,.045); border-top: 2px solid var(--gold); }
.value-card strong { display: block; margin-bottom: 5px; color: #22221f; font-size: .85rem; }
.value-card span { color: #706c64; font-size: .76rem; line-height: 1.55; }
.about-stats { display: flex; gap: 46px; margin-top: 34px; }
.about-stats strong { display: block; color: #25241f; font-size: 2.5rem; line-height: 1.05; }
.about-stats > div > span { color: #706c64; font-size: .9rem; }

/* Reviews */
.reviews-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: center; }
.reviews-copy h2 { margin-bottom: 18px; }
.reviews-copy > p:not(.eyebrow) { color: var(--muted); }
.rating-mark { display: flex; align-items: center; gap: 13px; margin-top: 28px; }
.rating-stars { color: var(--gold-light); letter-spacing: .12em; }
.rating-note { color: #b8b3aa; font-size: .72rem; }
.reviews-google-link { margin-top: 22px; color: var(--gold-light); }
.review-carousel { min-width: 0; overflow: hidden; }
.review-track { display: flex; transition: transform .45s ease; }
.review-slide { display: grid; min-width: 100%; grid-template-columns: 1fr 1fr; gap: 14px; }
.review-card { min-height: 245px; padding: 26px; background: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; }
.review-card .stars { margin-bottom: 17px; color: var(--gold-light); letter-spacing: .12em; }
.review-card blockquote { margin: 0 0 21px; color: #e3dfd7; font-size: .92rem; line-height: 1.75; }
.review-card cite { color: #aaa59c; font-size: .76rem; font-style: normal; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; background: #55534e; border: 0; border-radius: 50%; cursor: pointer; }
.carousel-dot.active { background: var(--gold); box-shadow: 0 0 0 4px rgba(198,159,84,.14); }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button { display: grid; width: 34px; height: 34px; place-items: center; background: transparent; color: var(--white); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.carousel-arrows button:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* CTA and footer */
.contact-band { padding: 68px 0; background: var(--gold); color: #211e17; }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.contact-band h2 { max-width: 720px; margin: 0; color: #1a1916; font-size: clamp(2rem, 4vw, 3.3rem); }
.contact-band .eyebrow { margin-bottom: 9px; color: #4d3b1d; }
.contact-band .eyebrow::before { background: #4d3b1d; }
.contact-band .btn { flex: 0 0 auto; background: #171817; color: var(--white); border-color: #171817; }
.contact-band .btn:hover { background: #30312f; border-color: #30312f; }
.site-footer { padding: 45px 0 24px; background: #0c0d0d; border-top: 1px solid rgba(198,159,84,.23); }
.footer-main { display: flex; align-items: start; justify-content: space-between; gap: 45px; padding-bottom: 35px; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: #98948c; font-size: .82rem; }
.footer-links { display: flex; gap: clamp(28px, 5vw, 70px); }
.footer-group strong { display: block; margin-bottom: 12px; color: var(--white); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-group a, .footer-group span { display: block; margin: 6px 0; color: #aaa69e; font-size: .8rem; }
.footer-group a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: #77746e; font-size: .7rem; }
.footer-bottom p { margin: 0; }

/* Interior page heading */
.page-hero { position: relative; display: flex; align-items: end; min-height: 390px; padding: 78px 0 60px; overflow: hidden; background-position: center; background-size: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,13,.94), rgba(12,13,13,.62) 55%, rgba(12,13,13,.3)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 850px; margin-bottom: 16px; font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero p:not(.eyebrow) { max-width: 650px; margin-bottom: 0; color: #ddd8cf; font-size: 1.05rem; }
.page-hero--about { background-image: url("images/about-us.jpg"); }
.page-hero--work { background-image: url("images/project-1.jpg"); }
.page-hero--contact { background-image: url("images/hero-bg.jpg"); }

/* About page details */
.about-copy { max-width: 820px; margin: 0 auto; }
.about-copy p { color: #605d56; font-size: 1rem; }
.principles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-top: 42px; }
.principle { padding: 25px; background: #fffdf8; border: 1px solid #ded9cf; border-radius: 5px; }
.principle span { display: block; margin-bottom: 18px; color: #94713a; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.principle h3 { color: #22221f; }
.principle p { margin-bottom: 0; color: #6c6860; font-size: .85rem; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.process-step { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.18); }
.process-step span { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.process-step h3 { margin: 12px 0 8px; }
.process-step p { margin-bottom: 0; color: var(--muted); font-size: .87rem; }

/* Work page filters and gallery */
.portfolio-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 9px 14px; background: transparent; color: #625f58; border: 1px solid #d2cdc2; border-radius: 99px; font-size: .7rem; font-weight: 750; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter-btn:hover, .filter-btn.active { background: #1c1d1c; color: var(--white); border-color: #1c1d1c; }
.project-count { margin: 0; color: #77736b; font-size: .76rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.gallery-card { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; background: #252625; border: 0; border-radius: 5px; text-align: left; cursor: pointer; }
.gallery-card[hidden] { display: none; }
.gallery-card img, .gallery-card video { display: block; width: 100%; height: 285px; object-fit: cover; transition: transform .5s; }
.gallery-card img.focus-top { object-position: center top; }
.gallery-card img.focus-35 { object-position: center 35%; }
.gallery-card img.focus-40 { object-position: center 40%; }
.gallery-card img.focus-45 { object-position: center 45%; }
.gallery-card:hover img, .gallery-card:hover video { transform: scale(1.04); }
.gallery-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(7,8,8,.92)); pointer-events: none; }
.gallery-caption { position: absolute; z-index: 1; right: 17px; bottom: 15px; left: 17px; display: flex; align-items: end; justify-content: space-between; gap: 12px; color: white; }
.gallery-caption strong { display: block; font-size: .9rem; }
.gallery-caption small { display: block; margin-bottom: 3px; color: var(--gold-light); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gallery-open { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; }
.gallery-video-mark { position: absolute; z-index: 1; top: 14px; right: 14px; display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink); background: var(--gold); border-radius: 50%; }
.no-projects { display: none; padding: 40px 0; color: #706c64; text-align: center; }
.no-projects.visible { display: block; }

/* Contact page */
.contact-page { background: var(--paper); color: #33322e; }
.contact-page h2, .contact-page h3 { color: #1c1d1b; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 0; overflow: hidden; background: #fffdf8; border: 1px solid #ded9cf; border-radius: 6px; box-shadow: 0 20px 55px rgba(32,29,20,.08); }
.contact-panel { padding: clamp(30px, 5vw, 56px); }
.contact-panel--details { background: #1b1c1c; color: var(--text); }
.contact-panel--details h2, .contact-panel--details h3 { color: var(--white); }
.contact-panel--details > p { color: #b8b4ab; font-size: .9rem; }
.contact-detail { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.contact-detail small { display: block; margin-bottom: 5px; color: var(--gold-light); font-size: .64rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.contact-detail a, .contact-detail span { color: #eeeae2; font-size: .94rem; }
.contact-detail a:hover { color: var(--gold-light); }
.contact-panel--form h2 { margin-bottom: 9px; font-size: 2rem; }
.contact-panel--form > p { color: #77736a; font-size: .88rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 27px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1/-1; }
.form-field label { color: #49463f; font-size: .73rem; font-weight: 750; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 14px; color: #272722; background: #f7f5f0; border: 1px solid #d8d3c9; border-radius: 3px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9a968c; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid rgba(198,159,84,.35); border-color: var(--gold); }
.form-field textarea { min-height: 145px; resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.contact-note { margin: 12px 0 0; color: #8c887f; font-size: .7rem; }

/* Lightbox and motion */
.lightbox { position: fixed; z-index: 2000; inset: 0; display: none; align-items: center; justify-content: center; padding: 70px 76px; background: rgba(5,6,6,.96); }
.lightbox.active { display: flex; }
.lightbox-media { display: block; max-width: min(100%, 1300px); max-height: 78vh; object-fit: contain; border: 1px solid rgba(198,159,84,.55); border-radius: 4px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.lightbox-media[hidden] { display: none; }
.lightbox-caption { position: absolute; bottom: 22px; left: 50%; width: min(80%, 760px); margin: 0; transform: translateX(-50%); color: #eeeae2; font-size: .85rem; text-align: center; }
.lightbox button { position: absolute; z-index: 1; display: grid; place-items: center; color: var(--white); background: rgba(26,27,27,.8); border: 1px solid rgba(198,159,84,.4); cursor: pointer; }
.lightbox button:hover { color: var(--ink); background: var(--gold); }
.lightbox-close { top: 20px; right: 22px; width: 43px; height: 43px; border-radius: 50%; font-size: 1.7rem; }
.lightbox-prev, .lightbox-next { top: 50%; width: 45px; height: 58px; transform: translateY(-50%); border-radius: 4px; font-size: 1.4rem; }
.lightbox-prev { left: 19px; }
.lightbox-next { right: 19px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
    .site-nav { gap: 14px; }
    .site-nav a { font-size: .84rem; }
    .service-grid { grid-template-columns: repeat(2,1fr); }
    .reviews-layout { grid-template-columns: 1fr; gap: 28px; }
    .reviews-copy { max-width: 620px; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 840px) {
    body { padding-top: 86px; }
    .container, .hero-inner { width: min(var(--page), calc(100% - 38px)); }
    .site-header, .header-inner { min-height: 86px; }
    .header-inner { width: calc(100% - 36px); }
    .brand img { width: 145px; height: 84px; }
    .menu-toggle { display: flex; position: relative; z-index: 1002; width: 48px; height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
    .site-nav { position: fixed; top: 0; right: 0; bottom: 0; display: flex; width: min(350px, 88vw); padding: 100px 28px 35px; flex-direction: column; align-items: stretch; gap: 0; background: #151616; border-left: 1px solid rgba(198,159,84,.35); box-shadow: -20px 0 50px rgba(0,0,0,.35); transform: translateX(105%); transition: transform .28s ease; }
    .site-nav.active { transform: translateX(0); }
    .site-nav a { display: block; padding: 15px 5px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .9rem; }
    .site-nav .nav-quote { margin-top: 18px; padding: 13px 16px; text-align: center; border: 0; }
    .home-hero { min-height: min(790px, calc(100svh - 86px)); background-image: linear-gradient(180deg, rgba(12,13,13,.5), rgba(12,13,13,.84) 38%, rgba(12,13,13,.97) 100%), url("images/hero-bg.jpg"); background-position: center, 63% center; }
    .hero-inner { padding: 76px 0 95px; }
    .hero-copy h1 { font-size: clamp(3rem, 12vw, 5rem); }
    .hero-copy .hero-lead { font-size: 1rem; }
    .hero-stats { margin-top: 37px; gap: 28px; }
    .hero-stat strong { font-size: 1.85rem; }
    .hero-seal { right: 20px; bottom: 17px; font-size: .58rem; }
    .section { padding: 70px 0; }
    .section-head { margin-bottom: 32px; }
    .project-grid { grid-template-columns: repeat(2,1fr); gap: 11px; }
    .project-card, .project-card img { min-height: 220px; }
    .project-card--feature { grid-column: span 2; }
    .project-card--feature, .project-card--feature img { min-height: 270px; }
    .project-label { right: 12px; bottom: 12px; left: 12px; }
    .project-label strong { font-size: .84rem; }
    .project-arrow { width: 30px; height: 30px; }
    .portfolio-intro { align-items: start; flex-direction: column; gap: 0; }
    .story-grid { grid-template-columns: 1fr; gap: 42px; }
    .story-image { max-width: 600px; }
    .story-values { grid-template-columns: 1fr; }
    .value-card { padding: 16px; }
    .review-slide { grid-template-columns: 1fr; }
    .review-card { min-height: auto; }
    .contact-band-inner { align-items: start; flex-direction: column; }
    .contact-band .btn { align-self: start; }
    .footer-main { flex-direction: column; }
    .footer-links { width: 100%; justify-content: space-between; }
    .page-hero { min-height: 340px; }
    .principles-grid, .process-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .container, .hero-inner { width: calc(100% - 34px); }
    .brand img { width: 130px; height: 75px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { justify-content: space-between; gap: 13px; }
    .hero-stat { padding-left: 10px; }
    .hero-stat strong { font-size: 1.6rem; }
    .hero-stat > span { font-size: .76rem; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 0; padding: 24px; }
    .service-card-top { margin-bottom: 17px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card, .project-card img, .project-card--feature, .project-card--feature img { min-height: 265px; }
    .project-card--feature { grid-column: auto; }
    .about-stats { gap: 28px; }
    .about-stats strong { font-size: 2.05rem; }
    .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
    .footer-bottom { align-items: start; flex-direction: column; }
    .page-hero { min-height: 310px; padding: 60px 0 42px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-card img, .gallery-card video { height: 290px; }
    .portfolio-toolbar { align-items: start; flex-direction: column; }
    .filter-list { gap: 6px; }
    .filter-btn { padding: 8px 11px; font-size: .65rem; }
    .contact-form { grid-template-columns: 1fr; }
    .form-field--full { grid-column: auto; }
    .contact-form .btn { width: 100%; }
    .lightbox { padding: 60px 10px 80px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; width: 42px; height: 42px; transform: none; border-radius: 50%; }
    .lightbox-caption { bottom: 24px; width: 58%; font-size: .74rem; }
}
@media (max-width: 380px) {
    .brand img { width: 118px; height: 68px; }
}
/* Tablet refinements, including iPad landscape widths. */
@media (min-width: 841px) and (max-width: 1024px) {
    .header-inner { width: calc(100% - 40px); gap: 18px; }
    .site-nav { gap: 14px; }
    .site-nav a { font-size: .84rem; }
    .service-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reviews-layout { grid-template-columns: 1fr; gap: 28px; }
    .reviews-copy { max-width: 620px; }
}
/* iPad portrait and larger phones. */
@media (min-width: 521px) and (max-width: 840px) {
    .principles-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .principle:last-child, .process-step:last-child { grid-column: 1 / -1; }
    .story-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .value-card:last-child { grid-column: 1 / -1; }
    .footer-main { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; }
    .footer-brand { max-width: none; }
    .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .footer-group a, .contact-detail a, .contact-detail span { overflow-wrap: anywhere; }
}
/* Phone ergonomics and safe areas. */
@media (max-width: 840px) {
    body { padding-top: calc(86px + env(safe-area-inset-top)); }
    .site-header { min-height: calc(86px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .header-inner { width: calc(100% - 36px - env(safe-area-inset-left) - env(safe-area-inset-right)); min-height: 86px; }
    .container, .hero-inner { width: min(var(--page), calc(100% - 38px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
    .site-nav {
        z-index: 1001;
        right: env(safe-area-inset-right);
        width: min(350px, calc(88vw - env(safe-area-inset-left) - env(safe-area-inset-right)));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: calc(100px + env(safe-area-inset-top)) 28px calc(35px + env(safe-area-inset-bottom));
        visibility: hidden;
        transition: transform .28s ease, visibility 0s linear .28s;
    }
    .site-nav.active { visibility: visible; transition-delay: 0s; }
    .site-nav a { display: flex; min-height: 48px; align-items: center; }
    .site-nav .nav-quote { justify-content: center; }
    .menu-open { overflow: hidden; }
    .home-hero {
        min-height: min(790px, calc(100vh - 86px - env(safe-area-inset-top)));
        min-height: min(790px, calc(100svh - 86px - env(safe-area-inset-top)));
    }
    .hero-copy h1 { font-size: clamp(2.75rem, 8.2vw, 4.75rem); }
    .hero-inner { padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
    .filter-btn { min-height: 44px; }
    .contact-detail a, .contact-detail span, .footer-group a { overflow-wrap: anywhere; }
    .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
    .container, .hero-inner { width: calc(100% - 34px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
    .hero-inner { padding-top: 52px; padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
    .hero-copy h1 { font-size: clamp(2.55rem, 12vw, 3.5rem); line-height: 1.02; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .hero-stat { min-width: 0; padding-left: 8px; }
    .hero-stat strong { font-size: clamp(1.42rem, 7vw, 1.65rem); white-space: nowrap; }
    .section { padding: 58px 0; }
    .contact-panel { padding: 24px 20px; }
    .contact-panel--form h2 { font-size: clamp(1.65rem, 7vw, 2rem); }
    .contact-form { gap: 14px; }
    .form-field input, .form-field textarea { min-height: 50px; font-size: 16px; }
    .form-field textarea { min-height: 130px; }
    .filter-btn { min-height: 44px; padding: 9px 12px; font-size: .68rem; }
    .gallery-card img, .gallery-card video { height: clamp(240px, 70vw, 340px); }
    .about-stats { flex-wrap: wrap; gap: 18px 28px; }
    .carousel-arrows { gap: 4px; }
    .carousel-arrows button { width: 40px; height: 40px; }
    .carousel-dots { gap: 4px; }
    .carousel-dot { position: relative; width: 44px; height: 44px; background: transparent; box-shadow: none; }
    .carousel-dot::before { content: ""; position: absolute; inset: 18px; background: #55534e; border-radius: 50%; }
    .carousel-dot.active { background: transparent; box-shadow: none; }
    .carousel-dot.active::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(198,159,84,.14); }
    .lightbox {
        padding-top: calc(56px + env(safe-area-inset-top));
        padding-right: calc(12px + env(safe-area-inset-right));
        padding-bottom: calc(94px + env(safe-area-inset-bottom));
        padding-left: calc(12px + env(safe-area-inset-left));
    }
    .lightbox-media { max-height: calc(100vh - 180px); max-height: calc(100svh - 180px); }
    .lightbox-close { top: calc(10px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); width: 44px; height: 44px; }
    .lightbox-prev, .lightbox-next { bottom: calc(14px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
    .lightbox-prev { left: calc(12px + env(safe-area-inset-left)); }
    .lightbox-next { right: calc(12px + env(safe-area-inset-right)); }
    .lightbox-caption { bottom: calc(24px + env(safe-area-inset-bottom)); width: 58%; }
}
@media (max-width: 380px) {
    .contact-panel { padding: 22px 18px; }
    .filter-list { gap: 5px; }
    .filter-btn { padding-inline: 10px; }
    .lightbox-caption { width: 55%; font-size: .7rem; }
}
@media (hover: none) {
    .btn:hover { transform: none; }
    .service-card:hover { transform: none; }
    .project-card:hover img, .gallery-card:hover img, .gallery-card:hover video { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Keep the lightbox close icon optically centred inside its circle. */
.lightbox-close { box-sizing: border-box; padding: 0; line-height: 1; text-align: center; }


/* Mobile Our Work gallery: keep filters reachable and show complete photos. */
@media (max-width: 840px) {
    .portfolio-toolbar {
        align-items: stretch;
        gap: 8px;
        margin-bottom: 18px;
    }
    .filter-list {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding: 3px 1px 9px;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: #b59a62 transparent;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn {
        flex: 0 0 auto;
        min-height: 44px;
        padding-inline: 14px;
        white-space: nowrap;
        scroll-snap-align: start;
        touch-action: manipulation;
    }
    .filter-btn:focus-visible,
    .gallery-card:focus-visible {
        outline: 3px solid #b38a3c;
        outline-offset: 3px;
    }
    .project-count {
        width: 100%;
        text-align: right;
    }
    .gallery-grid {
        gap: 15px;
    }
    .gallery-card {
        display: flex;
        flex-direction: column;
        border-radius: 8px;
        text-align: left;
    }
    .gallery-card img,
    .gallery-card video {
        width: 100%;
        height: auto;
        max-height: 66svh;
        aspect-ratio: auto;
        object-fit: contain;
        background: #141515;
    }
    .gallery-card::after {
        display: none;
    }
    .gallery-caption {
        position: relative;
        inset: auto;
        z-index: 1;
        min-height: 68px;
        padding: 11px 14px;
        align-items: center;
        background: #202121;
    }
    .gallery-caption small {
        margin-bottom: 2px;
    }
    .gallery-caption strong {
        font-size: .95rem;
        line-height: 1.3;
    }
    .gallery-open {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 520px) {
    .gallery-grid {
        gap: 13px;
    }
    .gallery-card img,
    .gallery-card video {
        max-height: 68svh;
    }
    .gallery-caption {
        min-height: 70px;
        padding-inline: 13px;
    }
}
