/* ==========================================================
   Yellowjacket Earthworks (concept site by Legacy Marketing Group)
   Palette: soil dark, limestone paper, machine yellow, red clay
   ========================================================== */
:root {
  --soil: #15120e;
  --soil-2: #1f1a14;
  --soil-3: #2b241c;
  --paper: #f2ede3;
  --paper-2: #e8e0d1;
  --ink: #1c1813;
  --ink-2: #4d4438;
  --muted-on-dark: #b9ad9b;
  --yellow: #f4b71c;
  --yellow-2: #ffc93d;
  --clay: #b5532c;
  --clay-text: #8f3d1d;
  --line: rgba(28, 24, 19, .14);
  --line-dark: rgba(242, 237, 227, .12);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --demo-h: 34px;
  --nav-h: clamp(64px, 1.6vw + 52px, 80px);
  --header-h: calc(var(--nav-h) + var(--demo-h));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: .95; letter-spacing: .005em; text-transform: uppercase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--soil); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--soil); padding: 10px 16px; font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--soil); }
.btn--yellow:hover { background: var(--yellow-2); }
.btn--ghost { border-color: rgba(242, 237, 227, .35); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(242, 237, 227, .06); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; gap: .4em; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--paper);
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(21, 18, 14, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand { flex: none; }
/* concept-site notice, part of the fixed header so it is always visible */
.demo-bar { height: var(--demo-h); display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); background: var(--yellow); color: var(--soil); font-size: .82rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; }
.demo-bar p { overflow: hidden; text-overflow: ellipsis; }
.demo-bar a { color: inherit; font-weight: 800; text-underline-offset: 2px; }
@media (max-width: 640px) { .demo-bar__more { display: none; } }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark__mark { width: 42px; height: 42px; flex: none; }
.wordmark__text { display: flex; flex-direction: column; font-family: var(--f-display); text-transform: uppercase; line-height: .9; }
.wordmark__text b { font-weight: 900; font-size: 1.55rem; letter-spacing: .02em; color: var(--paper); }
.wordmark__text span { font-weight: 700; font-size: .9rem; letter-spacing: .24em; color: var(--yellow); }
.brand:hover .wordmark__mark { transform: rotate(-4deg); }
.wordmark__mark { transition: transform .3s var(--ease); }
@media (max-width: 560px) { .wordmark__mark { width: 36px; height: 36px; } .wordmark__text b { font-size: 1.32rem; } .wordmark__text span { font-size: .78rem; } }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: rgba(242, 237, 227, .82); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__links .nav__mobile-call { display: none; }
.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__call { display: none; }
  .nav__toggle {
    display: inline-flex; margin-left: auto; width: 46px; height: 46px; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--paper); transition: transform .25s var(--ease), opacity .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--soil); border-bottom: 1px solid var(--line-dark);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links a { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--paper); }
  .nav__links a::after { display: none; }
  .nav__links .nav__mobile-call { display: block; margin-top: 16px; border: 0; background: var(--yellow); color: var(--soil); text-align: center; border-radius: var(--radius); font-size: 1.35rem; }
  .site-header.menu-open { background: var(--soil); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #2a2219 0%, var(--soil) 60%);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(120px, 14vw, 190px);
}
/* keeps contour lines from running through the headline */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--soil) 0%, rgba(21, 18, 14, .94) 38%, rgba(21, 18, 14, 0) 60%); }
@media (max-width: 900px) { .hero::after { background: linear-gradient(180deg, rgba(21, 18, 14, .9) 0%, rgba(21, 18, 14, .82) 55%, rgba(21, 18, 14, 0) 80%); } }
.hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; --ts: rgba(244, 183, 28, .15); --tsm: rgba(244, 183, 28, .3); --tw: 1.2; }
.hero__contours path { fill: none; stroke: var(--ts); stroke-width: var(--tw); }
.hero__contours path.major { stroke: var(--tsm); stroke-width: calc(var(--tw) + .5); }
.hero__contours .c { transform-box: fill-box; transform-origin: center; animation: drift 40s ease-in-out infinite alternate; }
.hero__contours .c2 { animation-duration: 52s; animation-direction: alternate-reverse; }
.hero__contours .c3 { animation-duration: 34s; }
@keyframes drift { from { transform: rotate(-3deg) scale(.98); } to { transform: rotate(4deg) scale(1.06); } }
/* bright copy of the contours, only visible under the moving light */
.topo-glow { --ts: rgba(255, 205, 70, .75); --tsm: rgba(255, 214, 92, .95); --tw: 1.6; opacity: 0; transition: opacity 1.6s ease 1.4s; }
.is-loaded .topo-glow { opacity: 1; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); flex: none; }
.hero__copy { container-type: inline-size; }
/* sized from its own column so "Groundwork" always fits on one line */
.hero__title { font-size: clamp(3rem, 7vw, 7.6rem); font-size: min(18.4cqi, 7.6rem); font-weight: 900; line-height: .86; letter-spacing: -.005em; }
.hero__title span { display: block; }
.hero__title .line { overflow: hidden; padding-top: .1em; margin-top: -.1em; }
.hero__title .hl { color: var(--yellow); }
.hero__lede { margin-top: 26px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(242, 237, 227, .82); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__proof { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 44px; border-top: 1px solid var(--line-dark); padding-top: 22px; width: fit-content; max-width: 100%; }
.hero__proof li { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line-dark); font-size: .95rem; line-height: 1.3; color: rgba(242, 237, 227, .85); }
.hero__proof li:last-child { border: 0; margin: 0; padding: 0; }
.hero__proof strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; color: var(--yellow); text-transform: uppercase; margin-right: .2em; }
.hero__proof span { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted-on-dark); }

