/* ==========================================================================
   Mayo & Son's Construction LLC — Main Stylesheet
   Design system: "Field Drawing" — blueprint/title-block visual language
   ========================================================================== */

/* -------------------- Design tokens -------------------- */
:root {
  /* Color */
  --charcoal:        #1B1917;
  --charcoal-soft:    #262320;
  --steel:            #4A5560;
  --steel-soft:       #6B7581;
  --gray:             #8B867C;
  --ivory:            #F1ECE1;
  --ivory-dim:        #E7E0D2;
  --line:             #D8CFBD;
  --copper:           #B5622C;
  --copper-dark:      #8F4A20;
  --copper-tint:      #E9C9AE;
  --white:            #FFFFFF;
  --success:          #3E6B4F;
  --error:            #A63B2C;

  /* Type */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 1.9rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --step-4:  clamp(2.75rem, 2.2rem + 2.75vw, 4.25rem);
  --step-5:  clamp(3.5rem, 2.6rem + 4.5vw, 6rem);

  /* Layout */
  --content-max: 1280px;
  --content-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 2px;
  --radius-md: 4px;
  --header-h: 88px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 280ms;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--charcoal);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { max-width: 62ch; }
p.lead { font-size: var(--step-1); color: var(--charcoal-soft); }

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--step--1);
}

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--copper);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  z-index: 1000;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* -------------------- Focus states -------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

/* -------------------- Container -------------------- */
.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

section { position: relative; }
.section-pad { padding-block: clamp(3.5rem, 8vw, 7rem); }

/* -------------------- Blueprint grid texture -------------------- */
.blueprint {
  position: relative;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(rgba(241,236,225,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,236,225,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.blueprint-light {
  background-color: var(--ivory-dim);
  background-image:
    linear-gradient(rgba(27,25,23,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,25,23,0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Corner registration marks — drafting-table crosshairs */
.regmark { position: relative; }
.regmark::before,
.regmark::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: currentColor;
  opacity: 0.55;
  pointer-events: none;
}
.regmark::before {
  top: -1px; left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.regmark::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* -------------------- Eyebrow / drawing label -------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--step--1);
  color: var(--copper);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--copper);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--copper-tint); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 1rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}
.btn-primary:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(241,236,225,0.4);
}
.btn-outline:hover { border-color: var(--ivory); background: rgba(241,236,225,0.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--ivory); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(27,25,23,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(241,236,225,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  flex-shrink: 0;
}
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.brand-text span {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--copper-tint);
  margin-top: 2px;
}

.main-nav { display: none; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.main-nav a:hover { color: var(--ivory); }
.main-nav a[aria-current="page"] {
  color: var(--copper-tint);
  border-bottom-color: var(--copper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-call {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--ivory-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.header-call svg { width: 16px; height: 16px; color: var(--copper); flex-shrink: 0; }
.header-call:hover { color: var(--ivory); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(241,236,225,0.3);
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ivory);
  margin-inline: auto;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--charcoal);
  z-index: 490;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.mobile-nav ul { padding: 1.5rem var(--content-pad) 2.5rem; }
.mobile-nav li { border-bottom: 1px solid rgba(241,236,225,0.1); }
.mobile-nav a {
  display: block;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--ivory);
}
.mobile-nav a[aria-current="page"] { color: var(--copper-tint); }
.mobile-nav .mobile-cta { padding-top: 1.75rem; }
.mobile-nav .header-call { display: flex; margin-top: 1.5rem; font-size: 1rem; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-call { display: flex; }
  .mobile-nav { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
  background: var(--charcoal);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3.5rem, 9vw, 7rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.55fr 1fr; }
}
.hero h1 {
  color: var(--ivory);
  font-size: var(--step-5);
  max-width: 14ch;
}
.hero .lead {
  color: var(--ivory-dim);
  margin-top: 1.5rem;
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* Title block — drafting spec card, the signature component */
.title-block {
  background: var(--ivory);
  color: var(--charcoal);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.title-block-head {
  background: var(--copper);
  color: var(--white);
  padding: 0.85rem 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
}
.title-block dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1rem;
  padding: 1.15rem;
}
.title-block dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  font-size: 0.7rem;
  align-self: start;
  padding-top: 0.15rem;
}
.title-block dd {
  color: var(--charcoal);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* -------------------- Trust strip -------------------- */
.trust-strip {
  background: var(--ivory-dim);
  border-block: 1px solid var(--line);
}
.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  padding-block: 1.75rem;
}
@media (min-width: 700px) {
  .trust-strip ul { grid-template-columns: repeat(4, 1fr); }
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.trust-strip svg { width: 20px; height: 20px; color: var(--copper); flex-shrink: 0; }

/* -------------------- Section headers -------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head.split {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 700px) {
  .section-head.split { flex-direction: column; align-items: flex-start; }
}

/* -------------------- Cards: capabilities / services -------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.service-card .num { font-family: var(--font-mono); color: var(--copper); font-size: 0.8rem; letter-spacing: 0.1em; }
.service-card h3 { font-size: var(--step-1); }
.service-card p { font-size: 0.95rem; color: var(--charcoal-soft); }
.service-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  background: var(--ivory-dim);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
}
.service-card .card-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-card .card-cta svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.service-card:hover .card-cta svg { transform: translateX(4px); }

/* Commitment / pillar cards */
.pillar-card {
  padding: 2.25rem 1.75rem;
  border-top: 3px solid var(--copper);
  background: var(--white);
}
.pillar-card .icon-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  color: var(--copper-tint);
  margin-bottom: 1.25rem;
}
.pillar-card .icon-wrap svg { width: 26px; height: 26px; }
.pillar-card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.pillar-card p { font-size: 0.95rem; color: var(--charcoal-soft); }

/* -------------------- Project cards -------------------- */
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel);
  position: relative;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media .cat-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--charcoal);
  color: var(--copper-tint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
}
.project-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.project-body h3 { font-size: var(--step-1); }
.project-body p { font-size: 0.95rem; color: var(--charcoal-soft); }
.project-scope {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--steel);
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.25rem;
}
.project-scope li { display: flex; gap: 0.6rem; align-items: flex-start; }
.project-scope svg { width: 15px; height: 15px; color: var(--copper); flex-shrink: 0; margin-top: 3px; }

/* -------------------- Quote / testimonial style block -------------------- */
.founder-quote {
  border-left: 3px solid var(--copper);
  padding-left: 1.75rem;
  font-family: var(--font-display);
  text-transform: none;
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--ivory);
}
.founder-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--copper-tint);
  margin-top: 1.25rem;
}

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--charcoal);
  color: var(--ivory);
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.cta-band h2 { color: var(--ivory); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--ivory-dim); margin: 1.25rem auto 0; max-width: 48ch; }
.cta-band .hero-ctas { justify-content: center; margin-top: 2rem; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--charcoal); color: var(--ivory-dim); }
.footer-top {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; }
}
.footer-brand .brand { color: var(--ivory); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--gray); max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--copper-tint);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col address {
  font-size: 0.9rem;
  color: var(--ivory-dim);
  font-style: normal;
}
.footer-col a:hover { color: var(--white); }
.footer-cert {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--gray);
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(241,236,225,0.12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray);
}
.footer-bottom a:hover { color: var(--ivory); }

