/* ==========================================================================
   Restripe Ltd — shared stylesheet
   Brand: Dark #231F20 · Orange #F15A29 · Mint #DEEFE7 · White #FFFFFF
   Headings: Anisette Std ExBold (Adobe Fonts) → Unbounded 800 → Krona One
   Body: Tablet Gothic (Adobe Fonts) → Archivo
   ========================================================================== */

:root {
  --dark: #231F20;
  --orange: #F15A29;
  --orange-hover: #F37349;            /* orange lightened slightly, keeps dark button text readable (5.7:1) */
  --mint: #DEEFE7;
  --white: #FFFFFF;

  --text: var(--white);
  --text-soft: rgba(255, 255, 255, 0.82);
  --line: rgba(222, 239, 231, 0.18);  /* mint hairline */
  --surface: rgba(222, 239, 231, 0.05);

  --font-head: 'anisette-std', 'Unbounded', 'Krona One', sans-serif;
  --font-body: 'tablet-gothic', 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --fs-hero: clamp(1.75rem, 5.2vw, 4.25rem);     /* 28 → 68px */
  --fs-page: clamp(1.625rem, 4.2vw, 3.25rem);    /* inner page H1 */
  --fs-title: clamp(1.375rem, 3vw, 2.5rem);      /* 22 → 40px */
  --fs-sub: clamp(1rem, 1.6vw, 1.25rem);         /* 16 → 20px */
  --fs-body: 1.0625rem;                          /* 17px */
  --fs-label: 0.75rem;                           /* 12px */

  --radius: 14px;                                /* card + image corners, site-wide */
  --radius-btn: 4px;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, .h-display {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-page); }
h2 { font-size: var(--fs-title); }
h3 { font-size: var(--fs-sub); line-height: 1.25; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 2px; }
.band-orange :focus-visible { outline-color: var(--dark); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--mint); color: var(--dark);
  padding: 0.75rem 1rem; border-radius: var(--radius-btn); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); overflow: hidden; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin-top: 1.25rem; color: var(--text-soft); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-soft); max-width: 40rem; }
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }

/* Label + pill */
.label {
  display: block; margin-bottom: 1rem;
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--mint);
}
.pill {
  display: inline-block; padding: 0.4rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mint); white-space: nowrap;
}
.pills { display: flex; flex-wrap: wrap; gap: 0.625rem; }

/* Painted-line divider: draws itself in when the section scrolls into view */
.rule {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--orange); transform-origin: left center;
}
.js .rule { transform: scaleX(0); transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .rule.is-in { transform: scaleX(1); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Orange arc: a cropped segment of a large circle, like a corner on track */
.arc {
  position: absolute; pointer-events: none; z-index: 0;
  width: 980px; height: 980px; border: 8px solid var(--orange); border-radius: 50%;
}
.arc--br { right: -520px; bottom: -640px; }
.arc--tr { right: -600px; top: -620px; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.9rem 1.6rem;
  font-family: var(--font-head); font-weight: 800; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius-btn); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--orange); color: var(--dark); }  /* dark on orange: 4.9:1, passes WCAG AA */
.btn--primary:hover { background: var(--orange-hover); }
.btn--secondary { background: transparent; color: var(--mint); border-color: var(--mint); }
.btn--secondary:hover { background: var(--mint); color: var(--dark); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--white); color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }
.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--mint);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.text-link:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(35, 31, 32, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
/* Clear space: wordmark is 40px tall, so 20px (half its height) is kept free on every side */
.brand { display: block; padding: 20px 20px 20px 0; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav a:not(.btn) {
  position: relative; padding: 0.5rem 0; font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--white);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.75rem; }
.menu-toggle {
  display: none; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 0.25rem;
  background: none; border: 0; cursor: pointer;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint);
}
.menu-toggle .bars { width: 26px; height: 14px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--orange); transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 6px; transform: rotate(-45deg); }

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--dark);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { border-top: 2px solid var(--orange); }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: block; padding: 1.1rem 0; text-decoration: none;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.25rem;
}
.mobile-menu li a[aria-current="page"] { color: var(--orange); }
.mobile-menu .btn { margin-top: 2rem; width: 100%; }
.mobile-menu .menu-mark { margin-top: auto; padding-top: 3rem; }
.mobile-menu .menu-mark img { width: 56px; height: 56px; margin: 28px; }  /* half-diameter clear space */

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -2; background: var(--dark); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(35, 31, 32, 0.68); }
.hero .wrap { padding-block: clamp(6rem, 14vh, 9rem) clamp(3.5rem, 9vh, 6rem); }
.hero .lead { margin-top: 1.5rem; color: var(--white); }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 2;
  min-height: 44px; padding: 0.5rem 0.9rem; cursor: pointer;
  background: rgba(35, 31, 32, 0.7); border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint);
}
.video-toggle:hover { border-color: var(--mint); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .h-page { max-width: 20ch; }
/* The H1 is the plain topic (styled as the small label); the slogan below it is the big display line */
.h-page { font-size: var(--fs-page); }
.hero .h-hero { font-size: var(--fs-hero); line-height: 1.06; }
.hero .h-hero span { display: block; }
.hero h1.label { color: var(--mint); }
.page-hero .lead { margin-top: 1.5rem; }

/* ---------- Media + placeholders ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
/* Neutral placeholder block: swap for a <picture> or <video> (see README) */
.ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 1rem; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(222, 239, 231, 0.04) 0 14px, rgba(222, 239, 231, 0.07) 14px 28px);
  border: 1px dashed var(--line); border-radius: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.75rem; letter-spacing: 0.02em; color: rgba(222, 239, 231, 0.75);
  overflow-wrap: anywhere;
}