.hero__media { margin: 0; }
.frame { position: relative; border-radius: var(--radius); }
.frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); filter: saturate(.92) contrast(1.04); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.corner { position: absolute; width: 42px; height: 42px; border: 3px solid var(--yellow); pointer-events: none; }
.corner.tl { top: -12px; left: -12px; border-right: 0; border-bottom: 0; }
.corner.br { bottom: -12px; right: -12px; border-left: 0; border-top: 0; }
.hero__media figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 20px; font-size: .9rem; color: var(--muted-on-dark); }
.hero__media figcaption .mono { color: var(--yellow); }

.strata { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 8vw, 120px); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(3rem, 13.5vw, 7rem); font-size: min(18.4cqi, 7rem); }
  .hero__media { max-width: 620px; }
  .frame img { aspect-ratio: 16 / 9.5; }
}
@media (max-width: 560px) {
  .hero__proof { grid-template-columns: 1fr; gap: 14px; width: 100%; }
  .hero__proof li { border-right: 0; margin: 0; padding: 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .corner { width: 30px; height: 30px; }
  .corner.tl { top: -8px; left: -8px; } .corner.br { bottom: -8px; right: -8px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: end; }
.section__head--split .section__intro { margin-top: 0; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 700; font-size: .95rem; color: var(--clay-text); }
.kicker .mono { display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 6px; background: var(--ink); color: var(--yellow); border-radius: 2px; font-size: .72rem; }
h2 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.section__intro { margin-top: 22px; max-width: 40em; font-size: 1.1rem; color: var(--ink-2); }
@media (max-width: 800px) { .section__head--split { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.svc-list { border-top: 2px solid var(--ink); counter-reset: svc; }
.svc {
  position: relative;
  display: grid; grid-template-columns: 56px 64px minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.svc::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svc:hover::before { transform: scaleX(1); }
.svc__num { padding-top: 10px; color: var(--clay-text); font-size: .8rem; }
.svc__icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--ink); border-radius: var(--radius); transition: background-color .3s, transform .3s var(--ease); }
.svc__icon svg { width: 38px; height: 38px; fill: none; stroke: var(--yellow); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.svc:hover .svc__icon { background: var(--yellow); transform: rotate(-4deg); }
.svc:hover .svc__icon svg { stroke: var(--ink); }
.svc h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.svc__body p { margin-top: 12px; color: var(--ink-2); max-width: 34em; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.svc__tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .35); }
.services__note { margin-top: 36px; color: var(--ink-2); }
.services__note a { font-weight: 700; color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .svc { grid-template-columns: 64px minmax(0, 1fr); gap: 18px 22px; }
  .svc__num { display: none; }
  .svc__tags { grid-column: 2; padding-top: 0; }
}
@media (max-width: 480px) {
  .svc { grid-template-columns: 1fr; }
  .svc__icon { width: 54px; height: 54px; }
  .svc__icon svg { width: 32px; height: 32px; }
  .svc__tags { grid-column: auto; }
}

/* ---------- Call band ---------- */
.band { background: var(--yellow); color: var(--soil); padding: clamp(56px, 8vw, 96px) 0; }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 88px); align-items: end; }
.band__title { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.band__side p { font-size: 1.1rem; font-weight: 500; max-width: 30em; }
.band__side .btn { margin-top: 22px; }
.btn--dark { background: var(--soil); color: var(--yellow); }
.btn--dark:hover { background: var(--soil-3); }
@media (max-width: 800px) { .band__grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 31px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 18px);
  opacity: .35;
}
.step { position: relative; padding-right: 32px; }
.step__n {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 26px;
  font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; color: var(--ink);
  background: var(--paper);
}
.step__n::before { content: ""; position: absolute; inset: 0; background: var(--yellow); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); z-index: -1; }
.step__n { isolation: isolate; background: transparent; }
.step h3 { font-size: 1.85rem; }
.step p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 0; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 0 0 32px; }
  .step__n { grid-row: span 2; margin: 0; }
  .step::after { content: ""; position: absolute; left: 31px; top: 70px; bottom: 6px; border-left: 2px dashed rgba(28, 24, 19, .3); }
  .step:last-child::after { display: none; }
}

