/* ==========================================================================
   Modern Tiling
   Palette taken from the trade: porcelain, grout, slate and a cobalt glaze.
   ========================================================================== */

:root {
  --porcelain: #F5F6F3;
  --mist: #E8EBE7;
  --grout: #C9CEC9;
  --slate: #1D2528;
  --slate-2: #283337;
  --slate-3: #3A474C;
  --stone: #5A676D;
  --cobalt: #2B47C4;
  --cobalt-deep: #1E3596;
  --cobalt-light: #8FA3F2;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --grout-w: 4px;
  --radius: 3px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
sup { line-height: 0; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--cobalt); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  text-wrap: balance;
}
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.5; font-weight: 500; }

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-top: 1rem; color: var(--stone); font-size: 1.125rem; max-width: 38rem; }
.section-head--split {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: .9rem;
  height: var(--h);
  padding: 0 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn--sm { --h: 44px; padding: 0 .4rem 0 1.1rem; font-size: .95rem; gap: .75rem; }
.btn--primary { background: var(--cobalt); color: #fff; padding-right: .4rem; }
.btn--primary:hover { background: var(--cobalt-deep); }
.btn--primary:not(:has(.btn__tile)) { padding-right: 1.4rem; }
.btn--ghost { border-color: var(--slate); color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: var(--porcelain); }
.btn--ghost-dark { border-color: var(--slate-3); color: var(--porcelain); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--porcelain); }

/* The arrow sits in its own little tile, set into the button */
.btn__tile {
  display: grid; place-items: center;
  width: calc(var(--h) - 14px); height: calc(var(--h) - 14px);
  background: rgba(255,255,255,.14);
  border-radius: 2px;
}
.btn__tile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform .25s var(--ease-out); }
.btn:hover .btn__tile svg { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--slate); color: #D4DAD8; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__contact { display: flex; gap: 1.75rem; }
.topbar a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; fill: var(--cobalt-light); }
@media (max-width: 760px) {
  .topbar__area { display: none; }
  .topbar__contact a:last-child { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 243, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--grout); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Lincon's logo: the MT monogram (its letters are cut by grout lines)
   and the MODERN TILE wordmark, drawn from SVG masks so they take any color. */
.logo { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--slate); }
.logo__mark, .logo__text, .logo-full, .footer__mark {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.logo__mark {
  height: 38px; aspect-ratio: 474.75 / 254.25;
  -webkit-mask-image: url("../img/logo/mt-mark.svg"); mask-image: url("../img/logo/mt-mark.svg");
}
.logo__text {
  height: 13px; aspect-ratio: 459.875 / 41.5;
  -webkit-mask-image: url("../img/logo/mt-text.svg"); mask-image: url("../img/logo/mt-text.svg");
}
@media (max-width: 420px) { .logo__mark { height: 32px; } .logo__text { height: 11px; } }
.logo-full {
  width: 200px; aspect-ratio: 488 / 311.2; color: var(--porcelain);
  -webkit-mask-image: url("../img/logo/mt-logo.svg"); mask-image: url("../img/logo/mt-logo.svg");
}

.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__list a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .975rem; position: relative; padding-block: .4rem; }
.nav__list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav__list a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta-item { margin-left: .5rem; }
.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__toggle {
    display: grid; place-items: center;
    width: 46px; height: 46px; border: 0; background: transparent; margin-right: -10px;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 24px; height: 2px; background: var(--slate); transition: transform .25s, opacity .2s;
  }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav__list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--grout);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a:not(.btn) { display: block; padding: 1rem 0; border-bottom: 1px solid var(--mist); font-size: 1.1rem; }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__cta-item { margin: 1.25rem 0 0; }
  .nav__cta-item .btn { width: 100%; justify-content: space-between; --h: 54px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* Headline laid out like courses of tile: each word sits on its own grout line */
.hero__courses {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(4.25rem, 9vw, 8.25rem);
  line-height: .86;
  letter-spacing: -.005em;
}
.hero__courses span {
  display: block;
  padding: .06em 0 .04em;
  border-bottom: var(--grout-w) solid var(--grout);
}
.hero__courses span:first-child { border-top: var(--grout-w) solid var(--grout); }
.hero__courses span:nth-child(2) { padding-left: .4em; }
.hero__courses span:nth-child(3) { padding-left: .8em; }

.hero__title {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
  max-width: 34rem;
  color: var(--slate-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__media { position: relative; }
.hero__caption { margin-top: .85rem; font-size: .8125rem; color: var(--stone); }
.hero__caption a { color: var(--stone); text-decoration: none; }

/* Tile grid: the photo is cut into real tiles with grout lines between them */
.tilegrid {
  --cols: 4; --rows: 5;
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  gap: var(--grout-w);
  background-size: cover;
  background-position: center;
}
.tilegrid.is-tiled { background: none !important; }
.tilegrid__tile {
  border-radius: 2px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
@media (prefers-reduced-motion: no-preference) {
  .tilegrid__tile {
    opacity: 0;
    transform: translateY(-10px) scale(.94);
    animation: set-tile .7s var(--ease-out) forwards;
    animation-delay: calc(var(--d) * 70ms + 150ms);
  }
}
@keyframes set-tile { to { opacity: 1; transform: none; } }

/* Assurances row */
.assurances {
  display: flex; flex-wrap: wrap; gap: .75rem 3rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--grout);
}
.assurances li { display: flex; align-items: center; gap: .75rem; }
.assurances li::before { content: ""; width: 12px; height: 12px; background: var(--cobalt); border-radius: 1px; }
.assurances strong { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; letter-spacing: .01em; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--cobalt); color: #fff; overflow: hidden; padding-block: 1.05rem; }
.ticker__track { display: flex; width: max-content; }
.ticker__track span {
  display: inline-flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .03em; white-space: nowrap;
}
.ticker__track span::after { content: ""; width: 10px; height: 10px; background: rgba(255,255,255,.55); border-radius: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 48s linear infinite; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services { background: var(--mist); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--grout-w);
  background: var(--grout);
  border: var(--grout-w) solid var(--grout);
  border-radius: var(--radius);
}
.service { background: var(--porcelain); display: flex; flex-direction: column; }
.service__media { position: relative; }
.service__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service__body { padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.service__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.75rem, 2.4vw, 2.1rem); line-height: 1; margin-bottom: 1.25rem;
}
.ticklist li {
  display: flex; align-items: baseline; gap: .85rem;
  padding: .7rem 0; border-top: 1px solid var(--mist); font-weight: 500;
}
.ticklist li::before {
  content: ""; flex: none; width: 9px; height: 9px; background: var(--cobalt); border-radius: 1px;
  transform: translateY(-1px);
}
@media (max-width: 900px) { .services__grid { grid-template-columns: 1fr; } .service { display: grid; grid-template-columns: 2fr 3fr; } .service__media { height: 100%; } .service__img { height: 100%; aspect-ratio: auto; } }
@media (max-width: 600px) { .service { display: flex; } .service__img { aspect-ratio: 16 / 10; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--slate); color: var(--porcelain); }
.gallery .section-head p { color: #A9B4B8; }

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 20vw, 270px);
  grid-auto-flow: dense;
  gap: var(--grout-w);
}
.masonry li { min-width: 0; }
.masonry li.is-tall { grid-row: span 2; }
.masonry li.is-wide { grid-column: span 2; }
.masonry li[hidden] { display: none; }
@media (max-width: 640px) {
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
}
.masonry--work { grid-auto-rows: clamp(190px, 21vw, 290px); }
.masonry button {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--slate-2);
  border-radius: 2px; overflow: hidden; position: relative; cursor: zoom-in;
}
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.masonry button:hover img { transform: scale(1.035); }
.masonry button:focus-visible { outline-offset: -3px; }



