/* ==========================================================================
   Vanguard Construction - design system
   Derived from the approved brand kit: white, charcoal #242424, cool gray.
   Editorial, architectural. Hairlines, no shadows, generous space.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand - neutral: charcoal, greys, silver, white.
     The greys are deliberately a clear step below white. Very light greys
     read as a colour tint rather than as grey, so these are darker. */
  --ink: #242424;
  --panel: #ececec;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --line: #d0d0d0;
  --accent: #757575;
  --steel: #242424;

  /* Derived greys - pure neutral, no colour cast */
  --surface: #ebebeb;
  --surface-2: #dcdcdc;
  --surface-3: #cccccc;

  /* Dark sections */
  --dark: #242424;
  --dark-panel: #2b2b2b;
  --dark-paper: #f2f2f2;
  --dark-muted: #a6a6a6;
  --dark-line: #3d3d3d;
  --dark-steel: #c2c2c2;

  /* Semantic */
  --success: #1f6f47;
  --success-bg: #e8f4ed;
  --danger: #a32a22;
  --danger-bg: #fceceb;
  --info: #1c5fa8;
  --info-bg: #e9f1fb;
  --warning: #8a5a10;
  --warning-bg: #fdf3e0;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Shape */
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;

  /* Elevation - the brand is flat, so shadows are almost absent */
  --shadow-xs: 0 1px 2px rgba(36, 36, 36, 0.05);
  --shadow-sm: 0 2px 10px rgba(36, 36, 36, 0.06);
  --shadow-md: 0 10px 30px rgba(36, 36, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(36, 36, 36, 0.1);

  /* Layout */
  --container: 1240px;
  --container-narrow: 820px;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 1.1rem + 4.6vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

p {
  margin: 0 0 1.1em;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
}

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

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}

li {
  margin: 0.35em 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-7) 0;
}

blockquote {
  margin: 0;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--panel);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 5vw;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.section--alt {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(36, 36, 36, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 36, 36, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}

.section--dark {
  background: var(--dark);
  color: var(--dark-muted);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--dark-paper);
}

.section--dark a {
  color: var(--dark-paper);
}

.section--rule {
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: var(--s-5);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.split--wide-left { grid-template-columns: 1.15fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.15fr; }

.stack > * + * { margin-top: var(--s-4); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-4);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--ink);
  flex-shrink: 0;
}

/* A drafting rule: a hairline with a tick, used to open a section */
.rule {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rule i {
  display: block;
  width: 3px;
  height: 11px;
  background: var(--ink);
  flex-shrink: 0;
}

/* Registration marks - the drafting corner ticks */
.marked {
  position: relative;
}

.marked::before,
.marked::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.55;
  pointer-events: none;
}

.marked::before {
  top: 6px;
  left: 6px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.marked::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

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

.section--dark .eyebrow {
  color: var(--dark-steel);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}

.section--dark .lead {
  color: var(--dark-muted);
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

.note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.section-head--center p {
  margin-inline: auto;
}

/* Prose blocks (rich text from the admin editor) */
.prose {
  color: var(--muted);
  font-size: 1.05rem;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2.2rem;
  color: var(--ink);
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li {
  margin: 0.5em 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
}

.prose a:hover {
  text-decoration-color: var(--ink);
}

.prose strong { color: var(--ink); font-weight: 600; }
.prose img { margin: var(--s-5) 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 49px;
  padding: 12px 23px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  background: #3d4448;
  border-color: #3d4448;
}

.btn:active {
  transform: translateY(0);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line);
}

/* The brand's accent is the charcoal itself. */
.btn--accent {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
}

.btn--outline:hover {
  --btn-bg: var(--panel);
  --btn-border: var(--muted);
  color: var(--ink);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--dark-paper);
  --btn-border: var(--dark-line);
}

.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.07);
  --btn-border: var(--dark-steel);
  color: var(--dark-paper);
}

.btn--sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.78rem;
}

