/* SF Pro is used on Apple devices through the system stack; Inter is the self-hosted match elsewhere. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --white: #fff;
  --stone: #f5f5f2;
  --stone-2: #ebebe6;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --hair: #d9d9d4;
  --night: #0c0f0d;
  --night-2: #161a17;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --night-hair: rgba(255, 255, 255, 0.14);
  --green: #28603b;
  --green-hover: #1f4d2f;
  --lime: #a2c63d;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 28px;
  --radius-sm: 18px;
  --shell: min(1120px, calc(100vw - 48px));
  --shell-wide: min(1440px, calc(100vw - 32px));
  --nav-h: 56px;
  --space: clamp(88px, 12vw, 160px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--green);
  accent-color: var(--green);
}

::selection {
  color: var(--white);
  background: var(--green);
}

[hidden] {
  display: none !important;
}

/* Never let anything nudge the page sideways on phones (clip keeps sticky elements working). */
html,
body {
  overflow-x: clip;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

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

h1,
h2,
h3,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.9rem, 7.4vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.headline {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.026em;
}

.subhead {
  color: var(--ink-2);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.016em;
  text-wrap: pretty;
}

.body {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 62ch;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.center {
  text-align: center;
}

.center .subhead,
.center .body {
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  border-radius: 999px;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* Sections */
.chapter {
  padding-block: var(--space);
}

.chapter-stone {
  background: var(--stone);
}

.chapter-dark {
  color: var(--night-ink);
  background: var(--night);
}

.chapter-dark .subhead,
.chapter-dark .body {
  color: var(--night-ink-2);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.section-head .subhead {
  margin-top: 20px;
}

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

/* Buttons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 120ms var(--ease);
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-hover);
}

.button-secondary {
  color: var(--green);
  background: rgba(40, 96, 59, 0.1);
}

.button-secondary:hover {
  background: rgba(40, 96, 59, 0.16);
}

.chapter-dark .button-secondary,
.on-dark .button-secondary {
  color: var(--night-ink);
  background: rgba(255, 255, 255, 0.12);
}

.chapter-dark .button-secondary:hover,
.on-dark .button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.center .button-row {
  justify-content: center;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-weight: 500;
}

.link svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms var(--ease);
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.link:hover svg {
  transform: translateX(3px);
}

.chapter-dark .link {
  color: var(--lime);
}

/* Navigation */
.nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 450ms var(--ease), border-color 450ms var(--ease), -webkit-backdrop-filter 450ms var(--ease), backdrop-filter 450ms var(--ease);
}

body:not(.has-hero) main {
  padding-top: var(--nav-h);
}

/* Inner pages: the nav sits clear on the white header, then turns white with a hairline once past it. */
body:not(.has-hero) .nav:not(.is-solid) {
  background: rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.logo-light {
  display: none;
}

/* Over the hero photo: clear glass, white type and the light logo. */
.has-hero .nav:not(.is-solid) {
  background: rgba(10, 16, 12, 0.16);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.has-hero .nav:not(.is-solid) .nav-call {
  color: var(--white);
}

.has-hero .nav:not(.is-solid) .logo-dark {
  display: none;
}

.has-hero .nav:not(.is-solid) .logo-light {
  display: block;
}

.has-hero .nav:not(.is-solid) .nav-links a:not(.nav-quote) {
  color: rgba(255, 255, 255, 0.85);
}

.has-hero .nav:not(.is-solid) .nav-links a:not(.nav-quote):hover,
.has-hero .nav:not(.is-solid) .nav-links a[aria-current="page"] {
  color: var(--white);
}

.has-hero .nav:not(.is-solid) .menu-toggle span:not(.sr-only) {
  background: var(--white);
}

.nav-inner {
  display: flex;
  height: var(--nav-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--shell);
  margin-inline: auto;
}

.brand img {
  width: auto;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
}

.nav-links a {
  padding: 8px 14px;
  color: rgba(29, 29, 31, 0.8);
  border-radius: 8px;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

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

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-links .nav-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  color: var(--green);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav-call svg {
  width: 15px;
  height: 15px;
}

.nav-links .nav-quote {
  position: relative;
  margin-left: 6px;
  padding: 8px 16px;
  color: var(--white);
  border-radius: 9px;
  background: var(--green);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: background-color 200ms var(--ease), transform 150ms var(--ease);
}

.nav-links .nav-quote:active {
  transform: translateY(1px);
}

.nav-links .nav-quote:hover {
  color: var(--white);
  background: var(--green-hover);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 300ms var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 25px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Home hero: one full-bleed header, the photo behind the copy. */
.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: calc(var(--nav-h) + 48px) 0 clamp(72px, 10vh, 120px);
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(var(--hero-zoom, 1));
  transform-origin: center 40%;
  will-change: transform;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 12, 9, 0.55) 0%, rgba(8, 12, 9, 0.2) 22%, rgba(8, 12, 9, 0.28) 55%, rgba(8, 12, 9, 0.7) 100%),
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(8, 12, 9, 0.38), transparent 75%);
}

/* Scroll cue: a frosted chevron that bobs at the foot of the hero. */
.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: clamp(20px, 4vh, 40px);
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(20, 26, 22, 0.35);
  opacity: var(--hero-fade, 1);
  transform: translateX(-50%);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
  animation: cue 2.4s var(--ease) infinite;
}

.scroll-cue:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
}

.scroll-cue svg {
  width: 22px;
  height: 22px;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  45% { transform: translate(-50%, 10px); }
  60% { transform: translate(-50%, 4px); }
}

/* Soft blend from the film into the dark intro section below. */
.hero::before {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(140px, 26vh, 280px);
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 15, 13, 0) 0%,
    rgba(12, 15, 13, 0.25) 30%,
    rgba(12, 15, 13, 0.7) 65%,
    var(--night) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  opacity: var(--hero-fade, 1);
  transform: translateY(var(--hero-lift, 0));
}

