/* Layout: dark "dusk" hero bands alternate with bright vinyl-white sections; one rotating stamp is the bold moment. */
/* Palette from the LLMR logo: deep navy + royal blue on cool vinyl white. */
:root {
  --ink: #0a1a36;
  --ink-2: #17294d;
  --paper: #f3f6fb;
  --white: #ffffff;
  --line: #d5deeb;
  --muted: #52617a;
  --sun: #1662d8;
  --sun-ink: #ffffff;
  --sky: #7db1ff;
  --pine: #1253b8;
  --on-dark: #eef3fb;
  --on-dark-muted: #a7b5cc;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
  --r: 6px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: .95; letter-spacing: .005em; text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8vw, 6.2rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h3 { font-size: 1.7rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.tight { padding-block: clamp(48px, 6vw, 72px); }
.dark { background: var(--ink); color: var(--on-dark); }
.white { background: var(--white); }
.eyebrow { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pine); display: block; margin-bottom: 14px; }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sky); }
.lede { font-size: 1.18rem; max-width: 60ch; color: var(--muted); }
.dark .lede { color: var(--on-dark-muted); }
.stack { display: grid; gap: 18px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-row > div { display: grid; gap: 14px; min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--f-body); padding: 16px 24px; border-radius: var(--r); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: #2a76ee; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 2px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px -14px rgba(10,26,54,.35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: grid; line-height: 1; }
.logo-text b { font: 900 1.65rem/1 var(--f-display); letter-spacing: .02em; }
.logo-text small { font: 500 .62rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a { color: var(--ink); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sun); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { font: 500 .95rem var(--f-mono); text-decoration: none; white-space: nowrap; color: var(--ink); }
.nav-phone:hover { color: var(--sun); }
.nav .btn { padding: 12px 18px; }
.menu-btn { display: none; background: none; border: 2px solid var(--line); color: inherit; border-radius: var(--r); padding: 8px 12px; font: 700 .85rem var(--f-body); cursor: pointer; }
@media (max-width: 1120px) {
  .nav-links, .nav-phone { display: none; }
  .menu-btn { display: inline-block; }
  .nav-links.open { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 16px 24px -16px rgba(10,26,54,.4); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); gap: 0; border-bottom: 1px solid var(--line); }
  .nav-links.open a { display: block; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.1rem; }
}
@media (max-width: 520px) { .nav .btn { display: none; } }

/* Photo slots: real photo when present, picket pattern while missing */
.ph { background-color: #17294d; background-image: var(--img, none), repeating-linear-gradient(90deg, #22385f 0 26px, #17294d 26px 32px); background-size: cover, auto; background-position: center; border-radius: var(--r); position: relative; overflow: hidden; }

/* Hero */
.hero { position: relative; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; border-radius: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,20,44,.95) 0%, rgba(8,20,44,.8) 45%, rgba(8,20,44,.4) 100%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); }
.hero h1 .hl { color: var(--sky); display: block; }
.hero .lede { margin-top: 22px; color: #c9d2ce; }
.hero .btn-row { margin-top: 32px; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font: 500 .8rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-proof span::before { content: "✓ "; color: var(--sky); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* Stamp */
.stamp { position: absolute; z-index: 3; width: 128px; height: 128px; right: 16px; top: 16px; }
.stamp svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.stamp-core { position: absolute; inset: 0; display: grid; place-items: center; font: 900 2.2rem/1 var(--f-display); color: var(--sky); }
.stamp-core small { display: block; font: 500 .55rem var(--f-mono); letter-spacing: .1em; color: var(--on-dark); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .stamp { width: 96px; height: 96px; } .stamp-core { font-size: 1.7rem; } }

/* Quote card */
.quote-card { background: var(--white); color: var(--ink); border-radius: 10px; padding: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.quote-card h2 { font-size: 2.2rem; margin-bottom: 6px; }
.quote-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.form { display: grid; gap: 12px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font: 600 .82rem var(--f-body); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--f-body); padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; background: var(--white); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .76rem; line-height: 1.45; color: var(--muted); }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--pine); }
.consent a { color: var(--ink); }
.form .btn { width: 100%; padding: 17px; font-size: 1.05rem; }
.form-msg { font-size: .92rem; font-weight: 600; padding: 12px 14px; border-radius: var(--r); }
.form-msg.ok { background: #e3f1ea; color: var(--pine); }
.form-msg.err { background: #fbe9e4; color: #8a2a12; }
.hp { position: absolute; left: -9999px; }

/* Ticker */
.ticker { background: var(--ink); color: var(--on-dark); overflow: hidden; white-space: nowrap; border-block: 1px solid #1d3159; }
.ticker-track { display: inline-flex; gap: 0; padding-block: 14px; animation: slide 40s linear infinite; font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.ticker-track span { padding: 0 18px; }
.ticker-track span.d { padding: 0; opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stat { padding: 28px 22px 4px 0; display: grid; gap: 8px; align-content: start; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat b { font: 900 clamp(2.8rem, 5vw, 4rem)/.9 var(--f-display); }
.stat span { font-size: .95rem; color: var(--muted); max-width: 22ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.4); }
.card .ph { aspect-ratio: 4 / 3; border-radius: 0; max-width: 100%; }
.card-body { padding: 20px; display: grid; gap: 10px; align-content: start; }
.card-body p { color: var(--muted); font-size: .97rem; }
.spec { display: flex; flex-wrap: wrap; gap: 6px; }
.spec span { font: 500 .7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: 4px 7px; border-radius: 3px; color: var(--ink-2); }
.dark .spec span { border-color: #2a3f68; color: var(--on-dark-muted); }

/* Family split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split .ph { aspect-ratio: 4 / 5; max-width: 100%; }
.split-tag { position: absolute; left: 16px; bottom: 16px; background: var(--sun); color: var(--sun-ink); font: 800 1.1rem/1 var(--f-display); text-transform: uppercase; padding: 10px 14px; border-radius: 4px; }
.vals { display: grid; gap: 18px; margin-top: 28px; }
.val { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.val i { font-style: normal; font: 900 1.5rem/1.1 var(--f-display); color: var(--sky); }
.val b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.val p { color: var(--on-dark-muted); font-size: .97rem; }
.white .val p, .section:not(.dark) .val p { color: var(--muted); }
.white .val i, .section:not(.dark) .val i { color: var(--pine); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .projects { grid-template-columns: 1fr; } }
.proj { margin: 0; display: grid; gap: 10px; }
.proj .ph { aspect-ratio: 1 / 1; max-width: 100%; }
.proj figcaption { display: flex; justify-content: space-between; gap: 10px; font: 500 .74rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dark .proj figcaption { color: var(--on-dark-muted); }
.proj figcaption b { color: var(--ink); font-weight: 500; }
.dark .proj figcaption b { color: var(--on-dark); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { font: 600 .9rem var(--f-body); padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* Rail diagram */
.rail { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.rail svg { width: 100%; height: auto; }
.rail-caption { font: 500 .74rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px 20px 0 0; border-top: 2px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: "0" counter(s); font: 500 .8rem var(--f-mono); letter-spacing: .1em; color: var(--pine); }
.steps b { font: 800 1.45rem/1 var(--f-display); text-transform: uppercase; }
.steps p { font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 26px 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Financing band */
.band { background: var(--sun); color: var(--on-dark); }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 44px; }
.band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.band p { color: #dbe8ff; margin-top: 8px; max-width: 54ch; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.6rem/1 var(--f-display); color: var(--pine); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.page-hero .hero-bg { opacity: .32; }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 18px; }
.page-hero .lede { color: #c9d2ce; }
.crumbs { font: 500 .74rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--sky); }

/* Prose + lists */
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h2 { font-size: 2.2rem; margin-top: 18px; }
.prose h3 { font-size: 1.4rem; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.checks li::before { content: "■"; color: var(--sun); font-size: .9rem; line-height: 1.9; }
.dark .checks li::before { color: var(--sky); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.tile p { color: var(--muted); font-size: .97rem; }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.area { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; font: 800 1.3rem/1 var(--f-display); text-transform: uppercase; }
.area:hover { border-color: var(--ink); }
.area span { font: 500 .7rem var(--f-mono); color: var(--muted); letter-spacing: .08em; }
.contact-list { display: grid; gap: 18px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list span { font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-list b, .contact-list a { font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

/* CTA */
.cta { text-align: left; }
.cta .wrap { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 14ch; }
.cta h2 em { font-style: normal; color: var(--sky); }

/* Footer */
.site-footer { background: #061128; color: var(--on-dark-muted); font-size: .95rem; padding-bottom: 90px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 64px 40px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
.foot h4 { font: 500 .74rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--sky); }
.foot address { font-style: normal; display: grid; gap: 6px; }
.foot address b { color: var(--on-dark); }
.foot-bottom { border-top: 1px solid #1a2a4a; padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.foot-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); border-top: 1px solid #1d3159; }
  .callbar .btn { padding: 14px; }
  .callbar .btn-ghost { color: var(--on-dark); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Logo image */
.logo-img { height: 58px; width: auto; display: block; }
.site-footer .logo-img { height: 72px; }

/* Band button sits on blue: invert it */
.band .btn-sun { background: var(--white); color: var(--sun); }
.band .btn-sun:hover { background: #e6efff; }
.ticker .ticker-track span.d { opacity: 1; color: var(--sky); font-size: .8em; }

/* Then / Now photo pair */
.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo figure { margin: 0; position: relative; }
.duo .ph { aspect-ratio: 4 / 5; max-width: 100%; }
.duo .ph.then { background-position: 35% center; }
.duo .stamp { right: -14px; top: -28px; }
@media (max-width: 860px) { .duo .stamp { right: 4px; top: -20px; width: 96px; height: 96px; } .duo .stamp-core { font-size: 1.7rem; } }

/* Video clips */
.clips { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.clip { margin: 0; display: grid; gap: 10px; width: min(220px, 44%); min-width: 150px; }
.clip video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 6px solid #1d3159; background: #000; }
.clip figcaption { font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); text-align: center; }

/* Spec table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .97rem; }
.spec-table th { text-align: left; font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 2px solid var(--ink); }
.spec-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td b { font: 900 1.8rem/1 var(--f-display); color: var(--sun); }
.fine { margin-top: 18px; font-size: .88rem; color: var(--muted); max-width: 70ch; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid4 { grid-template-columns: 1fr; } }

.hero > .hero-bg { background-position: 40% 78%; }

/* White-wash hero: sky fades up into the white header */
.hero-wash { position: relative; background: var(--white); color: var(--ink); overflow: hidden; }
.hero-wash .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: var(--pos, center bottom); border-radius: 0; }
.hero-wash::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.92) 16%, rgba(255,255,255,.45) 44%, rgba(255,255,255,0) 70%),
              linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 36%, rgba(255,255,255,0) 60%); }
.hero-wash .hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: 48px; align-items: start; padding-block: clamp(48px, 6vw, 80px) clamp(160px, 18vw, 260px); }
.hero-wash h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); color: var(--ink); text-shadow: 0 2px 18px rgba(255,255,255,.7); }
.hero-wash h1 .hl { color: var(--sun); display: block; }
.hero-wash .eyebrow { color: var(--pine); }
.hero-wash .lede { margin-top: 20px; color: var(--ink-2); font-weight: 500; text-shadow: 0 1px 10px rgba(255,255,255,.9); }
.hero-wash .btn-row { margin-top: 28px; }
.hero-wash .btn-ghost { color: var(--ink); background: rgba(255,255,255,.75); }
.hero-wash .hero-proof { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 26px; font: 500 .8rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hero-wash .hero-proof span::before { content: "✓ "; color: var(--sun); }
.hero-wash .quote-card { box-shadow: 0 30px 60px -24px rgba(10,26,54,.45); }
.hero-wash.center::after { background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.9) 22%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 72%); }
.hero-wash.center .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-block: clamp(48px, 6vw, 80px) clamp(200px, 20vw, 280px); }
.hero-wash.center .lede { margin-inline: auto; }
.hero-wash.center .btn-row, .hero-wash.center .hero-proof { justify-content: center; }
@media (max-width: 900px) { .hero-wash .hero-inner { grid-template-columns: 1fr; padding-bottom: 48px; } .hero-wash::after { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.85) 30%, rgba(255,255,255,.55) 100%); } }
.opt-label { background: var(--ink); color: var(--on-dark); }
.opt-label .wrap { padding-block: 18px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.opt-label b { font: 900 1.8rem/1 var(--f-display); text-transform: uppercase; color: var(--sky); }

/* Homepage hero: light wash, Ridgeline-style */
.home-hero::after { background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.88) 14%, rgba(255,255,255,.5) 32%, rgba(255,255,255,.12) 50%, rgba(255,255,255,0) 62%); }
.home-hero .hero-inner { padding-block: clamp(56px, 7vw, 96px) clamp(240px, 26vw, 360px); }
.home-hero .lede { max-width: 52ch; }
.hero-card { position: absolute; z-index: 3; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px; width: min(300px, 80vw); background: var(--white); color: var(--ink); border-radius: 10px; padding: 18px 20px; box-shadow: 0 20px 40px -18px rgba(10,26,54,.5); display: grid; gap: 6px; }
.hero-card b { font: 800 1.3rem/1 var(--f-display); text-transform: uppercase; }
.hero-card p { font-size: .9rem; color: var(--muted); }
.hero-card a { font: 600 1.1rem var(--f-mono); color: var(--sun); text-decoration: none; }
@media (max-width: 900px) {
  .home-hero::after { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.85) 30%, rgba(255,255,255,.2) 60%, rgba(255,255,255,0) 75%); }
  .home-hero .hero-inner { padding-bottom: 220px; }
  .hero-card { display: none; }
}

/* Gate intro: black vinyl gate with the logo across the seam swings open onto the homepage */
.gate-intro { position: fixed; inset: 0; z-index: 200; perspective: 2200px; animation: gateSafety 0s 11s forwards; }
@keyframes gateSafety { to { visibility: hidden; pointer-events: none; } }
.gate-door { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; background: #060708; backface-visibility: visible; will-change: transform;
  transition: transform 4s cubic-bezier(.45,0,.2,1), filter 4s ease; }
.gate-door.left { left: 0; transform-origin: left center; box-shadow: inset -2px 0 0 #000; }
.gate-door.right { right: 0; transform-origin: right center; box-shadow: inset 2px 0 0 #000; }
.gate-boards { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #16181b 0, #0b0c0d 18px, #030304 22px, transparent 22px),
    linear-gradient(0deg, #121315 0, #08090a 16px, #020203 19px, transparent 19px),
    linear-gradient(180deg, transparent 49%, #020203 49%, #0f1012 49.6%, #08090a 50.8%, #020203 51.2%, transparent 51.2%),
    repeating-linear-gradient(90deg, #08090a 0, #0f1012 12px, #0b0c0e 40px, #060708 62px, #000 64px, #000 66px),
    linear-gradient(90deg, rgba(255,255,255,.025), rgba(0,0,0,.35)); }
.gate-door.left .gate-boards::after, .gate-door.right .gate-boards::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, rgba(120,160,230,.06), transparent 60%); }
.gate-hinge { position: absolute; width: 44px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #2a2d32, #0c0d0f); box-shadow: 0 2px 4px rgba(0,0,0,.7); }
.gate-door.left .gate-hinge { left: 10px; } .gate-door.right .gate-hinge { right: 10px; }
.gate-hinge.h1 { top: 18%; } .gate-hinge.h2 { bottom: 18%; }
.gate-latch { position: absolute; right: 18px; top: calc(50% + clamp(90px, 14vw, 150px)); width: 18px; height: 54px; border-radius: 4px; background: linear-gradient(90deg, #3a3e45, #121417); box-shadow: 0 3px 6px rgba(0,0,0,.6); }
.gate-logo { position: absolute; top: 50%; width: clamp(240px, 38vw, 440px); height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.7)); }
.gate-door.left .gate-logo { right: 0; transform: translate(50%, -50%); }
.gate-door.right .gate-logo { left: 0; transform: translate(-50%, -50%); }
.gate-skip { position: absolute; z-index: 3; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 8px 16px; font: 600 .85rem var(--f-body); cursor: pointer; transition: opacity .3s; }
.gate-intro.open .gate-door.left { transform: rotateY(-88deg); filter: brightness(.45); }
.gate-intro.open .gate-door.right { transform: rotateY(88deg); filter: brightness(.45); }
.gate-intro.open .gate-skip { opacity: 0; }
.gate-intro.gone { opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.gate-on body, body.gate-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .gate-intro { display: none !important; } }

/* Real gate photo on the doors */
.gate-door.left { background: #050506 url(images/gate-left.jpg) right center / cover no-repeat; }
.gate-door.right { background: #050506 url(images/gate-right.jpg) left center / cover no-repeat; }
.gate-door::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 4s ease; opacity: 0; }
.gate-door.left::after { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
.gate-door.right::after { background: linear-gradient(270deg, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
.gate-intro.open .gate-door::after { opacity: 1; }
.gate-logo { top: 30%; width: clamp(200px, 28vw, 360px); filter: drop-shadow(0 14px 24px rgba(0,0,0,.75)); }
.gate-intro { background: #050506; }
.gate-intro.open { background: transparent; transition: background .2s; }

/* Sunset hero: thin white fade under the header, sunset stays vivid */
.hero-wash.center.home-hero::after { background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.55) 7%, rgba(255,255,255,0) 20%), radial-gradient(ellipse 38% 30% at 50% 38%, rgba(255,246,236,.6), rgba(255,246,236,0) 75%); }
.home-hero h1 { color: var(--ink); text-shadow: 0 1px 2px rgba(255,236,214,.5), 0 6px 30px rgba(255,214,170,.55); }
.home-hero h1 .hl { color: #0d4fc0; }
.home-hero .lede { color: var(--ink); font-weight: 600; text-shadow: 0 1px 12px rgba(255,226,196,.9); }
.home-hero .eyebrow { color: var(--ink); font-weight: 600; }
.home-hero .btn-ghost { background: rgba(255,255,255,.85); border-color: var(--white); }

/* Nudge hero text up so the line clears the treeline */
.hero-wash.center.home-hero .hero-inner { padding-top: clamp(28px, 3.2vw, 48px); }
.hero-wash.center.home-hero .lede { margin-top: 12px; }
@media (max-width: 760px) { .br-desk { display: none; } }

/* Scan fixes */
.stat b.word { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.15; }
@media (max-width: 860px) {
  .split.flip > :first-child { order: 2; }
  .card .ph { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .projects { grid-template-columns: 1fr 1fr; gap: 12px; }
  .proj figcaption { display: grid; gap: 2px; font-size: .64rem; }
}
.stat b.word { display: flex; align-items: flex-end; min-height: calc(clamp(2.8rem, 5vw, 4rem) * .9); line-height: 1; }
