/* =========================================================================
   Star State Contracting LLC
   style.css — shared across every page
   Mobile-first. Breakpoints at 768px and 1100px.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #1b2a4a;
  --warm: #8b7d6b;
  --white: #ffffff;
  --surface: #f5f4f1;
  --text: #2c2c2c;
  --muted: #6b6b6b;

  /* Derived tints — commercial priority signalling */
  --navy-tint: #1b2a4a0d;
  --navy-tint-strong: #1b2a4a14;
  --navy-border: #1b2a4a33;
  --warm-tint: #8b7d6b14;
  --border: #e4e2dd;
  --border-strong: #d3d0c9;

  /* On-navy surfaces */
  --on-navy-dim: rgba(255, 255, 255, 0.6);
  --on-navy-faint: rgba(255, 255, 255, 0.15);
  --on-navy-pill: rgba(255, 255, 255, 0.08);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --h1: 48px;
  --h2: 36px;
  --h3: 24px;
  --h4: 18px;
  --body: 16px;
  --small: 14px;
  --tiny: 13px;

  /* Layout */
  --container: 1140px;
  --gutter: 24px;
  --section-y: 40px;
  --radius: 4px;

  /* Motion */
  --t: 0.2s ease;
}

@media (min-width: 768px) {
  :root {
    --section-y: 80px;
  }
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ---------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--warm);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  color: var(--navy);
}

h1 {
  font-size: 34px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 21px;
}
h4 {
  font-size: var(--h4);
  line-height: 1.3;
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--h1);
  }
  h2 {
    font-size: var(--h2);
  }
  h3 {
    font-size: var(--h3);
  }
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* -------------------------------------------------------------------------
   3. Layout primitives
   ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.section--surface {
  background: var(--surface);
}

.section--tint {
  background: var(--navy-tint);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--tight {
  padding: calc(var(--section-y) * 0.7) 0;
}

.section__head {
  max-width: 660px;
  margin-bottom: 32px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 14px;
}

/* Draftsman tick before each eyebrow label */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.7;
}

.section__head--center .eyebrow {
  justify-content: center;
}

.eyebrow--on-navy {
  color: rgba(255, 255, 255, 0.6);
}

.lede {
  font-size: 18px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid {
    gap: 24px;
  }
}

/* -------------------------------------------------------------------------
   4. Icons
   ---------------------------------------------------------------------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--navy);
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

/* -------------------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 500;
  line-height: 1;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--navy:hover {
  background: #14203a;
  border-color: #14203a;
  color: var(--white);
}

.btn--warm {
  background: var(--warm);
  color: var(--white);
  border-color: var(--warm);
}

.btn--warm:hover {
  background: #786c5c;
  border-color: #786c5c;
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy-border);
}

.btn--outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn--sm {
  padding: 11px 18px;
  font-size: var(--small);
}

.btn--block {
  width: 100%;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: var(--small);
  letter-spacing: 0.02em;
  color: var(--navy);
}

.link-arrow span[data-icon] {
  transition: transform var(--t);
}

.link-arrow:hover span[data-icon] {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   6. Navigation
   ---------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: uppercase;
}

.brand__sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
  margin-top: 3px;
}

.footer .brand__name,
.footer .brand__sub {
  color: var(--white);
}

.footer .brand__sub {
  color: rgba(255, 255, 255, 0.55);
}

/* Links — mobile panel by default */
.nav__links {
  position: fixed;
  inset: 72px 0 auto 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--gutter) 24px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.nav__links.is-open {
  display: flex;
}

.nav__links a {
  font-size: var(--body);
  font-weight: 500;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--navy);
}

.nav__links a[aria-current="page"] {
  font-weight: 600;
}

.nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.nav__mobile-actions .nav__phone {
  justify-content: center;
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--small);
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

.nav__phone .icon {
  color: var(--warm);
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy);
  transition: border-color var(--t), background-color var(--t);
}

.nav__toggle:hover {
  border-color: var(--navy-border);
}

