/* ==========================================================================
   Cobra Groundworks — homepage mockup
   Direction: "Cut stone". The logo's own ink + copper foil, limestone as the
   light ground, chamfered corners (cut slabs, the faceted cobra), tall
   condensed capitals echoing the hand-cut wordmark. Photography leads.

   Contents
   01 Fonts            06 Hero              11 Reviews
   02 Tokens           07 Intro             12 Contact
   03 Base             08 Services          13 Footer
   04 Components       09 Work              14 Mobile dock
   05 Header & menu    10 Build strip       15 Motion preferences
   ========================================================================== */

/* 01 Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("../fonts/sofia-sans-extra-condensed.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

/* 02 Tokens --------------------------------------------------------------- */
:root {
  /* colour — sampled from the logo artwork */
  --ink: #262a35;
  --ink-deep: #1a1d26;
  --ink-raised: #303544;
  --stone: #ece6da;
  --stone-deep: #ddd4c3;
  --bone: #f6f2ea;
  --copper-light: #f3c0b0;
  --copper: #c08d7d;
  --copper-dark: #976557;
  --copper-text: #7b4838; /* copper that passes AA on stone */
  --foil: linear-gradient(100deg, #a9715f 0%, #e6b09d 30%, #f3c0b0 48%, #d4a08e 66%, #a46c5b 100%);

  --line-on-ink: rgba(246, 242, 234, 0.18);
  --line-on-stone: rgba(38, 42, 53, 0.2);

  /* type */
  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --f-text: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-voice: "Newsreader", Georgia, "Times New Roman", serif;

  /* layout */
  --max: 1520px;
  --gutter: clamp(20px, 3.6vw, 64px);
  --gap: clamp(14px, 1.9vw, 30px);
  --cut: clamp(20px, 2.6vw, 40px);
  --header-h: 84px;

  /* the torn edge of the logo's copper square, traced from the artwork */
  --torn: polygon(1.29% 0.32%, 0.96% 1.30%, 2.25% 2.60%, 0.96% 6.82%, 1.29% 8.12%, 0.64% 8.77%, 1.61% 10.71%, 1.61% 11.36%, 0.96% 11.69%, 1.29% 12.01%, 0.96% 15.91%, 1.61% 16.88%, 0.96% 17.53%, 1.29% 20.45%, 0.64% 20.78%, 0.96% 21.75%, 0.64% 22.73%, 1.61% 23.70%, 0.64% 25.65%, 1.93% 26.30%, 1.93% 27.60%, 0.96% 28.25%, 0.64% 30.52%, 1.29% 37.99%, 0.64% 38.31%, 0.32% 37.34%, 0% 38.64%, 0.64% 39.94%, 0.32% 40.26%, 0.64% 46.10%, 0.96% 45.45%, 1.61% 46.10%, 0.96% 47.08%, 0.64% 46.75%, 0.32% 47.08%, 0.64% 48.05%, 0.32% 53.25%, 0.96% 53.57%, 0.96% 55.52%, 0.32% 55.84%, 1.29% 56.49%, 0.64% 57.14%, 0.96% 58.44%, 0.32% 59.74%, 0.64% 60.06%, 0.32% 61.69%, 0.96% 62.66%, 1.93% 62.34%, 2.57% 62.99%, 2.57% 65.58%, 1.93% 65.91%, 1.29% 65.26%, 1.61% 64.61%, 0.32% 63.96%, 0% 64.29%, 0.32% 65.26%, 1.29% 65.91%, 0.96% 66.56%, 0.32% 66.56%, 0.96% 67.86%, 0.64% 69.48%, 0.96% 72.40%, 0.32% 73.38%, 0.32% 74.35%, 0.96% 74.68%, 0.96% 75.32%, 1.61% 75.32%, 1.93% 73.70%, 2.57% 75.65%, 2.25% 77.60%, 1.29% 79.22%, 1.93% 80.52%, 1.61% 83.12%, 1.93% 83.77%, 1.61% 84.09%, 2.25% 85.39%, 2.25% 87.01%, 0.96% 91.88%, 1.29% 93.18%, 0.96% 96.10%, 1.29% 96.75%, 1.93% 95.78%, 2.25% 96.10%, 2.25% 98.38%, 7.40% 99.03%, 8.04% 98.70%, 11.25% 98.70%, 11.58% 99.03%, 14.15% 98.70%, 16.72% 99.35%, 20.58% 99.03%, 22.19% 99.68%, 27.65% 99.03%, 28.94% 99.68%, 31.51% 99.35%, 33.76% 99.68%, 36.33% 98.38%, 38.59% 98.38%, 39.23% 99.03%, 39.87% 98.70%, 41.80% 98.70%, 43.73% 99.35%, 45.34% 99.03%, 45.66% 99.68%, 48.23% 99.68%, 47.91% 99.35%, 48.87% 99.03%, 49.52% 99.68%, 50.80% 98.70%, 53.70% 98.70%, 54.02% 99.03%, 53.70% 99.35%, 55.31% 99.35%, 56.27% 98.38%, 57.56% 99.03%, 58.84% 98.05%, 59.49% 98.05%, 59.81% 98.70%, 62.38% 99.03%, 66.56% 98.38%, 67.20% 99.35%, 69.13% 99.68%, 70.10% 98.38%, 72.03% 98.70%, 72.35% 99.35%, 73.63% 99.03%, 75.88% 99.35%, 76.21% 98.38%, 77.49% 99.35%, 79.74% 99.35%, 81.03% 98.70%, 81.67% 99.03%, 83.60% 98.70%, 83.92% 99.35%, 87.46% 98.70%, 90.35% 99.35%, 91.32% 99.03%, 97.11% 99.68%, 98.39% 99.35%, 98.71% 98.38%, 98.71% 61.36%, 98.39% 58.44%, 98.71% 58.12%, 98.71% 48.38%, 99.04% 48.05%, 98.71% 47.73%, 98.71% 38.96%, 99.36% 35.39%, 99.36% 29.87%, 98.71% 27.60%, 98.71% 22.08%, 99.04% 21.75%, 98.71% 19.81%, 99.36% 19.16%, 99.36% 11.69%, 99.04% 11.36%, 99.68% 6.82%, 99.36% 1.30%, 96.46% 0.97%, 95.50% 0.32%, 93.25% 0.65%, 92.60% 0.32%, 91.00% 1.62%, 88.75% 0.65%, 87.46% 0.97%, 84.57% 0.65%, 83.92% 1.30%, 82.96% 0.65%, 76.53% 0.32%, 76.21% 0.65%, 75.24% 0.32%, 68.49% 0.65%, 67.85% 0.32%, 67.52% 0.97%, 66.56% 0.97%, 65.92% 0.32%, 63.67% 0.65%, 61.74% 0%, 56.91% 0%, 56.59% 0.97%, 55.63% 0.65%, 55.95% 0%, 53.05% 0%, 52.09% 0.65%, 51.77% 0%, 50.80% 0%, 50.16% 0.65%, 47.59% 0.32%, 47.91% 0.65%, 47.59% 0.97%, 46.62% 0.97%, 45.02% 0%, 41.48% 0.32%, 40.51% 0.97%, 39.87% 0.65%, 38.91% 1.62%, 34.73% 1.62%, 33.76% 1.30%, 33.12% 0.32%, 30.87% 1.30%, 24.76% 0.65%, 22.51% 0.97%, 19.61% 0%, 13.50% 0.32%, 13.83% 0.65%, 13.50% 1.30%, 11.90% 0.65%, 10.93% 0.65%, 10.61% 1.30%, 8.36% 1.30%, 8.04% 0.97%, 8.68% 0.32%, 7.72% 0.32%, 7.40% 0.65%, 8.04% 0.97%, 7.72% 1.30%, 4.82% 1.30%, 4.50% 0.97%, 5.47% 0.32%, 3.54% 0%);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.58 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }
.on-stone :focus-visible { outline-color: var(--copper-text); }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.on-stone { background: var(--stone); color: var(--ink); }
.on-ink { background: var(--ink); color: var(--bone); }
.on-deep { background: var(--ink-deep); color: var(--bone); }

/* 04 Components ----------------------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.004em;
}

.eyebrow {
  font: 600 0.8125rem/1.3 var(--f-text);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.on-stone .eyebrow { color: var(--copper-text); }

.foil {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.on-stone .foil { background-image: linear-gradient(100deg, #8c5645 0%, #b27562 40%, #96604f 100%); }

/* chamfered corners: the signature shape */
.cut-tr { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-tl { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.cut-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

/* photographs: frame + caption */
.ph { position: relative; }
.ph__frame {
  aspect-ratio: var(--ar, 3 / 4);
  overflow: hidden;
  background: var(--ink-raised);
}
.ph__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.ph figcaption {
  display: flex; gap: 0.7rem; align-items: baseline;
  margin-top: 0.8rem;
  font-size: 0.9375rem; line-height: 1.35;
  color: inherit; opacity: 0.82;
}
.ph figcaption::before {
  content: ""; flex: none; width: 9px; height: 9px; transform: translateY(-1px);
  background: var(--foil);
}
.on-stone .ph figcaption::before { background: var(--copper-dark); }

/* buttons: plain rectangles; the chamfer is kept for photographs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.35rem; padding: 0 1.9rem;
  font: 700 0.8125rem/1 var(--f-text);
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--foil { background: var(--foil); color: var(--ink-deep); }
.btn--foil:hover { background: var(--copper-light); }
.btn--line { border-color: rgba(243, 192, 176, 0.65); color: var(--bone); }
.btn--line:hover { background: rgba(243, 192, 176, 0.14); border-color: var(--copper-light); }
.btn--sm { min-height: 2.75rem; padding: 0 1.3rem; font-size: 0.75rem; }

/* 05 Header & menu -------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-block: 18px;
  transition: background-color 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: var(--ink-deep);
  border-bottom-color: rgba(243, 192, 176, 0.28);
  padding-block: 10px;
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 52px; width: auto; transition: height 0.3s; }
.is-solid .brand img { height: 44px; }

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.nav__links { display: flex; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav__links a {
  font: 600 0.8125rem/1 var(--f-text); letter-spacing: 0.17em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.5rem;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav__links a:hover { border-bottom-color: var(--copper-light); }
.nav__tel {
  font: 600 0.9375rem/1 var(--f-text); letter-spacing: 0.04em; text-decoration: none;
  white-space: nowrap; color: var(--copper-light);
}
.nav__tel:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-btn {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.6rem 0;
  font: 700 0.8125rem/1 var(--f-text); letter-spacing: 0.17em; text-transform: uppercase;
}

.menu {
  position: fixed; inset: 0; z-index: 80; display: none;
  flex-direction: column; justify-content: space-between;
  padding: 22px var(--gutter) 28px; background: var(--ink-deep); overflow-y: auto;
}
.menu.is-open { display: flex; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top img { height: 46px; width: auto; }
.menu__close { background: none; border: 0; padding: 0.6rem 0; cursor: pointer; font: 700 0.8125rem/1 var(--f-text); letter-spacing: 0.17em; text-transform: uppercase; }
.menu__links { display: grid; gap: 0.2rem; margin-block: 2.5rem; }
.menu__links a {
  font: 800 clamp(3.6rem, 17vw, 6rem)/0.98 var(--f-display); text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--line-on-ink); padding-block: 0.1em 0.06em;
}
.menu__foot { display: grid; gap: 0.9rem; }
.menu__foot .btn { width: 100%; }
.menu__foot p { color: var(--copper-light); font-size: 0.9375rem; }

/* 06 Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 660px);
  display: flex; align-items: flex-end;
  background: var(--ink-deep);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 52%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 29, 38, 0.9) 0%, rgba(26, 29, 38, 0.72) 36%, rgba(26, 29, 38, 0.3) 62%, rgba(26, 29, 38, 0) 88%),
    linear-gradient(0deg, rgba(26, 29, 38, 0.82) 0%, rgba(26, 29, 38, 0.34) 30%, rgba(26, 29, 38, 0) 56%),
    linear-gradient(180deg, rgba(26, 29, 38, 0.72) 0%, rgba(26, 29, 38, 0) 24%);
}
.hero__inner { padding-block: calc(var(--header-h) + 4rem) clamp(1.8rem, 3.4vw, 3.2rem); }
.hero__title {
  font-size: clamp(4.4rem, 13.4vw, 15.5rem);
  line-height: 0.84; margin: 1.1rem 0 0 -0.04em;
  filter: drop-shadow(0 0 26px rgba(26, 29, 38, 0.55));
}
.hero__title span { display: block; }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end;
  margin-top: clamp(1.6rem, 3vw, 2.8rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 192, 176, 0.4);
}
.hero__lede { max-width: 38rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.hero__proof { text-align: right; line-height: 1.4; }
.hero__proof strong { display: block; font: 800 clamp(3rem, 5.2vw, 5rem)/0.9 var(--f-display); }
.hero__proof a { text-decoration-color: rgba(243, 192, 176, 0.6); text-underline-offset: 4px; }
.hero__proof .eyebrow { display: block; margin-top: 0.55rem; }
.hero__caption {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 1.4rem);
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8;
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* 07 Intro ---------------------------------------------------------------- */
.intro { padding-block: clamp(4.5rem, 10vw, 10.5rem); overflow: hidden; }
.intro__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: 3rem; align-items: start;
}
.intro__text { grid-column: 1 / span 7; }
.intro__statement {
  margin-top: 1.6rem;
  font: 500 clamp(1.9rem, 3.5vw, 3.55rem)/1.1 var(--f-text);
  letter-spacing: -0.016em; text-wrap: balance;
}
.intro__body { margin-top: 2rem; max-width: 40rem; font-size: 1.1875rem; line-height: 1.6; }
.glance {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap);
  margin-top: clamp(2.4rem, 4vw, 4rem); max-width: 46rem;
  border-top: 1px solid var(--line-on-stone);
}
.glance > div { padding-block: 1.05rem; border-bottom: 1px solid var(--line-on-stone); }
.glance dt { font: 600 0.75rem/1.2 var(--f-text); letter-spacing: 0.17em; text-transform: uppercase; color: var(--copper-text); }
.glance dd { margin-top: 0.4rem; font-weight: 500; line-height: 1.35; }
.glance a { text-decoration: none; }

.intro__visual { grid-column: 9 / span 4; position: relative; padding-bottom: 7rem; }
.intro__visual .ph--main { --ar: 3 / 4; }
.intro__visual .ph--main figcaption { justify-content: flex-end; text-align: right; }
.intro__visual .ph--inset {
  position: absolute; left: -26%; bottom: 0; width: 52%;
  padding: 10px 10px 0 0; background: var(--stone);
}
.intro__visual .ph--inset .ph__frame { --ar: 4 / 5; }

/* 08 Services ------------------------------------------------------------- */
.services { padding-block: clamp(4.5rem, 9vw, 9rem); }
.services__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end;
  margin-bottom: clamp(2.4rem, 5vw, 4.6rem);
}
.services__title { grid-column: 1 / span 8; font-size: clamp(4.6rem, 12vw, 11rem); }
.services__lede { grid-column: 9 / span 4; padding-bottom: 0.6rem; max-width: 24rem; }
.services__layout {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start;
}
.services__preview { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 1.2rem); }
.services__preview .ph__frame { --ar: 3 / 4; }
.services__preview img { transition: opacity 0.22s ease; }
.services__preview.is-swapping img { opacity: 0; }
.services__list { grid-column: 6 / span 7; border-top: 1px solid var(--line-on-ink); }
.service {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 0.4rem 2.4rem; align-items: baseline;
  padding-block: 1.05rem 1.1rem; border-bottom: 1px solid var(--line-on-ink);
}
.service__name {
  position: relative; display: block;
  font: 700 clamp(2.4rem, 4.3vw, 4.2rem)/0.95 var(--f-display); text-transform: uppercase; letter-spacing: 0.006em;
  transition: color 0.2s, transform 0.25s ease;
}
.service__desc { font-size: 0.9875rem; line-height: 1.45; color: rgba(246, 242, 234, 0.74); max-width: 26rem; }
.service__thumb { display: none; }
.service.is-active .service__name { color: var(--copper-light); transform: translateX(0.28em); }
.service.is-active .service__name::before {
  content: ""; position: absolute; left: -0.5em; top: 0.38em; width: 0.2em; height: 0.2em; background: var(--foil);
}