/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(17, 22, 24, .96); color: var(--porcelain);
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: rgba(17, 22, 24, .9); }
.lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 1rem; padding: 4rem 0 2rem; height: 100vh; align-content: center; }
.lightbox img { max-height: calc(100vh - 9rem); width: auto; max-width: 100%; border-radius: 2px; }
.lightbox figcaption { display: flex; gap: 1.5rem; justify-content: space-between; width: 100%; max-width: 900px; font-size: .95rem; color: #C2CBCE; }
.lightbox__count { color: #7E8B90; white-space: nowrap; }
.lightbox button { background: none; border: 0; color: var(--porcelain); display: grid; place-items: center; }
.lightbox svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lightbox__nav { width: 56px; height: 56px; border-radius: 50%; justify-self: center; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.08); }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox figure { grid-row: 1; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 52px; height: 52px; border-radius: 50%; z-index: 2; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 0 1fr 0; }
  .lightbox figure { padding-inline: .75rem; }
  .lightbox__nav { position: absolute; bottom: 1.25rem; background: rgba(255,255,255,.08) !important; }
  .lightbox__nav--prev { left: calc(50% - 68px); }
  .lightbox__nav--next { right: calc(50% - 68px); }
  .lightbox figure { padding-bottom: 6rem; }
}

