/* K Scale Marketing: one-page site. Mobile first. Values come from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html.is-landing { scroll-behavior: auto; }
@media (min-width: 900px) { html { scroll-padding-top: 100px; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
section[tabindex="-1"]:focus { outline: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 50; background: var(--ink); color: var(--surface); padding: var(--space-2) var(--space-4); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--ink); }
h1 { font-size: clamp(48px, 11vw, 112px); line-height: 0.95; letter-spacing: -0.045em; }
h2 { font-size: clamp(36px, 6.4vw, 72px); line-height: 0.98; letter-spacing: -0.04em; max-width: 14ch; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.eyebrow {
  font-size: 12px; line-height: 1.4; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}
.lead { font-size: 18px; line-height: 1.5; letter-spacing: -0.005em; color: var(--ink-secondary); max-width: 34rem; }

.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; }

/* ---------- Buttons ---------- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 26px;
  border: 0; border-radius: var(--radius-none);
  background: #111111; color: #FFFFFF;
  font: 600 13px/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn:hover { background: #2B2B2B; }
.btn:active { transform: translateY(1px); }
.btn span { display: inline-block; }
.btn-arrow { transition: transform .45s var(--ease-out); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow, .link-cta:hover .btn-arrow, .link-cta:focus-visible .btn-arrow { transform: translateX(4px); }
.btn--sm { padding: 13px 18px; }

/* Text link CTA with a drawn underline: on hover it clears to the right, then redraws from the left. */
.link-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font: 600 13px/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: #111111;
}
.link-label {
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px;
  padding-bottom: 6px;
}
.link-cta:hover .link-label, .link-cta:focus-visible .link-label { animation: underline-redraw .7s var(--ease-out); }
@keyframes underline-redraw {
  0%   { background-size: 100% 1px; background-position: right bottom; }
  45%  { background-size: 0% 1px;   background-position: right bottom; }
  46%  { background-size: 0% 1px;   background-position: left bottom; }
  100% { background-size: 100% 1px; background-position: left bottom; }
}

/* ---------- Nav ----------
   Floating, rounded bar fixed near the top of the viewport. Translucent white with blur, a thin border and soft shadow.
   Once the page scrolls (js/animations.js adds .is-scrolled) it turns more opaque with a slightly deeper shadow. */