/* 09 Work ----------------------------------------------------------------- */
.work-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end;
  padding-top: clamp(4.5rem, 9vw, 9rem); margin-bottom: clamp(2rem, 4vw, 3.6rem);
}
.work-head__title { grid-column: 1 / span 8; font-size: clamp(4.6rem, 12vw, 11rem); }
.work-head__lede { grid-column: 9 / span 4; padding-bottom: 0.6rem; max-width: 24rem; font-size: 1.125rem; }

.spread { padding-bottom: clamp(4.5rem, 9vw, 9rem); }
.spread__label {
  display: flex; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  padding-bottom: 1.1rem; margin-bottom: clamp(1.4rem, 2.4vw, 2.2rem);
  border-bottom: 1px solid var(--line-on-stone);
}
.on-deep .spread__label { border-bottom-color: var(--line-on-ink); }
.spread__label h3 { font: 800 clamp(2.4rem, 4.4vw, 4.2rem)/0.92 var(--f-display); text-transform: uppercase; }
.spread__label p { max-width: 28rem; opacity: 0.82; }

/* A — drives and paths: one wide establishing shot, then a staggered triptych */
.a-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: calc(var(--gap) * 1.4) var(--gap); }
.a-1 { grid-column: 1 / -1; }
.a-1 .ph__frame { --ar: 21 / 9; --pos: 50% 62%; }
.a-2 { grid-column: 1 / span 4; }
.a-3 { grid-column: 5 / span 4; margin-top: clamp(1.6rem, 5vw, 5rem); }
.a-4 { grid-column: 9 / span 4; }