/* ---------- Quote ---------- */
.quote {
  background: var(--slate); color: var(--porcelain);
  border-top: 1px solid var(--slate-3);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  /* faint tile grid, the only texture on the page */
  background-image:
    linear-gradient(rgba(255,255,255,.035) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.035) 2px, transparent 2px);
  background-size: 96px 96px;
  background-position: -1px -1px;
}
.quote__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.quote__intro { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.quote__kicker { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--cobalt-light); text-transform: uppercase; letter-spacing: .02em; }
.quote__title { font-size: clamp(3rem, 6.5vw, 5.25rem); }
.quote__intro > p:not(.quote__kicker) { color: #C2CBCE; font-size: 1.125rem; max-width: 30rem; }
.quote__direct { margin-top: 1rem; display: grid; gap: .25rem; border-top: 1px solid var(--slate-3); }
.quote__direct li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--slate-3); flex-wrap: wrap; }
.quote__direct span { color: #8E9BA0; }
.quote__direct a { font-weight: 700; text-decoration: none; }
.quote__direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 920px) { .quote__grid { grid-template-columns: 1fr; } .quote__intro { position: static; } }

.qform {
  background: var(--porcelain); color: var(--slate);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.qform__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grout-w); }
.qform__progress li { height: 8px; background: var(--mist); border-radius: 1px; transition: background-color .35s; }
.qform__progress li.is-done { background: var(--cobalt); }
.qform__status { margin-top: .75rem; font-size: .875rem; color: var(--stone); font-weight: 600; }

.qform__step { border: 0; padding: 0; margin: 1.5rem 0 0; min-width: 0; display: none; }
.qform__step.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .qform__step.is-active { animation: step-in .4s var(--ease-out); }
}
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } }
.qform legend {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1; padding: 0; margin-bottom: .5rem;
}
.qform__hint { color: var(--stone); margin-bottom: 1.25rem; }

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center; gap: .75rem;
  min-height: 56px; padding: .75rem 1rem;
  border: 2px solid var(--grout); border-radius: var(--radius);
  font-weight: 600; cursor: pointer; background: #fff;
  transition: border-color .15s, background-color .15s;
}
.chip span::before {
  content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--grout); border-radius: 2px;
  background: #fff center / 12px no-repeat;
  transition: background-color .15s, border-color .15s;
}
.chip:hover span { border-color: var(--stone); }
.chip input:checked + span { border-color: var(--cobalt); background: #EEF1FD; }
.chip input:checked + span::before {
  border-color: var(--cobalt); background-color: var(--cobalt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
}
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
@media (max-width: 460px) { .chips { grid-template-columns: 1fr; } }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; margin-top: 1rem; }
.field > span { font-weight: 600; font-size: .95rem; }
.field em { font-style: normal; font-weight: 400; color: var(--stone); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem .9rem;
  border: 2px solid var(--grout); border-radius: var(--radius); background: #fff;
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none;
  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.5l5 5 5-5' fill='none' stroke='%231D2528' stroke-width='1.8'/%3E%3C/svg%3E") right 1rem center / 12px no-repeat;
  padding-right: 2.5rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--stone); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(43,71,196,.18); }
