/* ==========================================================================
   Verceles Construction
   One hand-written stylesheet. No framework, no build step.

   Contents
   1. Tokens          5. Hero and credentials     9. Reviews and form band
   2. Base            6. Home sections           10. Footer, side tab, phone bar
   3. Type            7. Stats                   11. Inner pages
   4. Header          8. Family section          12. Motion and reduced motion
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* From the logo colour sheet */
  --navy: #193053;
  --blue: #096DB6;      /* buttons and links only */
  --blue-press: #075A97;
  --sky: #76BDE8;       /* used sparingly */
  --silver: #C9C9C9;    /* borders */
  --off: #F2F2F2;
  --white: #FFFFFF;
  --ink: #231F20;
  --wood: #9B5C29;      /* family section only */

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --header-h: 76px;
  --sec-y: clamp(72px, 9.5vw, 136px);

  /* The one angle on the site: the rise of the diagonal across the full width.
     Used on the hero's bottom edge and the form band's top edge. */
  --slant: clamp(30px, 7.2vw, 108px);

  --focus: var(--blue);
}

/* Keep the right gutter wider than the side tab so the tab never sits on content */
@media (min-width: 769px) { :root { --gutter: clamp(56px, 5vw, 64px); } }

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.on-dark { --focus: var(--white); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--white); color: var(--navy);
  padding: 14px 18px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* 3. Type ----------------------------------------------------------------- */
