/* ==========================================================
   DG Brickwork — site styles (cinematic / minimal)
   Brand tokens live here only. When the logo refresh is signed
   off, change this block (fonts + colours) and nothing else.
   ========================================================== */
:root {
  /* Tesla type system: Universal Sans is Tesla-proprietary, so Inter stands in (its optical
     sizes give the Display cut at large sizes and the Text cut small). Weights 400 and 500 only. */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --soft: rgba(236, 232, 225, .55);                         /* lead-in words in two-tone headlines */
  --cta: #2E6BB8;          /* DG blue, brightened to Tesla-button vibrancy */
  --pewter: #9A9CA1;       /* Tesla's Pewter #5C5E62, lifted so it passes contrast on a dark ground */

  --ground: #0E0F11;       /* near-black, warm */
  --raise: #16181B;        /* tiles */
  --ink: #ECE8E1;          /* bone */
  --muted: #8B8F95;
  --line: rgba(236, 232, 225, .12);
  --accent: #6FA3D6;       /* DG blue on dark ground — matches the signed-off lockup */
  --brick: #B4633F;        /* clay — brick drawings only */
  --star: #E3B45B;         /* review stars: a muted Google gold, so a rating reads at a glance */

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --slow: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 14px/20px var(--font); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 500; }
/* Hero Title: 40 / 500 / 48 */
h2 { font-size: 40px; line-height: 48px; color: var(--soft); }
/* Product Name: 17 / 500 / 20 */
h3 { font-size: 17px; line-height: 20px; }
/* Emphasis is tonal, not italic: lead-in words sit back, the key phrase is full bone. */
h1 em, h2 em, .interlude__line em { font-style: normal; color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding-top: clamp(96px, 14vw, 200px); }
/* Sub-link: 14 / 400 / 20, pewter */
.label { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--pewter); margin-bottom: 8px; }
.label--light { color: rgba(255,255,255,.78); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--split { display: flex; justify-content: space-between; align-items: end; gap: 32px; }

/* ---------- links & buttons ---------- */
.link-arrow {
  display: inline-flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; font-weight: 500;
  padding-bottom: 2px; border-bottom: 1px solid rgba(236,232,225,.4); transition: border-color .3s;
}
.link-arrow:hover { border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 40px; padding: 0 24px;
  font-size: 14px; line-height: 20px; font-weight: 500; border-radius: 4px; transition: background .3s, color .3s;
}
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: #2A5FA3; }
.btn--light { background: rgba(244,244,244,.92); color: #171A20; }
.btn--light:hover { background: #fff; }
.btn--line { background: rgba(23,26,32,.7); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--line:hover { background: rgba(23,26,32,.9); }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.btn--outline:hover { background: #fff; color: #171A20; box-shadow: inset 0 0 0 1px #fff; }

/* ---------- unconfirmed-content marker ---------- */
.tbc { position: relative; outline: 1.5px dashed var(--brick); outline-offset: 3px; border-radius: 2px; }
.tbc[data-tbc]::after {
  content: "TBC · " attr(data-tbc); position: absolute; right: 6px; top: -9px; z-index: 5;
  font: 700 9px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; font-style: normal; font-stretch: 100%;
  background: var(--brick); color: #fff; padding: 4px 6px; border-radius: 2px; white-space: nowrap; pointer-events: none;
}
html.clean .tbc { outline: none; }
html.clean .tbc::after { display: none; }

/* ---------- film grain ---------- */
.grain {
  position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); }
}

/* ---------- photo placeholders (only where Danny hasn't sent a photo yet) ---------- */
.ph {
  position: relative; overflow: hidden; background-color: #1D2024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cg fill='%23262A2F'%3E%3Crect x='1' y='1' width='57' height='18'/%3E%3Crect x='61' y='1' width='57' height='18'/%3E%3Crect x='-29' y='21' width='57' height='18'/%3E%3Crect x='31' y='21' width='57' height='18'/%3E%3Crect x='91' y='21' width='57' height='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 40px;
}
.ph::before {
  content: attr(data-label); position: absolute; left: 14px; top: 14px; z-index: 2;
  font: 400 14px/20px var(--font); color: var(--pewter);
}
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::before { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 84px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  transition: background .5s var(--ease), height .5s var(--ease), backdrop-filter .5s;
}
.nav.is-solid { background: rgba(14,15,17,.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); height: 68px; }
.brand { position: relative; display: block; height: 34px; width: 191px; }
.brand img { position: absolute; left: 0; top: 50%; height: 100%; width: auto; transform: translateY(-50%); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.brand__mark { height: 26px !important; opacity: 0; transform: translateY(-50%) scale(.85) !important; }
.nav.is-solid .brand__lockup { opacity: 0; transform: translateY(-50%) scale(.92); }
.nav.is-solid .brand__mark { opacity: 1; transform: translateY(-50%) scale(1) !important; }
/* Nav Item: 14 / 500 / 16.8 */
.nav__links { display: flex; gap: 4px; }
.nav__links a { font-size: 14px; line-height: 16.8px; font-weight: 500; padding: 8px 16px; border-radius: 4px; transition: background .3s; }
.nav__links a:hover { background: rgba(255,255,255,.1); }
.nav__links a[aria-current] { background: rgba(255,255,255,.08); }
/* quote button, just left of the burger: on the home page it waits for the nav to go solid, since the hero has
   its own; on desktop it also waits for the links to fold into the burger, so the two never overlap */
.nav__quote { min-width: 0; height: 36px; padding: 0 18px; margin-left: auto; transition: background .3s, opacity .45s var(--ease), visibility .45s, transform .45s var(--ease); }
.nav:not(.is-solid) .nav__quote, .menu-open .nav__quote { opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; }
@media (min-width: 961px) { .nav:not(.is-scrolled) .nav__quote { opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; } }
@media (max-width: 960px) { .nav__quote { margin-right: 6px; height: 34px; padding: 0 14px; } }

/* ---------- burger + menu (always on phones; on desktop once the page scrolls) ---------- */
.burger {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; border-radius: 4px; color: var(--ink); cursor: pointer;
}
/* Three courses of Flemish bond: stretcher (8px) and header (4px) alternate along each course, and every
   header sits centred on the stretcher below. 2px bricks, 2px mortar. Open, the outer courses cross into an X. */
.burger span {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: linear-gradient(90deg, currentColor 8px, transparent 8px 10px, currentColor 10px 14px, transparent 14px 16px, currentColor 16px);
  transition: transform .45s var(--slow), top .45s var(--slow), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) {
  top: 21px; left: 12px; width: 20px;
  background: linear-gradient(90deg, currentColor 4px, transparent 4px 6px, currentColor 6px 14px, transparent 14px 16px, currentColor 16px);
}
.burger span:nth-child(3) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.menu-open .nav { background: var(--ground); backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open { overflow: hidden; }
.menu-open .wa-float { opacity: 0; pointer-events: none; }

.menu {
  position: fixed; inset: 0; z-index: 45; display: none; flex-direction: column;
  padding: 96px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--ground);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-size: 28px; line-height: 34px; font-weight: 500; padding: 18px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--slow), transform .5s var(--slow), color .3s;
}
.menu__links a[aria-current] { color: var(--accent); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu__btns { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 40px; }
.menu__btns .btn { width: 100%; }

/* desktop: the links sit in the bar at the top of the page, then fold into the burger as soon as it scrolls */
@media (min-width: 961px) {
  html { scrollbar-gutter: stable; }   /* opening the menu hides the scrollbar; this stops the page jumping sideways */
  .nav__links { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); transition: visibility 0s; }
  .nav__links a { transition: background .3s, opacity .35s var(--ease) .15s, transform .5s var(--slow) .15s; }
  .nav__links a:nth-child(2) { transition-delay: 0s, .2s, .2s; }
  .nav__links a:nth-child(3) { transition-delay: 0s, .25s, .25s; }
  /* scrolled: they slide toward the burger and go, nearest first */
  .nav.is-scrolled .nav__links { visibility: hidden; transition: visibility 0s .45s; }
  .nav.is-scrolled .nav__links a { opacity: 0; transform: translateX(16px); transition-delay: 0s, .1s, .1s; }
  .nav.is-scrolled .nav__links a:nth-child(2) { transition-delay: 0s, .05s, .05s; }
  .nav.is-scrolled .nav__links a:nth-child(3) { transition-delay: 0s, 0s, 0s; }

  .burger { display: block; margin-left: 12px; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s, background .3s; }
  .burger:hover { background: rgba(255,255,255,.1); }
  .nav.is-scrolled .burger, .menu-open .burger { opacity: 1; visibility: visible; transition: opacity .3s var(--ease) .15s, visibility 0s, background .3s; }
  /* it arrives the way a wall goes up: bottom course first */
  .nav.is-scrolled .burger span { animation: course-in .5s var(--slow) backwards; }
  .nav.is-scrolled .burger span:nth-child(3) { animation-delay: .2s; }
  .nav.is-scrolled .burger span:nth-child(2) { animation-delay: .3s; }
  .nav.is-scrolled .burger span:nth-child(1) { animation-delay: .4s; }

  /* the menu itself: big links down the left, a line under each, an arrow on hover, the buttons side by side */
  .menu { display: flex; padding: 140px var(--gutter) 56px; }
  .menu__links a { display: flex; align-items: center; justify-content: space-between; font-size: clamp(40px, 4vw, 56px); line-height: 1.15; padding: 22px 0; }
  .menu__links a::after { content: "→"; font-size: .5em; font-weight: 400; opacity: 0; transform: translateX(-16px); transition: opacity .3s var(--ease), transform .5s var(--slow); }
  .menu__links:hover a { color: var(--soft); }
  .menu__links a:hover { color: var(--ink); }
  .menu__links a:hover::after { opacity: 1; transform: none; }
  .menu__btns { flex-direction: row; padding-top: 48px; }
  .menu__btns .btn { width: auto; }
}
@keyframes course-in { from { opacity: 0; transform: translateY(-5px); } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; padding: 0; overflow: hidden; display: flex; align-items: center; }
/* the reel: stills crossfade over 2s; each one pushes in or pulls out while it's on (and while it fades away) */
.hero__reel { position: absolute; inset: 0; background: #08090A; }
.hero__shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 2s var(--ease); }
.hero__shot.is-on { opacity: 1; }
.hero__shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z0)); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.hero__shot.is-on img, .hero__shot.was-on img { animation: drift 9s linear forwards; }
/* frame 1 is full-res and moves further; the Instagram-res ones (2-4) only drift so they stay sharp */
.hero__shot:nth-child(1) { --ox: 50%; --oy: 62%; --z0: 1.02; --z1: 1.14; }
.hero__shot:nth-child(2) { --ox: 50%; --oy: 30%; --z0: 1.07; --z1: 1.0; }
.hero__shot:nth-child(3) { --ox: 30%; --oy: 30%; --z0: 1.0; --z1: 1.06; }
.hero__shot:nth-child(4) { --ox: 50%; --oy: 40%; --z0: 1.07; --z1: 1.0; }
@keyframes drift { from { transform: scale(var(--z0)); } to { transform: scale(var(--z1)); } }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(130% 95% at 50% 42%, transparent 52%, rgba(8,9,10,.62) 100%),
    radial-gradient(80% 48% at 50% 70%, rgba(8,9,10,.7), transparent 80%),
    linear-gradient(180deg, rgba(8,9,10,.55) 0%, rgba(8,9,10,.08) 28%, rgba(8,9,10,.22) 58%, rgba(8,9,10,.9) 100%);
}
/* letterbox bars that open once the page (or the loader) is done */
.hero__bars { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__bars::before, .hero__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 14vh; background: #08090A; animation: bars-open 1.9s var(--slow) .15s forwards; }
.hero__bars::before { top: 0; transform-origin: top; }
.hero__bars::after { bottom: 0; transform-origin: bottom; }
@keyframes bars-open { to { transform: scaleY(0); } }
/* loader.css pauses .hero * while the loader plays; pseudo-elements need saying separately */
html.is-loading .hero__bars::before, html.is-loading .hero__bars::after, html.is-loading .hero__ticks li::after { animation-play-state: paused; }
.hero__inner { position: relative; z-index: 3; width: 100%; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
/* caption + progress for the current still */
.hero__meta { position: absolute; left: var(--gutter); bottom: clamp(28px, 4.5vh, 48px); z-index: 3; display: flex; flex-direction: column; gap: 12px; max-width: calc(100% - 2 * var(--gutter) - 64px); opacity: 0; animation: rise 1.2s var(--slow) 1.1s forwards; }
.hero__cap { display: flex; gap: 12px; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 500; color: rgba(255,255,255,.84); text-shadow: 0 1px 16px rgba(0,0,0,.5); }
.hero__n { color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.hero__txt { transition: opacity .45s var(--ease); }
.hero__meta.is-swap .hero__txt { opacity: 0; }
.hero__ticks { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.hero__ticks li { position: relative; width: 28px; height: 2px; overflow: hidden; border-radius: 1px; background: rgba(255,255,255,.24); }
.hero__ticks li::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__ticks li.is-done::after { transform: scaleX(1); }
.hero__ticks li.is-on::after { animation: tick var(--dwell, 6.5s) linear forwards; }
@keyframes tick { to { transform: scaleX(1); } }
.hero__title {
  font-size: clamp(34px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -.025em;
  color: rgba(255,255,255,.5); text-shadow: 0 2px 40px rgba(0,0,0,.45); text-wrap: balance;
}
.hero__title em { display: block; color: #fff; }
.hero__cta { margin-top: clamp(28px, 4vh, 44px); }
.hero__title, .hero__cta { opacity: 0; transform: translateY(14px); animation: rise 1.2s var(--slow) forwards; }
.hero__title { animation-delay: .55s; }
.hero__cta { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Google rating under the button; it links down to the reviews, not out to Google */
.hero__rating { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 18px auto 0; font-size: 14px; line-height: 20px; font-weight: 500; color: rgba(255,255,255,.84); text-shadow: 0 1px 16px rgba(0,0,0,.5); opacity: 0; transform: translateY(14px); animation: rise 1.2s var(--slow) .95s forwards; }
.hero__rating .stars { --s: 13px; }
@media (prefers-reduced-motion: reduce) { .hero__rating { opacity: 1; transform: none; } }
/* scroll cue, bottom right on the caption's baseline; the WhatsApp button takes the corner once it's gone */
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(28px, 4.5vh, 48px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255,255,255,.7); text-shadow: 0 1px 12px rgba(0,0,0,.5); opacity: 0; animation: rise 1.2s var(--slow) 1.3s forwards; }
.hero__scroll span { position: relative; width: 1px; height: 56px; background: rgba(236,232,225,.25); overflow: hidden; }
.hero__scroll i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- statement ---------- */
.statement__text {
  /* Promo Text: 22 / 400 */
  max-width: 640px; margin: 0 auto; text-align: center;
  font-size: 22px; line-height: 32px; font-weight: 400;
}
.statement__text .w { opacity: .14; transition: opacity .3s linear; }
.statement__text .w.on { opacity: 1; }

/* ---------- services panels ---------- */
.panels { display: flex; gap: 6px; height: clamp(460px, 48vw, 640px); }
.panel { position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer; transition: flex-grow .9s var(--slow); border-radius: var(--radius); }
.panel.is-open { flex-grow: 4.6; cursor: default; }
.panel > .ph { position: absolute; inset: 0; }
.panel > .ph img, .panel > .ph video { transition: transform 1.4s var(--slow), filter .8s; filter: saturate(.85) brightness(.8); }
.panel.is-open > .ph img, .panel.is-open > .ph video { filter: none; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,9,10,.75)); pointer-events: none; }
.panel__body { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 3; }
.panel__n { display: block; font-size: 14px; line-height: 20px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.panel h3 { white-space: nowrap; }
.panel:not(.is-open) .panel__body { writing-mode: vertical-rl; transform: rotate(180deg); left: 22px; right: auto; bottom: 26px; }
.panel:not(.is-open) .panel__n { display: none; }
.panel:not(.is-open) > .ph::before { display: none; }
/* quote link on the open service; it names the job, so the form comes with it chosen */
.panel__quote { display: inline-flex; gap: 8px; margin-top: 14px; font-size: 14px; line-height: 20px; font-weight: 500; color: #fff; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.5); opacity: 0; transform: translateY(8px); transition: border-color .3s; }
.panel__quote:hover { border-color: #fff; }
.panel.is-open .panel__quote { animation: rise .8s var(--slow) .35s forwards; }
.panel:not(.is-open) .panel__quote { display: none; }
@media (prefers-reduced-motion: reduce) { .panel__quote { opacity: 1; transform: none; } }

/* tap hint icon: services rows and bond rows, mobile only */
.tap { display: none; width: 22px; height: 22px; flex: none; color: rgba(255,255,255,.85); }
@keyframes tap-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px) scale(1.06); } 90% { transform: none; } }

/* ---------- interlude ---------- */
/* site.js cuts the photo into bricks in stretcher bond and lays them course by course, bottom up; once the
   wall is up the photo fades in over the joints. Without the script (or with reduced motion) it simply shows */
.interlude__frame { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); background: #08090A; display: grid; place-items: center; }
.interlude__frame img, .interlude__wall { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(.52) saturate(.9); }
.interlude__frame img { object-fit: cover; object-position: 50% 30%; }
.interlude__wall i { position: absolute; background-image: var(--src); background-repeat: no-repeat; border-radius: 1px; opacity: 0; }
.is-laid .interlude__wall i { animation: lay .6s var(--ease) var(--d) both; }
/* lowered onto the bed, then tapped down level */
@keyframes lay { 0% { opacity: 0; transform: translateY(-55%); } 55% { opacity: 1; transform: translateY(4%); } 100% { opacity: 1; transform: none; } }
.has-wall > img { opacity: 0; transition: opacity 1.1s var(--ease); }
.is-set > img { opacity: 1; }
.interlude__line { position: relative; z-index: 3; font-weight: 500; font-size: 40px; line-height: 48px; color: rgba(255,255,255,.78); text-shadow: 0 2px 40px rgba(0,0,0,.5); text-align: center; padding: 0 var(--gutter); }
.interlude__line span, .interlude__line em { display: inline-block; }
.has-wall .interlude__line span, .has-wall .interlude__line em { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity 1.2s var(--slow) .2s, transform 1.2s var(--slow) .2s, filter 1.2s var(--slow) .2s; }
.has-wall .interlude__line em { transition-delay: .45s; }
.is-set .interlude__line span, .is-set .interlude__line em { opacity: 1; transform: none; filter: none; }

/* ---------- build stages ---------- */
.stages { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #1B1E22; user-select: none; border-radius: var(--radius); }
.stages__img { position: absolute; inset: 0; margin: 0; opacity: 0; }
.stages__img:first-child { opacity: 1; }
.stages__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
/* the finished arch sits on top until the first drag or tap; no stop is lit while it's up */
.stages__cover { position: absolute; inset: 0; margin: 0; transition: opacity .9s var(--ease); }
.stages__cover img { width: 100%; height: 100%; object-fit: cover; }
.stages.is-building .stages__cover { opacity: 0; }
.stages:not(.is-building) .stages__stops li.is-on { opacity: .45; }
.stages-title { white-space: nowrap; }
.stages::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(8,9,10,.8)); pointer-events: none; }
.stages__bar { position: absolute; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(24px, 3vw, 40px); z-index: 2; pointer-events: none; }
.stages__track { position: relative; height: 1px; background: rgba(236,232,225,.3); margin: 0 6px 18px; }
.stages__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
.stages__knob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 8px rgba(236,232,225,.14); }
.stages__stops { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; font-weight: 500; }
.stages__stops li { opacity: .45; transition: opacity .4s; }
.stages__stops li.is-on { opacity: 1; }
.stages__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
.stages__hint, .tools__hint, .projects__hint { position: absolute; top: 16px; right: 16px; z-index: 2; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(14,15,17,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; line-height: 20px; font-weight: 500; transition: opacity .5s; pointer-events: none; }
.stages__hint .tap, .tools__hint .tap, .projects__hint .tap { display: block; width: 18px; height: 18px; animation: tap-nudge 2.4s var(--ease) infinite; }
.stages.was-tapped .stages__hint { opacity: 0; }

/* words and hints that differ between mouse and touch */
.if-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .if-fine { display: none; }
  span.if-touch { display: inline; }
  .stages__hint { display: flex; }
  .stages { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .stages__range { pointer-events: none; }
}

/* ---------- projects ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); }
.card > .ph { position: absolute; inset: 0; }
.card > .ph img, .card > .ph video { transition: transform 1.6s var(--slow), filter .8s; filter: brightness(.86); }
.card:hover > .ph img, .card:hover > .ph video { transform: scale(1.05); filter: brightness(1); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8,9,10,.7)); pointer-events: none; }
.card__cap { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; }
.card__cap h3, .card__cap p, .clip figcaption, .origin__img figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* image captions stay on one line */
.card__cap p { font-size: 14px; line-height: 20px; color: rgba(255,255,255,.7); margin-top: 4px; }
.bat, .card__open { display: none; }

/* desktop: the photos lay up as a wall in stretcher bond. Seven half-brick columns: each photo is a stretcher two
   halves wide, every other course starts with a half bat, so the joints break bond. A brick opens the full photo
   in the viewer below (js/site.js), which keeps the wall to one screen instead of four rows of tall cards. */
@media (min-width: 961px) {
  .projects__grid { grid-template-columns: repeat(7, 1fr); counter-reset: brick; }
  .card { grid-column: span 2; aspect-ratio: 2 / 1; counter-increment: brick; cursor: zoom-in; }
  .card > .ph img, .card > .ph video { object-position: var(--pos, 50% 50%); }
  .card::after { background: linear-gradient(180deg, rgba(8,9,10,.25), transparent 30%, transparent 45%, rgba(8,9,10,.75)); }
  .card::before { content: counter(brick, decimal-leading-zero); position: absolute; left: 20px; top: 14px; z-index: 2; font-size: 14px; line-height: 20px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
  .card__cap { left: 20px; right: 20px; bottom: 14px; }
  .card__open {
    display: grid; place-items: center; position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(14,15,17,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; transform: scale(.8); transition: opacity .35s var(--ease), transform .5s var(--slow);
  }
  .card__open svg { width: 16px; height: 16px; }
  .card:hover .card__open, .card:focus-visible .card__open { opacity: 1; transform: none; }
  .bat { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-radius: var(--radius); background: var(--raise); font-size: 14px; line-height: 20px; }
  .bat--hint { color: var(--pewter); }
  /* the other two bats carry the DG mark, like a maker's stamp in the wall */
  .bat--mark { background: url(../assets/brand/mark-blue.svg) center / 44% auto no-repeat, radial-gradient(circle at 50% 45%, #1C1F23, var(--raise) 70%); }
  .bat--hint svg { width: 20px; height: 20px; color: var(--ink); }
  .bat--quote { background: var(--cta); color: #fff; font-weight: 500; transition: background .3s; }
  .bat--quote:hover { background: #2A5FA3; }
  .bat__q { font-weight: 400; color: rgba(255,255,255,.75); margin-bottom: -10px; }
  .bat--quote > span { white-space: nowrap; }
  /* laid when it scrolls in: bottom course first, each course from both ends inward (delays set in js) */
  .projects .projects__grid.is-wall > * { opacity: 0; transform: translateY(-28px); transition: none; }
  .projects .projects__grid.is-laid > * { opacity: 1; transform: none; transition: opacity .4s var(--ease) var(--d, 0s), transform .7s var(--slow) var(--d, 0s); }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .card__cap p { display: none; }   /* bricks are too short for two lines here; the viewer has the subtitle */
  .bat { padding: 12px 12px; }
}

/* ---------- recent work viewer (desktop): a brick grows into the full photo ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: auto minmax(220px, 300px);
  align-items: center; justify-content: center; gap: clamp(40px, 5vw, 88px); padding: 68px var(--gutter);
}
.viewer[hidden] { display: none; }
.viewer__scrim { position: absolute; inset: 0; background: rgba(14,15,17,.97); opacity: 0; transition: opacity .5s var(--ease); }
.viewer.is-open .viewer__scrim { opacity: 1; }
.viewer__frame { position: relative; margin: 0; height: min(calc(100vh - 136px), 1000px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--raise); transform-origin: 0 0; }
.viewer__frame img, .viewer__frame video { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.viewer__frame.is-video img, .viewer__frame:not(.is-video) video { display: none; }
.viewer__side { position: relative; opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .5s var(--slow); }
.viewer.is-open .viewer__side { opacity: 1; transform: none; transition: opacity .5s var(--ease) .3s, transform .8s var(--slow) .3s; }
.viewer__info { transition: opacity .2s; }
.viewer.is-swap .viewer__frame img, .viewer.is-swap .viewer__frame video, .viewer.is-swap .viewer__info { opacity: 0; }
.viewer__n { color: var(--pewter); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.viewer__title { font-size: 28px; line-height: 34px; }
.viewer__sub { margin-top: 6px; color: rgba(255,255,255,.7); }
.viewer__quote { margin-top: 24px; }
/* the little wall: where this job sits among the twelve, and a way to jump to any of them */
.viewer__map { position: relative; width: 216px; margin-top: 56px; }
.viewer__map > * { position: absolute; padding: 0; border: 0; border-radius: 2px; background: rgba(236,232,225,.06); }
.viewer__map button { background: rgba(236,232,225,.24); cursor: pointer; transition: background .3s; }
.viewer__map button:hover { background: rgba(236,232,225,.5); }
.viewer__map button.is-on { background: var(--accent); }
.viewer__arrows { display: flex; gap: 8px; margin-top: 24px; }
.viewer__btn, .viewer__close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(236,232,225,.08); color: var(--ink); cursor: pointer; transition: background .3s;
}
.viewer__btn:hover { background: rgba(236,232,225,.18); }
.viewer__btn svg, .viewer__close svg { width: 20px; height: 20px; }
.viewer__close { position: absolute; top: 12px; right: calc(var(--gutter) - 10px); border-radius: 4px; background: none; }
.viewer__close:hover { background: rgba(255,255,255,.1); }
.viewer__keys { margin-top: 16px; font-size: 13px; color: var(--pewter); }
.viewer__keys kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin-right: 2px; border: 1px solid var(--line); border-radius: 4px; font: inherit; color: var(--ink); }
@media (hover: none), (pointer: coarse) { .viewer__keys { display: none; } }
.viewer-open { overflow: hidden; }
.viewer-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- on the tools (video loops) ---------- */
.tools__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.clip { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--raise); }
.clip video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) saturate(.92); }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(8,9,10,.72)); pointer-events: none; }
.clip figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; font-size: 17px; line-height: 20px; font-weight: 500; }
/* drag hint on the first clip and the first project card: touch screens at strip width only (a mouse can't drag a scroller), gone once it moves */
.tools__hint, .projects__hint { display: none; }
.tools__hint .tap, .projects__hint .tap { animation-name: drag-nudge; }
.tools__grid.was-dragged .tools__hint, .projects__grid.was-dragged .projects__hint { opacity: 0; }
@keyframes drag-nudge { 0%, 50%, 100% { transform: none; } 65% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@media (max-width: 960px) and (hover: none), (max-width: 960px) and (pointer: coarse) {
  .tools__hint, .projects__hint { display: flex; }
}

/* ---------- then & now ---------- */
.origin .section-head { max-width: 760px; }
.origin__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 920px; }
.origin__img { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.origin__img > .ph { position: absolute; inset: 0; }
.origin__img img { filter: brightness(.9); }
.origin__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(8,9,10,.7)); pointer-events: none; }
.origin__img figcaption { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; font-size: 17px; line-height: 20px; font-weight: 500; }
@media (min-width: 961px) {
  .origin .section-head { margin-left: auto; margin-right: auto; text-align: center; }
  .origin h2 { text-wrap: balance; }   /* two even lines, not "started." on its own */
  .origin__pair { margin: 0 auto; }
}

