/* ============================================================
   6G ENTERPRISES — Design System
   Agency build. Do not edit tokens without Creative Director sign-off.
   ============================================================ */

/* ── 01. TOKENS ── */
:root {
  /* Color — Surface */
  --color-white:        #FFFFFF;
  --color-surface:      #F8F7F5;
  --color-surface-2:    #EEECEA;
  --color-border:       #DEDAD4;

  /* Color — Ink */
  --color-ink:          #0C0B09;
  --color-ink-2:        #1A1916;
  --color-text:         #5A5753;
  --color-muted:        #9B9790;

  /* Color — Accent (Warm Bronze) */
  --color-accent:       #8C7355;
  --color-accent-light: #C4A97D;
  --color-accent-dark:  #5C4A35;

  /* Color — Dark Sections */
  --color-dark:         #0C0B09;
  --color-dark-2:       #161512;
  --color-dark-text:    rgba(255,255,255,0.55);
  --color-dark-muted:   rgba(255,255,255,0.25);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Type Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.8125rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.375rem;
  --text-2xl:   1.75rem;
  --text-3xl:   2.25rem;
  --text-4xl:   3rem;
  --text-hero:  clamp(3.75rem, 7.5vw, 7rem);

  /* Spacing (8pt grid) */
  --sp-1:  8px;   --sp-2:  16px;  --sp-3:  24px;
  --sp-4:  32px;  --sp-5:  40px;  --sp-6:  48px;
  --sp-8:  64px;  --sp-10: 80px;  --sp-12: 96px;
  --sp-16: 128px; --sp-20: 160px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast:   0.25s;
  --dur-base:   0.4s;
  --dur-slow:   0.7s;

  /* Layout */
  --max-width: 1280px;
  --gutter:    clamp(24px, 5vw, 80px);
}

/* ── 02. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--color-white); color: var(--color-ink); line-height: 1.6; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── 03. LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── 04. TYPOGRAPHY ── */
.t-display { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.t-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--sp-2);
}
h1 { font-family: var(--font-display); font-size: var(--text-hero); font-weight: 400; line-height: 1.0; letter-spacing: -0.03em; }
h2 { font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; line-height: 1.2; }
h4 { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.03em; }
p { font-size: var(--text-base); color: var(--color-text); line-height: 1.8; }
p.lead { font-size: var(--text-lg); line-height: 1.75; }

/* ── 05. SKIP LINK (Accessibility) ── */
.skip-link {
  position: fixed;
  top: 0;
  left: var(--sp-2);
  z-index: 9999;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  transform: translateY(-200%);
  visibility: hidden;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); visibility: visible; }

/* ── 06. CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: normal;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--color-ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(12, 11, 9, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.cursor-ring.is-hovering {
  width: 56px; height: 56px;
  border-color: var(--color-accent);
  background: rgba(140, 115, 85, 0.08);
}
.cursor-ring.is-image {
  width: 80px; height: 80px;
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}
@media (pointer: coarse) { .cursor { display: none; } * { cursor: auto !important; } }

/* ── 07. NAVIGATION ── */
#site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 32px var(--gutter);
  transition: padding var(--dur-base) var(--ease-out);
}
#site-nav.nav--scrolled .nav-inner { padding-block: 18px; }

.nav-bg {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 9, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
#site-nav.nav--scrolled .nav-bg { opacity: 1; }

/* Logo */
.nav-logo { position: relative; z-index: 1; display: flex; align-items: center; }
.nav-logo img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--dur-base) var(--ease-out);
}
#site-nav.nav--scrolled .nav-logo img { filter: brightness(0) invert(1); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  position: relative;
  z-index: 1;
}
.nav-links > li { position: relative; }
.nav-link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--dur-base) var(--ease-out);
  padding: 4px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

#site-nav.nav--scrolled .nav-link { color: rgba(255,255,255,0.9); }
.nav-link:hover { color: rgba(255,255,255,1); }
#site-nav.nav--scrolled .nav-link:hover { color: var(--color-white); }

/* Services Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: var(--sp-3);
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  transform: translateX(-50%) translateY(8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.nav-dropdown.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-dropdown a:hover { background: var(--color-surface); color: var(--color-ink); }
.nav-dropdown a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* CTA */
.nav-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--color-white) !important;
  padding: 12px 24px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base), color var(--dur-base);
  white-space: nowrap;
}
#site-nav.nav--scrolled .nav-cta {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-ink) !important;
}
.nav-cta:hover { background: var(--color-white) !important; color: var(--color-ink) !important; border-color: var(--color-white); }
#site-nav.nav--scrolled .nav-cta:hover { background: var(--color-accent) !important; border-color: var(--color-accent); color: var(--color-white) !important; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1;
  width: 32px; height: 24px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--color-white);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base), background var(--dur-base);
}
#site-nav.nav--scrolled .nav-toggle span { background: var(--color-white); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; pointer-events: all; }
.nav-mobile-links { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.nav-mobile-links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  transition: color var(--dur-fast);
  line-height: 1.1;
}
.nav-mobile-links a:hover { color: var(--color-white); }
.nav-mobile-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-5); }
.nav-mobile-footer a { font-size: var(--text-sm); color: rgba(255,255,255,0.4); margin-right: var(--sp-4); }

/* ── 08. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 18px 40px;
  border: 1px solid var(--color-ink);
}
.btn-primary:hover { background: var(--color-accent); border-color: var(--color-accent); }
.btn-primary--light { background: var(--color-white); color: var(--color-ink); border-color: var(--color-white); }
.btn-primary--light:hover { background: var(--color-surface); border-color: var(--color-surface); }

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  padding: 17px 39px;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--color-white); }

.btn-text {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  position: relative;
}
.btn-text::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--color-ink);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn-text:hover::after { transform: scaleX(0); transform-origin: left; }
.btn-arrow { display: inline-flex; transition: transform var(--dur-base) var(--ease-out); }
.btn-text:hover .btn-arrow { transform: translateX(4px); }

/* ── 09. SECTION SHARED ── */
.section { padding-block: var(--sp-20); }
.section--sm { padding-block: var(--sp-12); }
.section--lg { padding-block: clamp(var(--sp-16), 15vw, 200px); }
.section--dark { background: var(--color-dark); }
.section--dark .t-label { color: var(--color-accent-light); }
.section--dark h2 { color: var(--color-white); }
.section--dark p { color: var(--color-dark-text); }
.section--surface { background: var(--color-surface); }
.section--surface-2 { background: var(--color-surface-2); }

.section-head { margin-bottom: var(--sp-10); }
.section-head h2 { margin-top: var(--sp-2); }

/* ── 10. HERO (shared across pages) ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-20);
}
.hero--short { height: 65vh; min-height: 480px; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 11, 9, 0.85) 0%,
    rgba(12, 11, 9, 0.4) 50%,
    rgba(12, 11, 9, 0.25) 100%
  );
}
.hero-content {
  /* Deliberately NOT position:relative. .hero-content is a flex item of .hero,
     so z-index works without positioning — and staying static keeps .hero the
     containing block for .hero-scroll, which now lives inside .hero-actions
     but must still anchor to the hero's bottom-right on desktop. */
  position: static;
  z-index: 2;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.hero-content .t-label { color: var(--color-white); margin-bottom: var(--sp-3); }
/* 14ch was too tight for the authored line breaks — "From the Ground Up."
   wrapped mid-line. The <br>s set the rhythm; this is just a ceiling. */
.hero-content h1, .hero-content .hero-display { color: var(--color-white); margin-bottom: var(--sp-4); max-width: 20ch; }
.hero-content p { color: rgba(255,255,255,0.7); max-width: 50ch; margin-bottom: var(--sp-6); font-size: var(--text-lg); }
.hero-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.45);
}
.hero-scroll span { font-size: var(--text-xs); letter-spacing: 0.15em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-scroll-line {
  width: 1px; height: 64px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ── 11. STATS STRIP ── */
.stats-strip { background: var(--color-ink); padding: var(--sp-8) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
  padding: var(--sp-5) var(--sp-8);
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--sp-1);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark-muted);
}

/* ── 12. ABOUT TEASER ── */
.about-teaser .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  position: absolute;
  bottom: -var(--sp-3);
  right: -var(--sp-3);
  width: 40%;
  aspect-ratio: 1;
  border: 1px solid var(--color-accent);
  pointer-events: none;
}
.about-text h2 { margin-bottom: var(--sp-4); }
.about-text p { margin-bottom: var(--sp-5); }
.about-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 6px 14px;
}

/* ── 13. SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.service-card {
  background: var(--color-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--dur-base) var(--ease-out);
}
.service-card:hover { background: var(--color-surface); }
.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: var(--sp-2);
}
.service-card-body p { font-size: var(--text-sm); margin-bottom: var(--sp-4); flex: 1; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: gap var(--dur-fast);
}
.service-card:hover .service-card-link { gap: 14px; }

/* ── 14. PORTFOLIO GRID ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--sp-2);
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-2);
}
.portfolio-item--tall { grid-row: span 2; }
.portfolio-item--wide { grid-column: span 2; }
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item-ratio { aspect-ratio: 4/3; }
.portfolio-item--tall .portfolio-item-ratio { aspect-ratio: unset; height: 100%; }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,11,9,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}
.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }
.portfolio-overlay-content span {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.portfolio-overlay-content strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-white);
}

/* ── 15. PROCESS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
.process-card {
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.process-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: var(--sp-5);
  letter-spacing: -0.04em;
}
.process-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: var(--sp-3);
}
.process-card p { color: rgba(255,255,255,0.45); font-size: var(--text-sm); line-height: 1.8; }

/* ── 16. TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.testimonial-card {
  padding: var(--sp-6) var(--sp-5);
  background: var(--color-white);
  border-top: 2px solid var(--color-accent);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-ink);
  line-height: 1.5;
  margin-bottom: var(--sp-5);
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: 0.03em;
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 17. CTA BANNER ── */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--sp-16), 15vw, 200px);
}
.cta-banner-media { position: absolute; inset: 0; }
.cta-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner-overlay {
  position: absolute; inset: 0;
  background: rgba(12, 11, 9, 0.65);
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.cta-banner-content h2 { color: var(--color-white); margin-bottom: var(--sp-3); }
.cta-banner-content p { color: rgba(255,255,255,0.65); margin-bottom: var(--sp-6); font-size: var(--text-lg); }
.cta-banner-actions { display: flex; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; }

/* ── 18. TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.team-card {}
.team-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-surface-2);
  margin-bottom: var(--sp-3);
}
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.team-card:hover .team-img-wrap img { transform: scale(1.04); }
.team-card h4 { font-size: var(--text-base); font-weight: 500; color: var(--color-ink); margin-bottom: 4px; }
.team-card span { font-size: var(--text-xs); color: var(--color-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── 19. FOOTER ── */
#site-footer { background: var(--color-dark-2); padding-top: var(--sp-16); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--sp-6);
}
.footer-brand-logo { height: 36px; width: auto; margin-bottom: var(--sp-4); filter: brightness(0) invert(1); opacity: 0.7; }
.footer-tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 28ch; margin-bottom: var(--sp-5); }
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.footer-social a:hover { color: var(--color-white); border-color: var(--color-white); }
.footer-col strong {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: var(--sp-4);
}
.footer-col a, .footer-col span, .footer-col p {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  margin-bottom: var(--sp-2);
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--color-white); }
.footer-phone {
  font-family: var(--font-display);
  font-size: var(--text-2xl) !important;
  font-weight: 400;
  color: var(--color-white) !important;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2) !important;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-8);
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,0.2); letter-spacing: 0.05em; }
.footer-badge { font-size: var(--text-xs); color: rgba(255,255,255,0.15); letter-spacing: 0.05em; }