:root { --nav-top: 12px; --nav-side: 12px; --nav-h: 60px; }
.nav-shell {
  position: fixed; z-index: 30;
  top: var(--nav-top); left: var(--nav-side); right: var(--nav-side);
  max-width: 1240px; margin: 0 auto;
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  height: var(--nav-h);
  padding: 0 8px 0 18px;
  /* Frosted glass: 75% white with an 18px blur, so the page shows through softly. */
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 16px;
  /* a faint inner top highlight reads as glass on dark images; the outer shadow lifts it off white */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 24px rgba(17, 17, 17, 0.06);
  transition: background-color .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.nav-shell.is-scrolled .nav { background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 30px rgba(17, 17, 17, 0.09); }
.nav-shell.is-open .nav { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
/* Browsers without backdrop-filter: near-solid white so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .nav-shell.is-scrolled .nav, .mobile-menu { background: rgba(255, 255, 255, 0.96); }
}
.nav-cta { display: none; }
/* Nav CTA: black pill with bold white text; the arrow nudges right on hover (shared .btn-arrow rule). */
.nav .nav-cta {
  background: #111111; color: #FFFFFF;
  border-radius: 22px;
  padding: 13px 22px 13px 24px; gap: 12px;
  font-weight: 700; letter-spacing: 0.1em;
  box-shadow: none;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav .nav-cta:hover { background: #2B2B2B; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #111111; }

/* Hamburger: two lines that turn into an X when open */
.nav-toggle {
  position: relative; width: 44px; height: 44px; flex: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; background: transparent; color: #111111; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover, .nav-toggle:active { background: rgba(17, 17, 17, 0.05); }
.nav-toggle-bar { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile dropdown: attached under the bar, same width, opens with a short downward reveal */
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(17, 17, 17, 0.07); border-top: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.12);
  overflow: hidden;
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0 round 0 0 16px 16px);
  transition: clip-path .5s var(--ease-out), opacity .3s ease, visibility 0s linear .5s;
}
.nav-shell.is-open .mobile-menu {
  visibility: visible; opacity: 1;
  clip-path: inset(0 0 0 0 round 0 0 16px 16px);
  transition: clip-path .5s var(--ease-out), opacity .2s ease, visibility 0s;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 4px 18px 10px; }
.mobile-menu li + li { border-top: 1px solid rgba(17, 17, 17, 0.08); }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; padding: 0 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; text-transform: uppercase;
  color: #111111; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu a span { font-family: var(--font-sans); font-weight: 400; font-size: 18px; color: #3A3A3A; transition: transform .35s var(--ease-out), color .3s ease; }
.mobile-menu a:hover span, .mobile-menu a:focus-visible span { transform: translateX(4px); color: #111111; }
.mobile-menu a:active { opacity: .6; }
.mobile-menu .mobile-menu-cta {
  margin: 10px 0 4px; padding: 0 18px; min-height: 56px;
  background: #111111; color: #FFFFFF;
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.12em;
}
.mobile-menu .mobile-menu-cta span { color: #FFFFFF; font-size: 15px; }
.mobile-menu li:has(.mobile-menu-cta) { border-top: 0; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.035em; white-space: nowrap; }
/* Monogram: source file has a white square. View box trims the empty margin only (the mark itself is untouched);
   multiply drops the white on light surfaces. Swap for transparent marks when available. */
/* The mark sits in the middle of a square file with white margins. Earlier this was trimmed with object-view-box,
   which Safari does not support (it squashed the whole square into 40×28). Now the square image is drawn at 74px,
   pulled into a 40×28 slot with negative margins and clipped to the mark, so it keeps its exact proportions everywhere.
   Visible area = the same crop as before: 25%–79% across, 31%–69% down. */
.mark {
  flex: none; box-sizing: content-box;
  width: 74px; height: 74px; max-width: none; object-fit: contain;
  margin: -23px -15.5px -23px -18.5px;
  clip-path: inset(31% 21% 31% 25%);
  mix-blend-mode: multiply;
}
.mark--inverse { filter: invert(1); mix-blend-mode: screen; }
.nav-links { display: none; gap: 36px; justify-content: center; }
.nav-links a {
  position: relative; padding: 6px 0;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: #3A3A3A;
  transition: color .3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #111111;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible { color: #111111; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 340px) { .wordmark { display: none; } }
@media (min-width: 900px) {
  :root { --nav-top: 20px; --nav-side: 24px; --nav-h: 64px; }
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 10px; }
  .nav .brand { padding-left: 12px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; justify-self: end; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ----------
   Full-width photo background with a dark overlay; copy sits left, vertically centred, on the page grid. */
.hero { background: #FFFFFF; }
.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  background: #111111; color: #FFFFFF;
  min-height: max(620px, 100svh);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 55%; }
/* Overlay: an even 45% black, plus a gradient that darkens the side the text sits on. */
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(0deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 40%),
    rgba(0,0,0,.45);
}
.hero-content { padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(40px, 8vh, 96px)); padding-bottom: clamp(56px, 10vh, 120px); }
.hero-eyebrow { color: rgba(255,255,255,.78); margin-bottom: clamp(20px, 3vw, 28px); }
.hero-title {
  font-family: var(--font-display); font-weight: 600; color: #FFFFFF;
  font-size: clamp(44px, 10.5vw, 160px);
  line-height: 0.94; letter-spacing: -0.05em;
  margin: 0 0 0 -0.04em; /* optical alignment of the B with the text column */
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .line > span { display: inline-block; }
.hero-lead {
  margin-top: clamp(24px, 3.5vw, 40px);
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; letter-spacing: -0.01em;
  color: rgba(255,255,255,.86); max-width: 36rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: clamp(32px, 4vw, 44px); }

/* Light buttons for use on the photo */
.btn--light { background: #FFFFFF; color: #111111; }
.btn--light:hover { background: #E9E9E9; }
.btn--outline { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn--outline:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px #FFFFFF; }
.hero :focus-visible { outline-color: #FFFFFF; }

@media (max-width: 760px) {
  .hero-bg img { object-position: 70% 60%; }
  .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 60%), rgba(0,0,0,.52); }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
}

/* Image frames (placeholders until images are approved) */
.frame {
  position: relative; border-radius: 0; overflow: hidden;
  background: #F2F2F2;
  display: flex; align-items: flex-end; padding: var(--space-4);
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-note { font-size: 13px; color: #8A8A8A; }
.frame--card { aspect-ratio: 3 / 2; margin-bottom: var(--space-6); }

/* Industries ticker
   Light grey band under the hero. Two identical lists; the track moves exactly one list width (-50%),
   so the loop has no visible jump. Each item carries its own divider, so both halves are the same width. */
.trades {
  position: relative; overflow: hidden;
  background: #F6F6F6;
  border-bottom: 1px solid #EAEAEA;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.trades-track { display: flex; width: max-content; animation: trades 42s linear infinite; will-change: transform; }
.trades:hover .trades-track { animation-play-state: paused; }
.trades-list { display: flex; margin: 0; padding: 0; list-style: none; }
.trades-list li {
  display: flex; align-items: center;
  padding: clamp(22px, 3vw, 36px) 0;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(26px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.025em;
  color: #111111;
}
.trades-list li:nth-child(even) { color: #9B9B9B; }
/* Divider: a fine slanted rule between industries */
.trades-list li::after {
  content: ""; flex: none;
  width: 1px; height: 0.72em; background: #BDBDBD;
  transform: rotate(18deg);
  margin: 0 clamp(28px, 3.6vw, 56px);
}
@keyframes trades { to { transform: translateX(-50%); } }

/* Photos and placeholders, shared */
.photo { margin: 0; overflow: hidden; background: #F2F2F2; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-placeholder { background: #F2F2F2; display: flex; align-items: flex-end; padding: var(--space-4); }
.placeholder-label { font-size: 13px; color: #8A8A8A; }

/* Scroll reveal for images: the frame opens from the bottom and the photo settles. */
.js .reveal-media { clip-path: inset(12% 0 0 0); transition: clip-path 1.2s var(--ease-out); }
.js .reveal-media img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.js .reveal-media.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-media.is-in img { transform: none; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--space-8); }
.about-photo { aspect-ratio: 4 / 5; }
.about-copy { padding-top: var(--space-6); border-top: 1px solid var(--hairline); max-width: 36rem; }
.about-copy .lead { font-size: clamp(18px, 1.6vw, 21px); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section:not(.band) { border-top: 1px solid var(--hairline); }
.split { display: grid; gap: var(--space-8); }
.prose { display: grid; gap: var(--space-4); max-width: 34rem; color: var(--ink-muted); }
.prose .lead { color: var(--ink-secondary); }

/* What we do: full-bleed inverse band */
.band { background: var(--inverse); color: var(--on-inverse); }
.band h2, .band h3 { color: var(--on-inverse); }
.band .eyebrow { color: var(--on-inverse-muted); }
.steps { list-style: none; margin: var(--space-16) 0 0; padding: 0; display: grid; }
/* Each step: icon, then number, heading and text, stacked. Thin rule above each step. */
.steps li {
  padding: var(--space-6) 0;
  border-top: 1px solid color-mix(in srgb, var(--on-inverse) 18%, transparent);
}
.step-icon {
  display: block; width: 36px; height: 36px;
  color: #E6E6E6; opacity: .85;
  margin-bottom: var(--space-4);
  transition: transform .5s var(--ease-out), opacity .4s ease;
}
.steps li:hover .step-icon { transform: translateY(-4px); opacity: 1; }
.step-num {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -0.04em;
  color: var(--on-inverse);
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: var(--space-2); }
@media (prefers-reduced-motion: reduce) {
  .step-icon { transition: none; }
  .steps li:hover .step-icon { transform: none; }
}
.steps p { color: var(--on-inverse-muted); max-width: 32ch; }
/* Payment statement: large white heading with a short grey paragraph underneath */
.payment {
  margin-top: var(--space-16); padding-top: var(--space-12);
  border-top: 1px solid color-mix(in srgb, var(--on-inverse) 18%, transparent);
}
.statement {
  font-family: var(--font-display); font-weight: 600; color: #FFFFFF;
  font-size: clamp(40px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.045em;
  max-width: 15ch;
  text-wrap: balance;
}
.statement-text {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 580px;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.005em;
  color: #BDBDBD;
}
@media (min-width: 900px) { .statement-text { font-size: 19px; } }

/* Services */
.section-head { display: grid; gap: var(--space-6); margin-bottom: var(--space-12); }
.section-intro { color: var(--ink-muted); max-width: 30rem; }
.services { display: grid; gap: var(--space-12); }
.service h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: var(--space-4); }
.service p { color: var(--ink-muted); max-width: 32rem; }
.service .tags {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--ink-secondary);
}

/* The process: alternating image and text rows, joined by thin rules */
.process-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.process-row {
  display: grid; gap: var(--space-8);
  padding: var(--space-8) 0 var(--space-12);
  border-bottom: 1px solid var(--hairline);
}
.process-media { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #F2F2F2; }
.process-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.process-text { max-width: 30rem; }
.process-num {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(80px, 10vw, 152px); line-height: 0.85; letter-spacing: -0.06em;
  color: var(--ink);
  margin: 0 0 var(--space-8) -0.05em;
}
.process-row h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: var(--space-4); }
.process-row p { color: var(--ink-muted); font-size: 16px; line-height: 1.65; }
.process-cta { margin-top: var(--space-12); }
.process .section-head { grid-template-columns: 1fr; align-items: start; }
.process h2 { max-width: 16ch; }
.process .section-intro { font-size: 18px; line-height: 1.55; max-width: 36rem; }

/* Contact */
.contact-lead { margin-top: var(--space-8); }
.contact-details { margin: var(--space-12) 0 0; display: grid; }
/* Each row: fixed label column, values start at the same point, label and value vertically centred */
.contact-details div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0; border-top: 1px solid var(--hairline);
}
.contact-details dt { font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.contact-details dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact-details div { grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--space-2); } }
.contact-details dd a { text-decoration: none; }
.contact-details dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: var(--space-6); align-content: start; }
.field-row { display: grid; gap: var(--space-6); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 13px; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-muted); border-radius: 0;
  padding: 10px 0;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 9px; }
.form .btn { justify-self: start; }
.form-status { font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--ink); font-weight: 500; }
.form-status.is-success { color: var(--ink); font-weight: 500; padding: var(--space-4) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hairline); }

/* Contact: reassurance points under the intro. Thin check, bold-ish line, muted description. */
.contact-points { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.contact-points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--space-4); align-items: start; }
.contact-check { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-points h3 { font-family: var(--font-sans); font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.contact-points p { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.contact-points + .contact-details { margin-top: var(--space-8); }
/* Close the details list with the same hairline that sits above each row */
.contact-details div:last-child { border-bottom: 1px solid var(--hairline); }
/* Paired fields keep their natural height, so an error message under one never pushes its neighbour's underline down */
.contact .field-row .field { align-content: start; }

/* Desktop: both columns are stretched to the same height by the grid. Spare height goes to the message box on the right
   (so the button stays right under it) or above the contact details on the left, whichever column is shorter.
   Result: the Phone row and the privacy note finish on the same line, without fixed offsets. */
@media (min-width: 900px) {
  .contact .split > div { display: flex; flex-direction: column; }
  .contact .contact-points + .contact-details { margin-top: auto; padding-top: var(--space-8); }
  .contact .form { display: flex; flex-direction: column; }
  .contact .form .field:has(textarea) { flex: 1 1 auto; grid-template-rows: auto 1fr; }
  .contact .form textarea { height: 100%; }
}

/* Contact form heading, privacy line and spam trap */
.form-title { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
/* Button directly under the message box, privacy note directly under the button */
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.form-privacy { font-size: 13px; line-height: 1.5; color: var(--ink-muted); max-width: 22rem; }
.form-privacy a { color: var(--ink); text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.field textarea::placeholder, .field input::placeholder { color: #9A9A9A; }

/* Field errors: hidden until a submit attempt. Monochrome: a heavier underline plus a short message with a small "!" mark. */
.field-error:empty { display: none; }
.field-error {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--ink);
}
.field-error::before {
  content: "!"; flex: none; display: inline-grid; place-items: center;
  width: 15px; height: 15px; margin-top: 1px; border-radius: 50%;
  background: var(--ink); color: var(--surface); font-size: 10px; font-weight: 700; line-height: 1;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom: 2px solid var(--ink); padding-bottom: 9px; }

/* Footer */
.footer { background: var(--inverse); color: var(--on-inverse); padding: var(--space-16) 0 var(--space-8); }
.footer-top { display: grid; gap: var(--space-12); padding-bottom: var(--space-12); }
.brand--inverse .wordmark { color: var(--on-inverse); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.footer-cols > div { display: grid; gap: var(--space-2); align-content: start; }
.footer-cols a, .footer-cols span { text-decoration: none; color: var(--on-inverse); font-size: 15px; }
.footer-cols a:hover { text-decoration: underline; }
.footer-head { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-inverse-muted); margin-bottom: var(--space-2); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--on-inverse) 18%, transparent);
  color: var(--on-inverse-muted);
}
.footer :focus-visible { outline-color: var(--on-inverse); }

/* ---------- Motion ----------
   One page-load sequence in the hero, a slow trades strip, and a gentle reveal on section headings.
   To remove: delete js/animations.js and this block. */
.js .load { opacity: 0; transform: translateY(16px); animation: load-in .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 120ms + 100ms); }
@keyframes load-in { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Hero: the photo fades up from black and settles from a slight zoom; headline lines fade up, then the text and buttons follow. */
.js .hero-bg img { opacity: 0; transform: scale(1.06); animation: bg-reveal 2s var(--ease-out) .05s forwards; }
@keyframes bg-reveal { to { opacity: 1; transform: scale(1); } }
.js .hero-title .line > span {
  opacity: 0; transform: translateY(28px);
  animation: line-up 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 200ms);
}
@keyframes line-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .load, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .js .hero-title .line > span, .js .hero-bg img { opacity: 1; transform: none; animation: none; }
  .js .reveal-media, .js .reveal-media img { clip-path: none; transform: none; transition: none; }
  .trades { -webkit-mask-image: none; mask-image: none; }
  .link-cta:hover .link-label { animation: none; }
  .btn, .btn-arrow, .nav-links a::after { transition: none; }
  .trades-track { animation: none; width: auto; }
  .trades-list[aria-hidden="true"] { display: none; }
  .trades-list { flex-wrap: wrap; padding: 0 var(--gutter); }
}

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; column-gap: var(--space-12); row-gap: var(--space-16); }
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 900px) {

  .hero-stage { min-height: max(680px, 100svh); }
  .hero-content { max-width: var(--max); }
  .hero-content > * { max-width: 62rem; }
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-12); }
  .steps li { padding: var(--space-12) 0 var(--space-6); }
  .step-icon { width: 46px; height: 46px; margin-bottom: var(--space-8); }
  .step-num { font-size: 44px; margin-bottom: var(--space-6); }
  .steps h3 { margin-bottom: var(--space-4); }
  .footer-top { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  /* About: photo left across two rows; headline and copy stacked on the right */
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); row-gap: var(--space-12); align-items: start; }
  .about-photo { grid-column: 1 / span 6; grid-row: 1 / span 2; }
  .about-head { grid-column: 8 / span 5; grid-row: 1; align-self: end; }
  .about-copy { grid-column: 8 / span 5; grid-row: 2; }

  /* Process: two columns, image side alternates */
  .process-row { grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 6vw, 96px); align-items: center; padding: var(--space-12) 0; }
  .process-row:nth-child(even) .process-media { order: 2; }
  .process-media { aspect-ratio: 16 / 11; }
}

/* ---------- Step 02 dashboard image ---------- */
/* Keep the laptop screen in frame when the image is cropped to the step's proportions. */
.process-media .media-dashboard { object-position: 50% 45%; }
.media-note { margin-top: var(--space-4); font-size: 12px; line-height: 1.5; color: #8A8A8A; }

/* ---------- Mobile carousels (Services, The process) ----------
   767px and below: the list scrolls sideways with scroll snapping. Each card is ~86% wide so the next one peeks in.
   The track bleeds to the screen edges inside .wrap, so the page itself never scrolls sideways.
   Dots and keyboard support come from js/carousel.js. Above 767px these rules do nothing. */
.swipe-hint, .carousel-dots { display: none; }
/* Positioned so absolutely placed children (e.g. .sr-only labels) stay inside the track and card offsets are measured from it. */
[data-carousel] { position: relative; }

@media (max-width: 767px) {
  .swipe-hint {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #666666;
  }
  .section-head .swipe-hint { margin-top: calc(var(--space-2) * -1); }

  [data-carousel] {
    display: flex; gap: 16px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  [data-carousel]:focus-visible { outline: 2px solid #111111; outline-offset: 4px; }

  /* Cards are revealed by swiping, so show their content without the scroll-in fade */
  [data-carousel] .reveal, [data-carousel] .reveal-media { opacity: 1; transform: none; clip-path: none; transition: none; }
  [data-carousel] .reveal-media img { transform: none; transition: none; }

  /* Services cards */
  .services.services { display: flex; }

  /* Process cards: image on top, text below */
  .process-rows { border-top: 0; }
  .process-row { display: flex; flex-direction: column; gap: var(--space-6); padding: 0; border-bottom: 0; }
  .process-row .process-media { aspect-ratio: 4 / 3; order: 0; }
  .process-row .process-text { padding-top: var(--space-6); border-top: 1px solid var(--hairline); max-width: none; }
  .process-num { font-size: 72px; margin-bottom: var(--space-6); }
  .process-row h3 { font-size: 26px; }
  .process-row p { font-size: 15px; }

  /* Dots */
  .carousel-dots { display: flex; gap: 2px; margin-top: var(--space-6); }
  .carousel-dot {
    width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: flex-start;
    -webkit-tap-highlight-color: transparent;
  }
  .carousel-dot::before {
    content: ""; display: block; width: 6px; height: 6px; border-radius: 3px; background: #CFCFCF;
    transition: width .35s var(--ease-out), background-color .35s ease;
  }
  .carousel-dot[aria-current="true"]::before { width: 22px; background: #111111; }
  .carousel-dot:focus-visible { outline: 2px solid #111111; outline-offset: 0; border-radius: 4px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  [data-carousel] { scroll-behavior: auto; }
  .carousel-dot::before { transition: none; }
}

/* ---------- Featured service (Website Design & Development) ----------
   Tablet and desktop: spans both columns, image left (half width, same 3:2 proportions as the other cards),
   text right and vertically centred, with a thin rule above. Phones (767px and below): a normal carousel card. */
@media (min-width: 768px) {
  .services .service--featured {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-12); align-items: center;
    padding-top: var(--space-12);
    border-top: 1px solid var(--hairline);
  }
  .service--featured .frame--card { margin-bottom: 0; }
  .service--featured .service-body { max-width: 34rem; }
}

/* ---------- Legal pages (privacy-policy/) ---------- */
.legal { padding-top: clamp(128px, 14vw, 176px); }
.legal-head { max-width: 46rem; padding-bottom: var(--space-8); border-bottom: 1px solid var(--hairline); }
.legal-title { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; max-width: 16ch; margin-bottom: var(--space-6); }
.legal-updated { margin-top: var(--space-6); font-size: 13px; color: var(--ink-muted); }
.legal-body { max-width: 46rem; }
.legal-body section { padding: var(--space-8) 0; border-bottom: 1px solid var(--hairline); }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; max-width: none; margin-bottom: var(--space-4); }
.legal-body h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin: var(--space-6) 0 var(--space-2); }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.65; color: var(--ink-secondary); }
.legal-body p + p { margin-top: var(--space-4); }
.legal-body ul { margin: var(--space-4) 0 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.legal-body ul + p { margin-top: var(--space-4); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
/* Draft markers: remove the notice and every .tbc once the details are confirmed */
.legal-draft { margin-bottom: var(--space-8); padding: var(--space-4); border: 1px dashed var(--ink-muted); font-size: 14px; line-height: 1.5; color: var(--ink-secondary); max-width: 46rem; }
.tbc { background: var(--surface-sunken); color: var(--ink); padding: 1px 6px; font-size: 0.9em; font-weight: 500; box-shadow: inset 0 -1px 0 var(--ink-muted); }

/* ---------- Phone refinements ----------
   Tuned per section for screens up to 767px. Desktop and tablet layouts are untouched. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (max-width: 760px) {
  /* Headline sized to the screen: "all year round." (about 5.55em wide) fills the text column on any phone, capped at 88px */
  .hero-title { font-size: min(calc(17.2vw - 8px), 88px); }
  .hero-eyebrow { margin-bottom: var(--space-4); }
  .hero-lead { margin-top: var(--space-6); }
  .hero-ctas { margin-top: var(--space-8); gap: 12px; }
  .hero-ctas .btn { min-height: 54px; }
}

@media (max-width: 767px) {
  /* Even line lengths on headings, no single-word last lines in paragraphs */
  h2, .statement, .service h3, .process-row h3, .legal-title { text-wrap: balance; }
  main p, .legal-body p, .legal-body li { text-wrap: pretty; }

  /* About: square photo keeps the patio in view without a very tall block */
  .about-grid { gap: var(--space-6); }
  .about-photo { aspect-ratio: 1 / 1; }
  .about-copy { padding-top: var(--space-6); }

  /* What we do: tighter gaps between the heading, the steps and the payment statement */
  .steps { margin-top: var(--space-8); }
  .payment { margin-top: var(--space-8); padding-top: var(--space-8); }
  .statement { font-size: clamp(36px, 10.5vw, 56px); }

  /* Services and The process: heading block closer to its cards */
  .section-head { gap: var(--space-4); margin-bottom: var(--space-8); }
  .process-row p { font-size: 16px; }
  .process-cta { margin-top: var(--space-8); }
  .process-cta .btn { width: 100%; justify-content: center; min-height: 54px; }

  /* Contact: full-width, thumb-sized submit button */
  .contact .form-actions .btn { width: 100%; justify-content: center; min-height: 54px; }
  .contact-lead { margin-top: var(--space-6); }

  /* Footer: a little less padding on phones */
  .footer { padding-top: var(--space-12); }
  .footer-top { gap: var(--space-8); padding-bottom: var(--space-8); }
}

/* Phones: menu links land with the section's first line ~32px under the nav instead of ~90px.
   (scroll-padding-top stays at 88px, so focused form fields still clear the nav.) */
@media (max-width: 767px) {
  main > .section[id] { scroll-margin-top: -56px; }
}

/* <picture> wrappers (AVIF with JPEG fallback) take no part in layout, so every image rule above still sizes the <img> */
picture { display: contents; }

/* ---------- Touch targets (phones) ----------
   Visual size unchanged; the tappable area grows to about 44px. */
@media (max-width: 767px) {
  .carousel-dots { margin-top: var(--space-4); }
  .carousel-dot { width: 32px; height: 44px; }
  .brand { min-height: 44px; }
  /* Email and phone: the whole row height is tappable, not just the text */
  .contact-details div { padding: 4px 0; }
  .contact-details dd a { display: inline-block; padding: 12px 0; }
  /* Footer links: 44px rows, so neighbours can't be mis-tapped */
  .footer-cols > div { gap: 0; }
  .footer-cols a { display: flex; align-items: center; min-height: 44px; }
  .footer-head { margin-bottom: 0; }
}

/* ---------- Tablets in portrait (768–899px) ----------
   Between the phone carousel and the desktop layout, the process steps were stacked full width (~4,000px in all).
   Use the desktop's alternating two-column rows here too, and a shorter About photo. */
@media (min-width: 768px) and (max-width: 899px) {
  .process-row { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); align-items: center; padding: var(--space-8) 0; }
  .process-row:nth-child(even) .process-media { order: 2; }
  .process-media { aspect-ratio: 4 / 3; }
  .process-num { font-size: 72px; margin-bottom: var(--space-6); }
  .about-photo { aspect-ratio: 4 / 3; }
}

/* ---------- Mobile hero: portrait photo ----------
   Upright phones and tablets (899px and below) load assets/hero-portrait-*.avif/webp instead of the landscape photo
   (see the <picture> in the hero). Desktop and landscape screens are unaffected. */
@media (max-width: 899px) and (orientation: portrait) {
  /* Keep the house (right of centre) in frame when the sides are trimmed */
  .hero-bg img { object-position: 70% 50%; }
}
@media (max-width: 760px) and (orientation: portrait) {
  /* Full screen height minus the browser bars; grows on short screens instead of clipping */
  .hero-stage { min-height: 100vh; min-height: 100svh; align-items: flex-end; }
  /* Copy sits in the lower part of the photo, leaving the house and sky above it clear */
  .hero-content { padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); }
  /* Overlay: light at the top so the architecture keeps its colour, darker behind the text */
  .hero-overlay {
    background: linear-gradient(0deg,
      rgba(0,0,0,.80) 0%, rgba(0,0,0,.66) 30%, rgba(0,0,0,.40) 50%,
      rgba(0,0,0,.12) 70%, rgba(0,0,0,.08) 100%);
  }
}

/* =====================================================================
   Mobile compact pass (767px and below). Desktop and tablet untouched.
   One rhythm for every section:
     section padding 56px · eyebrow → heading 12px · heading block → content 24px
     images 16:10 (About 3:2) · buttons 54px · carousel dots 12px under the cards
   ===================================================================== */
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  /* Menu links: land with the section's eyebrow ~40px under the bar */
  main > .section[id] { scroll-margin-top: -40px; }

  h2 { font-size: 32px; line-height: 1; }
  .eyebrow { margin-bottom: 12px; }
  .section-head { gap: 12px; margin-bottom: var(--space-6); }
  .section-intro { font-size: 16px; line-height: 1.55; }
  .swipe-hint { margin-top: 0; }
  .section-head .swipe-hint { margin-top: 0; }

  /* Hero: small intro line easier to read over the photo */
  .hero-eyebrow { color: rgba(255,255,255,.94); text-shadow: 0 1px 10px rgba(0,0,0,.45); }

  /* Niches strip: a compact single line under the hero */
  .trades-list li { padding: 14px 0; font-size: 22px; }
  .trades-list li::after { margin: 0 18px; }

  /* About: wider, shorter photo and tighter gaps */
  .about-grid { gap: var(--space-4); }
  .about-photo { aspect-ratio: 3 / 2; }
  .about-copy { padding-top: var(--space-4); }
  .about-copy.prose { gap: 12px; }
  .about-copy .lead { font-size: 17px; line-height: 1.5; }

  /* What we do: icon and number share a row, then heading and text */
  .steps { margin-top: var(--space-6); }
  .steps li {
    display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
    padding: 18px 0;
  }
  .step-icon { width: 26px; height: 26px; margin: 0; }
  .step-num { font-size: 24px; margin: 0; }
  .steps h3 { grid-column: 1 / -1; margin: 12px 0 6px; font-size: 20px; }
  .steps p { grid-column: 1 / -1; line-height: 1.55; max-width: none; }
  .payment { margin-top: var(--space-6); padding-top: var(--space-6); }
  .statement { font-size: clamp(30px, 8.6vw, 42px); }
  .statement-text { margin-top: var(--space-4); }

  /* Services and process cards: shorter images, tighter text; cards keep their own height (no stretching) */
  [data-carousel] { align-items: flex-start; }
  .frame--card { aspect-ratio: 16 / 10; margin-bottom: var(--space-4); }
  .service h3 { font-size: 24px; margin-bottom: 8px; }
  .service .tags { margin-top: 12px; padding-top: 12px; }
  .carousel-dots { margin-top: 12px; }

  .process-row { gap: var(--space-4); }
  .process-row .process-media { aspect-ratio: 16 / 10; }
  .process-row .process-text { padding-top: var(--space-4); }
  .process-num { font-size: 52px; margin-bottom: 12px; }
  .process-row h3 { font-size: 22px; margin-bottom: 8px; }
  .process-cta { margin-top: var(--space-6); }

  /* Contact: reach the form sooner */
  .contact .split { gap: var(--space-8); }
  .contact-lead { margin-top: var(--space-4); font-size: 17px; }
  .contact-points { margin-top: 20px; gap: 12px; }
  .contact-points + .contact-details { margin-top: 20px; }
  .form { gap: 20px; }
  .contact .field-row { gap: 20px; }

  /* Footer: brand, then the page links in wrapped rows, then contact; full width so the email never crowds the edge */
  .footer { padding: 40px 0 24px; }
  .footer-top { gap: var(--space-6); padding-bottom: var(--space-6); }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols > div:first-child { display: flex; flex-wrap: wrap; column-gap: 24px; }
  .footer-cols > div:first-child .footer-head { flex-basis: 100%; }
  .footer-head { margin-bottom: 0; }
  .footer-bottom { flex-direction: column; gap: 4px; padding-top: 20px; font-size: 13px; }
}

/* Phones: the niches strip always runs as the same right-to-left loop as desktop (same keyframes, same seamless -50% loop).
   With Reduce Motion switched on it still runs, but at half speed, instead of stopping and wrapping into a block. */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .trades { overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
  .trades-track { width: max-content; animation: trades 84s linear infinite; }
  .trades-list { flex-wrap: nowrap; padding: 0; }
  .trades-list[aria-hidden="true"] { display: flex; }
}

/* ---------- Mobile nav: slides away while scrolling down, back on scroll up (js/nav.js adds .is-hidden) ---------- */
/* Glides down into place (500ms, gentle ease-out with no overshoot) and fades in; glides up and fades out a little faster.
   Only transform and opacity animate, so it stays smooth on iPhone Safari and never shifts the page. */
@media (max-width: 899px) {
  .nav-shell {
    transform: translate3d(0, 0, 0); opacity: 1;
    transition: transform .5s cubic-bezier(.22, .61, .36, 1), opacity .4s cubic-bezier(.22, .61, .36, 1);
    will-change: transform, opacity;
  }
  .nav-shell.is-hidden {
    transform: translate3d(0, calc(-100% - var(--nav-top) - 8px), 0); opacity: 0;
    transition: transform .42s cubic-bezier(.4, 0, .6, 1), opacity .3s ease-in .08s;
  }
}
/* Reduced motion: no sliding, just a short fade in place */
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .nav-shell, .nav-shell.is-hidden { transform: none; transition: opacity .2s linear; }
  .nav-shell.is-hidden { visibility: hidden; transition: opacity .2s linear, visibility 0s linear .2s; }
}