.h-display, .h-sec, .h-sub {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--navy);
}
.h-display {
  font-weight: 700;
  font-size: clamp(3.1rem, 8.4vw, 7.25rem);
  line-height: 0.9;
  letter-spacing: 0.004em;
}
.h-sec {
  font-weight: 600;
  font-size: clamp(2.5rem, 4.9vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.h-sub {
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.on-dark .h-display, .on-dark .h-sec, .on-dark .h-sub { color: var(--white); }

/* Montserrat, uppercase, wide tracking: echoes the lettering under his logo */
.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede { font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.6; max-width: 38em; }
.measure { max-width: 36em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 16px 30px;
  background: var(--blue); color: var(--white);
  border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  line-height: 1.25; text-align: center;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--blue-press); color: var(--white); }
.on-dark .btn:hover { background: var(--white); color: var(--navy); }

.tlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em;
}
.on-dark .tlink { color: var(--white); }
.on-dark .tlink:hover { color: var(--sky); }

.tel { white-space: nowrap; }

/* 4. Header --------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy); color: var(--white);
  height: var(--header-h);
}
.site-head__in {
  height: 100%;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
}
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; flex: none; }
.brand img { height: 42px; width: auto; }

.nav__list { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 2px solid transparent; border-top: 2px solid transparent;
}
.nav__link:hover { color: var(--white); border-bottom-color: var(--sky); }
.nav__link[aria-current="page"] { border-bottom-color: var(--blue); }

.head-tel {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em;
  white-space: nowrap;
}
.head-tel:hover { color: var(--sky); }
.head-tel svg { width: 18px; height: 18px; flex: none; }
.head-cta { min-height: 46px; padding: 12px 22px; font-size: 0.74rem; white-space: nowrap; }

.menu-btn {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 20px; height: 2px; background: var(--white); content: "";
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before { position: absolute; top: -7px; }
.menu-btn__bars::after { position: absolute; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1239px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 12px var(--gutter) 28px;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    width: 100%; min-height: 60px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; letter-spacing: 0.03em;
  }
  .nav__link[aria-current="page"] { color: var(--sky); }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .head-cta { display: none; }
  .head-tel { width: 46px; height: 46px; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.35); }
  .head-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-head__in { gap: 10px; }
}

/* 5. Hero and credentials ------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--navy); color: var(--white);
  min-height: clamp(540px, calc(100svh - var(--header-h) - 70px), 840px);
  display: flex; align-items: flex-end;
}
/* Photo layer and the sky-blue line that traces the cut share one clip shape */
.hero__photo, .hero__edge {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.hero__edge { background: var(--sky); z-index: -2; transform: translateY(4px); }
.hero__photo { z-index: -1; overflow: hidden; background: var(--navy); }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
  transform-origin: 30% 45%;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(25, 48, 83, 0.94) 0%, rgba(25, 48, 83, 0.80) 26%, rgba(25, 48, 83, 0.34) 58%, rgba(25, 48, 83, 0.30) 100%),
    linear-gradient(to right, rgba(25, 48, 83, 0.50) 0%, rgba(25, 48, 83, 0) 62%);
}
.hero__content {
  padding-top: 96px;
  padding-bottom: calc(var(--slant) * 0.5 + clamp(36px, 5vw, 64px));
}
.hero__title { color: var(--white); }
.hero__title span { display: block; }
.hero__lead {
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.55; max-width: 33em;
  font-weight: 500;
}
.hero__actions { margin-top: clamp(24px, 2.8vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }

.creds { background: var(--navy); color: var(--white); }
.creds__list {
  display: grid; grid-template-columns: 0.8fr 1.3fr 1.15fr 0.75fr;
  padding-block: 22px 26px;
}
.creds__item {
  padding: 4px 12px 4px clamp(18px, 2.6vw, 36px);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}
.creds__item:first-child { padding-left: 0; border-left: 0; }

@media (max-width: 1020px) {
  .creds__list { grid-template-columns: 1fr 1fr; padding-block: 8px 12px; }
  .creds__item { padding: 16px 0 16px 18px; white-space: normal; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
  .creds__item:nth-child(odd) { padding-left: 0; border-left: 0; padding-right: 14px; }
  .creds__item:nth-last-child(-n+2) { border-bottom: 0; }
  .creds__item.label { font-size: 0.7rem; letter-spacing: 0.13em; }
}
@media (max-width: 768px) {
  .hero { min-height: clamp(500px, calc(100svh - var(--header-h) - 40px), 760px); }
  .hero__photo img { object-position: 50% 30%; }
  .hero__content { padding-top: 72px; }
}

/* 6. Home sections -------------------------------------------------------- */
.sec { padding-block: var(--sec-y); }
.sec--off { background: var(--off); }
.sec--navy { background: var(--navy); color: var(--white); }
.sec__head { margin-bottom: clamp(32px, 4.4vw, 60px); }
.sec__head .lede { margin-top: clamp(14px, 1.6vw, 22px); }
.sec__foot { margin-top: clamp(28px, 3.4vw, 44px); }

/* What we build: eight tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tile {
  position: relative; display: block; aspect-ratio: 1 / 1.1; overflow: hidden;
  background: var(--navy); color: var(--white); text-decoration: none;
}
.tile__media { position: absolute; inset: 0; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(25, 48, 83, 0.96) 0%, rgba(25, 48, 83, 0.86) 30%, rgba(25, 48, 83, 0) 66%);
}
.tile__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 24px; display: block; }
.tile__name { display: block; font-size: 0.82rem; letter-spacing: 0.14em; }
.tile__line { display: block; margin-top: 8px; font-size: 0.86rem; line-height: 1.45; min-height: 4.35em; color: rgba(255, 255, 255, 0.9); }
.tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--sky); opacity: 0;
}
.tile:hover { color: var(--white); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:focus-visible { outline-offset: -3px; --focus: var(--white); }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile { aspect-ratio: 1 / 0.82; } }
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--silver); }
  .tile {
    aspect-ratio: auto; display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center;
    background: transparent; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--silver);
  }
  .tile__media { position: relative; inset: auto; width: 104px; height: 104px; background: var(--navy); }
  .tile__media::after { display: none; }
  .tile__text { position: static; padding: 0; }
  .tile__name { color: var(--navy); font-size: 0.76rem; letter-spacing: 0.12em; }
  .tile__line { color: var(--ink); font-size: 0.84rem; margin-top: 5px; min-height: 0; }
  .tile:hover { color: var(--ink); }
  .tile::after { display: none; }
  .tile:focus-visible { --focus: var(--blue); outline-offset: 2px; }
}

/* One contractor. Every trade. */
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.5vw, 32px); align-items: center; }
.split__text { grid-column: 1 / span 6; }
.split__media { grid-column: 8 / span 5; }
.split__media img { width: 100%; }
.split__text .h-sec { margin-bottom: clamp(20px, 2.6vw, 34px); }