/* ---------- before & after (drag slider) ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ba__quote { margin: 0; max-width: 420px; }
.ba__quote p { font-size: 22px; line-height: 32px; }
.ba__quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--pewter); }
.ba__slider { --p: 50; --pos: calc(var(--p) * 1%); position: relative; aspect-ratio: 4 / 5; width: min(100%, 64vh); justify-self: end; max-width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--raise); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; -webkit-tap-highlight-color: transparent; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(14,15,17,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; line-height: 20px; font-weight: 500; pointer-events: none; transition: opacity .3s; }
.ba__tag--before { left: 16px; opacity: clamp(0, calc((var(--p) - 16) / 8), 1); }
.ba__tag--after { right: 16px; opacity: clamp(0, calc((84 - var(--p)) / 8), 1); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(14,15,17,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9); transition: transform .3s var(--ease); }
.ba__handle svg { width: 22px; height: 22px; }
.ba__slider.is-dragging .ba__handle span { transform: scale(1.08); }
.ba__range { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }  /* keyboard and screen readers */
.ba__slider:has(.ba__range:focus-visible) .ba__handle span { box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 4px var(--accent); }

/* ---------- bonds ---------- */
.bonds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bond { margin: 0; }
.bond__wall { width: 100%; height: auto; background: #CFC7BA; border-radius: var(--radius); }
.bond figcaption { margin-top: 16px; font-size: 17px; line-height: 20px; font-weight: 500; }

/* ---------- process ---------- */
.process__body { display: grid; grid-template-columns: 70px 1fr; gap: clamp(28px, 6vw, 96px); }
.process__pier { width: 44px; height: 100%; }
.process__pier rect { fill: var(--brick); opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease); }
.process__pier rect.on { opacity: 1; transform: none; }
.process__steps { list-style: none; margin: 0; padding: 0; }
.process__steps li { display: flex; align-items: baseline; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.process__steps li:last-child { border-bottom: 1px solid var(--line); }
.process__n { font-size: 14px; line-height: 20px; color: var(--pewter); }
.process__steps h3 { font-size: 22px; line-height: 28px; font-weight: 400; }

/* ---------- proof ---------- */
.counters { display: flex; justify-content: center; gap: clamp(64px, 14vw, 220px); margin: 0; text-align: center; }
.counters dt { font-size: 40px; line-height: 48px; font-weight: 500; }
.counters small { font-size: .5em; color: var(--star); margin-left: 4px; vertical-align: top; }
.counters dd { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--pewter); }

