/* Dalken Construction & Co. Colours taken from the logo. */
:root {
  --amber: #FFB550;        /* logo house */
  --amber-ink: #8A5600;    /* amber text on light surfaces (AA) */
  --black: #000000;        /* logo wordmark */
  --concrete: #E7E6E2;
  --paper: #FFFFFF;
  --steel: #55585A;        /* secondary text on light */
  --ash: #A9ABAC;          /* secondary text on black */
  --line: rgba(0, 0, 0, 0.12);
  --line-dark: rgba(255, 181, 80, 0.22);

  --f-display: "League Spartan", "Avenir Next", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 12vw, 160px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--black); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.amber :focus-visible, .concrete :focus-visible, .light :focus-visible, .hero :focus-visible {
  outline-color: var(--black);
}

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

.icon { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 1rem/1 var(--f-body);
  text-decoration: none; border: 0; border-radius: 2px; cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--black); }
.btn-amber:hover { background: var(--black); color: var(--amber); }
.btn-black { background: var(--black); color: var(--paper); }
.btn-black:hover { background: #2a2a2a; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.btn-outline:hover { background: var(--black); color: var(--paper); }

.link-under {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding: 12px 0 4px;
  transition: background-size 0.3s var(--ease-out);
}
.link-under:hover { background-size: 40% 2px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s, height 0.3s var(--ease-out);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 64px;
}
.header-inner {
  height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; transition: width 0.3s, height 0.3s; }
.is-solid .brand img { width: 44px; height: 44px; }
.brand-name {
  font: 700 1.35rem/0.9 var(--f-display); letter-spacing: -0.01em;
  display: flex; flex-direction: column;
}
.brand-name span { font: 500 0.7rem/1.4 var(--f-body); letter-spacing: 0.04em; color: var(--steel); }

.nav-list { display: flex; gap: 28px; }
.nav-list a {
  text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 8px 0; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }

.menu-btn {
  display: none; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out), opacity 0.2s;
}
.menu-bars { top: 23px; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); background: var(--amber); }
.menu-btn[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); background: var(--amber); }