.hero h1 {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero .subhead {
  max-width: 34ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.hero .button-row {
  margin-top: 34px;
}

.hero h1 {
  max-width: 13ch;
  margin-inline: auto;
}

.hero-line {
  display: block;
}

.hero-line-2 {
  position: relative;
  display: inline-block;
}

/* Hand-drawn lime underline under "Precisely made." */
.hero-scribble {
  position: absolute;
  right: -2%;
  bottom: -0.16em;
  left: -2%;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  pointer-events: none;
}

.hero-scribble path:nth-child(1) {
  stroke-width: 5;
}

.hero-scribble path:nth-child(2) {
  stroke-width: 2.5;
  opacity: 0.55;
}

/* Proof row: phone, review and qualification, separated by soft dots. */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof li + li::before {
  width: 4px;
  height: 4px;
  margin: 0 16px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-proof a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.hero-proof a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero-proof svg {
  width: 15px;
  height: 15px;
}

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

.hero-stars svg {
  width: 13px;
  height: 13px;
}

/* One-time entrance: headline lines rise in, then the rest follows, then the underline draws. */
.js .hero-line,
.js .hero .subhead,
.js .hero .button-row,
.js .hero-proof {
  opacity: 0;
  animation: hero-in 1.1s var(--ease) forwards;
}

.js .hero-line:nth-child(1) { animation-delay: 0.15s; }
.js .hero-line:nth-child(2) { animation-delay: 0.3s; }
.js .hero .subhead { animation-delay: 0.55s; }
.js .hero .button-row { animation-delay: 0.7s; }
.js .hero-proof { animation-delay: 0.85s; }

.js .hero-scribble path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: scribble 1.1s cubic-bezier(0.6, 0, 0.2, 1) 1.15s forwards;
}

.js .hero-scribble path:nth-child(2) {
  animation-delay: 1.45s;
}

@keyframes hero-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes scribble {
  to { stroke-dashoffset: 0; }
}

.button svg {
  width: 17px;
  height: 17px;
}

/* "Picture your garden here": a blank site plan waiting for your garden. */
.plot-cta {
  position: relative;
  margin-top: clamp(96px, 13vw, 176px);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  text-align: center;
}

.plot-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.plot-frame rect {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 10 8;
  vector-effect: non-scaling-stroke;
  animation: plot-march 2.4s linear infinite;
}

@keyframes plot-march {
  to { stroke-dashoffset: -36; }
}

.plot-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--lime);
  border-style: solid;
  border-width: 0;
}

.plot-corner.tl { top: -6px; left: -6px; border-top-width: 2px; border-left-width: 2px; }
.plot-corner.tr { top: -6px; right: -6px; border-top-width: 2px; border-right-width: 2px; }
.plot-corner.bl { bottom: -6px; left: -6px; border-bottom-width: 2px; border-left-width: 2px; }
.plot-corner.br { bottom: -6px; right: -6px; border-bottom-width: 2px; border-right-width: 2px; }

.plot-dim {
  position: absolute;
  color: var(--lime);
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-size: 1.05rem;
  opacity: 0.85;
}

.plot-dim-w {
  top: -14px;
  left: 50%;
  padding: 0 12px;
  background: var(--night);
  transform: translateX(-50%);
}

.plot-dim-h {
  top: 50%;
  right: -26px;
  padding: 6px 0;
  background: var(--night);
  transform: translateY(-50%) rotate(90deg);
}

.plot-cta h3 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.034em;
}

.plot-cta p {
  max-width: 46ch;
  margin: 18px auto 34px;
  color: var(--night-ink-2);
  font-size: 1.125rem;
}

.plot-cta .button-row {
  justify-content: center;
}

/* Call/quote band that closes a section. */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--white);
}

.cta-band p {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.024em;
}

.cta-band.on-dark {
  background: var(--night-2);
  margin-top: clamp(96px, 13vw, 176px);
}

/* Statement */
#intro {
  padding-top: clamp(48px, 7vw, 96px);
  background: var(--night);
}

#intro .statement {
  color: var(--night-ink-2);
}

#intro .statement.is-split,
#intro .statement.is-split strong {
  color: #3d433f;
}

#intro .statement strong,
#intro .statement .word.is-lit {
  color: var(--night-ink);
}

#intro .statement .word-em.is-lit {
  color: var(--lime);
}

.statement {
  max-width: 980px;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: #a6a6a1;
  text-wrap: pretty;
}

.statement strong {
  color: var(--ink);
  font-weight: inherit;
}

/* Scroll-lit statement (JS splits it into words). */
.statement.is-split,
.statement.is-split strong {
  color: #cfcfca;
}

.statement .word {
  transition: color 400ms var(--ease);
}

.statement .word.is-lit {
  color: var(--ink);
}

.statement .word-em.is-lit {
  color: var(--green);
}

/* Live contour canvas behind inner-page heroes and closing sections. */
.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-hero .contours {
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, #000 30%, transparent 80%);
}

/* Project steps cascade in after their heading. */
.js .project-copy.reveal .steps li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .project-copy.reveal.is-visible .steps li {
  opacity: 1;
  transform: none;
}

.js .project-copy.is-visible .steps li:nth-child(1) { transition-delay: 250ms; }
.js .project-copy.is-visible .steps li:nth-child(2) { transition-delay: 380ms; }
.js .project-copy.is-visible .steps li:nth-child(3) { transition-delay: 510ms; }
.js .project-copy.is-visible .steps li:nth-child(4) { transition-delay: 640ms; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
  gap: 20px;
  margin-top: clamp(56px, 8vw, 96px);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.tile-photo {
  color: var(--white);
  background: var(--night);
}

.tile-photo img {
  will-change: transform;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.tile-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.72) 100%);
}