/* Phones: carousel height follows the card in view (set by js/carousel.js); ease the change */
@media (max-width: 767px) {
  [data-carousel] { transition: height .3s cubic-bezier(.2,.7,.2,1); }
  /* Footer contact: email and phone share one wrapped row, like the page links */
  .footer-cols > div:last-child { display: flex; flex-wrap: wrap; column-gap: 24px; }
  .footer-cols > div:last-child .footer-head { flex-basis: 100%; }
  .footer { padding-top: 32px; }
  .footer-top { gap: 20px; padding-bottom: 20px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { [data-carousel] { transition: none; } }

/* Short phone screens (e.g. iPhone SE with Safari's bars showing): pull the hero copy together so both buttons fit */
@media (max-width: 760px) and (max-height: 620px) and (orientation: portrait) {
  .hero-lead { margin-top: var(--space-4); }
  .hero-ctas { margin-top: 20px; gap: 10px; }
  .hero-ctas .btn { min-height: 50px; padding-top: 14px; padding-bottom: 14px; }
  .hero-content { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Mobile hero copy ----------
   Phones show the shorter supporting line (.hero-lead--mobile); tablets and desktop keep the original paragraph. */
.hero-lead--mobile { display: none; }
@media (max-width: 760px) {
  .hero-lead--desktop { display: none; }
  .hero-lead--mobile { display: block; max-width: 30rem; }
}
@media (max-width: 760px) and (orientation: portrait) {
  /* Small intro line: a soft dark halo right behind the letters, so it reads over bright sky or brickwork
     without darkening the rest of the photo */
  .hero-eyebrow {
    color: #FFFFFF;
    text-shadow: 0 0 12px rgba(0,0,0,.55), 0 0 4px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.4);
  }
  /* Overlay: a touch more density where the intro line sits (about halfway down); top stays light */
  .hero-overlay {
    background: linear-gradient(0deg,
      rgba(0,0,0,.80) 0%, rgba(0,0,0,.66) 30%, rgba(0,0,0,.46) 50%,
      rgba(0,0,0,.24) 64%, rgba(0,0,0,.08) 82%, rgba(0,0,0,.06) 100%);
  }
  /* Shorter copy, so a little more air between the groups */
  .hero-eyebrow { margin-bottom: 18px; }
  .hero-lead { margin-top: 20px; }
  .hero-ctas { margin-top: 32px; }
}
@media (max-width: 760px) and (max-height: 620px) and (orientation: portrait) {
  .hero-lead { margin-top: 14px; }
  .hero-ctas { margin-top: 22px; }
}

/* =====================================================================
   Mobile compaction, round 2 (767px and below). Same rhythm, tighter:
     section padding 48 · eyebrow→heading 10 · heading block→content 20
     section photos and card images 16:9 · process number 40px · body text stays 16px
   ===================================================================== */
@media (max-width: 767px) {
  .section { padding: 48px 0; }
  main > .section[id] { scroll-margin-top: -32px; }
  h2 { font-size: 30px; line-height: 1.02; }
  .eyebrow { margin-bottom: 10px; }
  .section-head { gap: 10px; margin-bottom: 20px; }
  .section-intro { line-height: 1.5; }

  /* About */
  .about-grid { gap: 14px; }
  .about-photo { aspect-ratio: 16 / 9; }
  .about-copy { padding-top: 14px; }
  .about-copy.prose { gap: 10px; }
  .about-copy .lead { font-size: 16.5px; }
  .about-copy p { line-height: 1.5; }

  /* What we do */
  .steps { margin-top: 20px; }
  .steps li { padding: 14px 0; }
  .steps h3 { font-size: 19px; margin: 8px 0 4px; }
  .steps p { line-height: 1.5; }
  .payment { margin-top: 20px; padding-top: 20px; }
  .statement { font-size: clamp(28px, 8vw, 38px); }
  .statement-text { margin-top: 12px; line-height: 1.5; }

  /* Services cards */
  .frame--card { aspect-ratio: 16 / 9; margin-bottom: 14px; }
  .service h3 { font-size: 22px; margin-bottom: 6px; }
  .service p { line-height: 1.5; }
  .service .tags { margin-top: 10px; padding-top: 10px; }
  .carousel-dots { margin-top: 8px; }

  /* Process cards */
  .process-row { gap: 12px; }
  .process-row .process-media { aspect-ratio: 16 / 9; }
  .process-row .process-text { padding-top: 12px; }
  .process-num { font-size: 40px; margin-bottom: 8px; }
  .process-row h3 { font-size: 20px; margin-bottom: 6px; }
  .process-row p { line-height: 1.5; }
  .media-note { margin-top: 8px; }
  .process-cta { margin-top: 20px; }

  /* Contact */
  .contact .split { gap: 28px; }
  .contact-lead { margin-top: 12px; }
  .contact-points { margin-top: 16px; gap: 10px; }
  .contact-points + .contact-details { margin-top: 16px; }
  .contact-details div { padding: 2px 0; }
  .form { gap: 18px; }
  .contact .field-row { gap: 18px; }

  /* Footer */
  .footer { padding: 28px 0 20px; }
  .footer-top { gap: 16px; padding-bottom: 16px; }
  .footer-cols { gap: 14px; }
  .footer-bottom { padding-top: 16px; }
}

/* Contact form on phones 360px and wider: name/business and email/phone side by side, as on desktop.
   Labels and underlines stay level (paired fields keep their own height). Narrower phones keep one column. */
@media (min-width: 360px) and (max-width: 767px) {
  .contact .field-row { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
@media (max-width: 767px) {
  .field textarea { min-height: 96px; }
}

/* Contact: final call to action, leading to the enquiry page (/lets-talk).
   Near-black panel with a soft light falling from the top right, a hairline inner edge, white type and a white button. */
.contact-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 0; align-content: start;
  padding: 32px 24px 28px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.075) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(255,255,255,.035) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(165deg, #1A1A1A 0%, #0D0D0D 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.contact-cta-eyebrow { color: #8C8C8C; margin: 0 0 14px; }
.contact-cta-title {
  font-family: var(--font-display); font-weight: 600; color: #FFFFFF;
  font-size: clamp(30px, 8.4vw, 42px); line-height: 1.02; letter-spacing: -0.035em;
  max-width: 12ch; text-wrap: balance;
}
.contact-cta-text { margin-top: 14px; font-size: 16px; line-height: 1.55; color: #A6A6A6; max-width: 26rem; }

.contact-cta-trust { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-cta-trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.4; color: #E6E6E6; }
.contact-cta-trust svg { flex: none; width: 16px; height: 16px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }

.contact-cta-action { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 12px; justify-items: start; }
.contact-cta-btn { min-height: 56px; padding-left: 26px; padding-right: 24px; }
.contact-cta-btn:hover { background: #ECECEC; }
.contact-cta :focus-visible { outline-color: #FFFFFF; }
.contact-cta-note { font-size: 13px; line-height: 1.5; color: #8C8C8C; }

@media (max-width: 767px) {
  .contact-cta-btn { width: 100%; justify-content: center; }
  .contact-cta-action { justify-items: stretch; }
  .contact-cta-note { text-align: center; }
}
@media (min-width: 900px) {
  .contact .split > .contact-cta { display: grid; align-self: center; padding: 56px 52px 48px; }
  .contact-cta-title { font-size: clamp(36px, 3.4vw, 48px); }
  .contact-cta-text { font-size: 17px; margin-top: 18px; }
  .contact-cta-trust { margin-top: 28px; gap: 12px; }
  .contact-cta-action { margin-top: 32px; padding-top: 28px; }
}

/* Final CTA refinements: headline in two even lines; on narrow phones the longer button label sits neatly on two lines */
.contact-cta-title { max-width: none; }
@media (max-width: 767px) {
  .contact-cta-btn { justify-content: space-between; gap: 16px; padding: 16px 22px; text-align: left; }
  .contact-cta-btn .btn-label { line-height: 1.45; text-wrap: balance; }
}

/* Hero: payment reassurance under the buttons. Small, white, with an outlined tick; a soft shadow keeps it legible on the photo. */
.hero-assure {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px;
  font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: 0.005em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.hero-assure svg {
  flex: none; width: 18px; height: 18px;
  fill: none; stroke: #FFFFFF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.35));
}
@media (min-width: 900px) { .hero-assure { margin-top: 26px; font-size: 15px; } }
@media (max-width: 760px) {
  .hero-assure { margin-top: 16px; font-size: 13.5px; }
  /* Make room: trim the gaps above the buttons slightly so the hero stays the same overall size */
  .hero-ctas { margin-top: 24px; }
}
@media (max-width: 760px) and (max-height: 620px) and (orientation: portrait) {
  .hero-assure { margin-top: 12px; }
  .hero-ctas { margin-top: 18px; }
  .hero-lead { margin-top: 12px; }
  .hero-eyebrow { margin-bottom: 12px; }
}
.hero-assure { text-wrap: balance; }
/* Phones: break the reassurance after the first sentence */
@media (max-width: 760px) { .hero-assure-text > span { display: block; } }

/* Payment section: small clarification under the main explanation */
.statement-note { margin-top: 14px; max-width: 560px; font-size: 14px; line-height: 1.55; color: #8C8C8C; }
@media (min-width: 900px) { .statement-note { margin-top: 18px; font-size: 15px; } }
@media (max-width: 767px) { .statement-note { margin-top: 10px; font-size: 13.5px; line-height: 1.5; } }