/* B — after dark: overlapping collage on deep ink */
.spread--dark { background: var(--ink-deep); color: var(--bone); padding-top: clamp(4.5rem, 9vw, 9rem); }
.b-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.b-1 { grid-column: 1 / span 8; grid-row: 1; }
.b-1 .ph__frame { --ar: 4 / 3; }
/* the tall right-hand photograph takes whatever height the wide one sets */
.b-2 { grid-column: 9 / span 4; grid-row: 1; display: flex; flex-direction: column; }
.b-2 .ph__frame { position: relative; flex: 1 1 0; min-height: 16rem; aspect-ratio: auto; }
.b-2 .ph__frame img { position: absolute; inset: 0; }
.b-4 { grid-column: 1 / span 5; grid-row: 2; align-self: end; }
.b-4 .ph__frame { --ar: 4 / 3; }
/* the narrow photograph rides up over the corner of the wide one */
.b-3 {
  grid-column: 6 / span 3; grid-row: 2; align-self: end; position: relative; z-index: 2;
  margin-top: calc(-1 * clamp(3rem, 7vw, 7rem));
  padding: clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px) 0; background: var(--ink-deep);
}
.b-3 .ph__frame { --ar: 3 / 5; }
.b-5 { grid-column: 9 / span 4; grid-row: 2; align-self: end; }
.b-5 .ph__frame { --ar: 4 / 5; }