/* ---------- Before & after ---------- */
.results { background: var(--soil); color: var(--paper); }
.section__head--light .kicker { color: var(--yellow); }
.section__head--light .kicker .mono { background: var(--yellow); color: var(--soil); }
.section__head--light .section__intro { color: var(--muted-on-dark); }
.ba-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.ba__frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--soil-3); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: 14px; z-index: 2; padding: 6px 10px; border-radius: 2px; font-size: .68rem; pointer-events: none; transition: opacity .25s; }
.ba__tag--before { left: 14px; background: rgba(21, 18, 14, .82); color: var(--paper); }
.ba__tag--after { right: 14px; background: var(--yellow); color: var(--soil); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px; background: var(--yellow); pointer-events: none; box-shadow: 0 0 0 1px rgba(21, 18, 14, .25); }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--soil); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: transform .2s var(--ease); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.ba__handle span::before { left: 4px; border-right-color: var(--soil); }
.ba__handle span::after { right: 4px; border-left-color: var(--soil); }
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__range { touch-action: pan-y; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 100%; }
.ba__range::-moz-range-thumb { width: 2px; height: 100%; border: 0; }
.ba__frame:hover .ba__handle span, .ba__range:active ~ .ba__handle span { transform: scale(1.08); }
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }
.ba__cap { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--paper); }
.ba__cap .mono { color: var(--yellow); font-size: .7rem; }
@media (max-width: 900px) { .ba-list { grid-template-columns: 1fr 1fr; } .ba:last-child { grid-column: 1 / -1; max-width: calc(50% - 10px); } }
@media (max-width: 560px) { .ba-list { grid-template-columns: 1fr; gap: 36px; } .ba:last-child { max-width: none; } }