/* -------------------- Forms -------------------- */
.form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.field .req { color: var(--copper); }
.field input,
.field select,
.field textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--dur) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--copper); }
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 0.8rem; color: var(--gray); }
.field-error {
  font-size: 0.8rem;
  color: var(--error);
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field.has-error .field-error { display: block; }

.radio-group, .checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.radio-pill {
  position: relative;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.radio-pill label {
  display: inline-flex;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  transition: all var(--dur) var(--ease);
}
.radio-pill input:checked + label {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}
.radio-pill input:focus-visible + label { outline: 3px solid var(--copper); outline-offset: 2px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.consent-row input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--copper);
  flex-shrink: 0;
}
.consent-row label { font-size: 0.88rem; color: var(--charcoal-soft); text-transform: none; letter-spacing: 0; font-family: var(--font-body); }

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--charcoal);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { border-color: var(--success); background: #EAF1EC; color: #294636; }
.form-status.error { border-color: var(--error); background: #F6E9E6; color: #6E2A1E; }

/* -------------------- Contact panel -------------------- */
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.contact-line svg { width: 20px; height: 20px; color: var(--copper); flex-shrink: 0; margin-top: 2px; }
.contact-line h4 { font-size: 0.75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 0.2rem; }
.contact-line a, .contact-line address { font-style: normal; font-size: 1rem; }
.contact-line a:hover { color: var(--copper); }
.map-embed {
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
  width: 100%;
}

/* -------------------- Scroll reveal --------------------
   Progressive enhancement only: content is visible by default so it
   never depends on JavaScript running. The "js-reveal" class is added
   by main.js before any [data-reveal] element is hidden, so users with
   JS disabled (or a script error) always see full content immediately. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* -------------------- Utilities -------------------- */
.on-dark { color: var(--ivory); }
.text-steel { color: var(--steel); }
.mt-lg { margin-top: clamp(2rem, 5vw, 3.5rem); }
.divider { height: 1px; background: var(--line); border: 0; }
.divider-dark { height: 1px; background: rgba(241,236,225,0.14); border: 0; }
.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;
}
.center-narrow { max-width: 56rem; }

/* Simple accordion (services page) */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--step-1);
  color: var(--charcoal);
}
.accordion-trigger svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--dur) var(--ease); color: var(--copper); }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
/* Accordion panels are open/visible by default so content never depends
   on JavaScript running. main.js collapses all but the first once it
   confirms it's running, and manages expand/collapse from there. */
.accordion-panel {
  overflow: hidden;
  transition: max-height 380ms var(--ease);
}
.js-accordion .accordion-panel {
  max-height: 0;
}
.accordion-panel-inner { padding-bottom: 1.75rem; max-width: 62ch; color: var(--charcoal-soft); }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-code {
  font-family: var(--font-mono);
  color: var(--copper);
  letter-spacing: 0.1em;
}