/* C — terraces and lawns: text column + mosaic */
.c-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.c-text { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 1.4rem); }
.c-text p { margin-top: 1rem; font-size: 1.125rem; }
.c-1 { grid-column: 5 / span 8; }
.c-1 .ph__frame { --ar: 16 / 9; }
.c-2 { grid-column: 5 / span 4; margin-top: calc(var(--gap) * 0.6); }
.c-3 { grid-column: 9 / span 4; margin-top: calc(var(--gap) * 0.6 + clamp(2rem, 6vw, 6.5rem)); }
.c-3 .ph__frame { --ar: 4 / 5; }

/* 10 Build strip ---------------------------------------------------------- */
.build { padding-block: clamp(4.5rem, 9vw, 9rem); }
.build__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.6rem);
}
.build__title { grid-column: 1 / span 9; font-size: clamp(3.6rem, 9vw, 8.6rem); }
.build__lede { grid-column: 10 / span 3; padding-bottom: 0.5rem; }
.build__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stage__name {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 0.7rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line-on-ink);
  font: 800 clamp(2rem, 3.2vw, 3.2rem)/0.9 var(--f-display); text-transform: uppercase;
}
.stage:nth-child(even) { margin-top: clamp(1.4rem, 3.4vw, 3.4rem); }

/* 11 Reviews -------------------------------------------------------------- */
.reviews { padding-block: clamp(4.5rem, 10vw, 10rem); }
.reviews__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.reviews__lead { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 1.4rem); }
.reviews__score { font: 800 clamp(8rem, 17vw, 17rem)/0.8 var(--f-display); letter-spacing: -0.01em; margin: 1.4rem 0 0 -0.04em; }
.reviews__score small { font-size: 0.38em; letter-spacing: 0; }
.reviews__sub { margin-top: 1.2rem; font-size: 1.1875rem; line-height: 1.4; max-width: 18rem; }
.reviews__sub a { text-underline-offset: 4px; text-decoration-color: var(--copper-dark); }
.themes { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line-on-stone); }
.themes ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 0.8rem; font-weight: 500; }
.themes li { display: flex; align-items: center; gap: 0.55rem; }
.themes li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--copper-dark); }