/* ── 20. CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-info-items { display: flex; flex-direction: column; gap: var(--sp-6); margin-block: var(--sp-8); }
.contact-info-item strong {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.contact-info-item a, .contact-info-item span, .contact-info-item p {
  display: block; /* each address / hours line is its own span — keep them stacked */
  font-size: var(--text-base);
  color: var(--color-ink);
  line-height: 1.6;
}
.contact-info-item a:hover { color: var(--color-accent); }

.ghl-form-wrap {
  background: var(--color-surface);
  padding: var(--sp-8);
  min-height: 600px;
}
.ghl-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 500px;
  text-align: center;
  border: 2px dashed var(--color-border);
}
.ghl-placeholder p { font-size: var(--text-sm); color: var(--color-muted); }

/* ── 21. SERVICE DETAIL PAGES ── */
.service-detail-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.service-features { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); }
.service-feature {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--color-surface);
  border-left: 2px solid var(--color-accent);
}
.service-feature-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.service-feature h4 { font-size: var(--text-base); margin-bottom: 4px; }
.service-feature p { font-size: var(--text-sm); }

.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
.related-card {
  display: block;
  padding: var(--sp-5);
  background: var(--color-surface);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.related-card:hover { border-color: var(--color-accent); background: var(--color-surface-2); }
.related-card h4 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; color: var(--color-ink); margin-bottom: var(--sp-1); }
.related-card p { font-size: var(--text-sm); }

/* ── 22. PORTFOLIO PAGE ── */
/* The card grid that replaced the old bare masonry lives in section 64. */

/* ── 23. ABOUT PAGE ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
.value-card {
  padding: var(--sp-6) var(--sp-5);
  border-top: 1px solid var(--color-border);
}
.value-card h3 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; color: var(--color-ink); margin-bottom: var(--sp-3); }
.value-card p { font-size: var(--text-sm); }

.timeline { display: flex; flex-direction: column; gap: var(--sp-1); }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6);
  border-left: 1px solid var(--color-border);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; top: var(--sp-6);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.timeline-item h4 { font-size: var(--text-base); font-weight: 600; color: var(--color-ink); margin-bottom: 6px; }
.timeline-item p { font-size: var(--text-sm); }

/* ── 24. 404 ── */
.page-404 {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}
.page-404-num {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 300;
  color: var(--color-surface-2);
  line-height: 1;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.05em;
}
.page-404 h2 { margin-bottom: var(--sp-3); }
.page-404 p { margin-bottom: var(--sp-6); }

/* ── 25. REVEAL ANIMATIONS — disabled (static site for now) ── */
[data-reveal] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── 26. RESPONSIVE ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-teaser .container { grid-template-columns: 1fr; }
  .about-img-wrap { aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item--tall { grid-row: span 1; }
  .portfolio-item--wide { grid-column: span 2; }
  .service-detail-intro { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .related-services { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; box-sizing: content-box; padding: 10px; }
  .nav-logo img { height: 80px; }
  .nav-inner { padding: 14px var(--gutter); }
  .process-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 80px 1fr; gap: var(--sp-3); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Collapse any inline multi-column grid (service page info boxes, etc.) to one column */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Tighter vertical rhythm on mobile */
  .section { padding-block: var(--sp-6); }
  .section--lg { padding-block: var(--sp-8); }
  .section-head { margin-bottom: var(--sp-5); }
  .cta-banner { padding-block: var(--sp-8); }
  .about-teaser .container, .service-detail-intro, [style*="gap:var(--sp-16)"] { gap: var(--sp-5) !important; }
  #site-footer { padding-top: var(--sp-8); }
  /* Comfortable tap targets for footer links */
  .footer-col a, .footer-social a { padding-block: 6px; }

  /* ── Mobile type scale: lighter, tighter, clear hierarchy ── */
  h1:not(.hero-seo), .hero-content h1:not(.hero-seo), .hero-content .hero-display { font-size: 1.9rem !important; line-height: 1.12 !important; letter-spacing: -0.02em; }
  h2, .section-head h2, .cta-banner h2 { font-size: 1.5rem !important; line-height: 1.2 !important; letter-spacing: -0.015em; }
  h3, .value-card h3, .process-card h3, .service-card h3,
  .testimonial-card h3, [style*="font-size:var(--text-2xl)"] {
    font-size: 1.15rem !important; line-height: 1.3 !important;
  }
  h4, .service-feature h4 { font-size: 0.875rem !important; }
  p, .section p, .value-card p, .process-card p, .service-card p,
  .testimonial-card p, .cta-banner p, [style*="font-size:var(--text-sm)"] {
    font-size: 0.9375rem !important; line-height: 1.62 !important;
  }
  p.lead, .hero-content p { font-size: 1rem !important; line-height: 1.68 !important; }
  .t-label { font-size: 0.6875rem; letter-spacing: 0.12em; margin-bottom: var(--sp-1); }
  .btn { font-size: 0.6875rem; padding: 14px 22px; }
  .stat-num { font-size: 1.9rem; }
  .stat-label { font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; }
  .section-head h2 { margin-top: 4px; }
  .service-card-body { padding: var(--sp-3); }
  .value-card, .process-card { padding: var(--sp-4) var(--sp-3); }
  .footer-phone { font-size: 1.35rem !important; }
  /* Inline-styled boxes on service pages: trim heavy padding */
  [style*="padding:var(--sp-8)"] { padding: var(--sp-4) !important; }
  [style*="margin-top:var(--sp-12)"] { margin-top: var(--sp-6) !important; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item { padding: var(--sp-4) var(--sp-3); min-width: 0; }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-label { letter-spacing: 0.05em; }
  /* Hero headline: small enough that each line fits on one line */
  .hero-content h1:not(.hero-seo), .hero-content .hero-display { font-size: clamp(1.9rem, 8.6vw, 2.6rem); max-width: none; }
  .hero-content p { font-size: var(--text-base); }
  /* Sit the hero content lower on the screen */
  .hero { padding-bottom: var(--sp-8); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item--wide, .portfolio-item--tall { grid-column: span 1; grid-row: span 1; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .nav-dropdown { min-width: 100vw; left: 0; transform: none; }
}

/* ============================================================
   27. MOTION SYSTEM
   Primitives only. Every hiding rule is gated on html.js-motion, which
   an inline head script sets only when JS is live AND the visitor has
   not asked for reduced motion. If either is false, content renders in
   its final state with no transition — nothing is ever stuck at opacity 0.
   ============================================================ */

/* -- Reveal -- */
html.js-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(var(--rv-x, 0), var(--rv-y, 32px), 0);
  transition:
    opacity 0.6s var(--ease-out) var(--rv-delay, 0s),
    transform 0.6s var(--ease-out) var(--rv-delay, 0s);
}
html.js-motion [data-reveal="left"]  { --rv-x: -36px; --rv-y: 0; }
html.js-motion [data-reveal="right"] { --rv-x:  36px; --rv-y: 0; }
html.js-motion [data-reveal="down"]  { --rv-y: -32px; }
html.js-motion [data-reveal="fade"]  { --rv-y: 0; }
html.js-motion [data-reveal].is-visible { opacity: 1; transform: none; }

/* -- Masked line reveal (headlines) --
   JS wraps each <br>-separated line of [data-mask] in .mask-line > span. */
.mask-line { display: block; overflow: hidden; }
html.js-motion .mask-line > span {
  display: block;
  transform: translate3d(0, 110%, 0);
  transition: transform 0.65s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.06s + var(--rv-delay, 0s));
}
html.js-motion .mask-line.is-visible > span { transform: none; }

/* -- Image reveal: curtain wipe + settle from a slight over-scale -- */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal > img { width: 100%; height: 100%; object-fit: cover; }
html.js-motion .img-reveal > img {
  transform: scale(1.05);
  transition: transform 0.9s var(--ease-out);
}
html.js-motion .img-reveal.is-visible > img { transform: scale(1); }
html.js-motion .img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-surface);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease-inout);
  z-index: 1;
}
html.js-motion .img-reveal.is-visible::after { transform: scaleY(0); }
.img-reveal--dark::after { background: var(--color-dark); }

/* -- Animated hairline -- */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-border);
  transform-origin: left;
}
html.js-motion .rule {
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-inout);
}
html.js-motion .rule.is-visible { transform: scaleX(1); }
.rule--accent { background: var(--color-accent); }
.rule--dark { background: rgba(255,255,255,0.14); }
.rule--short { width: 64px; }

/* -- Page transition veil -- */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--color-white);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
}
.page-veil.is-active { opacity: 1; }

/* -- Gentle parallax --
   JS writes --par (px); CSS owns the transform, so a reduced-motion
   visitor simply never receives a non-zero value. */
html.js-motion [data-parallax] {
  transform: translate3d(0, var(--par, 0px), 0);
  will-change: transform;
}

/* ============================================================
   28. TYPOGRAPHIC STATEMENT - a deliberately near-empty section
   ============================================================ */
.statement { padding-block: clamp(var(--sp-16), 18vw, 260px); }
/* NOT a ch value: `ch` resolves against this element's own font, which is the
   16px body face — it produced a ~212px column while the quote inside renders
   at 76px, breaking the line after every single word. */
.statement-inner { max-width: 900px; }
.statement blockquote {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}
.statement blockquote em { font-style: italic; color: var(--color-accent); }
.statement-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  max-width: 520px;
}
.statement-meta .rule { flex: 1; }
.statement-meta span {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ============================================================
   29. SERVICE TIERS - hierarchy, not eight equal boxes
   ============================================================ */
.tiers { display: flex; flex-direction: column; gap: var(--sp-16); }

.tier {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2.6fr;
  gap: var(--sp-10);
  align-items: start;
}
.tier-head { position: sticky; top: 120px; }
.tier-num {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}
.tier-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink);
  line-height: 1.5;
  margin-bottom: var(--sp-3);
}
.tier-desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  max-width: 34ch;
  margin-bottom: var(--sp-4);
}
.tier-head .rule { max-width: 72px; }

.tier-cards {
  display: grid;
  grid-template-columns: repeat(var(--tier-cols, 2), 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
/* BUILD reads as the flagship: two cards, taller imagery, bigger type. */
.tier--lead { --tier-cols: 2; }
.tier--lead .service-card-img { aspect-ratio: 5/4; }
.tier--lead .service-card-body { padding: var(--sp-5); }
.tier--lead .service-card-body h3 { font-size: var(--text-2xl); }
/* Infrastructure is the broadest set: four compact cards. */
.tier--wide { --tier-cols: 2; }
.tier--wide .service-card-img { aspect-ratio: 3/2; }
/* Systems + specialty: two compact cards. */
.tier--narrow { --tier-cols: 2; }
.tier--narrow .service-card-img { aspect-ratio: 3/2; }

.section--dark .tier-title { color: var(--color-white); }
.section--dark .tier-desc { color: var(--color-dark-text); }

/* ============================================================
   30. FULL-BLEED IMAGE BREAK - pure photography, room to breathe
   ============================================================ */
.imagebreak {
  position: relative;
  height: clamp(420px, 72vh, 760px);
  overflow: hidden;
}
.imagebreak .img-reveal { position: absolute; inset: -6% 0; }
.imagebreak img { width: 100%; height: 100%; object-fit: cover; }
.imagebreak-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(12,11,9,0.6), rgba(12,11,9,0.05) 55%);
}
.imagebreak-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding-block: var(--sp-8);
}
.imagebreak-caption .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.imagebreak-caption p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-white);
  max-width: 20ch;
}
.imagebreak-caption span {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   31. FIGURES - one number, most of the viewport
   ============================================================ */
.figures { background: var(--color-ink); }
.figure-panel {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--sp-16) var(--gutter);
}
.figure-panel + .figure-panel::before {
  content: '';
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: rgba(255,255,255,0.1);
  transform-origin: center;
}
html.js-motion .figure-panel + .figure-panel::before {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-inout);
}
html.js-motion .figure-panel.is-visible + .figure-panel::before { transform: scaleX(1); }