/* ---------- Service tiles (home) ---------- */
.tile {
  position: relative; display: flex; align-items: flex-end; min-height: clamp(320px, 42vw, 520px);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; isolation: isolate; background: var(--surface);
}
.tile picture, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
/* Text sits in the lower half, which stays at 0.65 or darker; the top fades so the photo reads */
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(35, 31, 32, 0.94) 0%, rgba(35, 31, 32, 0.72) 45%, rgba(35, 31, 32, 0.2) 100%); }
.tile:hover img { transform: scale(1.03); }
.tile-body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.tile-body h3 { font-size: clamp(1.25rem, 2.4vw, 1.875rem); }
.tile-body p { margin: 0.9rem 0 1.25rem; max-width: 30rem; color: var(--white); }
.tile .text-link { text-decoration-color: var(--orange); }

.also-band { margin-top: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); }
.also-band a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; text-decoration: none; color: var(--mint); font-size: 0.9375rem; }
.also-band a:hover { color: var(--white); }
.also-band .arrow { color: var(--orange); font-size: 1.25rem; line-height: 1; }

/* ---------- Offer band ---------- */
.offer h2 { max-width: 18ch; }
.offer .btn { margin-top: 2rem; }
.offer p { margin-top: 1.25rem; color: var(--text-soft); max-width: 36rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.stat-value {
  display: block; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(1.375rem, 2.5vw, 2.125rem); line-height: 1.1; white-space: nowrap;
}
.stat-value::after { content: ""; display: block; width: 32px; height: 4px; margin-top: 0.9rem; background: var(--orange); }
.stat-label { display: block; margin-top: 0.9rem; font-size: 0.9375rem; color: var(--mint); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 1rem;
  font-family: var(--font-head); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.06em; color: var(--mint);
}
.step p { margin-top: 0.75rem; color: var(--text-soft); font-size: 1rem; }

/* ---------- Service list (numbered rows) ---------- */
.svc-list { counter-reset: svc; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 2rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.svc::before {
  counter-increment: svc; content: "0" counter(svc);
  font-family: var(--font-head); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.06em; color: var(--mint);
}
.svc p { color: var(--text-soft); font-size: 1rem; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card .media { border-radius: 0; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.card-body h3 { font-size: 1rem; }
.card-body p { color: var(--text-soft); font-size: 1rem; }
.card--plain { padding: 1.5rem; gap: 0.75rem; }
.card--plain p { color: var(--text-soft); font-size: 1rem; }
.meta { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.meta div { display: grid; grid-template-columns: 6.75rem 1fr; gap: 0.75rem; padding: 0.2rem 0; }
.meta dt { color: var(--mint); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding-top: 0.2rem; }
.meta dd { margin: 0; color: var(--text-soft); }
dl { margin: 0; }

/* Work filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.filter {
  min-height: 44px; padding: 0.5rem 1.1rem; cursor: pointer; background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter:hover { border-color: var(--mint); }
.filter[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: var(--dark); }
.project[hidden] { display: none; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--fs-sub); margin: 2.75rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { margin: 0 0 1em; }
.prose a { color: var(--mint); }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.75rem; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 14px; height: 2px; background: var(--orange); }
.ticks li strong { color: var(--white); font-weight: 600; }

/* ---------- Before / after slider ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--surface); --pos: 50%; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-before .ph { justify-content: flex-start; padding-left: 6%; }
.ba-after .ph { justify-content: flex-end; padding-right: 6%; }
.ba-tag { position: absolute; top: 1rem; z-index: 2; background: rgba(35, 31, 32, 0.85); }
.ba-tag--before { left: 1rem; }
.ba-tag--after { right: 1rem; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--orange); z-index: 3; pointer-events: none; }
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.125rem; letter-spacing: 0.1em;
}
.ba input[type="range"] {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.ba input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.ba input[type="range"]::-moz-range-thumb { width: 48px; height: 100vh; border: 0; }
.ba:focus-within { outline: 3px solid var(--mint); outline-offset: 3px; }

/* ---------- Orange CTA band (one per page) ---------- */
.band-orange { background: var(--orange); color: var(--dark); padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-orange .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.band-orange h2 { max-width: 16ch; }

/* Brand lockup (home only) */
.lockup { text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }
.lockup .h-display { font-size: clamp(1.75rem, 5vw, 3.5rem); color: var(--orange); letter-spacing: 0.04em; }
.lockup p { margin-top: 0.75rem; color: var(--mint); font-size: clamp(1rem, 1.6vw, 1.25rem); }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 600; color: var(--mint); }
.field .opt { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem;
  background: rgba(222, 239, 231, 0.04); color: var(--white);
  border: 1px solid rgba(222, 239, 231, 0.45); border-radius: var(--radius-btn);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mint) 50%), linear-gradient(135deg, var(--mint) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.75rem; }
.field select option { background: var(--dark); color: var(--white); }
.field input[type="file"] { padding: 0.7rem; font-size: 0.9375rem; }
.field input::file-selector-button { margin-right: 1rem; padding: 0.4rem 0.9rem; border: 1px solid var(--mint); border-radius: var(--radius-btn); background: transparent; color: var(--mint); cursor: pointer; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-color: var(--mint); }
.field [aria-invalid="true"] { border-color: var(--orange); border-width: 2px; }
.field .hint { font-size: 0.875rem; color: var(--text-soft); }
.field .error { font-size: 0.875rem; font-weight: 600; color: var(--white); padding-left: 0.75rem; border-left: 3px solid var(--orange); }
.field .error:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--mint); color: var(--white); }
.form-status[hidden] { display: none; }
.form-status h2, .form-status h3 { font-size: var(--fs-sub); margin-bottom: 0.5rem; }
.form-status--error { border-color: var(--orange); border-width: 2px; }

.contact-block { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); background: var(--surface); }
.contact-block h2 { font-size: var(--fs-sub); margin-bottom: 1.25rem; }
.contact-list > div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.contact-list dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin-bottom: 0.25rem; }
.contact-list dd { margin: 0; }
.contact-list a { font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 2px solid var(--orange); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
/* Clear space: 44px wordmark, 22px free on every side */
.footer-brand img { height: 44px; width: auto; margin: 22px 22px 22px 0; }
.footer-brand p { color: var(--mint); margin-top: 0.25rem; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; color: var(--mint); margin-bottom: 1rem; }
.site-footer li { padding: 0.25rem 0; }
.site-footer a { text-decoration: none; color: var(--text-soft); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.site-footer address { font-style: normal; color: var(--text-soft); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 0.875rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: 3rem minmax(0, 1fr); }
  .svc p { grid-column: 2; }
}
@media (max-width: 899px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand { padding: 18px 18px 18px 0; }
  .brand img { height: 36px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .arc { width: 640px; height: 640px; border-width: 6px; }
  .arc--br { right: -400px; bottom: -460px; }
  .arc--tr { right: -440px; top: -470px; }
}
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 2rem 1.25rem; }
  .stat-value { font-size: 1.125rem; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .btn-row .btn, .band-orange .btn, .offer .btn { width: 100%; }
  .hero { min-height: 84vh; }
  .also-band a { padding: 1rem 1.25rem; }
  .ba { aspect-ratio: 4 / 3; }
  .ba .ph { align-items: flex-end; padding-bottom: 12%; max-width: 100%; }
  .arc--br { display: none; }
}
@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
}

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