/* ---------- reviews & calls to action ---------- */
/* Real Google reviews, word for word, spaced down the page; each one sits over a way to get a quote. */
/* five stars from one masked strip; --s is the star height */
.stars {
  --s: 16px; display: inline-block; flex: none; width: calc(var(--s) * 5.5); height: var(--s); background: var(--star); vertical-align: middle;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5 1.4-7.1-5.3-5 7.2-.9z'/%3E%3C/svg%3E") 0 0 / calc(var(--s) * 1.125) var(--s) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5 1.4-7.1-5.3-5 7.2-.9z'/%3E%3C/svg%3E") 0 0 / calc(var(--s) * 1.125) var(--s) repeat-x;
}
.voice { text-align: center; }
.voice__quote { max-width: 860px; margin: 0 auto; }
.voice blockquote { margin: 22px 0 0; }
.voice blockquote p { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.34; letter-spacing: -.012em; text-wrap: balance; }
.voice figcaption { margin-top: 20px; color: var(--pewter); }
.voice__btns { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px 36px; margin-top: 40px; }
.proof .voice__quote { margin-top: clamp(72px, 9vw, 128px); }
/* one line and a link under a section */
.nudge { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; font-size: 17px; line-height: 24px; }
.nudge p { color: var(--soft); }
.ba__cta { margin-top: 32px; }
.faq__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 28px; color: var(--pewter); }
.cta__rating { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; font-weight: 500; color: rgba(255,255,255,.84); }
.cta__rating .stars { --s: 13px; }
@media (max-width: 560px) {
  .voice blockquote p { font-size: 21px; line-height: 29px; }
  .voice__btns { flex-direction: column; gap: 22px; }
  .voice__btns .btn { width: 100%; }
  .nudge { flex-direction: column; align-items: flex-start; }
}

