:root {
  --bg: #f3f4f2;
  --ink: #18212b;
  --muted: #5b6672;
  --card: #ffffff;
  --line: #dde2e7;
  --accent: #1f5a9e;
  --accent-deep: #17457c;
  --accent-soft: #e3ecf6;
  --accent-light: #9fc0e6;
  --night: #0f1924;
  --cream: #f8fafc;
  --display: var(--sans);
  --sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(40, 52, 66, 0.04), 0 12px 32px rgba(40, 52, 66, 0.07);
  --shadow-lift: 0 2px 4px rgba(40, 52, 66, 0.05), 0 22px 44px rgba(40, 52, 66, 0.13);
  --edge: 1px solid rgba(221, 226, 231, 0.75);

  /* Layout: one content width and gutter for header, hero, sections and footer */
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header: 5.25rem;

  /* Type scale */
  --fs-hero: calc(clamp(2.625rem, 1.375rem + 4.2vw, 4.375rem) - 4px);
  --fs-lede: calc(clamp(1.1875rem, 0.9375rem + 0.8vw, 1.5625rem) - 2px);
  --fs-h2: clamp(1.75rem, 1.075rem + 1.9vw, 2.5rem);
  /* Section headers match the Portfolio “Featured Projects” heading */
  --fs-section: calc(clamp(2.5rem, 1.85rem + 2.8vw, 4.5rem) - 4px);
  --fs-h3: 1.375rem;
  --fs-body: 0.9375rem;
  --fs-nav: 0.875rem;
  --fs-ui: 0.8125rem;
  --fs-small: 0.75rem;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --section: clamp(3rem, 6vw, 4.5rem);

  /* Components */
  --radius: 14px;
  --radius-media: 14px;
  --radius-field: 10px;
  --pad-card: 1.5rem;
  --pad-panel: clamp(1.5rem, 3.2vw, 2.5rem);
  --control: 3rem;
  --btn: 2.75rem;
}

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

[hidden] { display: none !important; }

html { font-size: 87.5%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; font-weight: 700; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em, .home-hero__title em, .hero__lede em { font-style: italic; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--cream); padding: 0.6rem 0.9rem; border-radius: 8px;
}
.skip:focus { top: 0.6rem; }

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

/* Shared type roles */
.section-title,
.featured-showcase__title {
  font-family: var(--display);
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.section-title em,
.featured-showcase__title em {
  color: var(--accent-deep);
  font-weight: 600;
}
.card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.section-head { max-width: 46rem; margin-bottom: var(--s-6); }
.section-head p { margin-top: var(--s-4); color: var(--muted); font-size: calc(var(--fs-body) - 2px); }

/* Buttons */
.pill,
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: var(--btn);
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: var(--fs-ui);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 90, 158, 0.28);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}
.pill span,
.submit span { transition: transform 0.35s var(--ease); }
.pill:hover,
.submit:hover { background: var(--accent-deep); transform: translateY(-1px); }
.pill:hover span,
.submit:hover span { transform: translateX(4px); }

