/* ==========================================================================
   Unique City Homes Pty Ltd — masonry & construction contractor
   Art direction: industrial-premium. Charcoal / clay terracotta / warm sand.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1.1rem + 4.4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root,
[data-theme='light'] {
  --color-bg: #f3efe8;
  --color-surface: #faf7f2;
  --color-surface-2: #ece6dc;
  --color-ink: #17161a;
  --color-ink-soft: #3a373c;
  --color-muted: #6d6862;
  --color-faint: #a49d94;
  --color-rule: #d7cfc3;
  --color-rule-strong: #b9afa0;
  --color-accent: #a8412a;
  --color-accent-hover: #8c3421;
  --color-accent-soft: #f0ddd4;
  --color-inverse-bg: #17161a;
  --color-inverse-ink: #f6f2ec;
  --color-inverse-rule: #35323a;
  --shadow: 0 1px 2px rgba(23, 22, 26, 0.05), 0 12px 32px -18px rgba(23, 22, 26, 0.4);
}

[data-theme='dark'] {
  --color-bg: #131215;
  --color-surface: #1b191d;
  --color-surface-2: #232025;
  --color-ink: #f4efe8;
  --color-ink-soft: #ddd6cd;
  --color-muted: #a49d94;
  --color-faint: #6f6a66;
  --color-rule: #34313a;
  --color-rule-strong: #4a4650;
  --color-accent: #e0724c;
  --color-accent-hover: #ef8760;
  --color-accent-soft: #33221c;
  --color-inverse-bg: #f3efe8;
  --color-inverse-ink: #17161a;
  --color-inverse-rule: #cfc6b8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
}

/* ---------- Base ---------- */
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.012em;
  word-spacing: 0.02em;
  text-wrap: balance;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide { max-width: 1440px; }

section { position: relative; }

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

.rule { border: 0; border-top: 1px solid var(--color-rule); }

/* ---------- Type utilities ---------- */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow::before {
  content: attr(data-num);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.h-display { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.008em; word-spacing: 0.04em; }
.h-1 { font-size: var(--text-2xl); }
.h-2 { font-size: var(--text-xl); }
.h-3 { font-size: var(--text-lg); font-weight: 600; }
.h-4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-ink-soft);
  max-width: 46ch;
  letter-spacing: -0.015em;
}

.body { color: var(--color-ink-soft); max-width: 68ch; }
.body + .body { margin-top: var(--space-4); }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }

.ph {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); }

.btn--ghost {
  border-color: var(--color-rule-strong);
  color: var(--color-ink);
}
.btn--ghost:hover { border-color: var(--color-ink); background: var(--color-surface); }

.btn--onDark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--color-inverse-ink);
}
.btn--onDark:hover { border-color: var(--color-inverse-ink); background: rgba(255, 255, 255, 0.08); }

.btn svg { width: 16px; height: 16px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: var(--space-3); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-rule);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 30px; height: 30px; color: var(--color-accent); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  word-spacing: 0.1em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}
@media (max-width: 460px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1rem; }
}

.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  position: relative;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-ink-soft);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--color-ink); }
.nav a[aria-current='page'] { color: var(--color-ink); font-weight: 600; }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
}

.nav > .btn { display: none; }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-rule);
  border-radius: 2px;
  color: var(--color-ink);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--color-rule-strong); background: var(--color-surface); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme='dark'] .icon-sun { display: none; }
[data-theme='light'] .icon-moon,
:root:not([data-theme='dark']) .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) .icon-moon { display: block; }
  :root:not([data-theme='light']):not([data-theme='dark']) .icon-sun { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-6);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-rule);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav[data-open='true'] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    padding: var(--space-4) 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-rule);
  }
  .nav a[aria-current='page']::after { left: 0; right: auto; width: 24px; bottom: 8px; }
  .nav > .btn { display: inline-flex; margin-top: var(--space-5); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--color-rule); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.008em;
  word-spacing: 0.04em;
  line-height: 1.08;
}
.hero__title em { font-style: normal; color: var(--color-accent); }

.hero__meta { display: grid; gap: var(--space-6); }

.hero__figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-2);
  border: 1px solid var(--color-rule);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

.hero__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-inverse-bg);
  color: var(--color-inverse-ink);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Credibility strip ---------- */