/* ---------- Crew ---------- */
.crew { padding-bottom: 0; }
.crew__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.crew__photo { margin: 0; position: relative; }
.crew__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); }
.crew__photo::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 46%; height: 46%; border-left: 4px solid var(--yellow); border-bottom: 4px solid var(--yellow); z-index: -1; }
.crew__photo { isolation: isolate; }
.crew__copy .section__intro + .section__intro { margin-top: 14px; }
.crew__small { margin: 32px 0 0; max-width: 420px; }
.crew__small img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .crew__grid { grid-template-columns: 1fr; } .crew__photo { max-width: 520px; } }

/* ---------- Work gallery ---------- */
.work { background: var(--paper-2); border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: 14px; }
.gallery__item { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--ink); text-align: left; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(21, 18, 14, .85)); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; color: var(--paper); font-weight: 600; font-size: .98rem; line-height: 1.3; }
.gallery__cap .mono { color: var(--yellow); font-size: .68rem; }
.gallery__btn:hover img { transform: scale(1.05); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; }
  .gallery__cap { padding: 12px 14px; font-size: .86rem; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 120px; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--tall { grid-row: span 3; }
}

.lightbox { width: min(1100px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; color: var(--paper); overflow: visible; }
.lightbox::backdrop { background: rgba(10, 8, 6, .9); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 12px; text-align: center; font-weight: 600; }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--soil); font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 760px) { .lightbox__nav { top: auto; bottom: 16px; margin: 0; } }