.figure-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 15vw, 16rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}
.figure-label {
  display: block;
  margin-top: var(--sp-5);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.figure-note {
  display: block;
  margin-top: var(--sp-4);
  max-width: 42ch;
  margin-inline: auto;
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   32. HORIZONTAL SCROLL RAIL
   Used for portfolio on narrow screens: swipe beats a tall stack.
   ============================================================ */
.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--sp-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.hscroll-hint {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================================
   33. PROJECT INQUIRY FORM
   Reads as an intake process, not a newsletter signup.
   ============================================================ */
.inquiry { background: var(--color-surface); padding: clamp(var(--sp-5), 4vw, var(--sp-8)); }
.inquiry-head { margin-bottom: var(--sp-6); }
.inquiry-head h2 {
  font-size: var(--text-3xl);
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-2);
}
.inquiry-head p { font-size: var(--text-sm); max-width: 46ch; }

.field { margin-bottom: var(--sp-5); }
.field > label,
.field-legend {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: var(--sp-2);
}
.field-hint {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-muted);
  margin-left: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  font-size: var(--text-base);
  line-height: 1.5;
  padding: 15px 16px;
  min-height: 52px;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  appearance: none;
  border-radius: 0;
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--color-ink) 50%), linear-gradient(135deg, var(--color-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(140, 115, 85, 0.14);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-muted); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

/* -- "What are you looking to build?" chip grid -- */
.field-set { border: none; margin-bottom: var(--sp-5); }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.choice { position: relative; }
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 56px;
  padding: 12px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.35;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.choice input:hover + span { border-color: var(--color-accent-light); color: var(--color-ink); }
.choice input:checked + span {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.inquiry-submit { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); }
.inquiry-submit .btn { min-height: 54px; }
.inquiry-privacy { font-size: var(--text-xs); color: var(--color-muted); max-width: 34ch; line-height: 1.6; }

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

/* ============================================================
   34. WHAT HAPPENS NEXT
   ============================================================ */
.next-steps { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--color-border); }
.next-steps-list { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-4); }
.next-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-3);
  align-items: baseline;
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
}
.next-step:last-child { border-bottom: none; }
.next-step-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1;
}
.next-step h4 { font-size: var(--text-base); font-weight: 600; color: var(--color-ink); margin-bottom: 4px; }
.next-step p { font-size: var(--text-sm); line-height: 1.7; }

/* ============================================================
   35. STICKY MOBILE CTA
   Appears once the hero is behind you; never covers the footer.
   ============================================================ */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 480;
  display: none;
  gap: 1px;
  background: rgba(255,255,255,0.12);
  transform: translate3d(0, 100%, 0);
  transition: transform var(--dur-base) var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mobile-cta .mobile-cta-call { background: var(--color-ink-2); color: var(--color-white); }
.mobile-cta .mobile-cta-start { background: var(--color-accent); color: var(--color-white); }

/* ============================================================
   36. MOBILE NAV - grouped services, generous targets
   ============================================================ */
.nav-mobile-group { border-top: 1px solid rgba(255,255,255,0.1); }
.nav-mobile-group:first-child { border-top: none; }
.nav-mobile-group > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-align: left;
}
.nav-mobile-group > button[aria-expanded="true"] { color: var(--color-white); }
.nav-mobile-group > button .chev {
  font-size: 1rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-mobile-group > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-mobile-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
/* min-height:0 is what actually lets the 0fr row collapse — without it the
   row keeps its automatic minimum and the submenu never fully closes. Any
   padding here would become a permanent floor, so trailing space lives on
   the last link instead. */
.nav-mobile-sub > div { overflow: hidden; min-height: 0; }
.nav-mobile-group > button[aria-expanded="true"] + .nav-mobile-sub { grid-template-rows: 1fr; }
.nav-mobile-sub .nav-mobile-tier {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin: var(--sp-3) 0 var(--sp-1);
}
.nav-mobile-sub a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
}
.nav-mobile-sub a:hover { color: var(--color-white); }
.nav-mobile-sub a:last-child { margin-bottom: var(--sp-3); }

/* ============================================================
   37. FOCUS VISIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.section--dark :focus-visible,
.figures :focus-visible,
.hero :focus-visible,
.cta-banner :focus-visible,
.nav-mobile :focus-visible { outline-color: var(--color-accent-light); }

/* ============================================================
   38. RESPONSIVE - new components
   ============================================================ */
@media (max-width: 1100px) {
  .tier { grid-template-columns: 1fr; gap: var(--sp-6); }
  .tier-head { position: static; }
  .tier-head .rule { max-width: 100%; }
  .tiers { gap: var(--sp-12); }
}