.tile > *:not(img) {
  position: relative;
  z-index: 1;
}

.tile h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.026em;
}

.tile p {
  margin-top: 10px;
  max-width: 40ch;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.tile-photo p {
  color: rgba(255, 255, 255, 0.82);
}

.tile:not(.tile-photo) p {
  color: var(--ink-2);
}

.tile-large {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 560px;
}

.tile-side {
  grid-column: span 2;
}

.tile-quote {
  justify-content: space-between;
  gap: 32px;
}

.tile-quote .big {
  color: var(--green);
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* Projects */
.project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.project + .project {
  margin-top: clamp(96px, 13vw, 176px);
}

.project-reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.project-reverse .project-copy {
  order: 2;
}

.project-copy h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.project-copy > p {
  margin-top: 18px;
  color: var(--night-ink-2);
  font-size: 1.125rem;
  line-height: 1.55;
}

.steps {
  margin-top: 36px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  padding-block: 16px;
  border-top: 1px solid var(--night-hair);
  counter-increment: step;
}

.steps li::before {
  grid-row: span 2;
  content: counter(step);
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.steps strong {
  font-weight: 600;
}

.steps span {
  color: var(--night-ink-2);
  font-size: 0.95rem;
}

/* Slideshow */
.slideshow {
  position: relative;
}

.slide-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night-2);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.slides {
  height: 100%;
  padding: 0;
  list-style: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms var(--ease), transform 1400ms var(--ease);
}

.slide.is-active {
  opacity: 1;
  transform: none;
}

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

.slide-progress {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
}

.slide-progress button {
  position: relative;
  flex: 1;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slide-progress button::before,
.slide-progress button::after {
  position: absolute;
  top: 8px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 3px;
}

.slide-progress button::before {
  right: 0;
  background: rgba(255, 255, 255, 0.35);
}

.slide-progress button::after {
  width: 0;
  background: var(--white);
}

.slide-progress button.is-done::after {
  width: 100%;
}

.slide-progress button[aria-current="true"]::after {
  width: 100%;
}

.slideshow.is-playing .slide-progress button[aria-current="true"]::after {
  animation: fill var(--slide-ms, 2200ms) linear forwards;
}

@keyframes fill {
  from { width: 0; }
  to { width: 100%; }
}

.slide-controls {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}

.slide-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(30, 30, 30, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background-color 200ms var(--ease), transform 120ms var(--ease);
}

.slide-controls button:hover {
  background: rgba(30, 30, 30, 0.8);
}

.slide-controls button:active {
  transform: scale(0.94);
}

.slide-controls svg {
  width: 18px;
  height: 18px;
}

.slide-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--night-ink-2);
  font-size: 0.9375rem;
}

.slide-caption strong {
  color: var(--night-ink);
  font-weight: 600;
}

.slide-caption .count {
  font-variant-numeric: tabular-nums;
}

.slide-hint {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  transition: opacity 300ms var(--ease);
}

.slideshow.has-interacted .slide-hint {
  opacity: 0;
}

/* Touch screens can't hover: the arrows and progress bar do the job there. */
@media (hover: none) {
  .slide-hint {
    display: none;
  }
}

/* Review */
.review blockquote p {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

/* Spirit level above the review: tilts true and the bubble settles in the centre. */
.level {
  width: min(280px, 70vw);
  margin: 0 auto 30px;
}

.review .stars {
  margin-bottom: 18px;
}

.level svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.14));
}

.level-tilt {
  transform-box: fill-box;
  transform-origin: center;
}

.level-bubble {
  transform-box: fill-box;
  transform-origin: center;
}

.js .level-tilt {
  transform: rotate(-4deg);
}

.js .level-bubble {
  transform: translateX(-26px);
}

.js .review .is-visible .level-tilt {
  animation: level-tilt 1.6s var(--ease) 0.2s forwards;
}

.js .review .is-visible .level-bubble {
  animation: level-bubble 2.2s cubic-bezier(0.3, 0, 0.2, 1) 0.2s forwards, level-breathe 4s ease-in-out 2.6s infinite;
}

@keyframes level-tilt {
  0% { transform: rotate(-4deg); }
  55% { transform: rotate(1.2deg); }
  80% { transform: rotate(-0.4deg); }
  100% { transform: rotate(0deg); }
}

@keyframes level-bubble {
  0% { transform: translateX(-26px); }
  45% { transform: translateX(14px); }
  70% { transform: translateX(-5px); }
  86% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* A tiny drift so it still feels like liquid once settled. */
@keyframes level-breathe {
  0%, 100% { transform: translateX(0) scaleX(1); }
  50% { transform: translateX(0.8px) scaleX(1.03); }
}

/* Once the pointer takes over, JS drives the tilt and bubble. */
.js .level.is-live .level-tilt {
  animation: none;
  transform: rotate(var(--tilt, 0deg));
}

.js .level.is-live .level-bubble {
  animation: none;
  transform: translateX(var(--bubble, 0px));
}

.stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
  color: var(--green);
}

.stars svg {
  width: 22px;
  height: 22px;
}

.review footer {
  margin-top: 24px;
  color: var(--ink-2);
}

.review .button-row {
  margin-top: 36px;
}

/* Closing call to action */
.close {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.close-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.close::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at center, rgba(12, 15, 13, 0.35) 0%, rgba(12, 15, 13, 0.85) 75%);
}

.close .shell {
  position: relative;
  z-index: 2;
}

.close .contours {
  z-index: 1;
}