/* ---------- Area ---------- */
.area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.towns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.towns li { padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .95rem; border-radius: var(--radius); }
.towns li:first-child { background: var(--yellow); color: var(--soil); }
.area__note { margin-top: 22px; color: var(--ink-2); }
.area__note a { font-weight: 700; color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.map { margin: 0; background: var(--paper-2); border-radius: var(--radius); padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line); }
.map svg { width: 100%; height: auto; }
.map__topo path { stroke: rgba(110, 74, 47, .25); stroke-width: 1.2; }
.map__region { font: 500 9px var(--f-mono); letter-spacing: .14em; fill: rgba(28, 24, 19, .45); text-anchor: middle; }
.map__ring { fill: none; stroke: var(--clay); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .7; }
.map__ring--2 { opacity: .35; }
.map__town circle { fill: var(--ink); }
.map__town text { font: 600 13px var(--f-body); fill: var(--ink); }
.map__home path { fill: var(--yellow); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.map__home text { font: 800 19px var(--f-display); text-transform: uppercase; fill: var(--ink); letter-spacing: .02em; }
.map__home .map__sub { font: 500 9px var(--f-mono); letter-spacing: .16em; fill: var(--clay-text); }
@media (max-width: 860px) { .area__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.call-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 18px;
  margin-top: 36px; padding: 22px 26px; background: var(--ink); color: var(--paper); text-decoration: none; border-radius: var(--radius);
  transition: background-color .25s, transform .25s var(--ease);
}
.call-card .mono { color: var(--yellow); }
.call-card strong { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: .01em; line-height: 1; }
.call-card__arrow { font-size: 1.6rem; color: var(--yellow); transition: transform .25s var(--ease); }
.call-card:hover { background: var(--soil-3); }
.call-card:hover .call-card__arrow { transform: translateX(5px); }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 0; }
.contact__list dt { color: var(--clay-text); margin-bottom: 8px; }
.contact__list dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.contact__list a { color: var(--ink); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.form { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 30px 60px -36px rgba(28, 24, 19, .35); }
.form__head { margin-bottom: 26px; }
.form__head h3 { font-size: 2.1rem; }
.form__head p { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label, .field legend { display: block; padding: 0; margin-bottom: 7px; font-weight: 700; font-size: .92rem; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1.5px solid rgba(28, 24, 19, .22); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8073; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 183, 28, .55); }
.field [aria-invalid="true"] { border-color: #b3261e !important; }
.field__err { margin-top: 6px; font-size: .85rem; font-weight: 600; color: #b3261e; min-height: 0; }
.field__err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 600; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(28, 24, 19, .22); border-radius: 999px; background: #fff; font-size: .92rem; transition: background-color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { margin-top: 8px; min-height: 56px; font-size: 1.05rem; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form__status { margin-top: 16px; }
.form__status:empty { display: none; }
.notice { padding: 16px 18px; border-radius: var(--radius); font-size: .97rem; line-height: 1.5; }
.notice strong { display: block; margin-bottom: 4px; }
.notice--ok { background: #e3efd9; border: 1px solid #9cc185; }
.notice--warn { background: #fbecc4; border: 1px solid #e3b84a; }
.notice a { font-weight: 700; color: var(--ink); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row, .contact__list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--soil); color: var(--muted-on-dark); padding: 72px 0 0; }
.footer .wordmark__mark { width: 52px; height: 52px; }
.footer .wordmark__text b { font-size: 1.9rem; }
.footer__base a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { margin-top: 18px; max-width: 26em; font-size: .97rem; }
.footer__h { margin: 0 0 16px; color: var(--yellow); font-size: .74rem; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line-dark); font-size: .86rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Mobile call bar ---------- */
.mobile-call { display: none; }
@media (max-width: 760px) {
  .mobile-call {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
    background: var(--yellow); color: var(--soil); font-weight: 800; text-decoration: none; border-radius: var(--radius);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
    transform: translateY(calc(100% + 24px)); transition: transform .35s var(--ease);
  }
  .mobile-call svg { width: 18px; height: 18px; fill: currentColor; }
  .mobile-call.is-visible { transform: none; }
  .footer__base { padding-bottom: 90px; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero load sequence ---------- */
.js .hero__contours #topo path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js.is-loaded .hero__contours #topo path { animation: draw 2.4s cubic-bezier(.45, .05, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.js [data-load] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero__title[data-load] { opacity: 1; transform: none; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.js .hero__media[data-load] { opacity: 1; transform: none; }
.js .hero__media .frame img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1) .35s, transform 1.8s var(--ease) .35s; }
.js .hero__media .corner { opacity: 0; transition: opacity .5s ease 1.3s, transform .6s var(--ease) 1.3s; }
.js:not(.is-loaded) .hero__media .corner.tl { transform: translate(14px, 14px); }
.js:not(.is-loaded) .hero__media .corner.br { transform: translate(-14px, -14px); }
.js .hero__media figcaption { opacity: 0; transition: opacity .8s ease 1.5s; }
.js .strata path { transform: translateY(70px); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.js .strata path:nth-child(1) { transition-delay: .5s; }
.js .strata path:nth-child(2) { transition-delay: .62s; }
.js .strata path:nth-child(3) { transition-delay: .74s; }
.js .strata path:nth-child(4) { transition-delay: .86s; }

.is-loaded [data-load] { opacity: 1; transform: none; }
.is-loaded .eyebrow[data-load] { transition-delay: .05s; }
.is-loaded .hero__lede[data-load] { transition-delay: .55s; }
.is-loaded .hero__ctas[data-load] { transition-delay: .68s; }
.is-loaded .hero__proof[data-load] { transition-delay: .8s; }
.is-loaded .hero__title .line > span,
.is-loaded .strata path { transform: none; }
.is-loaded .hero__media .frame img { clip-path: inset(0 0 0 0); transform: none; }
.is-loaded .hero__media .corner { opacity: 1; transform: none; }
.is-loaded .hero__media figcaption { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js [data-load], .js .hero__media figcaption, .js .hero__media .corner { opacity: 1; transform: none; }
  .js .hero__title .line > span, .js .strata path, .js .hero__media .frame img { transform: none; clip-path: none; }
  .js .hero__contours #topo path { stroke-dashoffset: 0; }
  .topo-glow { display: none; }
}