@media (max-width: 900px) {
  .figure-panel { min-height: 78vh; }
  .imagebreak { height: clamp(360px, 56vh, 520px); }
  .statement { padding-block: clamp(var(--sp-12), 14vw, 160px); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE ─────────────────────────────────────────────────
   Not a shrunken desktop. Order is resequenced to Work →
   Services → Credibility → Contact, imagery stays large, copy
   gets shorter, and every target clears 48px.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Resequence the homepage for a phone-first read. */
  .home-main { display: flex; flex-direction: column; }
  .s-hero        { order: 1; }
  .s-portfolio   { order: 2; }
  .s-services    { order: 3; }
  .s-figures     { order: 4; }
  .s-statement   { order: 5; }
  .s-about       { order: 6; }
  .s-break       { order: 7; }
  .s-process     { order: 8; }
  .s-testimonials{ order: 9; }
  .s-cta         { order: 10; }

  /* Sticky action bar owns the bottom of the screen. */
  .mobile-cta { display: flex; }
  #site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .nav-mobile.is-open ~ .mobile-cta { transform: translate3d(0, 100%, 0); }

  /* Tiers: full-width cards, imagery stays generous. */
  .tier-cards { grid-template-columns: 1fr; }
  .tier--lead .service-card-img,
  .tier--wide .service-card-img,
  .tier--narrow .service-card-img { aspect-ratio: 16/10; }
  .tier--lead .service-card-body { padding: var(--sp-3); }
  .tier--lead .service-card-body h3 { font-size: 1.15rem !important; }
  .tier-title { font-size: var(--text-xs); letter-spacing: 0.2em; }
  .tier-desc { font-size: 0.9375rem; max-width: none; }
  .tiers { gap: var(--sp-8); }

  /* Figures stay big but stop eating four full screens of scroll. */
  .figure-panel { min-height: 68vh; padding-block: var(--sp-10); }
  .figure-num { font-size: clamp(4.5rem, 26vw, 8rem); }
  .figure-label { letter-spacing: 0.2em; margin-top: var(--sp-3); }
  .figure-note { font-size: 0.875rem; margin-top: var(--sp-3); }

  /* Statement */
  .statement { padding-block: var(--sp-10); }
  .statement-inner { max-width: none; }
  .statement blockquote { font-size: 1.75rem !important; line-height: 1.2 !important; }
  .statement-meta { margin-top: var(--sp-5); flex-wrap: wrap; }
  .statement-meta span { font-size: 0.6875rem; }

  /* Image break */
  .imagebreak { height: 62vh; min-height: 340px; }
  .imagebreak-caption { padding-block: var(--sp-5); }
  .imagebreak-caption p { font-size: 1.35rem !important; max-width: 16ch; }

  /* Portfolio becomes a swipe rail instead of a long stack. */
  .hscroll { grid-auto-columns: 82%; }

  /* Form: one column, thumb-sized everything. */
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .choice span { min-height: 52px; font-size: 0.875rem; }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field select,
  .field textarea { font-size: 16px; min-height: 52px; } /* 16px stops iOS zoom-on-focus */
  .inquiry { padding: var(--sp-4) var(--sp-3); }
  .inquiry-head h2 { font-size: 1.5rem !important; }
  .inquiry-submit { flex-direction: column; align-items: stretch; }
  .inquiry-submit .btn { justify-content: center; min-height: 54px; }
  .inquiry-privacy { max-width: none; }
  .next-step { grid-template-columns: 40px 1fr; gap: var(--sp-2); }
  .next-step-num { font-size: 1.35rem; }

  /* Every tap target clears 48px. */
  /* NOTE: do not set justify-content here — the bars are spaced with
     space-between, and centring them collapses the three lines into one.
     The 48px tap target comes from content-box padding instead (§44). */
  .nav-mobile-links a { min-height: 52px; display: flex; align-items: center; }
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .service-card-link, .btn-text { min-height: 44px; align-items: center; }
  .contact-info-item a { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 560px) {
  .figure-panel { min-height: 62vh; }
  .hscroll { grid-auto-columns: 86%; }
  .choice-grid { grid-template-columns: 1fr; }
  .mobile-cta a { font-size: 0.6875rem; letter-spacing: 0.1em; }
}

/* Wider phones/tablets keep two service cards per tier. */
@media (min-width: 769px) and (max-width: 1100px) {
  .tier-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   39. REDUCED MOTION - the final word
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .mask-line > span, .img-reveal > img, .rule {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .img-reveal::after { display: none; }
  .page-veil { display: none; }
  .cursor { display: none; }
  .figure-panel + .figure-panel::before { transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   40. TIERED SERVICES DROPDOWN
   Three columns that mirror the tiers used across the site, so the
   nav teaches the same hierarchy the pages do.
   ============================================================ */
.nav-dropdown {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  min-width: 680px;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
}
.nav-dropdown-col { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-tier {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0 16px var(--sp-1);
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   41. PORTFOLIO SWIPE RAIL (mobile only)
   ============================================================ */
.hscroll-hint { display: none; }

@media (max-width: 768px) {
  .hscroll-mobile {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-columns: 82%;
    gap: var(--sp-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-bottom: 4px;
  }
  .hscroll-mobile::-webkit-scrollbar { display: none; }
  .hscroll-mobile > * {
    scroll-snap-align: start;
    grid-row: span 1;
    grid-column: span 1;
  }
  /* The tall item's ratio override has to go, or it collapses in a rail. */
  .hscroll-mobile .portfolio-item--tall .portfolio-item-ratio {
    aspect-ratio: 4/3;
    height: auto;
  }
  /* Overlays are hover-driven on desktop; on touch they just stay put. */
  .hscroll-mobile .portfolio-overlay { transform: translateY(0); }
  .hscroll-hint { display: flex; }
}

@media (max-width: 560px) {
  .hscroll-mobile { grid-auto-columns: 86%; }
}

/* ============================================================
   42. TIGHTEN THE DESKTOP DROPDOWN ON SMALL LAPTOPS
   ============================================================ */
@media (max-width: 900px) {
  .nav-dropdown { min-width: 560px; grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   43. MOBILE TAP TARGETS - the remaining stragglers
   Footer and menu links were sitting at ~30px. On a phone every
   link a thumb has to find gets 44px minimum.
   ============================================================ */
@media (max-width: 768px) {
  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
    padding-block: 0;
  }
  .footer-col span, .footer-col p { padding-block: 4px; }
  .footer-social a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 14px;
  }
  .nav-mobile-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: var(--sp-3);
  }
  .footer-bottom { gap: var(--sp-2); }
}

/* ============================================================
   44. MOBILE HOMEPAGE HERO — media band on top, everything centred

   On phones the hero stops being a cropped full-bleed background.
   The media sits at the top at its native 16:9, fades into the hero's
   ink background instead of ending on a hard cut, and the logo,
   eyebrow, headline, copy and buttons stack centred beneath it.

   Scoped to .s-hero so the short heroes on interior pages are untouched.
   ============================================================ */

/* Desktop never shows the in-hero wordmark — the nav carries it there. */
.hero-logo { display: none; }

@media (max-width: 768px) {

  /* ── Nav: centred hamburger ────────────────────────────────
     The wordmark sits out until you scroll, because the big logo is
     right there in the hero. Once the nav bar solidifies it fades in. */
  .nav-inner { position: relative; justify-content: center; }
  .nav-logo {
    position: absolute;
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    transition: opacity var(--dur-base) var(--ease-out);
  }
  #site-nav:not(.nav--scrolled) .nav-logo { opacity: 0; pointer-events: none; }
  .nav-logo img { height: 44px; }

  /* Three distinct bars. The tap target is padding on a content-box,
     so the space-between that separates the bars survives. */
  .nav-toggle {
    display: flex;
    box-sizing: content-box;
    width: 30px;
    height: 20px;
    padding: 14px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
  }
  .nav-toggle span { height: 2px; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* ── Hero becomes a column ───────────────────────────────── */
  .s-hero {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: var(--sp-8);
    background: var(--color-ink);
  }

  /* Media at its own aspect ratio rather than cropped to the viewport. */
  .s-hero .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: none;
  }
  .s-hero .hero-media video,
  .s-hero .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Blend the bottom of the media into the hero background so the band
     lands softly instead of stopping on a hard edge. */
  .s-hero .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(12, 11, 9, 0) 38%,
      rgba(12, 11, 9, 0.45) 68%,
      rgba(12, 11, 9, 0.85) 88%,
      var(--color-ink) 100%
    );
  }

  /* ── Centred content ─────────────────────────────────────── */
  .s-hero .hero-content {
    text-align: center;
    padding-top: var(--sp-3);
  }
  .s-hero .hero-logo {
    display: block;
    height: 96px;
    width: auto;
    margin: 0 auto var(--sp-2);
    filter: brightness(0) invert(1);
  }
  .s-hero .hero-content .t-label { margin-bottom: var(--sp-2); }
  .s-hero .hero-content .hero-display { margin-inline: auto; max-width: none; }
  .s-hero .hero-content p {
    margin-inline: auto;
    max-width: 32ch;
    margin-bottom: var(--sp-5);
  }

  /* Work first, conversion second — side by side, equal width. */
  .s-hero .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--sp-2);
  }
  .s-hero .hero-actions .btn {
    flex: 1 1 0;
    padding-inline: 10px;
    white-space: nowrap;
  }
  .s-hero .hero-actions .btn-ghost  { order: 1; }
  .s-hero .hero-actions .btn-primary { order: 2; }

  /* Keep the scroll cue — centred under the buttons, and compact enough
     that it still peeks above the fold on a ~812px screen. The vertical
     "SCROLL" of the desktop layout is 138px tall; horizontal is 64px. */
  .s-hero .hero-scroll {
    position: static;
    margin: var(--sp-4) auto 0;
    align-items: center;
  }
  .s-hero .hero-scroll span {
    writing-mode: horizontal-tb;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
  }
  .s-hero .hero-scroll-line { height: 36px; }

  .s-hero { padding-bottom: var(--sp-5); }
}

/* ============================================================
   45. MOBILE HERO v2 — logo lands in the fade, gaps closed up

   The logo is pulled up so it sits over the stretch of video where
   the gradient is doing its work, and everything under it is packed
   tight. The headline runs as a single line, and the scroll cue moves
   inline to the right of the buttons.
   ============================================================ */
@media (max-width: 768px) {

  /* Pull the content up over the media so the logo centres on the fade. */
  .s-hero .hero-content {
    margin-top: -133px;
    padding-top: 0;
  }
  .s-hero .hero-logo {
    height: 140px;
    margin: 0 auto 4px;
  }

  /* Tight stack: eyebrow hard under the logo, headline under that. */
  .s-hero .hero-content .t-label { margin-bottom: 4px; }
  .s-hero .hero-content .hero-display { margin-bottom: var(--sp-1); }
  .s-hero .hero-content p {
    max-width: 30ch;
    margin-bottom: var(--sp-3);
  }

  /* One line: the authored <br> becomes a space so the two masked
     segments sit side by side rather than stacking. */
  .s-hero .hero-content .hero-display {
    /* Sized so the full sentence always clears one line. At 20px the text
       measures ~16.4x the font size, so scale off the available width
       (viewport minus the 24px gutters, plus a little slack). */
    font-size: min(1.25rem, calc((100vw - 56px) / 16.4)) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
  }
  .s-hero .hero-content .hero-display .mask-line { display: inline-block; vertical-align: top; }
  .s-hero .hero-content .hero-display .mask-line:not(:last-child) { margin-right: 0.28em; }

  /* Smaller buttons, with the scroll cue riding along on the right. */
  .s-hero .hero-actions .btn {
    min-height: 44px;
    padding: 12px 10px;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }
  .s-hero .hero-actions .hero-scroll {
    position: static;
    flex: 0 0 auto;
    align-self: center;
    margin: 0 0 0 4px;
    gap: 0;
  }
  .s-hero .hero-actions .hero-scroll span { display: none; }
  .s-hero .hero-actions .hero-scroll-line { height: 30px; }

  /* Order across the row: work, then convert, then the cue. */
  .s-hero .hero-actions .btn-ghost   { order: 1; }
  .s-hero .hero-actions .btn-primary { order: 2; }
  .s-hero .hero-actions .hero-scroll { order: 3; }
}

/* ============================================================
   46. MOBILE SERVICES — three tier cards, no individual services

   On phones the eight service cards are replaced by three
   photo-backed tier cards (01 / 02 / 03) and one button through to
   the full services page. Desktop keeps the full card grid.
   ============================================================ */
.tiers-cta { display: none; }
.tier-link { display: none; }

@media (max-width: 768px) {

  /* The per-service cards themselves are the thing being removed. */
  .s-services .tier-cards { display: none; }

  .s-services .tiers { gap: var(--sp-2); }
  .s-services .tier { display: block; }

  .s-services .tier-head {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 172px;
    padding: var(--sp-4);
    overflow: hidden;
    background-color: var(--color-ink);
    background-size: cover;
    background-position: center;
  }

  /* Very dark scrim so the photo reads as texture, not subject. */
  .s-services .tier-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(12, 11, 9, 0.9) 0%,
      rgba(12, 11, 9, 0.78) 60%,
      rgba(12, 11, 9, 0.66) 100%
    );
  }
  .s-services .tier-head > * { position: relative; z-index: 1; }

  .s-services .tier--lead   .tier-head { background-image: url('../images/services/custom-homes.jpg'); }
  .s-services .tier--wide   .tier-head { background-image: url('../images/services/excavation.jpg'); }
  .s-services .tier--narrow .tier-head { background-image: url('../images/services/geothermal.jpg'); }

  .s-services .tier-num {
    font-size: 0.6875rem;
    letter-spacing: 0.28em;
    color: var(--color-accent-light);
    margin-bottom: var(--sp-1);
  }
  .s-services .tier-title {
    font-size: 1.25rem !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 0;
  }
  /* Card is the headline only — copy and rule belong on the services page. */
  .s-services .tier-desc,
  .s-services .tier-head .rule { display: none; }

  /* Whole card is tappable, straight to that tier on the services page. */
  .s-services .tier-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
  }

  .tiers-cta {
    display: block;
    margin-top: var(--sp-5);
    text-align: center;
  }
  .tiers-cta .btn {
    display: inline-flex;
    justify-content: center;
    min-height: 52px;
    width: 100%;
  }
}

/* ============================================================
   47. PORTFOLIO CARDS ARE LINKS
   Each card now points at the service it demonstrates, so the
   element is an <a> and needs to lay out as a block.
   ============================================================ */
.portfolio-item { display: block; }

/* ============================================================
   48. MOBILE SPACING PASS
   Closing the gaps the client flagged: portfolio header, the run-up
   to tier 01, and the tail of the statement section.
   ============================================================ */
@media (max-width: 768px) {

  /* -- Our Work: header, button and rail pulled together -- */
  .s-portfolio .section-head {
    /* sp-4, not sp-3: the link carries a 44px min tap height, so its box
       runs ~8px past the header's text baseline. */
    margin-bottom: var(--sp-4);
    gap: var(--sp-2) !important;
  }
  /* the inline margin-bottom:var(--sp-10) on the link is an 80px hole here */
  .s-portfolio .section-head .btn-text { margin-bottom: 0 !important; }
  .s-portfolio .hscroll-hint { margin-top: var(--sp-2); }

  /* -- What We Do: close the run-up between the intro copy and 01 -- */
  .s-services .section-head { margin-bottom: var(--sp-4); }
  .s-services .section-head .lead { margin-top: var(--sp-2) !important; }

  /* -- Statement: trim the tail after the meta line -- */
  .statement { padding-top: var(--sp-10); padding-bottom: var(--sp-5); }
}

/* ============================================================
   49. MOBILE FIGURES — three across, left to right
   The full-viewport stacked panels are a desktop idea. On a phone
   the three numbers read as one row: figure + label, nothing else.
   ============================================================ */
@media (max-width: 768px) {
  .s-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 0;
    padding: var(--sp-8) var(--gutter);
  }

  .s-figures .figure-panel {
    display: block;
    min-height: 0;
    padding: 0 var(--sp-1);
    text-align: center;
  }
  /* the horizontal divider between stacked panels has no job in a row */
  .s-figures .figure-panel + .figure-panel::before { display: none; }
  .s-figures .figure-panel + .figure-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .s-figures .figure-num {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .s-figures .figure-label {
    margin-top: var(--sp-1);
    font-size: 0.5625rem;
    line-height: 1.45;
    letter-spacing: 0.12em;
  }
  /* number + headline only */
  .s-figures .figure-note { display: none; }
}

/* ============================================================
   50. SEO H1 vs DISPLAY HEADLINE (homepage hero)

   The real <h1> is the string Google should index — "Custom Home
   Builder & General Contractor in Northeast Ohio" — and it is
   genuinely visible, sitting where the eyebrow used to. The brand
   line "From the Ground Up. For Generations." keeps the giant
   display treatment but is a <p class="hero-display">, so it no
   longer competes for the page's single H1.

   Nothing is hidden from users or crawlers; the h1 is just styled
   as the smaller of the two lines.
   ============================================================ */