.reviews__body { grid-column: 6 / span 7; }
.quote { font-family: var(--f-voice); }
.quote blockquote { font-weight: 400; letter-spacing: -0.005em; }
.quote cite {
  display: block; margin-top: 1rem; font: 600 0.8125rem/1.3 var(--f-text); letter-spacing: 0.15em; text-transform: uppercase;
  font-style: normal; color: var(--copper-text);
}
.quote cite span { font-weight: 500; opacity: 0.75; }
.quote--lead { padding-bottom: clamp(2rem, 4vw, 3.4rem); border-bottom: 1px solid var(--line-on-stone); }
.quote--lead blockquote { font-size: clamp(1.7rem, 2.9vw, 2.75rem); line-height: 1.2; text-wrap: pretty; }
.quote--lead blockquote::before {
  content: "\201C"; display: block; font: 500 7rem/0.6 var(--f-voice); color: var(--copper-dark); margin-bottom: 0.6rem;
}
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.6rem, 3.4vw, 3.6rem); }
.quotes .quote { padding-block: clamp(1.4rem, 2.4vw, 2.2rem); border-bottom: 1px solid var(--line-on-stone); }
.quotes blockquote { font-size: clamp(1.1875rem, 1.45vw, 1.4rem); line-height: 1.34; }

/* 12 Contact -------------------------------------------------------------- */
.contact { padding-block: clamp(4.5rem, 9vw, 9rem); position: relative; overflow: hidden; }
.contact__head { max-width: 62rem; }
.contact__title { font-size: clamp(4.6rem, 12vw, 11rem); margin-top: 1.1rem; }
.contact__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start;
  margin-top: clamp(2.4rem, 5vw, 4.6rem);
}
.contact__side { grid-column: 1 / span 5; }
.contact__lede { font-size: 1.1875rem; max-width: 30rem; }