.close .subhead {
  max-width: 40ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.close .button-row {
  margin-top: 36px;
}

/* Inner page heroes */
.page-hero {
  padding-block: clamp(72px, 11vw, 140px) clamp(48px, 7vw, 88px);
}

.page-hero .subhead {
  max-width: 40ch;
  margin-top: 22px;
}

/* Services */
.subnav {
  position: sticky;
  z-index: 50;
  top: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.subnav ul {
  display: flex;
  gap: 8px;
  width: var(--shell);
  margin-inline: auto;
  padding: 10px 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.subnav ul::-webkit-scrollbar {
  display: none;
}

.subnav ul {
  justify-content: safe center;
  gap: clamp(12px, 1.3vw, 18px);
  padding: 0;
}

.subnav a {
  position: relative;
  display: inline-block;
  padding: 15px 0 13px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}

/* Green underline that grows in under the section in view. */
.subnav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 300ms var(--ease);
}

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

.subnav a[aria-current="true"] {
  color: var(--green);
}

.subnav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.services {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  scroll-margin-top: calc(var(--nav-h) + 76px);
}

.service:nth-child(4n + 1),
.service:nth-child(4n + 4) {
  grid-column: span 7;
}

.service:nth-child(4n + 2),
.service:nth-child(4n + 3) {
  grid-column: span 5;
}

.service img {
  width: 100%;
  height: clamp(240px, 30vw, 380px);
  object-fit: cover;
}

/* Cards with several photos: they stack in one frame and cross-fade on hover (tap on touch screens). */
.service-media {
  position: relative;
  height: clamp(240px, 30vw, 380px);
  overflow: hidden;
  background: var(--stone-2);
  isolation: isolate;
}

.service-media img {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 600ms var(--ease), transform 1400ms var(--ease);
}

.service-media img.is-active {
  opacity: 1;
  transform: none;
}

.service-dots {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 5px;
}

.service-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}

.service-dots span.is-on {
  background: var(--white);
  transform: scale(1.3);
}

.service-media-hint {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  transition: opacity 300ms var(--ease);
}

.service-media.has-interacted .service-media-hint {
  opacity: 0;
}

/* Touch screens can't hover: a tap moves to the next photo instead. */
@media (hover: none) {
  .service-media-hint,
  .hover-hint {
    display: none;
  }
}

.service-body {
  padding: clamp(24px, 3vw, 40px);
}

.service-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.service-body p {
  margin-top: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-meta {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.875rem;
  letter-spacing: 0;
}

/* The action sits on a hairline at the foot of the card, aligned across a row. */
.service-body {
  flex: 1;
}

.service-foot {
  position: relative;
  display: flex;
  align-self: stretch;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 18px;
}

/* Green divider: a soft base line, with a full-strength line that draws across on hover. */
.service-foot::before,
.service-foot::after {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  content: "";
}

.service-foot::before {
  right: 0;
  background: rgba(40, 96, 59, 0.28);
}

.service-foot::after {
  right: 0;
  height: 2px;
  top: -0.5px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}

.service:hover .service-foot::after,
.service:focus-within .service-foot::after {
  transform: scaleX(1);
}

.service-meta {
  margin-bottom: 26px;
}

.service-quote {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.service-quote-icon {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(162, 198, 61, 0.55);
  animation: quote-breathe 3.2s ease-in-out infinite;
  transition: background-color 200ms var(--ease), transform 300ms var(--ease);
}

.service-quote-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 400ms var(--ease);
}

/* A slow lime ring breathes out from the button. */
@keyframes quote-breathe {
  0% { box-shadow: 0 0 0 0 rgba(162, 198, 61, 0.5); }
  60% { box-shadow: 0 0 0 9px rgba(162, 198, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(162, 198, 61, 0); }
}

/* On hover the arrow slides out to the right and a fresh one slides in from the left. */
.service-quote:hover .service-quote-icon,
.service:hover .service-quote-icon {
  background: var(--green-hover);
  transform: scale(1.06);
}

.service-quote:hover .service-quote-icon svg,
.service:hover .service-quote-icon svg {
  animation: arrow-cycle 900ms var(--ease) infinite;
}

@keyframes arrow-cycle {
  0% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(18px); opacity: 0; }
  46% { transform: translateX(-18px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.service-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quote-steps {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

/* The line that threads the three steps together. */
.quote-steps::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  width: 2px;
  content: "";
  border-radius: 2px;
  background: linear-gradient(180deg, var(--lime), rgba(162, 198, 61, 0.15));
}

.quote-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.step-icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--lime);
  border: 1px solid rgba(162, 198, 61, 0.45);
  border-radius: 50%;
  background: var(--night-2);
  box-shadow: 0 0 0 6px var(--night);
}

.step-icon svg {
  width: 19px;
  height: 19px;
}

.quote-steps strong {
  display: block;
  margin-top: 2px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.quote-steps span:not(.step-icon) {
  display: block;
  margin-top: 4px;
  color: var(--night-ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Steps light up one after another when the panel appears. */
.js .quote-panel.reveal .quote-steps li {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.js .quote-panel.is-visible .quote-steps li {
  opacity: 1;
  transform: none;
}

.js .quote-panel.is-visible .quote-steps li:nth-child(2) { transition-delay: 150ms; }
.js .quote-panel.is-visible .quote-steps li:nth-child(3) { transition-delay: 300ms; }

.tags li::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--lime);
}

/* About: "Trust is built on site" over the pencil-sketch fence film. */
.sketch-section {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}

.sketch-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  opacity: 0.85;
  pointer-events: none;
}

.sketch-section::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.92) 30%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.sketch-section > .shell {
  position: relative;
  z-index: 2;
}

.sketch-section .section-head {
  max-width: 560px;
  margin-bottom: 0;
}

/* Dark project chapter: the pencil paving film stays pinned in view behind the content. */
.has-film {
  position: relative;
}

.section-film {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-film .sketch-video {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
  opacity: 1;
}

.has-film > .shell {
  position: relative;
  z-index: 1;
}

/* Dan's section: a little pencil digger at work in the bottom-right corner. */
.dan-section {
  position: relative;
  overflow: hidden;
}

.dan-section > .shell {
  position: relative;
  z-index: 1;
}

.digger-video {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: auto;
  width: clamp(280px, 30vw, 460px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.9;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 60% 60%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 80% at 60% 60%, #000 55%, transparent 100%);
}

/* About: editorial mosaic of recent work. */
.mosaic-wrap {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px);
  gap: 16px;
  padding: 0;
  list-style: none;
}

.mosaic li {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--stone);
}

.mosaic li:nth-child(1) { grid-column: span 7; grid-row: span 3; }
.mosaic li:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.mosaic li:nth-child(3) { grid-column: span 5; grid-row: span 1; }
.mosaic li:nth-child(4),
.mosaic li:nth-child(5),
.mosaic li:nth-child(6),
.mosaic li:nth-child(7) { grid-column: span 3; grid-row: span 2; }

.mosaic figure {
  position: relative;
  height: 100%;
}

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

.mosaic figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 18px 16px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}

.mosaic li:hover img {
  transform: scale(1.04);
}

.mosaic li:hover figcaption,
.mosaic li:focus-within figcaption {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .mosaic figcaption {
    opacity: 1;
    transform: none;
  }
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--hair);
}

.faq-list details {
  border-bottom: 1px solid var(--hair);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  list-style: none;
  cursor: pointer;
}

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

.faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--green);
  transition: transform 300ms var(--ease);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-list details[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-list details p {
  max-width: 60ch;
  padding-bottom: 22px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* About */
.gallery {
  position: relative;
}

.gallery-track {
  display: grid;
  grid-auto-columns: clamp(260px, 32vw, 420px);
  grid-auto-flow: column;
  gap: 20px;
  padding: 4px max(24px, calc((100vw - 1120px) / 2)) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1120px) / 2));
  scrollbar-width: none;
  list-style: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track li {
  scroll-snap-align: start;
}