/* The call list: every specialist struck through, then the one call left to make. */
.calls__eyebrow { color: var(--navy); margin-bottom: 14px; }
.calls {
  margin-top: clamp(26px, 3.4vw, 44px);
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 2px;
}
.calls li { padding: 8px 0; }
.calls s {
  position: relative; display: inline-block; text-decoration: none;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.8rem; line-height: 1.15;
  letter-spacing: 0.01em; color: var(--navy);
}
.calls s::after {
  content: ""; position: absolute; left: -5px; right: -5px; top: 56%; height: 1.5px;
  background: var(--blue); transform-origin: left center; transform: scaleX(1);
}
/* Armed by the script only when motion is allowed; without it the list shows already struck. */
.calls.is-armed s::after { transform: scaleX(0); transition: transform 0.35s ease calc(var(--i) * 60ms); }
.calls.is-armed.is-struck s::after { transform: scaleX(1); }
.calls__answer {
  margin-top: clamp(28px, 4vw, 52px); padding: clamp(24px, 3.2vw, 40px) clamp(22px, 3.4vw, 48px);
  background: var(--navy); color: var(--white);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px;
}
.calls__line {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 0.98; letter-spacing: 0.005em; color: var(--white);
}
.calls__phone { display: grid; gap: 6px; text-decoration: none; color: var(--white); }
.calls__name { color: var(--sky, #76BDE8); }
.calls__num {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1;
  white-space: nowrap; border-bottom: 2px solid var(--blue); padding-bottom: 6px;
}
.calls__phone:hover { color: var(--white); }
.calls__phone:hover .calls__num { border-bottom-color: var(--white); }

@media (max-width: 900px) {
  .split__text, .split__media { grid-column: 1 / -1; }
  .split__media { margin-top: 40px; max-width: 560px; }
  .calls { grid-template-columns: repeat(2, 1fr); column-gap: 14px; }
  .calls li { padding: 6px 0; }
  .calls s { font-size: 1.4rem; }
}

/* You do not have to be here. */
.remote { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.5vw, 32px); align-items: center; }
.remote__text { grid-column: 1 / span 5; padding-right: clamp(0px, 2vw, 32px); }
.remote__text .h-sec { margin-bottom: clamp(20px, 2.6vw, 34px); }
.remote__log { grid-column: 6 / -1; padding-left: clamp(0px, 2vw, 32px); }
.log { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 4px; }
.log__item { margin: 0; }
.log__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.log__cap { display: flex; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.3); margin-top: 14px; margin-right: 14px; }
.log__n { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--sky); }
.log__cap .label { font-size: 0.7rem; letter-spacing: 0.13em; padding-top: 3px; }
.log__note { margin-top: 22px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }

@media (max-width: 1000px) {
  .remote__text, .remote__log { grid-column: 1 / -1; }
  .remote__log { margin-top: 44px; padding-left: 0; }
}
@media (max-width: 520px) {
  .log__cap { flex-direction: column; gap: 4px; margin-right: 6px; }
  .log__cap .label { font-size: 0.62rem; letter-spacing: 0.08em; }
}

/* Recent work */
.work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 4px; }
.work__item { margin: 0; }
.work__item--wide { grid-column: span 2; }
.work__item img { width: 100%; height: clamp(250px, 29vw, 410px); object-fit: cover; }
.work__cap { margin-top: 14px; color: var(--navy); padding-right: 12px; }
@media (max-width: 760px) {
  .work { grid-template-columns: repeat(2, 1fr); gap: 26px 4px; }
  .work__item img { height: clamp(190px, 56vw, 330px); }
  .work__cap.label { font-size: 0.68rem; letter-spacing: 0.11em; }
}

