/* ==========================================================================
   Alder & Stone — site styles (mobile-first)
   Brand: Navy #0C2340 (Pantone 289 C) · Sand #A39382 (Pantone 7530 C)
   Ivory #F6F3EE · Charcoal #1C1C1C · Headings Jost · Body Source Sans 3
   ========================================================================== */

:root {
  --navy: #0C2340;
  --navy-900: #08182D;
  --navy-700: #16345A;
  --sand: #a39382;
  --sand-700: #7d6e5f; /* AA-contrast sand for small text on light bg */
  --sand-200: #ddd3c8;
  --sand-100: #eee8e1;
  --bg: #F6F3EE;
  --white: #fff;
  --ink: #1C1C1C;
  --muted: #535c6b;
  --line: #e2dbd2;
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 11vw, 8.5rem);
  --font-heading: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font: var(--font-body);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1.1em; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); margin: 0 0 .6em; line-height: 1.15; font-weight: 400; }
h1, h2 { text-transform: uppercase; letter-spacing: .12em; }
h1 { font-size: clamp(2rem, 6.4vw, 4.4rem); letter-spacing: .1em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: .04em; font-weight: 500; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--sand-700); margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); font-weight: 300; max-width: 40em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section--tint { background: var(--sand-100); }
.section--navy { background: var(--navy); color: #e8ecf4; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 760px; }
.section-head.center { margin-inline: auto; }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.rule { width: 56px; height: 1px; background: var(--sand); border: 0; margin: 0 0 1.75rem; }
.center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .95rem 1.8rem;
  font: 500 .8rem/1 var(--font-heading); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--navy); border-radius: 0;
  background: var(--navy); color: var(--white); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--sand-100); border-color: var(--sand-100); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-heading);
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--navy);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .94);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand-logo { width: auto; height: 52px; max-width: min(240px, 58vw); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { color: var(--navy); font-size: 1.05rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.brand-tag { color: var(--sand-700); font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; margin-top: .45rem; white-space: nowrap; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; color: var(--navy);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: 76px 0 0 0; background: var(--bg);
  padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
  opacity: 0; transform: translateY(-10px); visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list a {
  display: block; padding: 1rem 0; text-decoration: none; color: var(--navy);
  font-family: var(--font-heading); font-size: .9rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.nav-list a[aria-current="page"] { color: var(--sand-700); }
.subnav a { padding: .6rem 0 .6rem 1rem; font-size: .8rem; letter-spacing: .14em; color: var(--muted); }
.nav-cta { margin-top: 1.75rem; width: 100%; }
.nav-phone { display: block; margin-top: 1.25rem; text-align: center; letter-spacing: .1em; text-decoration: none; }

@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; opacity: 1; transform: none; visibility: visible; background: none; padding: 0; overflow: visible;
    display: flex; align-items: center; gap: 1.6rem;
  }
  .nav-list { display: flex; gap: 1.6rem; }
  .nav-list a { white-space: nowrap; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a { padding: .5rem 0; font-size: .74rem; }
  .nav-list > li > a { position: relative; }
  .nav-list > li > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px; background: var(--sand);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
  .subnav {
    position: absolute; top: 100%; left: -1.25rem; min-width: 260px; padding: .75rem 1.25rem;
    background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(12, 35, 64, .25);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--ease);
  }
  .has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
  .subnav a { padding: .55rem 0; }
  .nav-cta { margin: 0; width: auto; min-height: 44px; padding: .8rem 1.3rem; }
  .nav-phone { display: none; }
}
@media (max-width: 380px) { .brand-logo { height: 44px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88svh, 900px); display: flex; align-items: flex-end; color: var(--white); isolation: isolate; overflow: hidden; }
.hero--page { min-height: clamp(360px, 58svh, 560px); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 35, 64, .2) 0%, rgba(12, 35, 64, .48) 40%, rgba(8, 24, 45, .86) 100%);
}
.hero-content { padding-block: clamp(3rem, 9vw, 6.5rem); width: 100%; }
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 1px 18px rgba(8, 24, 45, .35); }
.hero h1 { color: var(--white); max-width: 15em; margin-bottom: .45em; }
.hero .eyebrow { color: var(--sand-200); }
.hero p { max-width: 36em; font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 300; color: rgba(255, 255, 255, .9); margin-bottom: 2rem; }
.breadcrumbs { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.25rem; color: rgba(255,255,255,.8); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.trust li { background: var(--white); padding: 1.25rem 1rem; text-align: center; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.trust li span { display: block; color: var(--sand-700); font-weight: 400; letter-spacing: .12em; margin-top: .3rem; text-transform: none; font-size: .85rem; }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card { position: relative; display: block; text-decoration: none; color: inherit; }
.card-media { overflow: hidden; background: var(--sand-100); aspect-ratio: 4 / 5; }
.card-media--wide { aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding-top: 1.4rem; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.card-meta { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sand-700); margin-bottom: .5rem; display: block; }

/* ---------- Featured projects ---------- */
.feature-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .feature-grid > :first-child { grid-row: span 2; }
  .feature-grid > :first-child .card-media { aspect-ratio: auto; height: calc(100% - 7.5rem); min-height: 520px; }
}

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.step { border-top: 1px solid rgba(163, 147, 130, .55); padding-top: 1.5rem; }
.step-num { display: block; font-size: .78rem; letter-spacing: .3em; color: var(--sand); margin-bottom: 1rem; }
.step h3 { text-transform: uppercase; letter-spacing: .16em; font-size: 1.1rem; }
.step p { font-size: 1rem; opacity: .88; margin: 0; }

/* ---------- Testimonials ---------- */
.quote { background: var(--white); padding: clamp(1.75rem, 4vw, 2.5rem); border: 1px solid var(--line); display: flex; flex-direction: column; margin: 0; }
.quote::before { content: "\201C"; font-size: 3.5rem; line-height: .8; color: var(--sand); margin-bottom: .5rem; }
.quote blockquote { margin: 0 0 1.5rem; font-size: 1.08rem; font-weight: 300; flex: 1; }
.quote figcaption { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.quote figcaption span { display: block; color: var(--sand-700); font-weight: 400; margin-top: .25rem; }

/* ---------- Area strip ---------- */
.areas-strip { background: var(--navy); color: var(--white); padding-block: clamp(2.75rem, 6vw, 4rem); }
.areas-strip .eyebrow { color: var(--sand-200); }
.areas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .2rem 2rem; }
.areas-list li { display: flex; align-items: center; gap: .9rem; }
.areas-list li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--sand); }
.areas-list a { color: var(--white); text-decoration: none; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; padding: .4rem 0; }
.areas-list a:hover { color: var(--sand-200); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: var(--white); text-align: center; padding-block: clamp(5rem, 12vw, 9rem); overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(12, 35, 64, .78); z-index: -1; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 34em; margin: 0 auto 2.25rem; font-weight: 300; font-size: 1.15rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Lists ---------- */
.check-list li { position: relative; padding: .85rem 0 .85rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 14px; height: 1px; background: var(--sand); }
.check-list strong { color: var(--navy); font-weight: 500; }
.value { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.value h3 { text-transform: uppercase; letter-spacing: .14em; font-size: 1.05rem; }
.value p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  color: var(--navy); font-size: 1.1rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font-size: 1.6rem; font-weight: 300; color: var(--sand); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; }

/* ---------- Projects gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.75rem; }
.filter-btn {
  min-height: 44px; padding: .7rem 1.3rem; border: 1px solid var(--line); background: var(--white);
  font: 500 .72rem/1 var(--font-heading); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .card[hidden] { display: none; }
.gallery .card { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Service areas page ---------- */
.area-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-nav a { padding: .55rem 1rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.area-nav a:hover { border-color: var(--navy); }
.area { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); display: grid; gap: 1.25rem 3rem; }
@media (min-width: 900px) { .area { grid-template-columns: 300px 1fr; } }
.area h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 0; }
.area .zip { display: block; font-size: .78rem; letter-spacing: .2em; color: var(--sand-700); margin-top: .6rem; text-transform: uppercase; }
.area p { color: var(--muted); }
.tag-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .5rem; }
.tag-links a { font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.form { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin-bottom: .5rem; }
.field label .req { color: var(--sand-700); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .85rem 1rem; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .2s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230C2340' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12, 35, 64, .12); }
.field input:user-invalid, .field select:user-invalid { border-color: #a33a2b; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { font-size: 1rem; padding: 1rem 1.25rem; border-left: 2px solid var(--sand); background: var(--white); }
.form-status:empty { display: none; }
.form-status.is-error { border-color: #a33a2b; }
.contact-card { background: var(--navy); color: #e8ecf4; padding: clamp(2rem, 5vw, 3rem); }
.contact-card h2 { color: var(--white); font-size: 1.35rem; }
.contact-card a { color: var(--white); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-item { padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact-item span { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sand-200); margin-bottom: .35rem; }
.contact-item a, .contact-item p { font-size: 1.15rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c2d3; font-size: .95rem; padding-top: clamp(4rem, 8vw, 6rem); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand .footer-logo { display: inline-block; margin-bottom: 1.25rem; }
.footer-brand img { width: auto; height: 58px; max-width: 260px; background: none; padding: 0; }
.footer-brand .brand-name { color: var(--white); font-size: 1.1rem; }
.footer-brand p { margin-top: 1rem; max-width: 26em; }
.site-footer h2 { font-size: .74rem; letter-spacing: .26em; color: var(--sand-200); margin-bottom: 1.25rem; font-weight: 500; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #e2e7f0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; font-size: .8rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr;
  background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; font-weight: 500; }
.mobile-bar a:last-child { background: var(--navy); color: var(--white); }
body { padding-bottom: 56px; }
@media (min-width: 1180px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Misc ---------- */
.prose h2 { margin-top: 2.5rem; }
.prose p { color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.badge { border: 1px solid var(--sand); padding: .6rem 1rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.stack > * + * { margin-top: 1.5rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.nav-open .mobile-bar { display: none; }