.hero-content .hero-seo {
  font-family: var(--font-body) !important;
  font-size: var(--text-xs) !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  max-width: none;
  margin: 0 0 var(--sp-3) !important;
}

/* The display line inherits the old h1 look via the retargeted rules
   above; this just restores the display face, since <p> does not have it. */
.hero-content .hero-display {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .s-hero .hero-content .hero-seo {
    font-size: 0.625rem !important;
    letter-spacing: 0.14em !important;
    line-height: 1.55 !important;
    /* full gutter width — a ch-based cap here squeezed it to three lines */
    max-width: none;
    margin: 0 auto var(--sp-2) !important;
  }
}

/* ============================================================
   51. PRIMARY SERVICES — four categories on the homepage

   Replaces the eight-card tier grid on the homepage. The full eight
   (and the three-tier framing) still live on services.html; this is
   the shortlist. One card component serves both breakpoints: photo,
   dark scrim, number, title, one line of copy.
   ============================================================ */
.primary-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.pservice {
  position: relative;
  display: block;
  overflow: hidden;
  /* the source photos are 1080x1920 portrait, so a squat landscape card
     throws most of the frame away - give them room */
  min-height: 420px;
  background: var(--color-ink);
}
.pservice > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.pservice:hover > img { transform: scale(1.05); }

.pservice-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 11, 9, 0.92) 0%,
    rgba(12, 11, 9, 0.72) 45%,
    rgba(12, 11, 9, 0.48) 100%
  );
  transition: background var(--dur-base) var(--ease-out);
}
.pservice:hover .pservice-scrim {
  background: linear-gradient(
    to top,
    rgba(12, 11, 9, 0.95) 0%,
    rgba(12, 11, 9, 0.78) 45%,
    rgba(12, 11, 9, 0.58) 100%
  );
}

.pservice-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: inherit;
  padding: var(--sp-5);
}
.pservice-num {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--color-accent-light);
  margin-bottom: var(--sp-2);
}
.pservice-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--color-white);
  margin: 0 0 var(--sp-2);
}
.pservice-desc {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 34ch;
}

/* The homepage no longer shows every service, so the way through to the
   full list matters on desktop too. */
.tiers-cta {
  display: block;
  margin-top: var(--sp-6);
  text-align: center;
}

@media (max-width: 900px) {
  .pservice { min-height: 260px; }
  .pservice-body { padding: var(--sp-4); }
}

@media (max-width: 768px) {
  .primary-services { grid-template-columns: 1fr; }
  .pservice { min-height: 172px; }
  .pservice-body { padding: var(--sp-4); }
  .pservice-num { margin-bottom: var(--sp-1); }
  .pservice-title { font-size: 1.25rem !important; letter-spacing: 0.1em; margin-bottom: 0; }
  /* number + title only on a phone, same as the tier cards it replaces */
  .pservice-desc { display: none; }
  .tiers-cta { margin-top: var(--sp-5); }
  .tiers-cta .btn { display: inline-flex; justify-content: center; min-height: 52px; width: 100%; }
}

/* ============================================================
   52. RESPONSIVE CTA LABEL
   "Request Free Consultation" reads better and converts better, but
   it is 28 characters — too long for the side-by-side mobile hero
   buttons. Both labels ship; CSS picks one, and the link carries an
   aria-label so screen readers get a single, stable name.
   ============================================================ */
.lbl-short { display: none; }

@media (max-width: 768px) {
  .lbl-long  { display: none; }
  .lbl-short { display: inline; }
}

/* ============================================================
   53. REVIEWS CTA
   Star rating and review count are intentionally absent - those are
   factual claims that must come from the real Google profile.
   ============================================================ */
.reviews-cta {
  margin-top: var(--sp-8);
  text-align: center;
}
.reviews-note {
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .reviews-cta { margin-top: var(--sp-5); }
  .reviews-cta .btn { display: inline-flex; justify-content: center; min-height: 52px; width: 100%; }
}
/* ============================================================
   54. FIGURES — one horizontal band at every size

   Replaces the three stacked full-viewport panels. The section stays
   full-bleed ink; the padding formula centres the content inside
   --max-width the same way .container does, without a wrapper.
   ============================================================ */
.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 0;
  padding-block: var(--sp-12);
  padding-inline: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
}

.figure-panel {
  display: block;
  min-height: 0;
  padding: 0 var(--sp-4);
  text-align: center;
}
/* the divider between stacked panels was horizontal; in a row it is vertical */
.figure-panel + .figure-panel::before { display: none; }
.figure-panel + .figure-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.figure-num {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.figure-label {
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  line-height: 1.5;
}
/* number + headline only */
.figure-note { display: none; }

/* ============================================================
   55. ABOUT — three columns: quote | portrait | copy
   ============================================================ */
.s-about .container {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.05fr;
  gap: var(--sp-8);
  align-items: center;
}

.about-statement blockquote {
  font-family: var(--font-display);
  /* much smaller than the old full-width statement section - it now shares
     the row with a photo and a column of body copy */
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}
.about-statement blockquote em {
  font-style: italic;
  color: var(--color-accent);
}
/* stacked, not the wide inline row it used as a full-bleed section */
.s-about .statement-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  max-width: none;
}
.s-about .statement-meta .rule { width: 48px; flex: none; }
.s-about .statement-meta span { white-space: normal; }

@media (max-width: 1100px) {
  .s-about .container {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .about-statement blockquote { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
  .s-about .statement-meta { flex-direction: row; align-items: center; }
}

/* ============================================================
   56. IMAGE BREAK — caption centred, and stop cropping heads

   about-mission.jpg is 1080x1350 portrait dropped into a wide banner,
   so object-fit had been trimming the top of the frame. Pulling the
   focal point up to 32% keeps the crew's faces clear of the edge.
   ============================================================ */
.imagebreak img {
  object-position: center 32%;
}

/* A centred caption sits over the middle of the photo, so the old
   bottom-only gradient no longer covers the text. */
.imagebreak-veil {
  background: linear-gradient(
    to bottom,
    rgba(12, 11, 9, 0.52) 0%,
    rgba(12, 11, 9, 0.60) 45%,
    rgba(12, 11, 9, 0.72) 100%
  );
}

.imagebreak-caption {
  inset: 0;
  display: grid;
  place-items: center;
  padding-block: 0;
}
.imagebreak-caption .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-3);
  flex-wrap: nowrap;
}
.imagebreak-caption p {
  max-width: 22ch;
  margin: 0;
}

@media (max-width: 768px) {
  .imagebreak-caption p { max-width: 18ch; }
  .imagebreak img { object-position: center 28%; }
}

/* Mobile keeps the tighter band - .figures padding-block above is set at the
   same specificity as the .s-figures shorthand, so it needs restating here. */
@media (max-width: 768px) {
  .figures { padding-block: var(--sp-8); }
}
/* ============================================================
   57. DESKTOP NAV IS ALWAYS SOLID

   The bar used to fade in only once you scrolled, so at the top of
   pages with light content the white nav text sat on nothing and
   effectively vanished. On desktop it is now opaque from the first
   pixel. The CTA no longer swaps styles on scroll either - with a
   bar that never changes, a button that did looked like a glitch.

   Mobile is untouched: there the bar stays clear over the top of the
   hero video band and solidifies on scroll, which is deliberate.
   ============================================================ */
@media (min-width: 769px) {
  .nav-bg { opacity: 1; }

  .nav-link,
  #site-nav.nav--scrolled .nav-link { color: rgba(255, 255, 255, 0.9); }
  .nav-link:hover,
  #site-nav.nav--scrolled .nav-link:hover { color: var(--color-white); }

  .nav-cta,
  #site-nav.nav--scrolled .nav-cta {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-ink) !important;
  }
  .nav-cta:hover,
  #site-nav.nav--scrolled .nav-cta:hover {
    background: var(--color-accent) !important;
    border-color: var(--color-accent);
    color: var(--color-white) !important;
  }
}
/* ============================================================
   58. AUDIT FIXES
   ============================================================ */

/* ---- 58a. Contrast ------------------------------------------------------
   --color-muted failed WCAG AA everywhere it was used: 2.91:1 on white
   (.testimonial-role, .statement-meta) and 2.47:1 on surface-2
   (.reviews-note). --color-accent sat at 4.47:1, a hair under 4.5.
   Both are darkened just enough to pass; the hues are unchanged.
   Measured after: muted 5.78 on white / 4.86 on surface-2, accent 4.61.  */
:root {
  --color-muted:  #686560;   /* was #9B9790 */
  --color-accent: #8A7153;   /* was #8C7355 */
}

/* Footer text was 0.15-0.45 alpha on near-black: the copyright line came
   out around 1.8:1, effectively invisible. */
.footer-tagline { color: rgba(255, 255, 255, 0.55); }
.footer-col strong { color: rgba(255, 255, 255, 0.5); }
.footer-col a, .footer-col span, .footer-col p { color: rgba(255, 255, 255, 0.58); }
.footer-copy { color: rgba(255, 255, 255, 0.5); }
.footer-badge { color: rgba(255, 255, 255, 0.4); }

/* ---- 58b. Mobile service cards were solid black -------------------------
   The photos load fine, but a 72-92% scrim over a 172px card left nothing
   visible. Taller card + a much lighter top half, so the image actually
   reads while the text stays legible over the dark base.               */
@media (max-width: 768px) {
  .pservice { min-height: 200px; }
  .pservice-scrim {
    background: linear-gradient(
      to top,
      rgba(12, 11, 9, 0.88) 0%,
      rgba(12, 11, 9, 0.60) 45%,
      rgba(12, 11, 9, 0.28) 100%
    );
  }
}

/* ---- 58c. Desktop About: three columns that actually align --------------
   Was: align-items centre, so the three columns started at wildly
   different heights (319px apart) with a dead zone top-left, and the h2
   wrapped to 4 lines at 56px inside a 365px column.
   Now: shared top edge, a heading sized for a narrow measure, and more
   width given to the column carrying the most copy.                     */
@media (min-width: 1101px) {
  .s-about .container {
    grid-template-columns: 1fr 0.78fr 1.25fr;
    align-items: start;
    gap: var(--sp-6);
  }
  .s-about .about-text h2 {
    font-size: clamp(1.5rem, 2.3vw, 2.125rem);
    line-height: 1.15;
    margin-bottom: var(--sp-3);
  }
  .about-statement blockquote {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  }
  /* the quote column is short; let its meta sit under the quote, not float */
  .s-about .statement-meta { margin-top: var(--sp-4); }
}

/* ---- 58d. Mobile hero -----------------------------------------------------
   Single-line brand headline, per the client. 36 characters across a 375px
   screen caps the type at ~19px, so the hierarchy is held instead by pulling
   the H1 down to a 9px eyebrow (§ below) and trimming the supporting
   paragraph, rather than by making the headline bigger.
   The one-line sizing itself lives in §45; nothing here overrides it.    */
@media (max-width: 768px) {
  /* smaller than the 16px default so the headline still leads the block */
  .s-hero .hero-content p:not(.hero-display) {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
  }

  .s-hero .hero-content .hero-seo {
    font-size: 0.5625rem !important;
    letter-spacing: 0.13em !important;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: var(--sp-1) !important;
  }

  /* the 1px cue sat flush against the button and read as a clipped edge */
  .s-hero .hero-actions { gap: var(--sp-1); }
  .s-hero .hero-actions .hero-scroll { margin-left: var(--sp-2); }
}