.gallery-track img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--stone);
}

.gallery-track figcaption {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: var(--shell);
  margin: 24px auto 0;
}

.gallery-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--stone);
  cursor: pointer;
  transition: background-color 160ms var(--ease), opacity 160ms var(--ease);
}

.gallery-controls button:hover {
  background: var(--stone-2);
}

.gallery-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-controls svg {
  width: 18px;
  height: 18px;
}

.dan-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.dan-photo {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(circle at 30% 20%, #23402d, var(--night-2) 70%);
  aspect-ratio: 4 / 5;
  place-items: center;
}

.dan-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}

.dan-photo span {
  color: var(--lime);
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.dan-copy .body {
  margin-top: 22px;
}

.creds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
}

.creds li {
  padding-top: 20px;
  border-top: 1px solid var(--night-hair);
}

.creds strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.creds span {
  display: block;
  margin-top: 8px;
  color: var(--night-ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ocd blockquote p {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.ocd blockquote p em {
  color: var(--green);
  font-style: normal;
}

.ocd .body {
  margin-top: 28px;
}

.ocd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.contact-list {
  margin-top: 40px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}

.contact-list a {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: 16px;
  align-items: center;
  padding-block: 18px;
  border-bottom: 1px solid var(--hair);
  transition: color 160ms var(--ease);
}

.contact-list .icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green);
  border-radius: 50%;
  background: rgba(40, 96, 59, 0.1);
}

.contact-list .icon svg {
  width: 20px;
  height: 20px;
}

.contact-list small {
  display: block;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.contact-list strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list .chev {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
  transition: transform 200ms var(--ease);
}

.contact-list a:hover .chev {
  transform: translateX(3px);
}

@media (min-width: 821px) {
  .contact-grid .quote-panel {
    position: sticky;
    top: calc(var(--nav-h) + 28px);
  }
}

.quote-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--night-ink);
  background: var(--night);
  box-shadow: 0 30px 70px rgba(12, 15, 13, 0.28);
}

/* Slow, soft green glow drifting behind the card. */
.quote-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.quote-glow span {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.quote-glow span:nth-child(1) {
  top: -30%;
  right: -20%;
  background: radial-gradient(circle, rgba(162, 198, 61, 0.55), transparent 65%);
  animation: glow-drift-a 18s ease-in-out infinite alternate;
}

.quote-glow span:nth-child(2) {
  bottom: -35%;
  left: -25%;
  background: radial-gradient(circle, rgba(40, 96, 59, 0.9), transparent 65%);
  animation: glow-drift-b 22s ease-in-out infinite alternate;
}

@keyframes glow-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18%, 22%, 0) scale(1.15); }
}

@keyframes glow-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(20%, -16%, 0) scale(0.95); }
}

.quote-panel-inner {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 4.5vw, 52px);
}

.quote-panel .title {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.quote-panel .body {
  margin-bottom: 30px;
  color: var(--night-ink-2);
}

.button-lime {
  color: var(--night);
  background: var(--lime);
}

.button-lime:hover {
  background: #b6d85a;
}

.quote-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--white);
  font-size: 1.0625rem;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a8a8e;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(40, 96, 59, 0.16);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #c4372b;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field-hint {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  color: #b3261e;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status a {
  text-decoration: underline;
}

.quote-form .button {
  justify-self: start;
  min-width: 160px;
}

.quote-form .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-note {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

/* Quote modal: centred sheet over a frosted page. */
.quote-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  overscroll-behavior: contain;
}

.quote-modal[open] {
  animation: sheet 480ms var(--ease);
}