/* Hero */
.hero { position: relative; background: var(--concrete); overflow: hidden; }
.hero-stage {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 7vw, 96px);
}
/* Team photo as the background: solid concrete behind the headline, the photo fading in from the right */
.hero-bg {
  --hero-photo: url("images/hero-team.jpg");
  --hero-vests: url("images/hero-team-vests.png");
  --vest-p: 0; /* 0 = real hi-vis green, 1 = Dalken amber; driven by scroll and hover in main.js */
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
  overflow: hidden; pointer-events: none;
  /* Fade in from the left, and fade out at the top so the menu stays readable */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%), linear-gradient(180deg, transparent calc(var(--header-h) - 10px), #000 calc(var(--header-h) + 90px));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%), linear-gradient(180deg, transparent calc(var(--header-h) - 10px), #000 calc(var(--header-h) + 90px));
  mask-composite: intersect;
}
.hero-bg-inner {
  position: absolute; left: 0; right: 0; top: -5%; height: 110%; /* overscan for the scroll drift */
  translate: 0 var(--py, 0px);
}
/* Both layers use the same image, size and position, so the vest mask lines up exactly */
.hero-layer {
  position: absolute; inset: 0;
  background: var(--hero-photo) 30% 60% / cover no-repeat;
}
.hero-layer-base { filter: grayscale(1) contrast(1.08) brightness(1.02); }
.hero-layer-vests {
  -webkit-mask: var(--hero-vests) 30% 60% / cover no-repeat;
  mask: var(--hero-vests) 30% 60% / cover no-repeat;
  /* Hi-vis green sits near hue 72deg; rotating about -38deg lands on the logo amber */
  filter: hue-rotate(calc(var(--vest-p) * -38deg)) saturate(calc(1.05 + var(--vest-p) * 0.25)) contrast(1.05);
}
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 18px;
  font-size: 0.8rem; color: var(--paper);
  background: rgba(0, 0, 0, 0.55); padding: 6px 10px; border-radius: 2px;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 60%);
  mask-image: linear-gradient(105deg, transparent 20%, #000 60%);
  opacity: 0.6;
}
.hero-inner { position: relative; }
.hero-copy { max-width: 640px; }
.hero-title {
  /* Two lines: "Quality before" is about 5.9em wide, so size it to the available width */
  font-size: clamp(2.6rem, calc((100vw - 2 * var(--gutter)) / 6), 5.4rem);
  font-weight: 800; line-height: 0.92; letter-spacing: -0.045em;
  white-space: nowrap;
  margin-bottom: 24px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lede { max-width: 30em; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #2b2d2e; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Credentials sit on their own solid band so they stay readable below the photo */
.hero-foot { position: relative; background: var(--concrete); border-top: 1px solid var(--line); }
.creds {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.creds li {
  padding: 24px 20px 28px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.creds li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.creds strong { font: 700 1.5rem/1.1 var(--f-display); }
.creds span { font-size: 0.9rem; color: var(--steel); }

/* Strip of real site photos: a black band between "How a job runs" and the amber contact section */
.site-strip { position: relative; background: var(--black); color: var(--paper); padding: clamp(48px, 7vw, 80px) 0; }
.site-strip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.site-strip-head p { font-size: 0.95rem; color: var(--ash); }
.strip-toggle {
  min-height: 40px; padding: 0 16px; cursor: pointer;
  font: 500 0.88rem/1 var(--f-body); color: var(--paper);
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.strip-toggle:hover { border-color: var(--amber); color: var(--amber); }
.site-strip-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.site-strip-track { display: flex; gap: 12px; width: max-content; }
.site-strip-track li { width: clamp(200px, 22vw, 320px); aspect-ratio: 4 / 3; flex: none; overflow: hidden; }
.site-strip-track img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.85) contrast(1.05);
  transition: filter 0.4s;
}
.site-strip-track li:hover img { filter: grayscale(0); }
.is-looping .site-strip-track { animation: strip-run 70s linear infinite; }
.site-strip:hover .site-strip-track, .site-strip:focus-within .site-strip-track,
.site-strip.is-paused .site-strip-track { animation-play-state: paused; }
@keyframes strip-run { to { transform: translate3d(-50%, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .site-strip-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .strip-toggle { display: none; }
}

/* Load sequence */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-lede, .js .hero-actions, .js .creds li { opacity: 0; transform: translateY(14px); }
/* Background photo: fades in and settles from a slight zoom while the headline rises */
.js .hero-bg { opacity: 0; }
.js .hero-bg-inner { transform: scale(1.12); }

.is-loaded .hero-title .line > span { transform: none; transition: transform 1s var(--ease-out); }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.08s; }
.is-loaded .hero-lede, .is-loaded .hero-actions, .is-loaded .creds li {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.is-loaded .hero-lede { transition-delay: 0.35s; }
.is-loaded .hero-actions { transition-delay: 0.45s; }
.is-loaded .creds li { transition-delay: calc(1.5s + var(--i, 0) * 0.08s); }
.is-loaded .hero-bg { opacity: 1; transition: opacity 1.2s var(--ease-out) 0.25s; }
.is-loaded .hero-bg-inner { transform: none; transition: transform 2.4s var(--ease-out) 0.25s; }

/* Sections */
.section { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.dark { background: var(--black); color: var(--paper); }
.concrete { background: var(--concrete); }
.light { background: var(--paper); }
.amber { background: var(--amber); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px; align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
  position: relative;
}
.section-head h2 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.035em; }
.section-head p { max-width: 30em; color: var(--steel); }
.dark .section-head p { color: var(--ash); }

/* Giant outlined words */
.giant {
  font-family: var(--f-body);
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(7rem, 26vw, 24rem);
  line-height: 0.8; letter-spacing: -0.01em; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-dark);
  white-space: nowrap;
  position: absolute; top: clamp(24px, 4vw, 56px); left: 0;
  pointer-events: none; user-select: none;
  will-change: transform;
}
.giant-dark { -webkit-text-stroke-color: rgba(0, 0, 0, 0.1); left: auto; right: 0; }

/* Services */
.services { border-top: 1px solid rgba(255, 255, 255, 0.16); position: relative; }
.service {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px 40px; align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
}
.service::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }
.service-icon {
  width: 44px; height: 44px; fill: none; stroke: var(--amber); stroke-width: 2;
  stroke-linecap: square; stroke-linejoin: round; margin-top: 2px;
}
.service h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700;
  transition: transform 0.5s var(--ease-out), color 0.3s;
}
.service:hover h3 { transform: translateX(8px); color: var(--amber); }
.service p { color: var(--ash); max-width: 34em; }

/* Projects */
/* Three even columns: each wide photo (two columns) sits beside a tall one (one column) at exactly
   the same height, so every row lines up. Heights come from the grid's own width (container units). */
.projects {
  --pg: clamp(16px, 2vw, 28px);
  --row-h: calc((100cqw - 2 * var(--pg)) / 3 * 4 / 3);
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) var(--pg);
  position: relative;
}
.project { display: flex; flex-direction: column; gap: 16px; }
.p-wide-l, .p-wide-r { grid-column: span 2; }
.p-tall-l, .p-tall-r { grid-column: span 1; }

.shot { margin: 0; position: relative; overflow: hidden; background: #CFCDC8; }
.shot-wide { aspect-ratio: 3 / 2; }
.shot-tall { aspect-ratio: 3 / 4; }
@supports (height: 1cqw) {
  .projects .shot-wide, .projects .shot-tall { aspect-ratio: auto; height: var(--row-h); }
}
/* Project photos open in black and white, then develop into full colour once revealed */
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.06);
  transition: filter 1.6s var(--ease-out) 0.9s, transform 2s var(--ease-out) 0.3s;
}
.shot.is-in img { filter: grayscale(0) contrast(1); transform: scale(1); }
.project:hover .shot.is-in img { transform: scale(1.03); transition: transform 0.8s var(--ease-out); }