/* ============================================================
   59. SERVICE PAGE DETAIL PHOTO

   Was: a 600x750 tight crop (subject cut off on every side) locked
   into a forced 4/5 box. Now the full 732x1300 service photo at its
   natural ratio - nothing is cropped at any screen size.
   The image column is narrowed on desktop so a 9:16 portrait sits
   beside the copy instead of towering over it.
   ============================================================ */
.service-detail-media {
  overflow: hidden;
  background: var(--color-surface-2);
}
.service-detail-media img {
  display: block;
  width: 100%;
  height: auto;          /* natural ratio - the whole frame is visible */
}

@media (min-width: 901px) {
  .service-detail-intro {
    grid-template-columns: 1.35fr 0.65fr;
    gap: var(--sp-10);
    align-items: start;
  }
}
/* ============================================================
   60. FORM SUBMIT STATE
   The inquiry form now submits over fetch, so it needs to be able to
   say something when a send fails rather than silently doing nothing.
   ============================================================ */
.form-status {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  border-left: 2px solid var(--color-accent);
  background: var(--color-white);
  color: var(--color-ink);
}
.form-status.is-error {
  border-left-color: #B4453C;
  background: #FDF3F2;
  color: #7A2A24;
}
.inquiry-submit .btn:disabled { opacity: 0.6; cursor: wait; }
/* ============================================================
   61. SMS CONSENT CHECKBOX
   Carriers reviewing an A2P 10DLC registration look at the live form:
   the box must be unchecked by default, must not be required, and the
   language next to it must match what the campaign says it will send.
   Styled as a quiet block rather than a choice card so it reads as a
   disclosure, not another thing to pick.
   ============================================================ */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  margin-bottom: var(--sp-6);
  padding: var(--sp-4);
  background: var(--color-white);
  border-left: 2px solid var(--color-border);
}
.consent input[type="checkbox"] {
  /* 20px box inside a 44px tap target, without pushing the text down */
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.consent-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink);
  cursor: pointer;
}
.consent-fine {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-muted);
}
.consent a { color: var(--color-accent); border-bottom: 1px solid currentColor; }
.consent:focus-within { border-left-color: var(--color-accent); }

@media (max-width: 600px) {
  .consent { padding: var(--sp-3); gap: var(--sp-2); }
}

/* ============================================================
   62. LEGAL PAGE (privacy policy / text messaging terms)
   Long-form reading page. One narrow column, generous leading, and
   headings that step down clearly so the SMS section can be linked to
   and found quickly - carriers and customers both land here.
   ============================================================ */
.legal-page {
  padding-block: var(--sp-16);
  padding-top: calc(var(--sp-20) + 80px);
}
.legal-head { max-width: 760px; margin-bottom: var(--sp-10); }
.legal-head h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-block: var(--sp-2) var(--sp-3);
}
.legal-updated { font-size: var(--text-sm); color: var(--color-muted); }

.legal-body { max-width: 760px; }
.legal-body .legal-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-ink);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--color-border);
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  color: var(--color-ink);
  margin-block: var(--sp-10) var(--sp-3);
}
.legal-body h3 {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  margin-block: var(--sp-6) var(--sp-2);
}
.legal-body p,
.legal-body li {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
}
.legal-body p { margin-bottom: var(--sp-4); }
.legal-body ul {
  list-style: none;
  margin-bottom: var(--sp-4);
  padding: 0;
}
.legal-body li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--color-accent);
}
.legal-body strong { color: var(--color-ink); font-weight: 600; }
.legal-body a { color: var(--color-accent); border-bottom: 1px solid currentColor; }

@media (max-width: 600px) {
  .legal-page { padding-top: calc(var(--sp-16) + 64px); padding-bottom: var(--sp-20); }
  .legal-body h2 { margin-top: var(--sp-8); }
}

/* Privacy / text-terms link in the footer bottom bar. Sits between the
   copyright and the location badge; brighter than either because a
   carrier reviewing the A2P campaign has to be able to find it. */
.footer-legal {
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}
.footer-legal:hover,
.footer-legal:focus-visible { color: rgba(255, 255, 255, 0.9); }
.inquiry-privacy a { color: var(--color-accent); border-bottom: 1px solid currentColor; }

/* ============================================================
   63. HOMEPAGE DESKTOP PASS
   Client review, desktop only. Every rule below sits inside a
   min-width query, so the mobile design is untouched.
   ============================================================ */

/* ---- 63a. The wordmark ------------------------------------------------
   logo.png is a 500x500 canvas with the mark occupying only the middle
   223x108 - 21.6% of the height, the rest transparent padding. At a 64px
   box that rendered under 14px of actual mark, which is why it read as
   tiny beside 15px nav links. logo-wordmark.png is the same artwork
   cropped to its ink, so the same 64px box now shows 64px of mark:
   4.6x larger, with the header exactly the height it was.
   Mobile keeps the square file through <picture>; nothing moves there. */
.hero-wordmark { display: none; }

@media (min-width: 769px) {
  .nav-logo picture { display: flex; align-items: center; }
}

/* ---- 63b. About: symmetric three columns ------------------------------
   Was 1fr 0.78fr 1.25fr, which made the portrait the narrowest of the
   three and left the row lopsided. Even thirds give the photo equal space
   on both sides, and the badges moving into the statement column (markup
   change) gives the left column enough weight to hold its side.
   The photo frame is sized by ratio, not by the row height - see the note
   on .about-img-wrap below for why. */
@media (min-width: 1101px) {
  .s-about .container {
    /* Narrow desktop: three columns barely fit, so the photo takes more
       and the quote column gives it up. See the 1280 override below. */
    grid-template-columns: 0.7fr 1.4fr 0.9fr;
    gap: var(--sp-6);
    align-items: stretch;
  }
  /* The frame was stretching to the full height of the copy column, which
     was right for the old landscape photo. The team photo is 4:5, and a
     taller box crops the WIDTH - at the full 572px it sliced the people on
     both ends clean off.

     25/36 is 0.694, the tallest the box can be before the outermost two
     people start losing arms. Expressed as a ratio rather than a pixel
     cap so it holds at every column width: the box always shows the
     middle 87% of the photo, and everybody stays whole. */
  .s-about .about-img-wrap {
    aspect-ratio: 25 / 36;
    height: auto;
    align-self: start;
  }
  .s-about .about-img-wrap img { object-position: center; }

  .s-about .about-badges { margin-top: var(--sp-5); margin-bottom: 0; }
  .s-about .about-text h2 { font-size: clamp(1.5rem, 2.1vw, 1.95rem); }
}

/* ---- 63c. View All Services ------------------------------------------- */
@media (min-width: 901px) {
  .tiers-cta { margin-top: var(--sp-8); }
  .tiers-cta .btn {
    font-size: var(--text-sm);
    letter-spacing: 0.14em;
    padding: 24px 64px;
  }
}

/* ---- 63d. Portfolio: an even grid -------------------------------------
   A 2-row-tall tile plus a 2-column-wide tile across six items left a hole
   in the bottom-right corner. Six equal tiles fill a 3x2 grid exactly, and
   5:4 is squarer than the 4:3 the small tiles were using. */
@media (min-width: 901px) {
  .s-portfolio .portfolio-grid { grid-template-rows: auto; }
  .s-portfolio .portfolio-item--tall { grid-row: span 1; }
  .s-portfolio .portfolio-item--wide { grid-column: span 1; }
  .s-portfolio .portfolio-item-ratio,
  .s-portfolio .portfolio-item--tall .portfolio-item-ratio {
    aspect-ratio: 5/4;
    height: auto;
  }
}

/* ---- 63e. Process cards -----------------------------------------------
   The body copy was 13px at 45% white, which measures 4.1:1 on the dark
   panel - under AA and genuinely hard to read. 16px at 72% measures 9.8:1.
   The step titles are sized off the viewport so "Consultation & Planning"
   holds one line at every desktop width: the string is 9.79x the font size
   in Cormorant, and the clamp keeps it inside the card's measure with
   room to spare for a fallback face. */
@media (min-width: 901px) {
  .process-grid { gap: var(--sp-3); }
  .process-card { padding: var(--sp-8) var(--sp-4) var(--sp-6); }
  .process-num {
    font-size: 5.5rem;
    opacity: 0.4;
    margin-bottom: var(--sp-4);
  }
  .process-card h3 {
    font-size: clamp(1.05rem, 2vw, 1.75rem);
    line-height: 1.15;
    margin-bottom: var(--sp-4);
  }
  .process-card p {
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
  }
}

@media (min-width: 1101px) {
  /* Vertical room only. The side padding stays at 32px so the measure is
     wide enough to hold "Consultation & Planning" on one line: that string
     is 9.79x the font size in Cormorant, and 48px sides pushed it over. */
  .process-card { padding: var(--sp-10) var(--sp-4) var(--sp-8); }
}

/* ---- 63f. Testimonials ------------------------------------------------
   Same complaint, same cause: a 22px italic serif in a tight card. Bigger
   type, looser leading and more room around it. */
@media (min-width: 901px) {
  .testimonials-grid { gap: var(--sp-4); }
  .testimonial-card { padding: var(--sp-8) var(--sp-6); }
  .testimonial-quote {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: var(--sp-6);
  }
  .testimonial-name { font-size: var(--text-base); }
  .testimonial-role { font-size: var(--text-sm); letter-spacing: 0.1em; }

  .reviews-cta { margin-top: var(--sp-10); }
  .reviews-cta .btn {
    font-size: var(--text-sm);
    letter-spacing: 0.14em;
    padding: 24px 64px;
  }
  .reviews-note { margin-top: var(--sp-4); font-size: var(--text-sm); }
}

/* The hero is 100svh with its content bottom-anchored, so the empty band
   above the H1 is whatever the viewport leaves over: roughly
   (viewport height - 128px nav - 160px padding-bottom - 493px of content).
   That is ~120px on a 900px-tall screen and ~300px on a 1080p one, which
   is why this is sized in vh rather than pixels. Because the block is
   anchored to the bottom, adding the mark grows it upward - the buttons
   and the scroll cue do not move at all.

   The min-height gate is the important part. Below ~900px of viewport the
   band is too short and the mark slides up behind the nav bar entirely.
   Between 900 and 980 it fits but lands within ~10px of the nav logo: two
   copies of the same mark, stacked and left-aligned, which reads as a
   mistake. 980px is where the gap clears 80px and they stop competing.
   Below that the hero renders exactly as it did before. */
@media (min-width: 769px) and (min-height: 980px) {
  .s-hero .hero-wordmark {
    display: block;
    height: clamp(72px, 8.5vh, 132px);
    width: auto;
    margin-bottom: var(--sp-4);
    filter: brightness(0) invert(1);
  }
}

/* ============================================================
   64. PORTFOLIO PAGE — CARD GRID
   Replaces the bare masonry. Three things it adds: tiles in mixed
   shapes so the masonry actually staggers, a title and service line
   on every tile, and a video variant.

   Captions are always visible rather than revealed on hover. Hover
   does not exist on a phone, and a portfolio where half the visitors
   cannot tell what they are looking at is not a portfolio.

   Corners stay square. Nothing else on this site has a rectangular
   border-radius and the cards should not be the exception.
   ============================================================ */
.pf-grid {
  columns: 3;
  column-gap: var(--sp-3);
}

.pf-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 var(--sp-3);
  background: var(--color-surface-2);
  overflow: hidden;
}