.step--plain::before { display: none; }

/* Home service tiles: circuits lead, branding + commercial below */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.tile--lead { grid-column: 1 / -1; min-height: clamp(340px, 40vw, 560px); }
.tile:not(.tile--lead) { min-height: clamp(300px, 30vw, 400px); }
.tile > .ph { position: absolute; inset: 0; z-index: -2; align-items: flex-start; padding-top: 2rem; border-radius: var(--radius); }
@media (max-width: 639px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
.tile--commercial img { object-position: 50% 62%; }
.tile--branding img { object-position: 50% 30%; }

/* Captioned photo or clip */
.shot { margin: 0; }
.shot figcaption { margin-top: 0.75rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.media--square { aspect-ratio: 1 / 1; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) { .stats--3 { grid-template-columns: minmax(0, 1fr); } }

/* Home lockup uses the official wordmark; half its height kept clear on every side */
.lockup img { height: clamp(56px, 9vw, 96px); width: auto; margin: clamp(28px, 4.5vw, 48px) auto; }
.lockup p { margin-top: 0; }

/* Portfolio: grouped projects */
.note { max-width: 46rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-soft); font-size: 1rem; }
.note strong { color: var(--white); font-weight: 600; }
.pgroup { margin-top: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.pgroup-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: 1.75rem; }
.pgroup-head h2 { margin-top: 1rem; }
.pgroup-head .meta { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.card--link { text-decoration: none; transition: border-color 0.2s ease; }
.card--link:hover { border-color: var(--mint); }
@media (max-width: 899px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pgroup-head { grid-template-columns: minmax(0, 1fr); } }

.field[hidden], .form-actions[hidden] { display: none; }
/* Gallery tile spanning two columns (for landscape clips) */
.media--span2 { grid-column: span 2; aspect-ratio: auto; min-height: 0; }
.media--span2 video, .media--span2 picture, .media--span2 img { position: absolute; inset: 0; }
@media (max-width: 899px) { .media--span2 { aspect-ratio: 16 / 9; } }
.tile--branding img { object-position: 50% 50%; }

video[data-loop] { cursor: pointer; }

.pgroup-head h2 { margin-top: 0; }

/* Project pages: key figures */
.stats--facts .stat-value { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.stats--facts .stat-label { max-width: 16rem; }

/* Contact page: form beside the contact details on wide screens, stacked on phones and tablets */
.split--contact { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 899px) { .split--contact { grid-template-columns: minmax(0, 1fr); } }
.contact-list dd, .contact-list a, .site-footer a { overflow-wrap: anywhere; }

.footnote { margin-top: 2rem; font-size: 0.8125rem; color: rgba(222, 239, 231, 0.6); }

/* Phones: keep the corner arc clear of page headings */
@media (max-width: 639px) {
  .arc--tr { width: 520px; height: 520px; right: -440px; top: -420px; }
}

/* Q&A: plain headings and short answers, readable by people and search engines */
.faq { display: grid; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.faq-item { padding-top: 1rem; border-top: 1px solid var(--line); }
.faq-item h3 {
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; line-height: 1.4; color: var(--white); text-wrap: pretty;
}
.faq-item p { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--text-soft); }


/* Project page title over a photo (The Thermal Club) */
.page-hero--photo { padding-block: clamp(5rem, 14vw, 10rem) clamp(3.5rem, 8vw, 6rem); }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: var(--hero-pos, 42% 72%); }
.page-hero--photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(35,31,32,0) 55%, var(--dark) 100%),
    linear-gradient(to right, rgba(35,31,32,0.86) 0%, rgba(35,31,32,0.66) 50%, rgba(35,31,32,0.4) 100%);
}
@media (max-width: 699px) {
  .page-hero--photo::after { background: linear-gradient(to bottom, rgba(35,31,32,0.55) 0%, rgba(35,31,32,0.78) 60%, var(--dark) 100%); }
}
.page-hero--photo .wrap { z-index: 1; }

/* Three-tile project gallery and the four-up Commercial strip (two across on phones) */
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599px) { .gallery--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) { .grid-4--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Wide gallery tile: two columns, 2:1 */
.media--wide2 { grid-column: span 2; aspect-ratio: 2 / 1; }
/* Thermal Club title over a looping video */
.page-hero--photo { isolation: isolate; }
.page-hero--photo .hero-media { z-index: -2; }
.page-hero--photo::after { z-index: -1; }
.page-hero--photo .hero-media video { object-position: 50% 82%; }
@media (max-width: 699px) { .page-hero--photo:has(.video-toggle) { padding-bottom: 5.5rem; } }
.page-hero--photo:has(video)::after {
  background:
    linear-gradient(to bottom, rgba(35,31,32,0) 60%, var(--dark) 100%),
    linear-gradient(to right, rgba(35,31,32,0.82) 0%, rgba(35,31,32,0.55) 45%, rgba(35,31,32,0.22) 100%);
}
@media (max-width: 699px) {
  .page-hero--photo:has(video)::after { background: linear-gradient(to bottom, rgba(35,31,32,0.5) 0%, rgba(35,31,32,0.7) 60%, var(--dark) 100%); }
}