/* Hero: one system for every page; the contact page cross-fades six interiors */
.hero {
  position: relative;
  height: 58svh;
  min-height: 440px;
  max-height: 640px;
  overflow: hidden;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  background: var(--night);
  --slide: 2s;
}
.hero__media, .hero__slides { position: absolute; inset: 0; }
.hero__media > img,
.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero__slides img { opacity: 0; }
.hero__slides img:first-child { opacity: 1; }
.js .hero__slides img {
  opacity: 0;
  animation: slide calc(var(--slide) * 6) linear infinite;
  animation-delay: calc((var(--s) - 6) * var(--slide));
}
@keyframes slide {
  0% { opacity: 0; transform: scale(1.08); }
  4% { opacity: 1; transform: scale(1.06); }
  16.67% { opacity: 1; transform: scale(1.03); }
  20.67% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 20, 30, 0.88) 0%, rgba(12, 20, 30, 0.6) 38%, rgba(12, 20, 30, 0.08) 78%),
    linear-gradient(0deg, rgba(12, 20, 30, 0.55) 0%, transparent 45%),
    linear-gradient(180deg, rgba(12, 20, 30, 0.5) 0%, transparent 28%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding: calc(var(--header) + var(--s-6)) 0 var(--s-7);
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero h1 em {
  color: var(--accent-light);
  font-weight: 600;
}
.hero__lede {
  margin-top: var(--s-4);
  font-family: var(--display);
  font-size: var(--fs-lede);
  line-height: 1.3;
  color: rgba(248, 250, 252, 0.92);
}
.hero--photos {
  height: calc(58svh + 3cm);
  min-height: calc(440px + 3cm);
  max-height: calc(640px + 3cm);
}
.hero__lede em { color: var(--accent-light); }
.js .hero__line { animation: rise 1s var(--ease) both; }
.js .hero__line:nth-child(1) { animation-delay: 0.2s; }
.js .hero__line:nth-child(2) { animation-delay: 0.38s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero__progress {
  position: absolute;
  z-index: 2;
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  bottom: var(--s-5);
  display: flex;
  gap: 0.35rem;
}
.hero__progress span {
  position: relative;
  width: 1.9rem;
  height: 3px;
  border-radius: 3px;
  background: rgba(248, 250, 252, 0.28);
  overflow: hidden;
}
.hero__progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  animation: progress calc(var(--slide) * 6) linear infinite;
  animation-delay: calc((var(--s) - 6) * var(--slide));
}
@keyframes progress {
  0% { transform: scaleX(0); }
  16.67% { transform: scaleX(1); }
  20.67%, 100% { transform: scaleX(0); }
}

/* Contact cards */
.reach { position: relative; padding: var(--s-6) 0 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--s-5);
}
.reach__title {
  position: absolute;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.4rem;
  grid-template-rows: auto 1fr;
  column-gap: var(--s-4);
  row-gap: var(--s-3);
  align-content: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--pad-card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: var(--edge);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s ease;
}
.js .card { animation: rise 0.9s var(--ease) backwards; animation-delay: calc(0.6s + var(--i) * 0.1s); }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #f3f7fb, #e8f0f8);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #c9d8ea;
}
.card:hover::before,
.card:focus-within::before { opacity: 1; }
.card__head { display: flex; align-items: center; gap: var(--s-3); min-height: 2.5rem; }
.card__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
}
.card__mark svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.card__body { display: grid; align-content: start; gap: var(--s-1); padding-left: calc(2.5rem + var(--s-3)); }
.reach .card-grid {
  width: 100%;
  gap: var(--s-5);
}
.reach .card {
  grid-template-columns: minmax(0, 1fr) 5.6rem;
  padding: 1.15rem 1.25rem;
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  border-radius: var(--radius);
}
.reach .card__head { min-height: 2.1rem; gap: 0.6rem; }
.reach .card__mark { width: 2.1rem; height: 2.1rem; }
.reach .card__mark svg { width: 1rem; height: 1rem; }
.reach .card__body { padding-left: calc(2.1rem + 0.6rem); }
.reach .card__scene { height: 2.1rem; }
.reach .card-title { font-size: 1rem; font-weight: 800; }
.reach .card__action { font-size: 0.8125rem; font-weight: 500; }
.card address { font-style: normal; color: var(--muted); font-size: var(--fs-body); line-height: 1.5; }
.card__action {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  justify-self: start;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1.5;
  text-decoration: none;
}
.card__action span { transition: transform 0.35s var(--ease); }
.card__action:hover span,
.card__action:focus-visible span { transform: translateX(4px); }
.card__action:hover { text-decoration: underline; text-underline-offset: 3px; }
.card > * { grid-column: 1; }
.card > .card__body { grid-column: 1 / -1; }
.card > .card__scene { grid-column: 2; grid-row: 1; align-self: center; }