.js .shot[data-reveal] { clip-path: inset(0 0 100% 0); }
.js .shot[data-reveal]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--amber);
}
.js .shot.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out); }
.js .shot.is-in::after { transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s 1s; }

.project-type { font-size: 0.88rem; font-weight: 600; color: var(--amber-ink); margin-bottom: 6px; }
.project h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); margin-bottom: 6px; letter-spacing: -0.025em; line-height: 1.1; }
.project-place { color: var(--steel); font-size: 0.98rem; }
/* Whole card opens the gallery; the button is stretched over it */
.project { position: relative; }
.project-open {
  position: absolute; inset: 0; z-index: 1; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.project-open:focus-visible { outline: 3px solid var(--black); outline-offset: 6px; }
.project-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-weight: 600; font-size: 0.95rem;
}
.project-more::after {
  content: ""; width: 28px; height: 2px; background: var(--amber-ink);
  transition: width 0.3s var(--ease-out);
}
.project:hover .project-more::after, .project:focus-within .project-more::after { width: 48px; }
.p-cta { grid-column: span 2; align-self: start; height: var(--row-h); align-content: center; }
.project-cta {
  background: var(--black); color: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  display: grid; gap: 16px; justify-items: start;
}
.project-cta h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.project-cta p { color: var(--ash); max-width: 30em; }
.project-cta .btn { background: var(--amber); color: var(--black); }
.project-cta .btn:hover { background: var(--paper); }

/* About */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px); align-items: end;
}
.about-copy h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); letter-spacing: -0.035em; margin-bottom: 36px; line-height: 0.98; }
.about-copy p { color: var(--ash); max-width: 36em; }
.about-copy p + p { margin-top: 18px; }
.crew { margin: 0; display: grid; grid-template-columns: repeat(3, auto); border-top: 2px solid var(--amber); }
.crew > div { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.crew > div:nth-child(2), .crew > div:nth-child(3) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.16); }
.crew > div:nth-child(1), .crew > div:nth-child(2) { padding-right: 24px; }
/* Keep the three numbers on one baseline even when a label wraps */
.crew > div:not(.crew-wide) { display: flex; flex-direction: column; justify-content: space-between; }
.crew-wide { grid-column: 1 / -1; }
.crew dt { font-size: 0.92rem; color: var(--ash); }
.crew dd {
  margin: 4px 0 0; font: 800 clamp(4rem, 9vw, 7rem)/0.9 var(--f-display);
  color: var(--amber); letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.crew dd.crew-text { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.15; color: var(--paper); letter-spacing: -0.02em; }

/* Process */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  position: relative; counter-reset: none;
}
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 12%;
  height: 1px; background: var(--black);
  transform-origin: left; transform: scaleX(var(--progress, 1));
}
.js .steps::before { --progress: 0; transition: transform 1.6s var(--ease-draw); }
.js .steps.is-in::before { --progress: 1; }
.steps li { position: relative; }
.step-no {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--amber); border: 2px solid var(--amber);
  font: 700 1.4rem/1 var(--f-display); margin-bottom: 28px; position: relative;
  transition: background-color 0.4s, border-color 0.4s;
}
.js .steps li .step-no { background: var(--paper); border-color: var(--black); }
.js .steps.is-in li .step-no { background: var(--amber); border-color: var(--amber); transition-delay: calc(var(--i) * 0.35s + 0.2s); }
.steps h3 { font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.steps p { color: var(--steel); max-width: 22em; }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px); align-items: start;
}
.contact-copy h2 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.035em; margin-bottom: 24px; line-height: 0.95; }
.contact-copy > p { max-width: 30em; margin-bottom: 40px; }
.contact-list { font-style: normal; display: grid; gap: 24px; border-top: 1px solid rgba(0,0,0,0.2); padding-top: 24px; }
.cl-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-size: 1.1rem; line-height: 1.45; border-bottom: 1px solid rgba(0,0,0,0.35); }
.contact-list a[href^="tel"] { display: block; width: fit-content; font: 700 clamp(1.6rem, 3.2vw, 2.2rem)/1.25 var(--f-display); border: 0; letter-spacing: -0.02em; }
.contact-list a:hover { border-color: var(--black); }
.cl-text { font-size: 1.1rem; }