/* 7. Stats ---------------------------------------------------------------- */
.stats-sec { padding-block: clamp(56px, 7vw, 96px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 6px clamp(16px, 2.6vw, 40px); border-left: 1px solid var(--silver); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num {
  margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: clamp(3.2rem, 6.1vw, 5.6rem); line-height: 0.92; letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__label { margin: 12px 0 0; color: var(--ink); max-width: 16em; }
@media (max-width: 1100px) {
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
  .stat__num { font-size: clamp(3.2rem, 11vw, 5.6rem); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat__label.label { font-size: 0.7rem; letter-spacing: 0.12em; }
}

/* 8. Family section (the only place the wood accent appears) -------------- */
.family { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.5vw, 32px); align-items: center; }
.family__media { grid-column: 1 / span 6; position: relative; padding: 0 0 26px 26px; }
.family__media::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 46%; height: 62%; background: var(--wood);
}
.family__media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.family__text { grid-column: 8 / -1; }
.family__text .h-sec { margin-bottom: clamp(20px, 2.6vw, 32px); }
.family__text .h-sec::before { content: ""; display: block; width: 72px; height: 6px; background: var(--wood); margin-bottom: 26px; }
.family__say {
  font-family: var(--font-head); font-weight: 500; color: var(--navy);
  font-size: clamp(1.7rem, 2.5vw, 2.25rem); line-height: 1.16;
  margin: 1.2em 0; padding-left: 22px; border-left: 4px solid var(--wood);
}
.family__std {
  margin: 1.5em 0 0; padding-top: 1.1em; border-top: 1px solid var(--silver);
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; color: var(--navy);
  font-size: clamp(1.9rem, 2.9vw, 2.6rem); line-height: 1.02; letter-spacing: 0.005em;
}
.family__std span { display: block; color: var(--wood); }
.family__std-sub { margin-top: 0.7em; }
.family__not { display: block; font-size: 0.68em; line-height: 1.3; font-weight: 500; color: #5d6b80; margin-bottom: 0.5em; }
.family__say strong {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
  background: linear-gradient(var(--wood), var(--wood)) left 92% / 100% 4px no-repeat; padding-bottom: 3px;
}
@media (max-width: 960px) {
  .family__media, .family__text { grid-column: 1 / -1; }
  .family__media { padding: 0 0 18px 18px; max-width: 680px; }
  .family__text { margin-top: 44px; }
}

/* 9. Reviews and form band ------------------------------------------------ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.review {
  margin: 0; background: var(--white); border: 1px solid var(--silver);
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column;
}
.review__stars { display: flex; gap: 4px; color: var(--navy); margin-bottom: 20px; }
.review__stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0 0 24px; font-size: 1rem; line-height: 1.62; }
.review figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--silver); color: var(--navy); }
.review figcaption span { display: block; margin-top: 2px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; font-size: 0.84rem; color: var(--ink); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* Form band. Its top edge repeats the hero's angle; this is the only repeat. */
.formband {
  background: var(--navy); color: var(--white);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--slant));
  padding-top: calc(var(--slant) + clamp(64px, 8vw, 112px));
  padding-bottom: var(--sec-y);
}
.has-formband { padding-bottom: calc(var(--sec-y) + var(--slant)); }
.formband__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.5vw, 32px); align-items: start; }
.formband__text { grid-column: 1 / span 5; }
.formband__text .h-sec { margin-bottom: clamp(20px, 2.6vw, 32px); }
.formband__form { grid-column: 7 / -1; }
.reach { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(255, 255, 255, 0.3); }
.reach__row { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.reach__row p { margin: 0; }
.reach__big { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; }
.reach__big a { color: var(--white); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.reach__big a:hover { color: var(--sky); }
@media (max-width: 960px) {
  .formband__text, .formband__form { grid-column: 1 / -1; }
  .formband__form { margin-top: 40px; }
}

/* The form: a static preview until TALLY_FORM_ID is set in main.js */
.formbox { background: var(--white); color: var(--ink); padding: clamp(22px, 3vw, 40px); border: 1px solid var(--silver); }
.formbox--embed { padding: clamp(14px, 2vw, 24px); }
.formbox iframe { display: block; width: 100%; min-height: 720px; border: 0; }
.formbox__flag {
  display: inline-block; margin-bottom: 20px; padding: 6px 10px;
  background: var(--off); color: var(--navy); border: 1px solid var(--silver);
}
.formbox__flag.label { font-size: 0.66rem; }
.field { margin-bottom: 20px; }
.field__label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 7px; }
.field__opt { font-weight: 400; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #6E7480; border-radius: 0; background: var(--white);
  font: inherit; font-size: 1rem; color: var(--ink); appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field__help { margin: 7px 0 0; font-size: 0.84rem; line-height: 1.5; color: #4A4648; }
.drop {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px;
  border: 1px dashed #6E7480; background: var(--off); cursor: pointer;
}
.drop svg { width: 26px; height: 26px; flex: none; color: var(--navy); }
.drop span { font-size: 0.92rem; }
.drop:focus-within { outline: 3px solid var(--blue); }
.formbox .btn { width: 100%; margin-top: 4px; }
.formbox__fine { margin: 14px 0 0; font-size: 0.8rem; line-height: 1.5; color: #4A4648; }
.formbox__msg { margin: 16px 0 0; padding: 14px 16px; background: var(--off); border-left: 4px solid var(--navy); font-size: 0.92rem; }
.formbox__msg[hidden] { display: none; }

/* 10. Footer, side tab, phone bar ---------------------------------------- */
.site-foot { background: var(--ink); color: var(--white); padding-block: clamp(56px, 7vw, 88px) 32px; }
.site-foot a { color: var(--white); text-decoration: none; }
.site-foot a:hover { color: var(--sky); text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 5fr 4fr 3fr; column-gap: clamp(24px, 4vw, 64px); row-gap: 40px; }
.foot__logo { height: 46px; width: auto; margin-bottom: 22px; }
.foot__col .foot__tag { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; letter-spacing: 0.02em; margin-bottom: 12px; }
.foot__col p { margin: 0 0 6px; font-size: 0.95rem; }
.foot__col li a, .foot__col p a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__col p.foot__plain { padding-block: 9px; }
.foot__links a { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.foot__lic { margin-top: 14px; color: var(--white); }
.foot__base { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.82rem; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .site-foot { padding-bottom: 104px; } }

/* Slim tab that slides in from the right edge once the hero is behind you */
.sidetab {
  position: fixed; right: 0; top: 50%; z-index: 55;
  writing-mode: vertical-rl;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; padding: 22px 13px;
  background: var(--blue); color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2;
  transform: translate(100%, -50%); visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.55s, background-color 0.15s ease;
}
.sidetab:hover { background: var(--navy); color: var(--white); }
.sidetab:focus-visible { --focus: var(--navy); outline-offset: -5px; outline-color: var(--white); }
.cta-on .sidetab { transform: translate(0, -50%); visibility: visible; transition-delay: 0s, 0s, 0s; }

.phonebar { display: none; }
@media (max-width: 768px) {
  .sidetab { display: none; }
  .phonebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: 34% 66%;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateY(100%); visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.4s;
  }
  .cta-on .phonebar { transform: translateY(0); visibility: visible; transition-delay: 0s, 0s; }
  .phonebar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 8px 10px;
    color: var(--white); text-decoration: none; text-align: center;
    font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.25;
  }
  .phonebar a svg { width: 17px; height: 17px; flex: none; }
  .phonebar__cta { background: var(--blue); }
}

/* 11. Inner pages --------------------------------------------------------- */
.pagehead { background: var(--navy); color: var(--white); padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6.5vw, 88px); }
.pagehead .lede { margin-top: clamp(18px, 2vw, 28px); }
.pagehead .lede + .lede { margin-top: 0.9em; }

/* Services */
.svc { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.5vw, 32px); align-items: center; }
.svc + .svc { margin-top: clamp(56px, 7.5vw, 104px); }
.svc__media { grid-column: 1 / span 7; grid-row: 1; }
.svc__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc__text { grid-column: 9 / -1; grid-row: 1; }
.svc--flip .svc__media { grid-column: 6 / -1; }
.svc--flip .svc__text { grid-column: 1 / span 4; }
.svc__text .h-sub { margin-bottom: 16px; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; }
@media (max-width: 900px) {
  .svc__media, .svc--flip .svc__media, .svc__text, .svc--flip .svc__text { grid-column: 1 / -1; grid-row: auto; }
  .svc__text { margin-top: 24px; }
}

.notlisted { max-width: 46em; }
.notlisted .h-sec { margin-bottom: clamp(18px, 2.2vw, 28px); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--navy); }
.step { counter-increment: step; padding: 26px 22px 0 0; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--silver); }
.step::before {
  content: counter(step); display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 0.9; color: var(--navy); margin-bottom: 18px;
}
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 0.93rem; line-height: 1.6; }
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step {
    display: grid; grid-template-columns: 64px 1fr; column-gap: 8px;
    padding: 24px 0; border-left: 0; border-top: 1px solid var(--silver);
  }
  .step::before { grid-row: 1 / span 2; margin: 0; }
  .step h3, .step p { grid-column: 2; }
}