/* the call card: the logo's torn copper square, rebuilt as a button */
.callcard {
  position: relative; display: block; margin-top: 2rem; text-decoration: none; color: var(--ink-deep);
  aspect-ratio: 1.12 / 1; padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--foil); clip-path: var(--torn);
  transition: filter 0.25s;
}
.callcard:hover { filter: brightness(1.06); }
.callcard__mark { position: absolute; left: 9%; top: 9%; width: 25%; color: var(--ink); }
.callcard__label { position: absolute; right: clamp(1.6rem, 3vw, 2.6rem); top: clamp(1.6rem, 3vw, 2.6rem); text-align: right; font: 700 0.8125rem/1.35 var(--f-text); letter-spacing: 0.17em; text-transform: uppercase; }
.callcard__num {
  position: absolute; left: clamp(1.6rem, 3vw, 2.6rem); right: clamp(1.6rem, 3vw, 2.6rem); bottom: clamp(1.4rem, 2.6vw, 2.2rem);
  font: 800 clamp(3.4rem, 6.4vw, 6.6rem)/0.84 var(--f-display); letter-spacing: 0.004em; text-transform: uppercase;
}
.callcard__num small { display: block; margin-bottom: 0.7rem; font: 600 0.9375rem/1.3 var(--f-text); letter-spacing: 0.04em; text-transform: none; }