.btn--lg {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 0.88rem;
}

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

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn .arrow {
  transition: transform 0.18s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "\2197";
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.link-arrow:hover::after {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   6. Cards & surfaces
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.card--tint {
  background: var(--paper);
}

.card--bar {
  border-top: 3px solid var(--ink);
}

/* --------------------------------------------------------------------------
   Panel style - white boxes by default, or grey fills on request
   -------------------------------------------------------------------------- */
body[data-panel-style="fill"] .service-card__body,
body[data-panel-style="fill"] .trust-item,
body[data-panel-style="fill"] .hero__stats,
body[data-panel-style="fill"] .card--tint,
body[data-panel-style="fill"] .project-card,
body[data-panel-style="fill"] .quote-card,
body[data-panel-style="fill"] .strip {
  background: var(--surface);
}

body[data-panel-style="fill"] .hero__work {
  background: var(--surface-2);
}

body[data-panel-style="fill"] .section--alt {
  background-color: var(--surface);
}

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

.card--pad-lg {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.card--flat {
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 5vw;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.site-header__brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  flex-shrink: 0;
}

.site-header__brand:hover {
  color: var(--ink);
}

.site-header__brand img {
  width: 270px;
  height: 65px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 4px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 0.4rem + 1.2vw, 1.9rem);
}

.site-nav__link {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.2s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 100%;
}

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

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

.header-phone svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease), top 0.22s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }

.nav-toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: calc(var(--header-h) + 28px) 5vw var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__link {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav__actions {
  display: grid;
  gap: var(--s-3);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   8. Hero - editorial, light
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
  padding-top: var(--header-h);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 5vw;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: center;
}

.hero h1 {
  color: var(--ink);
  margin-bottom: var(--s-5);
  max-width: 12ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: var(--s-6);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

.hero__slogan {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-left: var(--s-4);
  border-left: 2px solid var(--accent);
  margin: 0 0 var(--s-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}

/* The piece of work shown at the top of the home page. */
.hero__work {
  position: relative;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.hero__work:hover {
  border-color: var(--muted);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero__work-link {
  display: block;
  color: inherit;
}

.hero__work-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero__work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__work-body {
  display: grid;
  gap: 0.25rem;
  padding: var(--s-4) var(--s-5) var(--s-5);
}

.hero__work-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__work-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.hero__work-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__work-arrow {
  margin-top: var(--s-3);
}

/* With no work to show, the heading takes the whole width. */
.hero--solo .hero__inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 940px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: var(--s-4) var(--s-5);
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  max-width: 780px;
}

.hero__stat {
  min-width: 0;
}

.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  overflow-wrap: break-word;
}

.hero__stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ticker strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Compact hero for interior pages */
.page-hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding-block: calc(var(--header-h) + 76px) 76px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--ink);
}

.page-hero h1 {
  color: var(--ink);
  margin-bottom: var(--s-4);
  max-width: 18ch;
}

.page-hero p {
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.08rem;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.page-hero__meta div b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.page-hero__meta div span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-5);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span[aria-hidden] {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   9. Trust strip
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-6);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

.trust-item {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: var(--s-4);
  height: 100%;
}

.trust-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.trust-item__icon svg {
  width: 30px;
  height: 30px;
}

.trust-item b {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.trust-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

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

.service-card__art {
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.service-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-card__art img {
  transform: scale(1.03);
}

.service-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--paper);
  border-top: 3px solid var(--ink);
}

.service-card__num {
  display: inline-block;
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  padding: 0.32rem 0.6rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: var(--s-4);
}

.service-card__link {
  margin-top: auto;
}

/* Icon set */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   11. Project gallery
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

.filter-chip {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-5);
}

.project-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  isolation: isolate;
  transition: border-color 0.2s var(--ease);
}

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

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card__body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  background: var(--paper);
}
.project-card__cat {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.project-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

/* --------------------------------------------------------------------------
   12. Process steps
   -------------------------------------------------------------------------- */
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  position: relative;
}

.process__step {
  position: relative;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.process__step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process__step p {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0;
}

.section--dark .process__step {
  border-top-color: var(--dark-line);
}

.section--dark .process__step::before {
  color: var(--dark-steel);
}

.section--dark .process__step p {
  color: var(--dark-muted);
}

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quote-card__mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.7;
  color: var(--line);
  margin-bottom: var(--s-3);
  font-weight: 500;
}

.quote-card__body {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: var(--s-4);
  flex: 1;
}