.quote-modal::backdrop {
  background: rgba(16, 22, 18, 0.28);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
  animation: frost 400ms var(--ease);
}

@keyframes frost {
  from { background: rgba(16, 22, 18, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
}

.quote-sheet {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
}

.quote-sheet .title {
  padding-right: 40px;
}

.quote-sheet .body {
  margin: 8px 0 24px;
}

.quote-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--stone);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.quote-close:hover {
  color: var(--ink);
  background: var(--stone-2);
}

.quote-close svg {
  width: 16px;
  height: 16px;
}

.quote-modal .field input,
.quote-modal .field textarea {
  border-color: var(--hair);
  background: #fafaf8;
}

.quote-modal .field input:focus,
.quote-modal .field textarea:focus {
  background: var(--white);
}

.captcha:empty {
  display: none;
}

/* Apexia Captcha widget, themed to the brand. display:block is required or it collapses to 2px. */
cap-widget {
  display: block;
  --cap-widget-width: 100%;
  --cap-background: #fafaf8;
  --cap-color: var(--ink);
  --cap-border-color: var(--hair);
  --cap-border-radius: var(--radius-sm);
  --cap-checkbox-border-radius: 8px;
  --cap-spinner-color: var(--green);
  --cap-spinner-background-color: #dbe8df;
  --cap-focus-ring: var(--green);
  --cap-font: inherit;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.quote-done {
  padding-block: 12px;
  text-align: center;
}

.quote-done .body {
  margin: 10px auto 26px;
}

.quote-done .button {
  min-width: 160px;
}

/* Footer credit */
/* The Apexia credit always sits on its own centred row at the very bottom of the footer. */
.credit {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
  margin-top: 14px;
  opacity: 0.6;
  transition: opacity 200ms var(--ease);
}

.credit:hover {
  opacity: 1;
}

.credit img {
  width: 150px;
  height: auto;
  filter: invert(1);
}

/* Legal pages (privacy policy): sticky contents beside a comfortable reading column. */
.legal-layout > * {
  min-width: 0; /* let wide tables scroll inside their own box instead of stretching the page */
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  font-size: 0.875rem;
}

.legal-toc p {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 600;
}

.legal-toc ol {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--hair);
}

.legal-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  color: var(--ink-2);
  border-left: 2px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.legal-toc a:hover {
  color: var(--green);
  border-left-color: var(--lime);
}

.legal-body {
  max-width: 72ch;
}

.legal-intro {
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--stone);
  color: var(--ink) !important;
  font-size: 1.0625rem;
}

.legal-body h2 {
  margin: 52px 0 14px;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.legal-body h3 {
  margin: 24px 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal-body p,
.legal-body li,
.legal-body td,
.legal-body dd {
  color: #3a3a3c;
  line-height: 1.7;
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.legal-facts {
  display: grid;
  margin: 18px 0;
  border-top: 1px solid var(--hair);
}

.legal-facts div {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}

.legal-facts dt {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.legal-facts dd {
  margin: 0;
  font-weight: 500;
}

.legal-table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th {
  padding: 12px 16px;
  color: var(--ink);
  background: var(--stone);
  font-weight: 600;
  text-align: left;
}

.legal-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--hair);
  vertical-align: top;
}

.legal-body a,
.form-note a,
.footer-bottom a:not(.credit) {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: var(--stone);
  }

  .legal-toc ol {
    grid-template-columns: 1fr 1fr;
    border-left: 0;
  }

  .legal-toc a {
    padding-left: 0;
    border-left: 0;
  }

  .legal-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Thank-you sheet */
.modal {
  width: min(400px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.modal[open] {
  animation: sheet 420ms var(--ease);
}

@keyframes sheet {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-body {
  padding: 36px 28px 28px;
  text-align: center;
}

.modal-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--green);
}

.modal-icon svg {
  width: 26px;
  height: 26px;
}

.modal h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.modal p {
  margin: 10px 0 24px;
  color: var(--ink-2);
}

.modal .button {
  width: 100%;
}

/* Footer */
.footer {
  position: relative;
  padding-block: 48px 28px;
  color: var(--ink-2);
  background: var(--stone);
  font-size: 0.8125rem;
}

.footer::before,
.footer::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, 92vw);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.footer::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime) 30%, var(--green) 50%, var(--lime) 70%, transparent);
  animation: glow-line 5s ease-in-out infinite;
}

.footer::after {
  top: -14px;
  height: 30px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(162, 198, 61, 0.7), transparent 72%);
  filter: blur(8px);
  animation: glow-halo 5s ease-in-out infinite;
}

@keyframes glow-line {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes glow-halo {
  0%, 100% { opacity: 0.15; transform: translateX(-50%) scaleX(0.6); }
  50% { opacity: 0.9; transform: translateX(-50%) scaleX(1); }
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hair);
}

.footer-brand img {
  width: 150px;
  height: auto;
}

.footer-brand p {
  margin-top: 14px;
  line-height: 1.6;
}

.footer h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
}

/* Tape measure scroll indicator: replaces the scrollbar on desktop with a mouse.
   The housing sits in the top-right corner; the blade runs out of its base down the edge as you scroll. */
.tape {
  display: none;
}