.closer { background: var(--navy); color: var(--white); padding-block: clamp(64px, 8vw, 112px); }
.closer__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.closer__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.closer__call { margin: 0; font-weight: 500; }
.closer__call a { color: var(--white); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

/* Projects */
.feat + .feat { margin-top: clamp(64px, 8vw, 112px); }
.feat__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.5vw, 32px); align-items: end; margin-bottom: 28px; }
.feat__head .h-sub { grid-column: 1 / span 5; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; }
.feat__head p { grid-column: 7 / -1; margin: 0; }
.feat__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.feat__shot { margin: 0; }
.feat__shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feat__row--four { grid-template-columns: repeat(4, 1fr); }
.feat__row--four .feat__shot img { aspect-ratio: 4 / 3; }
.feat__shot figcaption { margin-top: 12px; color: var(--navy); }
@media (max-width: 800px) {
  .feat__head .h-sub, .feat__head p { grid-column: 1 / -1; }
  .feat__head p { margin-top: 14px; }
  .feat__row--four { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
@media (max-width: 560px) { .feat__shot figcaption.label { font-size: 0.62rem; letter-spacing: 0.08em; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 4px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { margin-top: 12px; color: var(--navy); padding-right: 10px; }
.gallery figcaption.label { font-size: 0.7rem; letter-spacing: 0.13em; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 24px 4px; } .gallery figcaption.label { font-size: 0.64rem; letter-spacing: 0.09em; } }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.5vw, 32px); align-items: start; }
.contact__form { grid-column: 1 / span 7; }
.contact__side { grid-column: 9 / -1; }
.ways { border-top: 2px solid var(--navy); }
.ways__row { padding: 18px 0; border-bottom: 1px solid var(--silver); }
.ways__row dt { color: var(--navy); margin-bottom: 4px; }
.ways__row dd { margin: 0; }
.ways__row dd a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.ways__big { font-family: var(--font-head); font-weight: 600; font-size: 2.1rem; line-height: 1.1; }
.ways__big a { color: var(--navy); text-decoration: none; }
@media (max-width: 960px) {
  .contact__form, .contact__side { grid-column: 1 / -1; }
  .contact__side { margin-top: 48px; }
}

/* Privacy and page not found */
.prose { max-width: 40em; }
.prose p { margin-bottom: 1.3em; }
.linkrow { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 28px; }

/* 12. Motion -------------------------------------------------------------- */
/* One moment on load: the photo pushes in slowly while the headline, line and
   button arrive in order. After that the page is still. */
@keyframes push-in { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero__photo img { animation: push-in 14s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero__title span, .hero__lead, .hero__actions { animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__title span:nth-child(1) { animation-delay: 0.2s; }
.hero__title span:nth-child(2) { animation-delay: 0.36s; }
.hero__lead { animation-delay: 0.62s; }
.hero__actions { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo img, .hero__title span, .hero__lead, .hero__actions { animation: none; }
  .sidetab, .phonebar, .btn { transition: none; }
}

@media print {
  .site-head, .sidetab, .phonebar { display: none; }
}