/* ---------- instagram ---------- */
.link-arrow--dark { color: var(--ink); }
.ig__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ig__tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--raise); }
.ig__tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.9); transition: transform 1.2s var(--slow), filter .6s; }
.ig__tile:hover img { transform: scale(1.06); filter: none; }
.ig__reel { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; color: #fff; opacity: .85; }

/* ---------- areas ---------- */
.areas { text-align: center; }
.areas__list { max-width: 760px; margin: 0 auto; font-size: 14px; line-height: 24px; color: var(--pewter); }

/* ---------- faq ---------- */
.faq__list { max-width: 900px; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-size: 17px; line-height: 20px; font-weight: 500; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1px; background: var(--ink); }
.faq__list summary::before { content: ""; position: absolute; right: 12.5px; top: calc(50% - 6.5px); width: 1px; height: 14px; background: var(--ink); transition: transform .4s var(--ease); }
.faq__list details[open] summary::before { transform: scaleY(0); }
.faq__list details p { padding: 0 48px 26px 0; color: var(--pewter); }

/* ---------- contact ---------- */
.cta { position: relative; min-height: 88vh; margin-top: clamp(96px, 14vw, 200px); padding: 0; display: grid; place-items: center; overflow: hidden; text-align: center; }
.cta__media { position: absolute; inset: -12% 0; will-change: transform; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__shade { position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 70% at 50% 50%, rgba(8,9,10,.55), rgba(8,9,10,.88)); }
.cta__inner { position: relative; z-index: 3; padding: 0 var(--gutter); }
.cta h2 { color: rgba(255,255,255,.78); }
.cta h2 em { color: #fff; }
.cta__btns { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta__more { display: inline-flex; gap: 8px; margin-top: 28px; font-weight: 500; color: rgba(255,255,255,.78); border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.cta__more:hover { color: #fff; border-color: #fff; }

/* ---------- contact page ---------- */
/* the photo of Danny and the whole form share the first screen */
.contact { padding-top: calc(68px + clamp(24px, 3.5vw, 48px)); padding-bottom: clamp(80px, 10vw, 140px); }
.contact__fold { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
/* the photo stretches to the height of the form column beside it */
.contact__danny { position: relative; margin: 0; min-height: 420px; overflow: hidden; border-radius: var(--radius); }
.contact__danny img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 35%; filter: brightness(.9); }
/* a Google review laid on the photo, so the first screen carries proof without pushing the form down */
.contact__review { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; padding: 20px 22px; background: rgba(14,15,17,.66); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.contact__review .stars { --s: 13px; }
.contact__review blockquote { margin: 10px 0 0; }
.contact__review blockquote p { font-size: 17px; line-height: 24px; font-weight: 500; }
.contact__review-by { margin-top: 8px; color: var(--pewter); }
.contact__head { max-width: 600px; margin-bottom: 32px; }
.contact__by { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--pewter); }
.contact__face { display: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }  /* phones only */
.contact__head h1 { font-size: 40px; line-height: 48px; color: var(--soft); }
.contact__head h1 em { display: block; }  /* "Hi, I'm Danny." then "Tell me about the job." */
.contact__sub { margin-top: 12px; font-size: 17px; line-height: 24px; color: var(--pewter); }
.contact__call { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--pewter); }
.contact__call a { color: var(--ink); font-weight: 500; border-bottom: 1px solid rgba(236,232,225,.4); transition: border-color .3s; }
.contact__call a:hover { border-color: var(--ink); }
/* trust line under the intro: rating, years, reply time */
.contact__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-weight: 500; color: rgba(236,232,225,.86); }
.contact__trust li, .contact__trust a { display: flex; align-items: center; gap: 8px; }
.contact__trust svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--pewter); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.contact__trust a { transition: color .3s; }
.contact__trust a:hover { color: var(--ink); }
.contact__trust .stars { --s: 12px; }
/* below the fold: the score and two more reviews, then what happens after you send */
.contact__proof { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-top: clamp(96px, 12vw, 160px); scroll-margin-top: 96px; }
.contact__score, .contact__quote { margin: 0; padding: clamp(24px, 2.6vw, 36px); background: var(--raise); border-radius: var(--radius); }
.contact__score { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact__score-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact__score-n { font-size: 56px; line-height: 56px; font-weight: 500; letter-spacing: -.02em; }
.contact__score-on { color: var(--pewter); }
.contact__score .link-arrow { margin-top: auto; }
.contact__quote { display: flex; flex-direction: column; }
.contact__quote blockquote { margin: 16px 0 0; }
.contact__quote blockquote p { font-size: 17px; line-height: 26px; }
.contact__quote figcaption { margin-top: auto; padding-top: 20px; color: var(--pewter); }
.contact__next { margin-top: clamp(96px, 12vw, 160px); }
.contact__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.contact__steps li { padding-top: 20px; border-top: 1px solid var(--line); }
.contact__n { display: block; margin-bottom: 14px; color: var(--pewter); font-variant-numeric: tabular-nums; }
.contact__steps p { margin-top: 8px; color: var(--pewter); }
.contact__more { margin-top: clamp(72px, 9vw, 120px); }
.channels { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.channels > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.channels dt { color: var(--pewter); }
.channels dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.channels a { transition: color .3s; }
.channels a:hover { color: var(--accent); }
.contact__areas { margin-top: 24px; color: var(--pewter); }

/* ---------- form ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { color: var(--pewter); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: 400 16px/22px var(--font); color: var(--ink);
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); outline: none;
  transition: border-color .3s, background .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239A9CA1' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:invalid { color: var(--muted); }
.field ::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #1B1E22; }
.form.is-checked .field :invalid { border-color: #C9694A; }
.form__error { color: #E08A6C; }
.form__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 8px; }
.form__sends { display: flex; flex-wrap: wrap; gap: 12px; }
.form__note { color: var(--pewter); }
/* WhatsApp leads: it glows and carries a "Quickest reply" tag; email is the quiet second choice */
.form__send--wa { position: relative; gap: 10px; box-shadow: 0 0 22px rgba(46,107,184,.45); animation: wa-glow 2.8s var(--ease) infinite; }
.form__send--wa svg { width: 18px; height: 18px; flex: none; }
@keyframes wa-glow {
  0% { box-shadow: 0 0 22px rgba(46,107,184,.45), 0 0 0 0 rgba(46,107,184,.6); }
  70%, 100% { box-shadow: 0 0 22px rgba(46,107,184,.45), 0 0 0 12px rgba(46,107,184,0); }
}
.form__tag { position: absolute; top: -10px; right: -8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 16px; font-weight: 500; white-space: nowrap; color: #171A20; background: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.form__send--email { background: var(--raise); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(236,232,225,.14); }
.form__send--email:hover { background: #1F2226; box-shadow: inset 0 0 0 1px rgba(236,232,225,.3); }

/* ---------- footer ---------- */
.footer { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; font-size: 14px; line-height: 20px; color: var(--pewter); }
.footer__logo { height: 30px; width: auto; margin-right: auto; }
.footer a:hover { color: var(--ink); }

/* ---------- whatsapp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(22,24,27,.7); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .4s, color .4s, transform .4s var(--ease), opacity .5s var(--ease), visibility .5s;
}
/* on the home page it waits until the hero's Scroll cue has left the screen */
.wa-float.is-tucked { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.wa-float:hover { background: #25D366; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float.tbc::after { right: 0; top: -20px; }

/* ---------- cookie bar (js/analytics.js) ---------- */
.cookiebar {
  position: fixed; left: 22px; bottom: 22px; z-index: 65; width: min(440px, calc(100% - 44px));
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
  background: rgba(22,24,27,.94); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 40px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.cookiebar.is-open { opacity: 1; visibility: visible; transform: none; }
/* on the home page it waits for the brick-laying loader to finish */
html.is-loading .cookiebar { opacity: 0; visibility: hidden; }
.cookiebar__text { color: var(--pewter); }
.cookiebar__btns { display: flex; gap: 8px; }
.cookiebar__btns .btn { min-width: 0; flex: 1; }
.menu-open .cookiebar, .viewer-open .cookiebar { opacity: 0; pointer-events: none; }
.footer__cookies { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__cookies:hover { color: var(--ink); }
@media (max-width: 560px) {
  .cookiebar { left: 12px; right: 12px; bottom: 12px; width: auto; }
  /* the bar spans the screen on phones, so the WhatsApp button sits above it while it's open */
  .cookiebar-open .wa-float { bottom: calc(var(--cookiebar-h, 150px) + 24px); }
}

/* ---------- scroll-in ---------- */
[data-in] { opacity: 0; transform: translateY(36px); transition: opacity 1.2s var(--slow), transform 1.2s var(--slow); }
[data-in].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .interlude__frame { aspect-ratio: 4 / 3; }
  .nav__links { display: none; }
  .burger { display: block; }
  .menu { display: flex; }
  /* contact: the form comes first, Danny's face moves into the byline and his photo drops below the form */
  .contact__fold { grid-template-columns: 1fr; gap: 56px; }
  .contact__danny { order: 1; min-height: 0; aspect-ratio: 4 / 5; max-width: 520px; }
  .contact__face { display: block; }
  .channels { grid-template-columns: 1fr; }
  .channels > div { flex-direction: row; justify-content: space-between; gap: 24px; }
  .channels > div:last-child { border-bottom: 1px solid var(--line); }
  .channels dd { text-align: right; }
  .contact__proof { grid-template-columns: 1fr 1fr; }
  .contact__score { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
  .contact__score-top { flex-direction: row; align-items: center; gap: 16px; }
  .contact__score-n { font-size: 40px; line-height: 48px; }
  .contact__score .link-arrow { margin-top: 0; }
  .contact__steps { grid-template-columns: 1fr; gap: 28px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .ba { grid-template-columns: 1fr; gap: 28px; }
  .ba__quote p { font-size: 17px; line-height: 26px; }
  .projects__grid { grid-auto-flow: column; grid-auto-columns: 80%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .card { scroll-snap-align: start; }
  .card__cap { left: 20px; right: 20px; bottom: 20px; }
  .tools__grid { grid-auto-flow: column; grid-auto-columns: 66%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .clip { scroll-snap-align: start; }
  .origin__pair { gap: 4px; }
  .origin__img figcaption { left: 12px; right: 12px; bottom: 14px; font-size: 14px; }
  .bonds__grid { grid-template-columns: 1fr; }
  .stages { aspect-ratio: 4 / 5; }
  .ig__grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }

  /* services become a stacked accordion */
  .panels { flex-direction: column; height: auto; gap: 4px; }
  .panel { flex: none; height: 72px; transition: height .8s var(--slow); }
  .panel.is-open { height: 440px; }
  .panel:not(.is-open) .panel__body { writing-mode: horizontal-tb; transform: none; left: 22px; right: 22px; bottom: 0; height: 72px; display: flex; align-items: center; gap: 14px; }
  .panel:not(.is-open) .panel__n { display: inline; margin: 0; }
  .panel h3 { white-space: normal; }
  .panel:not(.is-open) .tap { display: block; margin-left: auto; animation: tap-nudge 2.4s var(--ease) infinite; }
  .panel + .panel .tap { animation-delay: .15s; }

  /* bonds: same accordion as the services, a strip of each wall until it's tapped open */
  .bonds__grid { gap: 4px; }
  .bond { position: relative; height: 72px; overflow: hidden; border-radius: var(--radius); cursor: pointer; transition: height .8s var(--slow); -webkit-tap-highlight-color: transparent; }
  .bond.is-open { height: calc((100vw - 2 * var(--gutter)) * .65); cursor: default; }
  .bond__wall { position: absolute; inset: 0; height: 100%; border-radius: 0; }
  .bond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.72), rgba(8,9,10,.25)); transition: opacity .6s; pointer-events: none; }
  .bond.is-open::after { background: linear-gradient(180deg, transparent 55%, rgba(8,9,10,.7)); }
  .bond figcaption { position: absolute; left: 22px; bottom: 0; height: 72px; z-index: 3; margin: 0; display: flex; align-items: center; color: var(--ink); }
  .bond .tap { position: absolute; right: 22px; bottom: 25px; z-index: 3; }
  .bond:not(.is-open) .tap { display: block; animation: tap-nudge 2.4s var(--ease) infinite; }
}
@media (max-width: 560px) {
  .nav { height: 68px; }
  .brand { height: 28px; width: 157px; }
  .brand__mark { height: 22px !important; }
  h2, .interlude__line { font-size: 28px; line-height: 34px; }
  /* one line on any phone: "New build. Drag to build it." is ~11.8em wide, so shrink below 28px only if it must */
  .stages-title { font-size: min(28px, calc((100vw - 2 * var(--gutter)) / 12)); }
  .interlude__frame { aspect-ratio: 4 / 5; }
  .hero__scroll span { height: 40px; }
  .hero__bars::before, .hero__bars::after { height: 9vh; }
  /* two lines on any phone: the longer line is ~9.6em wide, so size to the screen */
  .hero__title { font-size: calc((100vw - 2 * var(--gutter)) / 12); }
  .hero__title span, .hero__title em { display: block; white-space: nowrap; }
  .counters dt { font-size: 40px; }
  .stages__stops { font-size: 12px; }
  .stages__bar { right: 72px; }  /* "finished" clears the WhatsApp button */
  .counters { gap: 56px; }  /* side by side on phones too, less scrolling */
  .process__body { grid-template-columns: 24px 1fr; gap: 20px; }
  .process__pier { width: 24px; }
  .process__steps li { flex-direction: column; gap: 10px; }
  .cta__btns .btn { width: 100%; }
  .contact { padding-top: calc(68px + 24px); }
  .contact__head { margin-bottom: 24px; }
  .contact__head h1 { font-size: 28px; line-height: 34px; }
  .contact__sub { margin-top: 10px; font-size: 14px; line-height: 20px; }
  .form { gap: 16px; }
  .form__row { gap: 12px; }  /* name and phone stay side by side, to get more of the form on the first screen */
  .form__row--wide { grid-template-columns: 1fr; gap: 16px; }
  .form__send { width: 100%; }
  .form__sends { width: 100%; }
  .form__tag { right: 12px; }
  .contact__trust { margin-top: 14px; gap: 8px 16px; font-size: 13px; }
  .contact__review { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .contact__proof { grid-template-columns: 1fr; }
  .contact__score { flex-direction: column; align-items: flex-start; }
}
/* short laptop screens: tighten up so the send button still lands on the first screen */
@media (min-width: 961px) and (max-height: 820px) {
  .contact { padding-top: calc(68px + 24px); }
  .contact__head { margin-bottom: 24px; }
  .contact__head h1 { font-size: 32px; line-height: 40px; }
  .form { gap: 16px; }
  .field textarea { min-height: 84px; height: 84px; }
  .contact__call { margin-top: 20px; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__shot img { transform: none; }
  .hero__bars, .hero__ticks { display: none; }
  .hero__title, .hero__cta, .hero__meta, .hero__scroll { opacity: 1; transform: none; }
  [data-in] { opacity: 1; transform: none; }
  .statement__text .w { opacity: 1; }
}