.quote-form {
  background: var(--paper); padding: clamp(24px, 4vw, 44px);
  display: grid; gap: 20px;
  box-shadow: 12px 12px 0 var(--black);
}
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--black);
  background: var(--paper); border: 1.5px solid #8b8e90; border-radius: 2px;
  padding: 13px 14px; min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--black); box-shadow: 0 0 0 3px var(--amber);
}
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-err { color: #B3261E; font-size: 0.9rem; margin-top: 6px; }
.form-actions { display: grid; gap: 12px; }
.form-note { font-size: 0.85rem; color: var(--steel); }
.form-note a { color: var(--black); }

/* Project gallery dialog */
.project-dialog {
  width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: var(--paper); color: var(--black);
  overflow: auto;
}
.project-dialog::backdrop { background: rgba(0, 0, 0, 0.78); }
.project-dialog[open] { animation: pd-in 0.4s var(--ease-out); }
@keyframes pd-in { from { opacity: 0; transform: translateY(16px); } }
body.dialog-open { overflow: hidden; }
.pd-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.pd-media { position: relative; background: #111; aspect-ratio: 1000 / 890; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; }
.pd-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.6); color: var(--paper); border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color 0.2s;
}
.pd-nav:hover { background: var(--amber); color: var(--black); }
.pd-nav svg, .pd-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-count {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0, 0, 0, 0.6); color: var(--paper); font-size: 0.85rem; padding: 4px 10px;
  font-variant-numeric: tabular-nums;
}
.pd-text { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 10px; }
.pd-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.pd-desc { margin-top: 8px; color: #2b2d2e; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 20px; }
.pd-thumbs button {
  padding: 0; border: 0; cursor: pointer; aspect-ratio: 1; overflow: hidden; background: #ddd;
  outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.pd-thumbs button[aria-current="true"] { outline-color: var(--amber-ink); opacity: 1; }
.pd-thumbs button:hover { opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-text .btn { margin-top: auto; align-self: flex-start; }
.pd-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--paper); color: var(--black); border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.pd-close:hover { background: var(--amber); }

/* Training row in About */
.crew .crew-training dd.crew-text { font-weight: 400; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; font-size: 1rem; line-height: 1.5; letter-spacing: 0; color: var(--ash); font-family: var(--f-body); }
.crew-training img { width: 120px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(0.85); }

/* Simple pages (privacy notice, 404) */
.simple-page { background: var(--concrete); }
.simple-main { padding-top: 48px; padding-bottom: 96px; max-width: 760px; }
.simple-logo img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 40px; }
.simple-main h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: -0.035em; margin: 8px 0 24px; }
.simple-main > p { max-width: 38em; margin-bottom: 16px; color: #2b2d2e; }
.simple-text h2 { font-size: 1.5rem; margin: 36px 0 10px; letter-spacing: -0.02em; }
.simple-updated { font-size: 0.9rem; color: var(--steel); margin: 32px 0 28px; }

/* Footer */
.site-footer { background: var(--black); color: var(--paper); padding: 56px 0 96px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer-inner img { width: 72px; height: 72px; border-radius: 50%; }
.footer-tag { font: 700 1.6rem/1 var(--f-display); letter-spacing: -0.02em; margin-right: auto; }
.footer-meta { font-size: 0.9rem; color: var(--ash); text-align: right; }
.footer-meta a, .footer-contact a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer-meta a:hover, .footer-contact a:hover { border-color: var(--amber); color: var(--amber); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; color: var(--ash); }
.footer-contact a { width: fit-content; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--paper);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: scale(0); transition: transform 0.4s var(--ease-out);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float.is-shown { transform: scale(1); }
.wa-float:hover { transform: scale(1.06); }

/* Responsive */
@media (max-width: 1080px) {
  .nav-list { gap: 20px; }
  .header-inner { gap: 20px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav-list {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 4px;
    padding: 96px var(--gutter) 48px;
    background: var(--black);
    visibility: hidden; opacity: 0;
    transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .nav-list.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease-out); }
  .nav-list a {
    display: block; color: var(--paper);
    font: 700 clamp(2.4rem, 11vw, 3.6rem)/1.15 var(--f-display); letter-spacing: -0.03em;
    transform: translateY(16px); opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.5s, color 0.2s;
  }
  .nav-list.is-open a { transform: none; opacity: 1; }
  .nav-list.is-open li:nth-child(2) a { transition-delay: 0.05s; }
  .nav-list.is-open li:nth-child(3) a { transition-delay: 0.1s; }
  .nav-list.is-open li:nth-child(4) a { transition-delay: 0.15s; }
  .nav-list.is-open li:nth-child(5) a { transition-delay: 0.2s; }
  .nav-list a::after { display: none; }
  .nav-list a:hover { color: var(--amber); }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { color: var(--amber); }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-btn { color: var(--paper); }
  body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .brand { position: relative; z-index: 2; color: var(--paper); }
  body.menu-open .brand-name span { color: var(--ash); }

  /* Phones and tablets: text on concrete at the top, the photo fading in underneath it */
  .hero-stage { padding-bottom: min(84vw, 500px); }
  .hero-bg {
    top: auto; width: 100%; height: min(100vw, 600px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  }
  .hero-bg { --hero-photo: url("images/hero-team-720.jpg"); --hero-vests: url("images/hero-team-vests-720.png"); }
  .hero-layer, .hero-layer-vests { background-position: 50% 60%; -webkit-mask-position: 50% 60%; mask-position: 50% 60%; }
  .hero-caption { bottom: 12px; }
  .creds { grid-template-columns: 1fr 1fr; }
  .creds li:nth-child(3) { padding-left: 0; border-left: 0; }
  .creds li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section-head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 36px minmax(0, 1fr); gap: 12px 18px; }
  .service-icon { width: 32px; height: 32px; }
  .service p { grid-column: 2; }

  .projects { grid-template-columns: 1fr 1fr; --row-h: calc((100cqw - var(--pg)) / 2 * 4 / 3); }
  .p-wide-l, .p-wide-r { grid-column: 1 / -1; }
  .p-tall-l, .p-tall-r, .p-cta { grid-column: span 1; }
  .projects .shot-wide { aspect-ratio: 3 / 2; height: auto; }
  .pd-inner { grid-template-columns: 1fr; }
  .pd-text .btn { margin-top: 8px; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .steps::before { display: none; }
  .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.2rem; }
  .hero-actions .btn { width: 100%; }
  .creds strong { font-size: 1.25rem; }
  .creds li { padding-right: 12px; }
  .creds li + li { padding-left: 12px; }
  .creds li:nth-child(3) { padding-left: 0; }
  .projects { grid-template-columns: 1fr; }
  .p-wide-l, .p-wide-r, .p-tall-l, .p-tall-r, .p-cta { grid-column: 1 / -1; }
  .projects .shot-tall { aspect-ratio: 4 / 5; height: auto; }
  .p-cta { height: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step-no { margin-bottom: 0; grid-row: span 2; }
  .quote-form { box-shadow: 8px 8px 0 var(--black); }
  .crew > div:nth-child(2), .crew > div:nth-child(3) { padding-left: 14px; }
  .crew > div:nth-child(1), .crew > div:nth-child(2) { padding-right: 14px; }
}

@media (min-width: 901px) {
  .wa-float { display: none; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
  .giant { transform: none !important; }
}