/* Card scenes sit directly on the card, beside the title */
.card__scene {
  width: 100%;
  height: 2.5rem;
  background: none;
  overflow: visible;
}
.card__scene svg { width: 100%; height: 100%; overflow: visible; }
.card__scene * { transform-box: fill-box; }
.s-panel { fill: #fff; stroke: #d3dce6; stroke-width: 1.4; }
.s-line { fill: none; stroke: #b9c7d6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-dot { fill: #d3dce6; }
.s-dash { fill: none; stroke: #c3d1e0; stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.s-door { fill: #dde6f0; }

/* Email: a note is typed, then flies into the Greystone inbox */
.m-type { fill: #c9d6e4; transform-origin: left center; transform: scaleX(0); animation: 6s var(--ease) infinite; }
.m-type--1 { animation-name: type-1; }
.m-type--2 { animation-name: type-2; }
.m-type--3 { animation-name: type-3; }
@keyframes type-1 { 0% { transform: scaleX(0); opacity: 1; } 9%, 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes type-2 { 0%, 10% { transform: scaleX(0); opacity: 1; } 19%, 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes type-3 { 0%, 20% { transform: scaleX(0); opacity: 1; } 27%, 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
.m-trail { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0; animation: trail 6s ease infinite; }
@keyframes trail { 0%, 34% { opacity: 0; } 42%, 58% { opacity: 0.45; } 66%, 100% { opacity: 0; } }
.m-env { fill: var(--accent); stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; transform-origin: center; opacity: 0; animation: envelope 6s var(--ease) infinite; }
@keyframes envelope {
  0%, 29% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  35% { opacity: 1; transform: translate(0, 0) scale(1); }
  47% { opacity: 1; transform: translate(66px, -20px) rotate(8deg) scale(1); }
  60% { opacity: 1; transform: translate(132px, 4px) rotate(0) scale(1); }
  66%, 100% { opacity: 0; transform: translate(132px, 10px) scale(0.5); }
}
.m-inbox { animation: inbox 6s ease infinite; }
@keyframes inbox { 0%, 58%, 90%, 100% { stroke: #d3dce6; } 64%, 82% { stroke: var(--accent); } }
.m-badge { transform-origin: center; transform: scale(0); animation: badge 6s var(--ease) infinite; }
.m-badge circle { fill: var(--accent); }
.m-badge text { fill: #fff; font: 800 9px var(--sans); text-anchor: middle; }
@keyframes badge { 0%, 61% { transform: scale(0); } 67% { transform: scale(1.3); } 72%, 88% { transform: scale(1); } 95%, 100% { transform: scale(0); } }

/* Call: the phone rings, the signal travels to the studio */
.c-phone { transform-origin: center; animation: buzz 4.5s ease infinite; }
@keyframes buzz {
  0%, 16%, 100% { transform: rotate(0); }
  3%, 11% { transform: rotate(-7deg); }
  7%, 14% { transform: rotate(7deg); }
}
.c-screen { fill: var(--accent-soft); animation: screen 4.5s ease infinite; }
@keyframes screen { 0%, 60%, 100% { fill: var(--accent-soft); } 4%, 50% { fill: #b9d0ea; } }
.c-dot { fill: var(--accent); opacity: 0; animation: signal 4.5s ease-in-out infinite; }
.c-dot:nth-of-type(2) { animation-delay: 0.3s; }
.c-dot:nth-of-type(3) { animation-delay: 0.6s; }
@keyframes signal {
  0%, 8% { opacity: 0; transform: translateX(0); }
  14% { opacity: 1; }
  44% { opacity: 1; transform: translateX(124px); }
  50%, 100% { opacity: 0; transform: translateX(124px); }
}
.c-ring { fill: none; stroke: var(--accent); stroke-width: 1.4; transform-origin: center; opacity: 0; animation: ring-out 4.5s ease-out infinite; }
.c-ring--2 { animation-delay: 0.35s; }
@keyframes ring-out { 0%, 48% { opacity: 0; transform: scale(0.75); } 52% { opacity: 0.6; } 80%, 100% { opacity: 0; transform: scale(1.2); } }
.c-win { fill: #dde6f0; }
.card--call .c-win { animation: lights 4.5s ease infinite; }
@keyframes lights { 0%, 48%, 92%, 100% { fill: #dde6f0; } 54%, 84% { fill: #9fc0e6; } }

/* Visit: someone walks to the studio door */
.v-walker { fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: walk 6s linear infinite; }
.v-walker path { fill: none; }
@keyframes walk {
  0% { opacity: 0; transform: translateX(0); }
  6% { opacity: 1; }
  66% { opacity: 1; transform: translateX(178px); }
  74%, 100% { opacity: 0; transform: translateX(185px); }
}
.v-leg { transform-origin: 50% 0; animation: stride 0.5s ease-in-out infinite alternate; }
.v-leg--b { animation-direction: alternate-reverse; }
@keyframes stride { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.v-door { animation: door 6s ease infinite; }
@keyframes door { 0%, 64%, 94%, 100% { fill: #dde6f0; } 70%, 88% { fill: #9fc0e6; } }
.v-pin { fill: var(--accent); transform-origin: 50% 100%; opacity: 0; animation: pin 6s var(--ease) infinite; }
.v-pin circle { fill: #fff; }
@keyframes pin {
  0%, 66% { opacity: 0; transform: translateY(-12px); }
  74% { opacity: 1; transform: translateY(2px) scaleY(0.92); }
  79%, 90% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(0); }
}

/* Form */
.brief { padding: var(--s-6) 0 var(--section); }
.brief-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--pad-panel);
  box-shadow: var(--shadow);
  border: var(--edge);
}
.brief__title { margin-bottom: var(--s-6); }
.enquiry {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-2);
}
.field { display: grid; grid-template-rows: auto var(--control) auto; gap: var(--s-2); align-content: start; }
.field--full { grid-column: 1 / -1; }
.field:has(textarea) { grid-template-rows: auto auto; }
.field label { font-weight: 700; font-size: var(--fs-ui); line-height: 1.3; color: #2c3742; }
abbr { text-decoration: none; color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  height: var(--control);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 0 var(--s-4);
  font-size: var(--fs-body);
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select {
  appearance: none;
  padding-right: 2.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2317457c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right var(--s-4) center / 0.75rem;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa5b1; }
.field textarea { height: auto; min-height: 7.5rem; padding: var(--s-3) var(--s-4); resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c5d0dc; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 90, 158, 0.15);
}
[aria-invalid="true"] { border-color: #c2410c !important; }
.phone-input {
  display: flex;
  align-items: stretch;
  height: var(--control);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phone-code {
  display: grid;
  place-items: center;
  padding: 0 var(--s-4);
  border-right: 1px solid var(--line);
  background: #f4f6f8;
  border-radius: calc(var(--radius-field) - 1px) 0 0 calc(var(--radius-field) - 1px);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--ink);
}
.phone-input input {
  height: 100%;
  border: 0;
  border-radius: 0 calc(var(--radius-field) - 1px) calc(var(--radius-field) - 1px) 0;
  box-shadow: none;
  min-width: 0;
}
.phone-input:hover { border-color: #c5d0dc; }
.phone-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 90, 158, 0.15);
}
.phone-input:focus-within input { box-shadow: none; }
.phone-input:has([aria-invalid="true"]) { border-color: #c2410c; }
.field-error { min-height: 1.25rem; color: #9a3412; font-size: var(--fs-small); line-height: 1.25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-3);
}
.verify { display: grid; gap: var(--s-1); width: min(300px, 100%); }
.cf-turnstile { min-height: 72px; }
.form-foot .submit { margin-top: calc((72px - var(--btn)) / 2); }
.form-status { grid-column: 1 / -1; margin-top: var(--s-3); color: #9a3412; font-size: var(--fs-ui); font-weight: 600; }
.form-status:empty { display: none; }
.success { background: #f3f7fb; border-radius: var(--radius); padding: var(--pad-card); }
.success h3 { margin-bottom: var(--s-2); }
.success p { color: var(--muted); }

/* Studio map */
.studio-map { padding: 0 0 var(--section); }
.studio-map__head { margin-bottom: var(--s-5); }
.studio-map__shell {
  overflow: hidden;
  border: 1px solid rgba(40, 52, 66, 0.12);
  border-radius: var(--radius);
  background: #d5dbe1;
  box-shadow: 0 26px 70px rgba(40, 52, 66, 0.16);
}
.studio-map__canvas {
  position: relative;
  height: 360px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 90, 158, 0.2), transparent 42%),
    #d5dbe1;
}
.studio-map__canvas::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(40, 52, 66, 0.12);
  background:
    linear-gradient(90deg, rgba(12, 20, 30, 0.1), transparent 14%, transparent 86%, rgba(12, 20, 30, 0.08)),
    linear-gradient(0deg, rgba(12, 20, 30, 0.08), transparent 20%);
  pointer-events: none;
}
.studio-map__canvas iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.studio-map__open {
  position: absolute;
  z-index: 2;
  inset: 0;
  color: transparent;
  font-size: 0;
}

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero::after { background: linear-gradient(180deg, rgba(12, 20, 30, 0.45) 0%, rgba(12, 20, 30, 0.85) 100%); }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .studio-map__canvas { height: 320px; }
}
@media (max-width: 640px) {
  .enquiry { grid-template-columns: minmax(0, 1fr); }
  .studio-map__canvas { height: 280px; }
}
@media (max-width: 760px) {
  :root { --fs-section: calc(clamp(2.45rem, 10vw, 3.6rem) - 4px); }
}
@media (max-width: 520px) {
  :root { --fs-section: calc(clamp(2.3rem, 10vw, 3.1rem) - 4px); }
}
@media (max-width: 560px) {
  :root { --pad-card: 1.25rem; }
  .hero { height: auto; min-height: 320px; }
  .hero__progress { left: var(--gutter); right: auto; }
  .hero__copy { padding: calc(var(--header) + var(--s-6)) 0 calc(var(--s-7) + var(--s-5)); }
  .form-foot .submit { width: 100%; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__slides img,
  .hero__progress span::after,
  .js .hero__line,
  .js .card,
  .card__scene * { animation: none !important; }
  .js .hero__slides img:first-child { opacity: 1; transform: none; }
  .m-type, .m-badge { transform: none; }
  .m-env, .v-pin { opacity: 0; }
  .v-walker { opacity: 1; transform: translateX(120px); }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .card::before { transition: none; }
  .studio-map__canvas iframe { transition: none; }
  html { scroll-behavior: auto; }
}

/* One title scale across the site: page heroes match the Contact hero, section titles match "Tell Us About Your Project".
   !important because each page stylesheet sizes its own hero and section titles. */
.hero h1,
.work-hero h1,
.blog-hero h1,
.project-gallery__intro h1,
.article-hero h1,
.hm-hero__title { font-size: var(--fs-hero) !important; }
.section-title,
.featured-showcase__title,
.hm-label,
.hm-sw__title { font-size: var(--fs-section) !important; }