/* The aspect ratio lives on the media box, not the image, so the tile
   reserves its exact height before the photo arrives - no reflow. */
.pf-card-media {
  position: relative;
  overflow: hidden;
}
.pf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.pf-card:hover .pf-card-media img { transform: scale(1.04); }

.pf-card--wide    .pf-card-media { aspect-ratio: 16 / 10; }
.pf-card--std     .pf-card-media { aspect-ratio: 4 / 3; }
.pf-card--square  .pf-card-media { aspect-ratio: 1 / 1; }
.pf-card--tall    .pf-card-media { aspect-ratio: 4 / 5; }
/* true vertical - matches the 732x1300 service photos almost exactly,
   so they show whole instead of being cropped into a landscape box */
.pf-card--vert    .pf-card-media { aspect-ratio: 9 / 16; }
.pf-card--video-h .pf-card-media { aspect-ratio: 16 / 9; }
.pf-card--video-v .pf-card-media { aspect-ratio: 9 / 16; }

/* An empty video slot: a dark panel with a play button, which reads as
   "video goes here" rather than as a photo that failed to load. Once a
   poster image is added it covers this and the panel never shows. */
.pf-card--video .pf-card-media { background: var(--color-dark); }

/* A photo slot waiting on the right shot. Light rather than dark so it
   is not mistaken for a video, and labelled so nobody has to guess. */
.pf-card--photo-slot .pf-card-media {
  background: var(--color-surface-2);
  display: grid;
  place-items: center;
}
.pf-card-slot {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.pf-card-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
  background: linear-gradient(
    to top,
    rgba(12, 11, 9, 0.9) 0%,
    rgba(12, 11, 9, 0.58) 45%,
    rgba(12, 11, 9, 0) 100%
  );
  pointer-events: none;
}
.pf-card-cat {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* the lighter bronze: the body accent is too dark to sit on a scrim */
  color: var(--color-accent-light);
}

/* A link tile gets the pointer and a touch more lift on hover. */
a.pf-card:hover { background: var(--color-ink); }

/* ---- Video tiles ---- */
.pf-card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.pf-card-play > span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background var(--dur-base) var(--ease-out);
}
.pf-card--video:hover .pf-card-play > span { background: rgba(255, 255, 255, 0.3); }
.pf-card-play > span::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 15px solid var(--color-white);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

@media (max-width: 900px) {
  .pf-grid { columns: 2; column-gap: var(--sp-2); }
  .pf-card { margin-bottom: var(--sp-2); }
  .pf-card-cap { padding: var(--sp-5) var(--sp-3) var(--sp-3); }
  .pf-card-play > span { width: 56px; height: 56px; }
}

@media (max-width: 768px) {
  /* Two columns on a phone as well, so the staggered rhythm survives at
     every width. It only works because the tile carries a single short
     label now - the old white title plus service line needed a full
     width tile to stay readable. */
  .pf-grid { columns: 2; column-gap: 10px; }
  .pf-card { margin-bottom: 10px; }
  .pf-card-cat { font-size: 0.625rem; letter-spacing: 0.1em; line-height: 1.45; }
  .pf-card-cap { padding: var(--sp-5) 12px 10px; }
  .pf-card-play > span { width: 44px; height: 44px; }
  .pf-card-play > span::after {
    margin-left: 3px;
    border-left-width: 11px;
    border-top-width: 7px;
    border-bottom-width: 7px;
  }
}

/* ============================================================
   65. NAV AT NARROW DESKTOP WIDTHS
   The cropped wordmark is 131px wide where the old square file was
   64px, and between 769 and ~1024px the bar runs out of room: the
   logo is a flex item with nothing stopping it, so it was being
   crushed - 41px wide at 900px, and 0px at 800px.

   flex: none stops the crushing; tightening the link row and the
   wordmark in that band is what makes everything actually fit.
   Below 769px the hamburger takes over and none of this applies.
   ============================================================ */
@media (min-width: 769px) {
  .nav-logo { flex: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-logo img { height: 48px; }
  .nav-links { gap: var(--sp-4); }
  .nav-cta { padding: 14px 22px; letter-spacing: 0.08em; }
}

/* ============================================================
   66. SERVICES DROPDOWN — ONE COLUMN
   Was three columns side by side holding 2, 4 and 2 links. Because
   the tiers are different lengths, the headings sat at the same
   height but the columns ended at wildly different depths, and the
   whole panel read as ragged.

   Stacked instead: Build, then Site + Infrastructure, then Systems
   + Specialty, straight down, each heading on its own single line.
   Narrower and taller, but the eye only has to travel one way.

   Desktop only - the phone menu has no dropdown at all.
   ============================================================ */
@media (min-width: 769px) {
  .nav-dropdown {
    grid-template-columns: 1fr;
    min-width: 320px;
    gap: 0;
    padding: var(--sp-3) var(--sp-2) var(--sp-2);
  }

  /* Space between tiers, not inside them, so each heading stays
     visually attached to the links it belongs to. */
  .nav-dropdown-col + .nav-dropdown-col { margin-top: var(--sp-3); }

  /* "Site + Infrastructure" and "Systems + Specialty" each hold one
     line. The panel is sized so they never need to wrap. */
  .nav-dropdown-tier { white-space: nowrap; }
}

/* ============================================================
   67. FOOTER HEADINGS STAY ON ONE LINE
   "SITE + INFRASTRUCTURE" measures 187px at 12px/0.15em and the
   column was 179px, so it broke to two lines. "SYSTEMS +
   SPECIALTY" needed 172px and only just survived.

   Rather than pick a width and hope, the columns are now
   minmax(min-content, 1fr) and the headings are nowrap: nowrap
   makes each heading's min-content its whole phrase, so the grid
   is not allowed to size a column narrower than the word it has
   to hold. Tightening the gutter to 64px pays for it.

   Four columns only exist above 1100px; below that the footer is
   already two columns and the headings have room.
   ============================================================ */
@media (min-width: 1101px) {
  .footer-top {
    grid-template-columns: 1.5fr repeat(3, minmax(min-content, 1fr));
    gap: var(--sp-8);
  }
  .footer-col strong { white-space: nowrap; }
}

/* The brand column gives up the width the headings take, so at the
   narrow end of that range the social row needs somewhere to go. */
.footer-social { flex-wrap: wrap; row-gap: var(--sp-2); }

/* ============================================================
   68. ABOUT PHOTO ON PHONES
   The old rule forced this frame to 16:9, which suited the
   landscape photo that used to be here. The team photo is 4:5
   portrait, and 16:9 showed only the middle 45% of its height -
   heads and boots both gone.

   On a phone the section is a single column with no height to
   match, so the frame simply takes the photo's own ratio and
   nothing is cropped at all.
   ============================================================ */
@media (max-width: 900px) {
  .s-about .about-img-wrap {
    aspect-ratio: 4 / 5;
    height: auto;
  }
}

/* ============================================================
   69. ABOUT PHOTO REACHES THE BOTTOM
   The photo frame is ratio-locked at 25/36 so the team never gets
   cropped, which means the only way to make it meet the bottom of
   the copy is to widen its column until the height follows.

   The catch is that narrowing the copy column makes it TALLER, so
   the two chase each other. These two templates are the measured
   solutions, not guesses:

     >= 1280   0.9fr 1.15fr 0.95fr   photo 399x574 vs copy 574  (flush)
     1101-1279 0.7fr 1.4fr  0.9fr    photo 485x699 vs copy 699  (flush)

   At exactly 1101 the copy takes one extra line and the photo
   finishes 58px short. Pushing past that makes the copy column so
   narrow it grows again, so this is the floor, not an oversight.
   ============================================================ */
@media (min-width: 1280px) {
  .s-about .container { grid-template-columns: 0.9fr 1.15fr 0.95fr; }
}

/* ============================================================
   70. MOBILE HOMEPAGE — CLIENT PASS
   ============================================================ */
@media (max-width: 768px) {

  /* ---- The seam between Call and Start a Project ----------
     The bar had gap: 1px over a translucent white background, so
     that 1px showed through as a hairline between the buttons.
     No gap, and a solid backdrop so sub-pixel rounding at odd
     device ratios cannot reopen it. */
  .mobile-cta {
    gap: 0;
    background: var(--color-ink-2);
  }

  /* ---- Counters move up, between Our Work and What We Do ----
     Phone order is now:
       Hero > Our Work > Counters > What We Do > Who We Are >
       Process > Reviews > Contact                              */
  .s-figures  { order: 3; }
  .s-services { order: 4; }

  /* ---- Image break removed on phones -----------------------
     "Every stage. One crew. One standard." sat directly under
     Who We Are, which already makes the same point in more
     detail. On a phone that is two full screens saying one
     thing. Desktop keeps it - there it is a breather between
     two dense sections, not a repeat. */
  .s-break { display: none; }
}

/* ============================================================
   71. PORTFOLIO HERO
   Same shape as the service-page heroes, but the headline is a
   full sentence rather than a two-word service name, so it needs
   its own sizing: at the inherited 108px it ran to two very deep
   lines and the first one was clipped behind the fixed nav.

   padding-top clears the nav outright rather than relying on the
   content happening to fit, since the flex content is bottom
   aligned and would otherwise overflow upward.
   ============================================================ */
.s-pf-hero {
  padding-top: calc(128px + var(--sp-4));
  padding-bottom: var(--sp-10);
}
.s-pf-hero .hero-content h1 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  /* No ch cap. The inherited 20ch resolves against this element own 63px
     font, which is narrower than it sounds - it was forcing "Every Project,
     a Standard" to wrap and turning an authored two-line headline into
     three ragged ones. The <br> sets the breaks; the clamp keeps the line
     inside the column as the viewport narrows. */
  max-width: none;
}
.s-pf-hero .hero-content p {
  max-width: 54ch;
  margin-bottom: 0;
}

/* The video is busier than the service-page stills, so the scrim
   carries a little more weight under the text. */
.s-pf-hero .hero-overlay {
  background: linear-gradient(
    to top,
    rgba(12, 11, 9, 0.88) 0%,
    rgba(12, 11, 9, 0.6) 55%,
    rgba(12, 11, 9, 0.4) 100%
  );
}

@media (max-width: 768px) {
  .s-pf-hero {
    padding-top: calc(72px + var(--sp-5));
    padding-bottom: var(--sp-8);
    height: auto;
    min-height: 58vh;
  }
  .s-pf-hero .hero-content h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); max-width: none; }
}

/* ============================================================
   72. PHOTO SLIDER
   A scroll-snap track. The browser does the scrolling, so swipe,
   trackpad, scrollbar and keyboard all work with no JS; the
   script only adds arrows and dots on top, and they stay hidden
   until it has run (.is-ready) so nothing dead is ever shown.

   The source photos are 4:5 portrait. A full-width banner would
   crop them to a letterbox, so the strip variant shows several
   whole slides at once and scrolls sideways instead.
   ============================================================ */
.pslider { position: relative; }

.pslider-track {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* A horizontal scroller gets overflow-y: auto implicitly, which can put a
     stray vertical scrollbar inside a fixed-height tile. Nothing ever
     overflows vertically here, so pin it shut. */
  overflow-y: hidden;
}
.pslider-track::-webkit-scrollbar { display: none; }
/* Inset rather than offset: an outward ring would be clipped by the
   tile frame the track sits inside. */