.strip {
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-surface);
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip__item {
  padding: var(--space-8) var(--space-6) var(--space-8) 0;
  border-left: 1px solid var(--color-rule);
  padding-left: var(--space-6);
}
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.strip__label {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
@media (max-width: 780px) {
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item { padding: var(--space-6) var(--space-4); border-left: 1px solid var(--color-rule); }
  .strip__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip__item:nth-child(n + 3) { border-top: 1px solid var(--color-rule); }
}

/* ---------- Section head ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-12);
}
.sec-head__title { font-size: var(--text-xl); max-width: 18ch; }
.sec-head__aside { display: grid; gap: var(--space-4); }
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: var(--space-6); }
@media (max-width: 780px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-rule);
  border: 1px solid var(--color-rule);
}
.grid-3 > * { background: var(--color-bg); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.svc {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background-color 0.3s var(--ease);
}
.svc:hover { background: var(--color-surface); }
.svc__num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.svc h3 { font-size: var(--text-lg); }
.svc p { font-size: var(--text-sm); color: var(--color-muted); }

/* Project cards */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.proj {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-rule);
  background: var(--color-surface);
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease);
}
.proj:hover { border-color: var(--color-rule-strong); }
.proj__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-rule);
}
.proj__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.proj:hover .proj__img img { transform: scale(1.03); }
.proj__body { padding: var(--space-6); display: grid; gap: var(--space-4); }
.proj__top { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 2px;
}
.proj h3 { font-size: var(--text-lg); }
.proj__loc { font-size: var(--text-sm); color: var(--color-muted); }

/* Data table blocks */
.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.data th, .data td {
  text-align: left;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-top: 1px solid var(--color-rule);
  vertical-align: top;
}
.data tr:first-child th, .data tr:first-child td { border-top: 0; }
.proj .data th { width: 34%; }

.data th {
  width: 42%;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}
.data td { font-weight: 600; }

/* Spec list */
.speclist { display: grid; gap: 0; border-top: 1px solid var(--color-rule); }
.speclist li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-rule);
}
.speclist span:first-child {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  padding-top: 0.35em;
  font-variant-numeric: tabular-nums;
}
.speclist strong { display: block; font-size: var(--text-base); }
.speclist p { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-1); max-width: 72ch; }

/* Checklist */
.checks { display: grid; gap: var(--space-4); }
.checks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.checks li::before {
  content: '';
  width: 10px; height: 10px;
  margin-top: 0.45em;
  border: 2px solid var(--color-accent);
}
.checks strong { color: var(--color-ink); }

/* Split feature */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__fig {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--color-rule);
  background: var(--color-surface-2);
}
.split__fig img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: grid; gap: var(--space-6); }

/* Note / callout */
.note {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--color-rule-strong);
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
}
.note h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.02em; }
.note p { font-size: var(--text-sm); color: var(--color-ink-soft); }

/* ---------- Dark band / CTA ---------- */
.band {
  background: var(--color-inverse-bg);
  color: var(--color-inverse-ink);
  position: relative;
  overflow: hidden;
}
.band .muted, .band .body, .band p { color: color-mix(in srgb, var(--color-inverse-ink) 74%, transparent); }
.band .eyebrow { color: color-mix(in srgb, var(--color-inverse-ink) 62%, transparent); }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.band__title { font-size: var(--text-2xl); max-width: 16ch; }
@media (max-width: 780px) { .band__grid { grid-template-columns: 1fr; align-items: start; } }

.bond-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-inverse-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-inverse-ink) 1px, transparent 1px);
  background-size: 120px 40px, 120px 40px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-rule);
  padding-block: var(--space-16) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}
.footer ul { display: grid; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.footer li, .footer p { font-size: var(--text-sm); color: var(--color-ink-soft); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--color-accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-muted);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Page header ---------- */
.page-head {
  border-bottom: 1px solid var(--color-rule);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.page-head h1 { font-size: var(--text-2xl); max-width: 16ch; }
@media (max-width: 780px) { .page-head__grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Form ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form {
  display: grid;
  gap: var(--space-5);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--color-rule);
  background: var(--color-surface);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-5);
}
.field { display: grid; gap: var(--space-2); }
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.field label .req { color: var(--color-accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-rule-strong);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.field .hint { font-size: var(--text-xs); color: var(--color-muted); }
.field .err {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  display: none;
}
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: var(--color-accent); }
.field[data-invalid='true'] .err { display: block; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
}

.success {
  display: none;
  gap: var(--space-4);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--color-rule);
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  animation: fade-up 0.5s var(--ease) both;
}
.success[data-show='true'] { display: grid; }
.success__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--color-accent);
  color: #fff;
}
.success__mark svg { width: 22px; height: 22px; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Coverage list ---------- */
.coverage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-rule);
  border: 1px solid var(--color-rule);
}
.coverage div { background: var(--color-bg); padding: var(--space-5); }
@media (max-width: 860px) { .coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coverage strong { display: block; font-size: var(--text-sm); }
.coverage span { font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transition: opacity 0.7s var(--ease); }
  .reveal.is-in { opacity: 1; }
}

/* ---------- Misc ---------- */
.stack-6 { display: grid; gap: var(--space-6); }
.stack-8 { display: grid; gap: var(--space-8); }
.stack-12 { display: grid; gap: var(--space-12); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.figure-full {
  margin-block: 0;
  overflow: hidden;
  border: 1px solid var(--color-rule);
  background: var(--color-surface-2);
}
.figure-full img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
@media (max-width: 700px) { .figure-full img { aspect-ratio: 4 / 3; } }
.figure-full figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-muted);
  border-top: 1px solid var(--color-rule);
  background: var(--color-surface);
}