@media (min-width: 1250px) and (pointer: fine) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  .tape {
    --tape-p: 0;
    --case: 54px;
    position: fixed;
    z-index: 120;
    top: 6px;
    right: 6px;
    bottom: 10px;
    display: block;
    width: var(--case);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(12px, -16px, 0);
    transition: opacity 400ms var(--ease), transform 500ms var(--ease), visibility 0s linear 500ms;
  }

  /* Hidden over the header; slides in once you scroll past it. */
  .tape.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 400ms var(--ease), transform 500ms var(--ease);
  }

  .tape-case {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--case);
    height: var(--case);
    padding: 0;
    border: 0;
    background: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
    pointer-events: auto;
    cursor: pointer;
  }

  .tape-case svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .tape-hub {
    transform: rotate(calc(var(--tape-p) * 2160deg));
    transform-origin: 30px 30px;
  }

  /* Blade: cupped steel in lime, printed scale on the left, runs out of the housing's mouth. */
  .tape-blade {
    position: absolute;
    top: calc(var(--case) - 6px);
    right: calc(var(--case) - 33px);
    width: 18px;
    height: calc(100% - var(--case) + 6px);
    overflow: hidden;
    clip-path: inset(0 0 calc((1 - var(--tape-p)) * 100%) 0);
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.22));
    pointer-events: auto;
    cursor: ns-resize;
    contain: strict;
  }

  .tape-marks {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background:
      repeating-linear-gradient(180deg, #111 0 1.2px, transparent 1.2px 40px) left top / 10px 100% no-repeat,
      repeating-linear-gradient(180deg, #111 0 1px, transparent 1px 20px) left top / 7px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(17, 17, 17, 0.75) 0 1px, transparent 1px 4px) left top / 4px 100% no-repeat,
      linear-gradient(90deg, #7f9f27 0%, #c4de5c 18%, #a2c63d 55%, #86a92b 88%, #6b8a1f 100%);
  }

  .tape-marks i {
    position: absolute;
    right: 2px;
    color: #111;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.04em;
    transform: translateY(-4px);
  }

  .tape-marks i.red {
    padding: 1px 1px 0;
    color: var(--white);
    border-radius: 1px;
    background: #c4372b;
  }

  /* Brass end hook with a rivet, riding on the tip of the blade. */
  .tape-hook {
    position: absolute;
    top: calc(var(--case) - 6px);
    right: calc(var(--case) - 35px);
    width: 22px;
    height: 9px;
    border-radius: 1px 1px 2px 2px;
    background: linear-gradient(180deg, #e7c46b, #b98a2b 60%, #8a6418);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(calc(var(--tape-p) * var(--tape-len, 0px) - 6px));
    pointer-events: auto;
    cursor: grab;
  }

  .tape-hook span {
    position: absolute;
    top: 2px;
    left: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff4cf, #8a6418);
  }

  .tape.is-dragging .tape-hook {
    cursor: grabbing;
  }

}

/* Floating quick actions on phones */
.quick-actions {
  display: none;
}

/* Reveal: visible by default; only animates once JS is running. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

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

/* Big service cards: a gentle fade with a short lift, so the grid doesn't bounce as you scroll. */
.js .service.reveal {
  transform: translate3d(0, 12px, 0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .service.reveal.is-visible {
  transform: none;
}

/* Tight desktop: the nav call link shows its icon only. */
@media (min-width: 821px) and (max-width: 1100px) {
  .nav-call span {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-large {
    grid-column: span 2;
    grid-row: auto;
    min-height: 480px;
  }

  .tile-side {
    grid-column: span 1;
  }

  .project,
  .project-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .services .service {
    grid-column: span 6;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Phone and small tablet */
@media (max-width: 820px) {
  :root {
    --nav-h: 52px;
    --shell: calc(100vw - 40px);
    --shell-wide: calc(100vw - 24px);
    --radius: 22px;
  }

  .brand img {
    height: 32px;
  }

  .menu-toggle {
    display: block;
  }

  /* Mobile menu: a full-height sheet with big links that cascade in, and actions pinned to the bottom. */
  .nav-links {
    position: fixed;
    z-index: -1;
    top: var(--nav-h);
    right: 0;
    left: 0;
    display: grid;
    height: calc(100dvh - var(--nav-h));
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto) 1fr auto;
    align-content: start;
    gap: 0 10px;
    padding: 8px 20px max(24px, env(safe-area-inset-bottom));
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  }

  .nav-links a:not(.nav-call):not(.nav-quote) {
    position: relative;
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--hair);
    border-radius: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 400ms var(--ease) var(--d, 0ms), transform 500ms var(--ease) var(--d, 0ms), color 160ms var(--ease);
  }

  /* Chevron at the end of each row. */
  .nav-links a:not(.nav-call):not(.nav-quote)::after {
    width: 10px;
    height: 10px;
    content: "";
    border-top: 2.5px solid var(--hair);
    border-right: 2.5px solid var(--hair);
    transform: rotate(45deg);
  }

  .nav-links a[aria-current="page"]:not(.nav-call):not(.nav-quote) {
    color: var(--green);
  }

  .nav-links a[aria-current="page"]:not(.nav-call):not(.nav-quote)::after {
    border-color: var(--lime);
  }

  .nav-links.is-open a:not(.nav-call):not(.nav-quote),
  .nav-links.is-open .nav-call,
  .nav-links.is-open .nav-quote {
    opacity: 1;
    transform: none;
  }

  .nav-links a:nth-child(1) { --d: 60ms; }
  .nav-links a:nth-child(2) { --d: 110ms; }
  .nav-links a:nth-child(3) { --d: 160ms; }
  .nav-links a:nth-child(4) { --d: 210ms; }
  .nav-links a:nth-child(5),
  .nav-links a:nth-child(6) { --d: 280ms; }

  /* Actions: call and quote side by side at the foot of the sheet. */
  .nav-links .nav-call,
  .nav-links .nav-quote {
    grid-row: 6;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 14px 12px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 400ms var(--ease) var(--d, 0ms), transform 500ms var(--ease) var(--d, 0ms);
  }

  .nav-links .nav-call {
    grid-column: 1;
    color: var(--green);
    background: rgba(40, 96, 59, 0.1);
  }

  .nav-links .nav-call span {
    display: inline;
  }

  .nav-links .nav-quote {
    grid-column: 2;
    color: var(--white);
    background: var(--green);
    box-shadow: none;
  }

  .dan-grid,
  .contact-grid,
  .ocd-grid,
  .faq {
    grid-template-columns: 1fr;
  }

  /* Phones: the sketch sits under the text instead of behind it. */
  .sketch-section {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .sketch-section::before {
    display: none;
  }

  .digger-video {
    width: 72vw;
    opacity: 0.8;
  }

  .dan-section {
    padding-bottom: calc(var(--space) + 30vw);
  }

  .sketch-section .sketch-video {
    position: relative;
    order: 2;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-top: 24px;
    object-position: 85% bottom;
    transform: scale(1.5);
    transform-origin: right bottom;
  }

  .mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 140px;
    gap: 10px;
  }

  .mosaic li:nth-child(1) { grid-column: span 6; grid-row: span 3; }
  .mosaic li:nth-child(2) { grid-column: span 3; grid-row: span 2; }
  .mosaic li:nth-child(3) { grid-column: span 3; grid-row: span 2; }
  .mosaic li:nth-child(4),
  .mosaic li:nth-child(5),
  .mosaic li:nth-child(6),
  .mosaic li:nth-child(7) { grid-column: span 3; grid-row: span 2; }

  .dan-photo {
    max-width: 420px;
  }

  body {
    padding-bottom: 84px;
  }

  .scroll-cue {
    bottom: 104px;
  }

  .hero-proof {
    font-size: 0.875rem;
  }

  .plot-dim-h {
    right: -18px;
  }

  .hero-proof li:last-child {
    flex-basis: 100%;
    justify-content: center;
  }

  .hero-proof li:last-child::before {
    display: none;
  }

  .quick-actions {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  }

  .quick-actions a {
    display: grid;
    min-height: 48px;
    place-items: center;
    border-radius: 12px;
    color: var(--green);
    background: rgba(40, 96, 59, 0.1);
    font-weight: 600;
  }

  .quick-actions a + a {
    color: var(--white);
    background: var(--green);
  }

  .menu-open .quick-actions {
    display: none;
  }
}

.swipe-hint,
.project-dots {
  display: none;
}

@media (max-width: 700px) {
  /* Three builds on phones: a sideways swipe carousel, photo first, one card per build. */
  .swipe-hint {
    display: inline;
  }

  .projects {
    display: flex;
    gap: 14px;
    margin-inline: -20px;
    padding: 4px 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .projects::-webkit-scrollbar {
    display: none;
  }

  .projects .project,
  .projects .project-reverse {
    flex: 0 0 86%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    scroll-snap-align: start;
  }

  .projects .project + .project {
    margin-top: 0;
  }

  .projects .slideshow {
    order: -1;
    width: 100%;
  }

  .projects .project-copy h3 {
    font-size: 1.6rem;
  }

  .projects .project-copy > p {
    margin-top: 8px;
    font-size: 1rem;
  }

  .projects .steps {
    display: none;
  }

  .project-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
  }

  .project-dots span {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
    transition: width 300ms var(--ease), background-color 300ms var(--ease);
  }

  .project-dots span.is-on {
    width: 22px;
    background: var(--lime);
  }

  .plot-cta {
    margin-top: 72px;
  }

  /* Services on phones: the sub-nav becomes swipeable tabs that swap one card at a time. */
  .subnav ul {
    justify-content: flex-start;
    gap: 22px;
    padding-inline: 4px 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    scroll-snap-type: x proximity;
  }

  .subnav a {
    padding: 16px 0 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    scroll-snap-align: start;
  }

  .services.is-tabbed .service {
    display: none;
  }

  .services.is-tabbed .service.is-active {
    display: flex;
    animation: tab-in 450ms var(--ease);
  }

  @keyframes tab-in {
    from { opacity: 0; transform: translate3d(var(--tab-from, 24px), 0, 0); }
    to { opacity: 1; transform: none; }
  }

  .project,
  .project-reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-reverse .project-copy {
    order: 0;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services .service {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile-large,
  .tile-side {
    grid-column: auto;
  }

  .tile-large {
    min-height: 420px;
  }

  .button-row .button {
    flex: 1 1 100%;
  }

  .form-row,
  .creds {
    grid-template-columns: 1fr;
  }

  /* Footer on phones: centred brand, two link columns, comfortable tap targets. */
  .footer {
    padding-top: 44px;
    font-size: 0.9375rem;
  }

  .footer-top {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 32px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand img {
    width: 170px;
    margin-inline: auto;
  }

  .footer-brand p {
    max-width: 30ch;
    margin: 12px auto 0;
  }

  .footer ul {
    gap: 2px;
  }

  .footer ul a {
    display: block;
    padding: 7px 0;
    white-space: nowrap;
  }

  .footer-top > div {
    text-align: center;
  }

  .footer h2 {
    margin-bottom: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }



  .quote-actions .button {
    width: 100%;
  }

  .quote-actions {
    justify-content: center;
  }

  .cta-band .button-row {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero-image,
  .hero-copy {
    transform: none;
    opacity: 1;
  }

  .js .hero-line,
  .js .hero .subhead,
  .js .hero .button-row,
  .js .hero-proof,
  .js .hero-scribble path {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }

  .plot-frame rect,
  .quote-glow span,
  .service-quote-icon,
  .service-quote-icon svg,
  .scroll-cue,
  .footer::before,
  .footer::after,
  .js .level-tilt,
  .js .level-bubble {
    animation: none !important;
    transform: none !important;
  }

  .js .project-copy.reveal .steps li {
    opacity: 1;
    transform: none;
  }
}