.reach { margin-top: 2rem; border-top: 1px solid var(--line-on-ink); }
.reach li { border-bottom: 1px solid var(--line-on-ink); }
.reach a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-block: 1rem; text-decoration: none; transition: color 0.2s; }
.reach a:hover { color: var(--copper-light); }
.reach span { font: 600 0.75rem/1.2 var(--f-text); letter-spacing: 0.17em; text-transform: uppercase; color: var(--copper-light); }
.reach strong { font-weight: 500; font-size: 1.125rem; text-align: right; overflow-wrap: anywhere; }
.areas { margin-top: 1.6rem; color: rgba(246, 242, 234, 0.78); }

.form { grid-column: 7 / span 6; padding: clamp(1.6rem, 3.4vw, 3.2rem); background: var(--ink-raised); }
.form__title { font: 800 clamp(2rem, 3.2vw, 3rem)/0.95 var(--f-display); text-transform: uppercase; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.field { display: block; margin-top: 1.5rem; }
.field > span { display: block; font: 600 0.75rem/1.2 var(--f-text); letter-spacing: 0.17em; text-transform: uppercase; color: var(--copper-light); }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.75rem 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(246, 242, 234, 0.4); border-radius: 0;
  font-size: 1.125rem; transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 242, 234, 0.42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--copper-light); box-shadow: 0 1px 0 var(--copper-light); }