.field input[aria-invalid="true"] { border-color: #B3261E; }

.qform__error { margin-top: 1rem; color: #B3261E; font-weight: 600; font-size: .95rem; }
.qform__mailnote {
  display: flex; gap: .85rem; align-items: flex-start;
  margin-top: 1.5rem; padding: 1rem 1.1rem;
  background: #EEF1FD; border-left: var(--grout-w) solid var(--cobalt); border-radius: 2px;
  font-size: .95rem; line-height: 1.5; color: var(--slate-2);
}
.qform__mailnote svg { flex: none; width: 20px; height: 20px; fill: var(--cobalt); margin-top: .1rem; }
.qform__mailnote strong { color: var(--slate); }
.qform__nav { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.75rem; }
.qform .btn--ghost-dark { color: var(--slate); border-color: var(--grout); }
.qform .btn--ghost-dark:hover { border-color: var(--slate); }

.qform__done { text-align: center; padding: 2.5rem 0 1.5rem; display: grid; justify-items: center; gap: .75rem; }
.qform__done svg { width: 64px; height: 64px; fill: none; stroke: var(--cobalt); stroke-width: 3; margin-bottom: .5rem; }
.qform__done h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 2.4rem; line-height: 1; }
.qform__done p { color: var(--stone); }
.qform__done:focus { outline: none; }
.qform__done[hidden] { display: none; }
.qform__alt { margin-top: .75rem; font-size: .9rem; }
.qform__alt a { color: var(--cobalt); font-weight: 600; }

/* ---------- Areas ---------- */
.areas__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); }
.areas header { display: grid; gap: 1.25rem; align-content: start; justify-items: start; }
.areas header p { color: var(--stone); font-size: 1.125rem; max-width: 28rem; }
.areas__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.areas h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; padding-bottom: 1rem; border-bottom: var(--grout-w) solid var(--slate); }
.towns li { padding: .7rem 0; border-bottom: 1px solid var(--grout); font-weight: 500; }
@media (max-width: 860px) { .areas__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .areas__cols { grid-template-columns: 1fr; } .towns { columns: 2; column-gap: 1.5rem; } .towns li { break-inside: avoid; } }

/* ---------- Footer ---------- */
.footer { background: var(--slate); color: #C2CBCE; padding-top: clamp(4rem, 8vw, 6rem); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand p { margin-top: 1.5rem; max-width: 22rem; }
.footer h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .6rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__mark {
  color: var(--slate-2);
  width: min(100%, 760px);
  aspect-ratio: 474.75 / 254.25;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: -6%;
  -webkit-mask-image: url("../img/logo/mt-mark.svg"); mask-image: url("../img/logo/mt-mark.svg");
  -webkit-mask-position: left bottom; mask-position: left bottom;
}
.footer__base {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  padding-block: 1.5rem; border-top: 1px solid var(--slate-3); font-size: .875rem; color: #8E9BA0;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer { padding-bottom: 72px; } }
@media (max-width: 560px) { .footer__grid > div:nth-child(2) { grid-column: 1 / -1; } }

/* ---------- Mobile action bar ---------- */
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 2fr; gap: var(--grout-w);
    background: var(--slate); padding: var(--grout-w);
    padding-bottom: calc(var(--grout-w) + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .3s var(--ease-out);
  }
  .actionbar.is-visible { transform: none; }
  .actionbar a {
    display: grid; place-items: center; height: 54px; text-decoration: none; font-weight: 700; border-radius: 2px;
  }
  .actionbar__call { background: var(--slate-2); color: #fff; }
  .actionbar__quote { background: var(--cobalt); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