.quote-card__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.quote-card__author b {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}

.quote-card__author span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--ink);
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   14. Service area map
   -------------------------------------------------------------------------- */
.area-map {
  width: 100%;
  height: 480px;
  border: 1px solid var(--line);
  background: var(--panel);
  z-index: 1;
}

.area-list {
  display: grid;
  gap: 0;
}

.area-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.16s var(--ease);
}

.area-item:hover {
  padding-left: 0.5rem;
}

.area-item b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.area-item span {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. CTA banner
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--dark);
  color: var(--dark-paper);
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--dark-steel);
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--dark-paper);
  margin-bottom: 0.4rem;
}

.cta-band p {
  color: var(--dark-muted);
  margin: 0;
  max-width: 52ch;
}

.cta-band .eyebrow {
  color: var(--dark-steel);
}

.cta-band .eyebrow::before {
  background: var(--dark-steel);
}

.cta-band .btn {
  --btn-bg: var(--dark-paper);
  --btn-fg: var(--dark);
  --btn-border: var(--dark-paper);
}

.cta-band .btn:hover {
  --btn-bg: #ffffff;
  --btn-border: #ffffff;
}

.cta-band--dark {
  background: var(--dark);
  color: var(--dark-paper);
}
.cta-band--dark h2 { color: var(--dark-paper); }
.cta-band--dark p { color: var(--dark-muted); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding-block: var(--s-8) var(--s-6);
  border-top: 1px solid var(--dark-line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}

.site-footer h4 {
  color: var(--dark-paper);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.site-footer a {
  color: var(--dark-muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--dark-paper);
}

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

.site-footer li {
  margin: 0.5em 0;
}

.site-footer__brand img {
  width: 250px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--s-4);
}

.site-footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 42ch;
}

.site-footer__slogan {
  font-family: var(--font-display);
  font-size: 1.05rem !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--dark-paper) !important;
  margin-bottom: var(--s-3) !important;
}

.footer-contact {
  display: grid;
  gap: var(--s-3);
  font-size: 0.9rem;
}

.footer-contact div {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--dark-steel);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-top: var(--s-5);
  border-top: 1px solid var(--dark-line);
  font-size: 0.8rem;
}

.site-footer__legal {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.field label .req {
  color: var(--danger);
  margin-left: 2px;
}

.field .help {
  font-size: 0.78rem;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--muted);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(36, 36, 36, 0.08);
}

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

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

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23606970' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}

.input.has-error,
.select.has-error,
.textarea.has-error {
  border-color: var(--danger);
}

.field__error {
  font-size: 0.79rem;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--ink);
  flex-shrink: 0;
}

/* Honeypot - invisible to humans, tempting to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   18. Alerts & badges
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--s-3);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid transparent;
  margin-bottom: var(--s-4);
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert--success { background: var(--success-bg); border-color: #c6e3d3; color: #175338; }
.alert--error   { background: var(--danger-bg); border-color: #f0c8c5; color: #82211b; }
.alert--info    { background: var(--info-bg); border-color: #c8dbf2; color: #17487e; }
.alert--warning { background: var(--warning-bg); border-color: #eed9ac; color: #6f4810; }

.alert p {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.26rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
}

.badge--accent   { background: var(--ink); color: var(--paper); }
.badge--success  { background: var(--success-bg); color: var(--success); }
.badge--danger   { background: var(--danger-bg); color: var(--danger); }
.badge--info     { background: var(--info-bg); color: var(--info); }
.badge--warning  { background: var(--warning-bg); color: var(--warning); }
.badge--dark     { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   19. Detail pages
   -------------------------------------------------------------------------- */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  margin-block: var(--s-6);
}

.detail-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.detail-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease);
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

/* Buttons that sit on top of a picture in the portal. */
.photo-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.photo-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.photo-flag {
  position: absolute;
  left: 7px;
  bottom: 7px;
}

.gallery-grid figure:hover img {
  transform: scale(1.03);
}

/* Numbered steps (used by the editable Approach content) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-5);
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: start;
  margin: 0;
}

.steps li > span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 0.25rem;
}

.steps h3 {
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Disclosure list used for the FAQ */
.prose details {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
}