.field select {
  appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f3c0b0' stroke-width='1.6'/%3E%3C/svg%3E") right 0.2rem center / 14px no-repeat;
}
.field select option { color: var(--ink); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.form__note { font-size: 0.875rem; opacity: 0.72; max-width: 22rem; }
.form__status { margin-top: 1rem; color: var(--copper-light); min-height: 1.5em; }

/* 13 Footer --------------------------------------------------------------- */
.footer { padding-block: clamp(3.4rem, 6vw, 5.6rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.4rem var(--gap); }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand img { width: min(100%, 290px); height: auto; }
.footer__brand p { margin-top: 1.2rem; max-width: 22rem; color: rgba(246, 242, 234, 0.74); }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: 6 / span 3; }
.footer__col h2 { font: 600 0.75rem/1.2 var(--f-text); letter-spacing: 0.17em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 1rem; }
.footer__col li + li { margin-top: 0.45rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__services { columns: 2; column-gap: 1.6rem; }
.footer__services li { break-inside: avoid; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem;
  margin-top: clamp(2.6rem, 5vw, 4.4rem); padding-top: 1.4rem; border-top: 1px solid var(--line-on-ink);
  font-size: 0.875rem; color: rgba(246, 242, 234, 0.62);
}

/* 14 Mobile dock ---------------------------------------------------------- */
.dock { display: none; }

/* ---- Tablet and below ---------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --header-h: 74px; }
  .nav__links, .nav__tel { display: none; }
  .menu-btn { display: block; }
  .nav .btn { display: none; }

  .intro__text { grid-column: 1 / -1; }
  .intro__visual { grid-column: 1 / span 8; padding-bottom: 0; }
  .intro__visual .ph--inset { display: none; }

  .services__preview { grid-column: 1 / span 5; }
  .services__list { grid-column: 6 / -1; }
  .service { grid-template-columns: 1fr; }
  .services__title, .work-head__title { grid-column: 1 / -1; }
  .services__lede, .work-head__lede { grid-column: 1 / span 8; }

  .b-grid { align-items: start; }
  .b-1 { grid-column: 1 / -1; grid-row: auto; }
  .b-2 { grid-column: 1 / span 6; grid-row: auto; display: block; }
  .b-2 .ph__frame { position: static; flex: none; min-height: 0; aspect-ratio: var(--ar, 3 / 4); }
  .b-2 .ph__frame img { position: static; }
  .b-5 { grid-column: 7 / span 6; grid-row: auto; align-self: start; }
  .b-4 { grid-column: 1 / span 7; grid-row: auto; align-self: start; }
  .b-3 { grid-column: 8 / span 5; grid-row: auto; align-self: start; margin-top: 0; padding: 0; background: none; }
  .b-3 .ph__frame { --ar: 3 / 4; }

  .c-text { grid-column: 1 / -1; position: static; }
  .c-text p { max-width: 32rem; }
  .c-1 { grid-column: 1 / -1; }
  .c-2 { grid-column: 1 / span 6; }
  .c-3 { grid-column: 7 / span 6; }

  .reviews__lead { grid-column: 1 / -1; position: static; }
  .reviews__score { font-size: clamp(7rem, 24vw, 13rem); }
  .reviews__body { grid-column: 1 / -1; margin-top: 1.5rem; }

  .contact__side { grid-column: 1 / -1; }
  .callcard { max-width: 34rem; }
  .form { grid-column: 1 / -1; }

  .build__title { grid-column: 1 / -1; }
  .build__lede { grid-column: 1 / span 8; }
  .build__track { grid-template-columns: 1fr 1fr; row-gap: calc(var(--gap) * 1.4); }
  .stage:nth-child(even) { margin-top: 0; }

  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 4; }
  .footer__col--wide { grid-column: span 8; }
}

/* ---- Phones -------------------------------------------------------------- */
@media (max-width: 760px) {
  body { padding-bottom: 3.6rem; font-size: 1rem; }
  .brand img { height: 44px; }

  .hero { min-height: max(100svh, 640px); }
  .hero__media img { object-position: 58% 50%; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(26, 29, 38, 0.95) 0%, rgba(26, 29, 38, 0.78) 38%, rgba(26, 29, 38, 0.1) 72%, rgba(26, 29, 38, 0) 100%),
      linear-gradient(180deg, rgba(26, 29, 38, 0.75) 0%, rgba(26, 29, 38, 0) 22%);
  }
  .hero__caption { display: none; }
  .hero__inner { padding-bottom: 1.5rem; }
  .hero__foot { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__proof { text-align: left; display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
  .hero__proof strong { font-size: 3.2rem; }
  .hero__proof .eyebrow { margin-top: 0; }

  .intro__visual { grid-column: 1 / -1; }
  .glance { grid-template-columns: 1fr; }

  .services__head { margin-bottom: 1.6rem; }
  .services__lede { grid-column: 1 / -1; }
  .services__preview { display: none; }
  .services__list { grid-column: 1 / -1; }
  .service { grid-template-columns: 5.6rem 1fr; column-gap: 1.1rem; align-items: center; padding-block: 1rem; }
  .service__thumb { display: block; grid-row: 1 / span 2; width: 5.6rem; height: 7.2rem; object-fit: cover; --cut: 16px; }
  .service__name { font-size: 2.5rem; }
  .service.is-active .service__name { transform: none; color: inherit; }
  .service.is-active .service__name::before { display: none; }
  .service__desc { font-size: 0.9375rem; }

  .work-head__lede { grid-column: 1 / -1; }
  .a-2, .a-3, .a-4 { grid-column: 1 / -1; margin-top: 0; }
  .a-1 .ph__frame { --ar: 4 / 3; }
  .b-1, .b-2, .b-3, .b-4, .b-5 { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .b-2 .ph__frame, .b-3 .ph__frame { --ar: 4 / 5; }
  .c-2, .c-3 { grid-column: 1 / -1; margin-top: 0; }

  .build__track {
    display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .stage { flex: 0 0 74vw; scroll-snap-align: start; }
  .build__lede { grid-column: 1 / -1; }

  .quotes { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .callcard__num { font-size: clamp(3.2rem, 15vw, 4.6rem); }
  .footer__col, .footer__col--wide { grid-column: 1 / -1; }

  .dock {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.2fr;
    background: var(--ink-deep); border-top: 1px solid rgba(243, 192, 176, 0.4);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform 0.3s ease;
  }
  .dock.is-visible { transform: none; }
  .dock a {
    display: flex; align-items: center; justify-content: center; min-height: 3.6rem; text-decoration: none;
    font: 700 0.75rem/1 var(--f-text); letter-spacing: 0.16em; text-transform: uppercase;
  }
  .dock a + a { border-left: 1px solid rgba(243, 192, 176, 0.28); }
  .dock a:last-child { background: var(--foil); color: var(--ink-deep); border-left: 0; }
}

/* 15 Motion preferences ----------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