.nav__toggle .icon--close {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon--open {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon--close {
  display: inline-flex;
}

@media (min-width: 768px) {
  .nav__inner {
    min-height: 80px;
  }
  .nav__links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    background: none;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav__links a {
    font-size: var(--small);
    padding: 0;
    border: 0;
    letter-spacing: 0.02em;
  }
  .nav__mobile-actions {
    display: none;
  }
  .nav__actions {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
}

@media (min-width: 1100px) {
  .nav__links {
    gap: 38px;
  }
}

/* -------------------------------------------------------------------------
   7. Hero
   ---------------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 48px;
}

@media (min-width: 768px) {
  .hero {
    padding: 96px 0 80px;
  }
}

.hero__inner {
  max-width: 780px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 17px;
  color: var(--on-navy-dim);
  max-width: 620px;
  margin-bottom: 32px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--tiny);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  background: var(--on-navy-pill);
  border: 1px solid var(--on-navy-faint);
  border-radius: 100px;
  padding: 7px 15px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--on-navy-faint);
}

@media (min-width: 768px) {
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--white);
}

.stat__label {
  font-size: var(--small);
  color: var(--on-navy-dim);
  margin-top: 4px;
}

/* Narrow page hero */
.hero--narrow {
  padding: 44px 0;
}

@media (min-width: 768px) {
  .hero--narrow {
    padding: 72px 0;
  }
}

.hero--narrow .hero__sub {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   8. Trust bar
   ---------------------------------------------------------------------- */
.trust {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .trust {
    padding: 56px 0;
  }
}

.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1100px) {
  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust__item h4 {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
}

.trust__item p {
  margin: 0;
  font-size: var(--small);
  color: var(--muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   9. Cards
   ---------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t);
}

@media (min-width: 768px) {
  .card {
    padding: 32px 28px;
  }
}

.card:hover {
  border-color: var(--border-strong);
}

/* Commercial priority treatment */
.card--commercial {
  background: var(--navy-tint);
  border-color: var(--navy-border);
}

.card--commercial:hover {
  border-color: #1b2a4a55;
}

.card--plain {
  background: var(--white);
}

.card__icon {
  margin-bottom: 18px;
  color: var(--navy);
}

.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}

.card__foot {
  margin-top: 20px;
}

/* Type badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid transparent;
}

.badge--commercial {
  background: var(--navy);
  color: var(--white);
}

.badge--residential {
  background: var(--warm-tint);
  color: var(--warm);
  border-color: #8b7d6b40;
}

.badge--light {
  background: var(--navy-tint);
  color: var(--navy);
  border-color: var(--navy-border);
}

/* -------------------------------------------------------------------------
   10. Portfolio grid, filters, lightbox
   ---------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: var(--small);
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}

.filter-btn:hover {
  color: var(--navy);
  border-color: var(--navy-border);
}

.filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--t), opacity var(--t), transform var(--t);
}

.work-card:hover {
  border-color: var(--navy-border);
}

.work-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--navy);
  overflow: hidden;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.work-card__body {
  padding: 18px 20px 20px;
}

.work-card__body h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.work-card__meta {
  font-size: var(--small);
  color: var(--muted);
  margin: 0;
}

.work-card__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
  transition: color var(--t);
}

.work-card__trigger .icon {
  color: var(--warm);
  transition: transform var(--t);
}

.work-card:hover .work-card__trigger .icon {
  transform: translateX(3px);
}

/* Filter transition */
.work-card.is-hidden {
  display: none;
}

.work-card.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(27, 42, 74, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__panel {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.lightbox__panel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.lightbox__body {
  padding: 24px;
}

@media (min-width: 768px) {
  .lightbox__body {
    padding: 32px;
  }
}

.lightbox__body h3 {
  margin: 14px 0 6px;
}

.lightbox__meta {
  color: var(--muted);
  font-size: var(--small);
  margin-bottom: 16px;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.lightbox__close .icon {
  color: currentColor;
}

/* -------------------------------------------------------------------------
   11. CTA strip
   ---------------------------------------------------------------------- */
.cta-strip {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-top: 36px;
  padding: 28px;
  background: var(--navy-tint);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .cta-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
  }
}

.cta-strip h3 {
  margin: 0 0 4px;
}

.cta-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.cta-strip .btn {
  flex: none;
}

.cta-strip--navy {
  background: var(--navy);
  border-color: var(--navy);
  margin-top: 0;
}

.cta-strip--navy h3 {
  color: var(--white);
}

.cta-strip--navy p {
  color: var(--on-navy-dim);
}

/* -------------------------------------------------------------------------
   12. Audience columns
   ---------------------------------------------------------------------- */
.audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .audience {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.audience__col {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}

.audience__col--commercial {
  background: var(--navy-tint);
  border-color: var(--navy-border);
}

.audience__col h3 {
  margin-bottom: 12px;
}

.audience__col p {
  color: var(--muted);
  margin-bottom: 20px;
}

.audience__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  padding: 7px 0;
  color: var(--text);
}

.audience__list .icon {
  color: var(--warm);
  margin-top: 3px;
}

/* -------------------------------------------------------------------------
   13. Testimonials
   ---------------------------------------------------------------------- */
.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--warm);
}

.stars .icon {
  width: 17px;
  height: 17px;
  color: var(--warm);
}

.quote blockquote {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.quote figcaption {
  font-size: var(--small);
  color: var(--muted);
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  display: block;
  padding-top: 14px;
}

/* -------------------------------------------------------------------------
   14. Forms
   ---------------------------------------------------------------------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .form-wrap {
    padding: 40px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-row-2 .field {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .form-row-2 .field {
    margin-bottom: 18px;
  }
}

.field label {
  font-size: var(--small);
  font-weight: 500;
  color: var(--navy);
}

.field label .req {
  color: var(--warm);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--body);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
  transition: border-color var(--t), background-color var(--t);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9c9c9c;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

/* Validation */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #b4442f;
  background: #b4442f08;
}

.field__error {
  display: none;
  font-size: var(--tiny);
  color: #b4442f;
}

.field.is-invalid .field__error {
  display: block;
}

/* Drop zone */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px 20px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t);
}

.dropzone:hover {
  border-color: var(--navy-border);
}

.dropzone.is-dragover {
  border-color: var(--navy);
  border-style: dashed;
  background: var(--navy-tint-strong);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone .icon {
  color: var(--warm);
}

.dropzone__title {
  font-size: var(--small);
  font-weight: 500;
  color: var(--navy);
}

.dropzone__hint {
  font-size: var(--tiny);
  color: var(--muted);
}

.dropzone__file {
  font-size: var(--tiny);
  font-weight: 500;
  color: var(--navy);
}

.form-note {
  font-size: var(--tiny);
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

/* Honeypot — hidden from people, tempting to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit status / error line */
.form-status {
  font-size: var(--small);
  text-align: center;
  margin: 14px 0 0;
  color: var(--muted);
}

.form-status.is-error {
  color: #b4442f;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.is-visible {
  display: block;
}

.form-success .icon {
  width: 46px;
  height: 46px;
  color: var(--warm);
  margin: 0 auto 16px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
   15. Services page
   ---------------------------------------------------------------------- */
.service-block {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

.service-block--commercial {
  background: var(--navy-tint);
  border-bottom-color: var(--navy-border);
}

.service-block__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 1100px) {
  .service-block__layout {
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
  }
}

.service-block__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.service-block__head h2 {
  margin: 0;
}

.service-block p {
  color: var(--muted);
}

.service-block__aside {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.service-block--commercial .service-block__aside {
  border-color: var(--navy-border);
}

.service-block__aside h4 {
  font-family: var(--font-body);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list .icon {
  color: var(--warm);
  margin-top: 3px;
}

/* -------------------------------------------------------------------------
   16. About page
   ---------------------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1100px) {
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.story__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
}

.story p {
  color: var(--muted);
}

.value {
  text-align: left;
}

.value .icon {
  margin-bottom: 14px;
}

.value h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.value p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.map {
  position: relative;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  background: var(--navy-tint);
  background-image: linear-gradient(var(--navy-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-border) 1px, transparent 1px);
  background-size: 44px 44px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}

.map__mark {
  position: relative;
  text-align: center;
}

.map__mark img {
  width: 130px;
  height: auto;
  margin: 0 auto;
}

.map__pins {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.map__pin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--navy-border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: var(--small);
  font-weight: 500;
  color: var(--navy);
}

.map__pin .icon {
  color: var(--warm);
}

/* -------------------------------------------------------------------------
   17. Blog
   ---------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t);
}

.post-card:hover {
  border-color: var(--navy-border);
}

.post-card__media {
  aspect-ratio: 3 / 2;
  background: var(--navy);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.post-card__date {
  font-size: var(--tiny);
  color: var(--muted);
}

.post-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.post-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.post-card .link-arrow {
  margin-top: auto;
}

/* Article */
.article {
  max-width: 720px;
  margin: 0 auto;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: var(--small);
  color: var(--muted);
}

.article__figure {
  margin: 0 0 32px;
}

.article__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.article h2 {
  font-size: 28px;
  margin-top: 40px;
}

.article h3 {
  font-size: 21px;
  margin-top: 28px;
}

.article p {
  color: #444;
}

.article ul.check-list {
  margin: 20px 0;
}

.article blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--navy-tint);
  border-left: 3px solid var(--warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  color: var(--navy);
}

.article blockquote p {
  color: inherit;
}

/* -------------------------------------------------------------------------
   18. Contact page
   ---------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1100px) {
  .contact-layout {
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
  }
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.aside-card + .aside-card {
  margin-top: 20px;
}

.aside-card h3 {
  font-size: 21px;
  margin-bottom: 18px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list .icon {
  color: var(--warm);
  margin-top: 2px;
}

.contact-list__label {
  display: block;
  font-size: var(--tiny);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1px;
}

.contact-list__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}

.licence-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--navy-tint);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  margin-top: 20px;
}

.licence-badge .icon {
  color: var(--navy);
}

.licence-badge strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
}

.licence-badge span {
  font-size: var(--tiny);
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   19. Footer
   ---------------------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: var(--white);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 52px;
  }
}

@media (min-width: 1100px) {
  .footer__top {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.footer__brand p {
  color: var(--on-navy-dim);
  font-size: var(--small);
  max-width: 300px;
  margin: 18px 0 0;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--tiny);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer__links li {
  padding: 6px 0;
}

.footer__links a,
.footer__contact a {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--small);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--white);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.82);
}

.footer__contact .icon {
  color: var(--warm);
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid var(--on-navy-faint);
}

.footer__bottom .container {
  padding-top: 22px;
  padding-bottom: 22px;
}

.footer__bottom p {
  margin: 0;
  font-size: var(--tiny);
  color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------------------
   20. Utilities
   ---------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-32 {
  margin-top: 32px;
}

.text-center {
  text-align: center;
}

/* =========================================================================
   MODERN LAYER — blueprint accents, motion, timeline, hover polish
   Added to modernise the UI/UX. All motion is opt-in via a class that JS
   only applies when the user has NOT requested reduced motion, so this
   whole layer degrades to a clean static site with no hidden content.
   ========================================================================= */

/* ---- Section watermark (oversized ghost wordmark) ---------------------- */
.has-watermark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.watermark {
  position: absolute;
  z-index: -1;
  bottom: -0.28em;
  right: -0.04em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.8;
  letter-spacing: 0.01em;
  color: var(--navy);
  opacity: 0.035;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.section--navy .watermark,
.hero .watermark {
  color: var(--white);
  opacity: 0.05;
}

.watermark--left {
  right: auto;
  left: -0.04em;
}

/* ---- Blueprint grid texture ------------------------------------------- */
.bg-grid {
  position: relative;
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--navy-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}

.section--navy.bg-grid::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
}

/* ---- Corner brackets (draftsman frame) -------------------------------- */
.bracket {
  position: relative;
}

.bracket::before,
.bracket::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--warm);
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
}

.bracket::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
  transform: translate(4px, 4px);
}

.bracket::after {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
  transform: translate(-4px, -4px);
}

.bracket:hover::before,
.bracket:hover::after,
.work-card:hover .bracket::before,
.work-card:hover .bracket::after {
  opacity: 0.9;
  transform: translate(0, 0);
}

/* ---- Portfolio / post image hover polish ------------------------------ */
.work-card__media img,
.post-card__media img {
  transition: transform 0.5s ease;
}

.work-card:hover .work-card__media img,
.post-card:hover .post-card__media img {
  transform: scale(1.045);
}

/* corner brackets that live over the media on hover */
.work-card__media {
  isolation: isolate;
}

.work-card__media .bracket-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.work-card__media .bracket-overlay::before,
.work-card__media .bracket-overlay::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
}

.work-card__media .bracket-overlay::before {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
  transform: translate(5px, 5px);
}

.work-card__media .bracket-overlay::after {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
  transform: translate(-5px, -5px);
}

.work-card:hover .bracket-overlay::before,
.work-card:hover .bracket-overlay::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---- Stat numerals keep a stable width while counting ----------------- */
.stat__value [data-countup] {
  font-variant-numeric: tabular-nums;
}

/* ---- Scroll reveals ---------------------------------------------------- */
/* Hidden state only exists once JS confirms motion is allowed. */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Blueprint line draw-in ------------------------------------------- */
.blueprint {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.blueprint path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blueprint .bp-stroke {
  stroke: var(--navy);
  stroke-width: 2;
}

.blueprint .bp-thin {
  stroke-width: 1;
  stroke: var(--navy-border);
}

.blueprint .bp-accent {
  stroke: var(--warm);
}

.blueprint .bp-fill {
  fill: var(--navy);
  opacity: 0.06;
}

.blueprint .bp-label {
  fill: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.blueprint .bp-dim {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.section--navy .blueprint .bp-label {
  fill: rgba(255, 255, 255, 0.82);
}

.section--navy .blueprint .bp-dim {
  fill: rgba(255, 255, 255, 0.5);
}

.section--navy .blueprint .bp-stroke {
  stroke: rgba(255, 255, 255, 0.9);
}

.section--navy .blueprint .bp-thin {
  stroke: rgba(255, 255, 255, 0.22);
}

.section--navy .blueprint .bp-accent {
  stroke: var(--warm);
}

.blueprint-figure {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  background: var(--white);
}

.section--navy .blueprint-figure {
  border-color: var(--on-navy-faint);
  background: rgba(255, 255, 255, 0.03);
}

.blueprint-figure__tag {
  position: absolute;
  top: -10px;
  left: 20px;
  padding: 2px 10px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}

.section--navy .blueprint-figure__tag {
  background: var(--navy);
}

/* ---- Process timeline -------------------------------------------------- */
.timeline {
  position: relative;
  margin-top: 40px;
}

.timeline__track {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 19px;
  width: 2px;
  background: var(--navy-border);
  overflow: hidden;
}

.section--navy .timeline__track {
  background: var(--on-navy-faint);
}

.timeline__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--timeline-progress, 0%);
  background: var(--warm);
  transition: height 0.15s linear;
}

.timeline__steps {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.timeline__step {
  position: relative;
  padding-left: 60px;
  min-height: 40px;
}

.timeline__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy-border);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color var(--t), border-color var(--t), color var(--t);
}

.section--navy .timeline__num {
  background: var(--navy);
}

.timeline__step.is-active .timeline__num {
  background: var(--warm);
  border-color: var(--warm);
  color: var(--white);
}

.timeline__step h3 {
  font-size: 21px;
  margin: 6px 0 6px;
}

.timeline__step p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 520px;
}

.section--navy .timeline__step p {
  color: var(--on-navy-dim);
}

.timeline__phase {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}

@media (min-width: 900px) {
  .timeline__track {
    left: 50%;
    transform: translateX(-1px);
  }
  .timeline__steps {
    gap: 8px;
  }
  .timeline__step {
    width: 50%;
    padding: 22px 0;
  }
  .timeline__step:nth-child(odd) {
    padding-right: 56px;
    text-align: right;
  }
  .timeline__step:nth-child(even) {
    margin-left: 50%;
    padding-left: 56px;
  }
  .timeline__step .timeline__num {
    left: auto;
  }
  .timeline__step:nth-child(odd) .timeline__num {
    right: -20px;
    left: auto;
  }
  .timeline__step:nth-child(even) .timeline__num {
    left: -20px;
  }
  .timeline__step:nth-child(odd) p {
    margin-left: auto;
  }
}

/* ---- Framed hero-adjacent image treatment ----------------------------- */
.framed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* -------------------------------------------------------------------------
   21. Reduced motion
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