.prose details:first-of-type {
  border-top: 1px solid var(--line);
}

.prose summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}

.prose summary::-webkit-details-marker {
  display: none;
}

.prose summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.prose details[open] summary::after {
  transform: rotate(45deg);
}

.prose details p {
  margin: 0.75rem 0 0;
  font-size: 0.97rem;
}

/* Drafting-style offset frame around an image */
.art-frame {
  position: relative;
}

.art-frame > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.art-frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--ink);
  background: var(--surface-2);
  z-index: 0;
}

/* --------------------------------------------------------------------------
   20. Portal & admin shared
   -------------------------------------------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: 258px 1fr;
  min-height: 100vh;
  background: var(--paper-2, #fbfbfb);
}

.app-sidebar {
  background: var(--dark);
  color: var(--dark-muted);
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.app-sidebar .site-header__brand {
  color: #fff;
  padding-inline: var(--s-2);
  margin-bottom: var(--s-2);
}

.app-sidebar .site-header__brand img {
  width: 150px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.app-nav {
  display: grid;
  gap: 1px;
}

.app-nav__group {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  padding: var(--s-4) var(--s-2) var(--s-2);
  font-weight: 700;
}

.app-nav__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 0.8rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.87rem;
  font-weight: 500;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.app-nav__link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.7;
}

.app-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-nav__link.is-active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.app-nav__link.is-active svg {
  opacity: 1;
}

.app-nav__count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 100px;
  padding: 0.05rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.app-nav__link.is-active .app-nav__count {
  background: var(--panel);
  color: var(--ink);
}

.app-sidebar__foot {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--dark-line);
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 40;
}

.app-topbar h1 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 500;
}

.app-content {
  padding: var(--s-6);
  flex: 1;
}

.app-user {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.86rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4) var(--s-5);
  display: block;
  color: var(--ink);
  transition: border-color 0.18s var(--ease);
}

a.stat-card:hover {
  border-color: var(--muted);
}

.stat-card__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.1;
}

.stat-card__delta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel__head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.panel__head h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}

.panel__body {
  padding: var(--s-5);
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table th {
  text-align: left;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  white-space: nowrap;
}

.table td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: #fafafa;
}

.table__actions {
  display: flex;
  gap: var(--s-2);
  justify-content: flex-end;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.16s var(--ease);
}

.icon-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.icon-btn--danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.empty-state {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--muted);
}

.empty-state svg {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--s-3);
  color: var(--line);
}

/* Message thread */
.thread {
  display: grid;
  gap: var(--s-4);
  max-height: 560px;
  overflow-y: auto;
  padding: var(--s-4);
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.msg {
  max-width: 78%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.55;
  border: 1px solid var(--line);
}

.msg--mine {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  margin-left: auto;
  border-color: var(--ink);
}

.msg--theirs {
  background: var(--paper);
  margin-right: auto;
}

.msg__meta {
  font-size: 0.72rem;
  opacity: 0.62;
  margin-top: 0.4rem;
}

/* Document list */
.doc-list {
  display: grid;
  gap: var(--s-2);
}

.doc-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.16s var(--ease);
}

.doc-item:hover {
  border-color: var(--muted);
}

.doc-item__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}

.doc-item__icon svg {
  width: 18px;
  height: 18px;
}

.doc-item__body {
  min-width: 0;
  flex: 1;
}

.doc-item__body b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-item__body span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Upload dropzone */
.dropzone {
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  text-align: center;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--ink);
  background: var(--paper);
}

.dropzone svg {
  width: 32px;
  height: 32px;
  color: var(--muted);
  margin: 0 auto var(--s-3);
}

.dropzone b {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.dropzone span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  z-index: 1;
}

.timeline__dot svg {
  width: 13px;
  height: 13px;
}

.timeline__body b {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}

.timeline__body time {
  font-size: 0.76rem;
  color: var(--muted);
}

.timeline__body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.3rem 0 0;
}

/* --------------------------------------------------------------------------
   21. WYSIWYG editor
   -------------------------------------------------------------------------- */
.editor-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.editor-shell .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 0.4rem;
}

.editor-shell .ql-container.ql-snow {
  border: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 320px;
}