/* ---------- Completed work gallery ---------- */
.gal-section { border-top: 1px solid var(--color-rule); }
.gal__head { max-width: 62ch; display: grid; gap: var(--space-4); }

.gal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.gal__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-2, transparent);
  border: 1px solid var(--color-rule);
}
.gal__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(0.96);
  transition: transform 0.6s var(--ease);
}
.gal__item:hover img { transform: scale(1.025); }
.gal__item { overflow: hidden; }
.gal__item figcaption {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid var(--color-rule);
}
.gal__item figcaption strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.gal__item figcaption span {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-muted);
}
@media (max-width: 960px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gal { grid-template-columns: 1fr; } }

/* ---------- Scale / large sites ---------- */
.scale-section {
  padding-block: var(--section-y);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--color-rule);
}
.scale-lead { margin: 0; position: relative; }
.scale-lead img {
  width: 100%;
  height: clamp(320px, 52vw, 640px);
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.scale-lead__cap {
  position: absolute;
  left: 0; bottom: 0;
  background: rgba(20, 19, 18, 0.82);
  color: #f4f0ea;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  max-width: min(92%, 60ch);
}
.scale-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.scale-stats > div {
  padding: var(--space-6) var(--space-5) var(--space-6) 0;
  border-left: 1px solid var(--color-rule);
  padding-left: var(--space-5);
}
.scale-stats > div:first-child { border-left: 0; padding-left: 0; }
.scale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 960px) {
  .scale-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .scale-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .scale-stats { grid-template-columns: 1fr; }
  .scale-stats > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-rule); }
  .scale-stats > div:first-child { border-top: 0; }
}

/* ---------- Service area map ---------- */
.areamap-wrap {
  margin: 0;
  border: 1px solid var(--color-rule);
  background: var(--color-surface);
}
.areamap {
  display: block;
  width: 100%;
  height: auto;
}
.areamap-wrap figcaption {
  border-top: 1px solid var(--color-rule);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-muted);
}
.mp-sea { fill: var(--color-surface-2); }
.mp-land path {
  fill: var(--color-surface);
  stroke: var(--color-rule-strong);
  stroke-width: 1.6;
}
.mp-rings circle {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 7 8;
  opacity: 0.6;
}
.mp-rlab text {
  fill: var(--color-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--color-surface);
  stroke-width: 7px;
  stroke-linejoin: round;
}
.mp-dot { fill: var(--color-ink); }
.mp-dot--hub { fill: var(--color-accent); }
.mp-lab {
  fill: var(--color-ink);
  font-size: 17px;
  font-weight: 600;
  paint-order: stroke;
  stroke: var(--color-surface);
  stroke-width: 7px;
  stroke-linejoin: round;
}
.mp-lab--hub {
  fill: var(--color-accent);
  font-size: 21px;
  font-weight: 700;
  stroke-width: 8px;
}
@media (max-width: 860px) {
  .mp-lab { font-size: 34px; stroke-width: 10px; }
  .mp-lab--hub { font-size: 40px; stroke-width: 11px; }
  .mp-rlab text { font-size: 29px; stroke-width: 10px; }
  .mp-dot { r: 8; }
  .mp-dot--hub { r: 12; }
  .mp-lab--sec { display: none; }
}

/* ---------- Service area section ---------- */
.areamap-section { border-top: 1px solid var(--color-rule); }
.areamap-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 860px) {
  .areamap-head { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Featured project ---------- */
.feature-proj {
  padding-block: var(--section-y);
  border-top: 1px solid var(--color-rule);
}
.proj-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--color-rule);
  border: 1px solid var(--color-rule);
}
.proj-meta > div {
  background: var(--color-bg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.proj-meta dt {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.proj-meta dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-ink);
  font-weight: 500;
}
@media (max-width: 860px) { .proj-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .proj-meta { grid-template-columns: 1fr; } }

.proj-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 760px) { .proj-duo { grid-template-columns: 1fr; } }
.gal__item--tall img { aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .gal__item--tall img { aspect-ratio: 4 / 3; } }
.feature-proj .scale-lead img { aspect-ratio: 16 / 8; object-position: center 42%; }
@media (max-width: 700px) { .feature-proj .scale-lead img { aspect-ratio: 4 / 3; } }

/* ---------- Homepage featured teaser ---------- */
.feat-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.feat-teaser__img {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-rule);
  background: var(--color-surface-2);
}
.feat-teaser__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.feat-teaser__img:hover img { transform: scale(1.03); }
.feat-teaser__body { display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 800px) {
  .feat-teaser { grid-template-columns: 1fr; }
  .feat-teaser__img img { aspect-ratio: 4 / 3; }
}

/* ---------- Secondary email line ---------- */
.alt-mail { display: inline-block; margin-top: 0.35rem; font-size: var(--text-xs); color: inherit; opacity: 0.75; }
.alt-mail a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.alt-mail a:hover { opacity: 1; color: var(--color-accent); }
.muted-inline { color: var(--color-muted); font-size: 0.85em; white-space: nowrap; }