.pslider-track:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.pslider-slide {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  background: var(--color-surface-2);
  overflow: hidden;
}
.pslider-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Strip variant: one photo at a time, centred ----
   All ten photos are 1080x1350, so a 4:5 frame fits them exactly.
   object-fit stays "contain" rather than "cover" so that a future photo
   of a different shape letterboxes instead of being silently cropped -
   with matching ratios the two render identically. */
.pslider--strip { max-width: 520px; margin-inline: auto; }
.pslider--strip .pslider-track { gap: 0; }
.pslider--strip .pslider-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.pslider--strip .pslider-slide img { object-fit: contain; }

/* ---- Controls ---- */
.pslider-controls {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.pslider-arrows { display: flex; align-items: center; gap: var(--sp-3); }
.pslider.is-ready .pslider-controls { display: flex; }

.pslider-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-ink);
  transition: background var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast);
}
.pslider-btn:hover:not(:disabled) { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }
.pslider-btn:disabled { opacity: 0.3; cursor: default; }
.pslider-btn svg { width: 16px; height: 16px; }

.pslider-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.pslider-dot {
  /* 8px mark inside a 24px target - the dot stays small, the tap area does not */
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  background: none;
  border: none;
}
.pslider-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--dur-fast);
}
.pslider-dot.is-active::after { background: var(--color-accent); }
.pslider-dot:hover::after { background: var(--color-accent-light); }

@media (max-width: 768px) {
  /* Dots above the arrows on a phone, and much smaller - ten of them at
     desktop size is a wide band of furniture under a single photo. */
  .pslider-arrows { order: 2; }
  .pslider-dots { order: 1; gap: 2px; }
  .pslider-dot { width: 18px; height: 18px; }
  .pslider-dot::after { width: 5px; height: 5px; }
  .pslider-controls { gap: var(--sp-2); }
}

/* ============================================================
   73. SERVICE PAGE MEDIA BLOCK
   The renovations page moved its single tall photo out of the
   intro and into a row of three below a photo strip, so the
   intro is now text only and needs a measure of its own -
   full-width body copy at 1136px is unreadable.
   ============================================================ */
@media (min-width: 901px) {
  .service-detail-intro--text { grid-template-columns: 1fr; }
  .service-detail-intro--text > div { max-width: 70ch; }
}

.svc-media-block { margin-top: var(--sp-12); }
.svc-media-block > .t-label { display: block; margin-bottom: var(--sp-4); }

.svc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.svc-gallery-item {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface-2);
}
.svc-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchored to the top: this photo's subject is the mounts and the
     windows at the top of the frame, and the foreground floor is the
     part that can go. */
  object-position: center top;
}
.svc-gallery-item--slot { display: grid; place-items: center; }
.svc-gallery-slot-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  /* Two up on a phone, with the real photo spanning both so it still
     reads as the main image and the two slots sit under it as a pair. */
  .svc-gallery { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--sp-5); }
  .svc-gallery-item:first-child { grid-column: 1 / -1; }
}

/* ---- Tile variant: one slide filling a portfolio tile ------------------
   The frame, ratio and caption are the masonry's, not the slider's, so
   this tile measures and stacks exactly like its neighbours and the
   scatter solved for the grid still holds. Only the contents move. */
.pf-card--slider .pf-card-media { position: relative; }
.pslider--tile,
.pslider--tile .pslider-track { height: 100%; }
.pslider--tile .pslider-track { gap: 0; padding: 0; }
.pslider--tile .pslider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
/* Contained, not covered - see the strip variant above: the frame matches
   the photos today, and anything odd-shaped later letterboxes rather than
   being cropped. */
.pslider--tile .pslider-slide img { object-fit: contain; }

/* Arrows sit on the photo, vertically centred, clear of the caption at
   the bottom. No dots here - ten of them on a 360px tile is noise. */
.pslider--tile .pslider-controls {
  position: absolute;
  inset: 0 var(--sp-2) auto;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
}
.pslider--tile .pslider-arrows { width: 100%; justify-content: space-between; }
.pslider--tile .pslider-dots { display: none; }
.pslider--tile .pslider-btn {
  width: 38px;
  height: 38px;
  pointer-events: auto;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(12, 11, 9, 0.45);
  color: var(--color-white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pslider--tile .pslider-btn:hover:not(:disabled) {
  background: rgba(12, 11, 9, 0.8);
  border-color: var(--color-white);
}
.pslider--tile .pslider-btn:disabled { opacity: 0.25; }

@media (max-width: 768px) {
  /* 38px is fine under a cursor, not under a thumb. Two 44px targets still
     fit a 159px tile with room between them. */
  .pslider--tile .pslider-btn { width: 44px; height: 44px; }
  .pslider--tile .pslider-controls { inset-inline: 10px; }
}

/* ---- Cloudflare Stream tiles -------------------------------------------
   A poster with a play button until clicked, then the iframe replaces it
   in the same frame, so the masonry never reflows. */
.pf-card--stream { cursor: pointer; }
.pf-card--stream:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.pf-card--stream .pf-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-stream-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* The portfolio tile's category label belongs to the first photo, not to
   the nine behind it, so it steps aside as soon as you slide on and comes
   back when you return. Gated on .pslider-scoped, which the script adds at
   init, so the caption is never hidden on a page where JS did not run. */
.pf-card--slider .pf-card-cap {
  transition: opacity var(--dur-base) var(--ease-out);
}
.pf-card--slider.pslider-scoped:not(.is-first) .pf-card-cap {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   74. VIDEO LIGHTBOX
   Stream's control bar needs real width. Inside a tile - 159px on a
   phone, or a short 16:9 one on desktop - the play and fullscreen
   buttons get clipped, and no amount of tile tuning fixes it for
   every tile shape. So the player opens over the page at a size
   driven by the viewport, and the tile is only ever the poster.
   ============================================================ */
.stream-box {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(12, 11, 9, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.stream-box[hidden] { display: none; }

.stream-box-frame {
  /* Width is the single source of truth and the ratio follows it, so the
     box can never be overconstrained. The third term is what keeps a 9:16
     video from running off the bottom of a laptop screen. */
  width: min(92vw, 1100px, calc(86vh * var(--r, 1.778)));
  aspect-ratio: var(--ar, 16 / 9);
  background: #000;
}
.stream-box-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.stream-box-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(12, 11, 9, 0.6);
  color: var(--color-white);
}
.stream-box-close:hover { background: var(--color-white); color: var(--color-ink); }
.stream-box-close svg { width: 20px; height: 20px; }

/* Stops the page behind scrolling under the player. */
html.stream-open, html.stream-open body { overflow: hidden; }

@media (max-width: 768px) {
  /* The strip's arrows at 44px were heavier than the photo above them.
     The visible square drops to 18px - about 60% smaller - and the gap
     widens to 76px so the pair still spans the same 112px it did, which
     keeps the left and right edges where they were.

     The tap target does NOT shrink with it: an invisible 44px box is
     centred on each arrow, so it is still thumb-sized. Same trick the
     dots already use. */
  .pslider--strip .pslider-arrows { gap: 76px; }
  .pslider--strip .pslider-btn {
    position: relative;
    width: 18px;
    height: 18px;
  }
  .pslider--strip .pslider-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }
  .pslider--strip .pslider-btn svg { width: 10px; height: 10px; }
}

/* ============================================================
   75. SERVICES TIERS ON MOBILE
   Was: a 12px tier number, then one 325x464 card per row. The
   number read as a caption rather than a marker, and the cards
   were so large the page became a long single file of them.

   Now the number carries the section the way the process and
   portfolio numbers do, the cards drop to two up, and the card
   images alternate 4:5 / 1:1 so the two columns never line up -
   the same staggered read as the portfolio grid, built on the
   same multi-column primitive.
   ============================================================ */
@media (max-width: 768px) {
  .tier-num {
    font-family: var(--font-display);
    font-size: 4.25rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 0.85;
    color: var(--color-accent);
    opacity: 0.5;
    margin-bottom: var(--sp-2);
  }
  .tier { gap: var(--sp-5); }

  /* Grid, not multi-column. CSS fragmentation DISCARDS a margin at the top
     of a column, so in multicol the offset that creates the stagger is
     silently dropped - measured it, both columns still began on the same
     pixel. In a grid the margin holds, and align-items: start keeps each
     card at its natural height rather than stretching it to the row. */
  .tier-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    align-items: start;
    background: none;
    border: 0;
  }
  .service-card {
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
  }

  /* A four-step cycle, not odd/even: grid fills row by row, so a two-step
     cycle would give every card in a column the same shape. This way the
     shapes alternate down each column as well as across. */
  .tier-cards .service-card:nth-child(4n + 1) .service-card-img,
  .tier-cards .service-card:nth-child(4n + 4) .service-card-img { aspect-ratio: 4 / 5; }
  .tier-cards .service-card:nth-child(4n + 2) .service-card-img,
  .tier-cards .service-card:nth-child(4n + 3) .service-card-img { aspect-ratio: 1 / 1; }

  /* Different heights alone do not read as staggered - with two cards per
     tier both columns still begin level. Dropping the right-hand column is
     what does it. Uniform rule, so it survives a tier gaining or losing a
     card. */
  .tier-cards .service-card:nth-child(even) { margin-top: 34px; }

  /* Smaller cards. The !important matches the global mobile type rules
     and the .tier--lead overrides, both of which already use it. */
  .service-card-body,
  .tier--lead .service-card-body { padding: 12px; }
  /* The card title is Cormorant 400 everywhere else. At 15px on a phone a
     light display serif is the hardest thing on the page to read, so the
     small cards switch to the body face at 600. Nothing else changes. */
  .service-card-body h3,
  .tier--lead .service-card-body h3 {
    font-family: var(--font-body);
    font-size: 0.875rem !important;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.35;
    color: var(--color-ink);
    margin-bottom: 6px;
  }
  .service-card-body p {
    font-size: 0.8125rem !important;
    line-height: 1.55;
    margin-bottom: 10px;
  }
  .service-card-link { font-size: 0.6875rem; letter-spacing: 0.1em; }
}

/* ============================================================
   76. SERVICE PAGE VIDEO
   The same facade as the portfolio tiles - poster, play button,
   no iframe until clicked - and it opens in the shared lightbox,
   so the player is sized by the viewport rather than by this
   block. initStreamTiles picks it up from data-stream-id alone;
   it does not care what the element is called.
   ============================================================ */
.svc-video {
  position: relative;
  display: block;
  margin: var(--sp-12) 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-dark);
  cursor: pointer;
}
.svc-video:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.svc-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.svc-video:hover img { transform: scale(1.03); }

.svc-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.svc-video-play > span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background var(--dur-base) var(--ease-out);
}
.svc-video:hover .svc-video-play > span { background: rgba(255, 255, 255, 0.3); }
.svc-video-play > span::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 17px solid var(--color-white);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.svc-video-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-8) var(--sp-4) var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  background: linear-gradient(to top, rgba(12, 11, 9, 0.85), rgba(12, 11, 9, 0));
  pointer-events: none;
}

@media (max-width: 768px) {
  .svc-video { margin-top: var(--sp-8); }
  .svc-video-play > span { width: 56px; height: 56px; }
  .svc-video-play > span::after {
    margin-left: 4px;
    border-left-width: 13px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }
  .svc-video-cap { padding: var(--sp-6) var(--sp-3) var(--sp-3); font-size: 0.6875rem; }
}