.editor-shell .ql-editor {
  min-height: 320px;
  padding: 1.1rem 1.25rem;
  color: var(--ink);
  line-height: 1.65;
}

.editor-shell .ql-editor h2 {
  font-size: 1.5rem;
  margin-top: 1.4rem;
}

.editor-shell .ql-editor h3 {
  font-size: 1.15rem;
  margin-top: 1.2rem;
}

.editor-shell .ql-editor.ql-blank::before {
  color: var(--muted);
  font-style: normal;
}

.editor-meta {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   22. Auth pages
   -------------------------------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-page__aside {
  background: var(--dark);
  color: var(--dark-muted);
  padding: var(--s-8) var(--s-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-page__aside img {
  width: 240px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: auto;
}

.auth-page__aside h2 {
  color: var(--dark-paper);
  font-size: 1.9rem;
  margin-bottom: var(--s-4);
}

.auth-page__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-7) var(--s-5);
  background: var(--paper);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.auth-card > p {
  color: var(--muted);
  margin-bottom: var(--s-5);
}

.auth-foot {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 3px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.no-wrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: var(--s-3); }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--s-2); }
.gap-md { gap: var(--s-4); }
.mono { font-family: var(--font-mono); font-size: 0.88em; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Line items table used by the estimator */
.line-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

/* A quantity that is worked out for you, rather than typed in. */
.line-table input.is-calculated {
  background: var(--surface);
  color: var(--muted);
  border-style: dashed;
}

.line-table input.is-calculated:focus {
  color: var(--ink);
  border-style: solid;
}

.line-table th {
  text-align: left;
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.line-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.line-table input,
.line-table select {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.86rem;
  background: var(--paper);
}

.line-table input:focus,
.line-table select:focus {
  outline: none;
  border-color: var(--ink);
}

.line-table .total {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   24. Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-nav,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-bar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: static; height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__work { max-width: 460px; }
}

@media (max-width: 860px) {
  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: 1fr;
  }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-page__aside { display: none; }
}

@media (max-width: 620px) {
  :root { --header-h: 72px; }

  .container { padding-inline: 5vw; }

  .grid--2,
  .grid--3,
  .grid--4,
  .trust-bar__grid,
  .process,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-header__brand img { width: 190px; height: 46px; }
  .hero { min-height: auto; }
  .hero__actions .btn { width: 100%; }
  .project-grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .app-content { padding: var(--s-4); }
  .msg { max-width: 92%; }
  .strip { gap: var(--s-3); font-size: 0.62rem; }
}

/* The wrapper the editor puts around a picture. It must not change the
   look of the live site, so it takes no part in the layout. */
.vc-img {
  display: contents;
}


/* --------------------------------------------------------------------------
   Comfortable tapping on a phone.

   Footer and contact links sit at about 17px tall, which is fine to read and
   fiddly to hit. WCAG asks for 24x24 minimum, and 44 is the comfortable size
   for a thumb, so give the small ones room without changing how they look.
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-footer a,
  .site-footer__legal a,
  .footer-contact a,
  .site-footer__grid li a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding-block: 0.35rem;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .crumbs a,
  .link-arrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
  }
}

/* A link or button reached by keyboard should be obvious. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}


/* Client reviews */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}

.quote-card {
  margin: 0;
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.quote-card__stars {
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.quote-card blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

.quote-card figcaption {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.1rem;
}

.quote-card figcaption strong {
  font-size: 0.88rem;
  color: var(--ink);
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .btn {
    display: none !important;
  }

  body { color: #000; }
}

/* Site check rows */
.check-list { display: grid; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

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

.check-row__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.check-row--ok .check-row__icon { color: var(--success); border-color: var(--success); }
.check-row--warn .check-row__icon { color: var(--warning); border-color: var(--warning); }
.check-row--fail .check-row__icon { color: var(--danger); border-color: var(--danger); }

.check-row__body { flex: 1; min-width: 0; }

.check-row__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--ink);
}

.check-row__detail {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.check-row__link {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.check-row__link:hover { border-color: var(--ink); }

@media (max-width: 620px) {
  .check-row { flex-wrap: wrap; }
  .check-row__link { margin-left: 2.2rem; }
}

