/* Escarpment Contracting Co.: premium exterior contractor, Caledon to Collingwood.
   Strict monochrome from the black/white ridge-line logo: ink, paper, a grey ramp,
   Google gold on review stars only. Mobile-first, zero horizontal overflow. */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --ink: #17191b;
  --ink-soft: #2a2d30;
  --body: #3c3f42;
  --cream: #f1f1ee;
  --paper: #fafaf8;
  --white: #ffffff;
  --hairline-dark: rgba(244, 244, 242, 0.2);
  --gold: #fbbc04;
  --line: #e6e5e2;
  --line-dark: rgba(244, 241, 234, 0.16);
  --link-on-dark: rgba(244, 244, 242, 0.88);
  --select-on-light-bg: var(--ink);
  --select-on-light-fg: var(--paper);
  --select-on-dark-bg: var(--cream);
  --select-on-dark-fg: var(--ink);
  --focus-on-light: var(--ink-soft);
  --focus-on-dark: var(--cream);
  --tap-on-light: rgba(23, 25, 27, 0.07);
  --tap-on-dark: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --shadow: 0 14px 40px -18px rgba(23, 25, 27, 0.35);
  --wrap: 1180px;
}

/* Merto root globals.css paints brass selection/focus/tap on every route.
   Custom sites load after it but need explicit, surface-aware overrides. */
::selection {
  background: var(--select-on-light-bg);
  color: var(--select-on-light-fg);
}
.topbar ::selection,
.hero ::selection,
.section--ink ::selection,
.cta-band ::selection,
.footer ::selection,
.nav-links[data-open="true"] ::selection {
  background: var(--select-on-dark-bg);
  color: var(--select-on-dark-fg);
}
:focus-visible {
  outline: 2px solid var(--focus-on-light);
  outline-offset: 3px;
}
.topbar :focus-visible,
.hero :focus-visible,
.section--ink :focus-visible,
.cta-band :focus-visible,
.footer :focus-visible,
.mob-call:focus-visible,
.to-top:focus-visible,
.nav-links[data-open="true"] :focus-visible {
  outline-color: var(--focus-on-dark);
}
@media (pointer: coarse) {
  html {
    -webkit-tap-highlight-color: var(--tap-on-light);
  }
  :where(
    a,
    button,
    summary,
    [role="button"],
    label[for],
    input,
    select,
    textarea
  ) {
    -webkit-tap-highlight-color: var(--tap-on-light);
  }
  :where(
    .topbar a,
    .hero a,
    .hero button,
    .section--ink a,
    .section--ink button,
    .section--ink summary,
    .cta-band a,
    .cta-band button,
    .footer a,
    .mob-call,
    .to-top,
    .nav-links[data-open="true"] a,
    .nav-links[data-open="true"] button
  ) {
    -webkit-tap-highlight-color: var(--tap-on-dark);
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img,
iframe {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: Sora, Inter, sans-serif;
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.3rem);
  font-weight: 700;
}
h3 {
  font-size: 1.13rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #b9b9b4;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}
.nav a,
.footer a,
.btn,
.brand,
.card-link,
.work-card,
.topbar a {
  text-decoration: none;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  margin: 0.3rem 0.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: #000;
  box-shadow: 0 10px 26px -12px rgba(10, 10, 10, 0.55);
}
.hero .btn--primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.hero .btn--primary:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
}
.section--ink .btn--primary,
.cta-band .btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.section--ink .btn--primary:hover,
.cta-band .btn--primary:hover {
  background: #fff;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.8);
}
.hero .btn--ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}
.hero .btn--ghost-light:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 25, 27, 0.28);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-dark);
}
.btn--ghost-light:hover {
  border-color: var(--cream);
  color: #fff;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.85);
  font-size: 0.82rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}
.topbar-msg {
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.topbar-msg-short {
  display: none;
}
.topbar-call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  margin-block: -12px;
  color: rgba(244, 244, 242, 0.8);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.84rem;
}
.topbar-call::before {
  content: "Call";
  font-weight: 500;
  color: rgba(244, 241, 234, 0.72);
}
.topbar-call:hover {
  color: #fff;
  text-decoration: none;
}
.topbar-call:hover::before {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  margin-top: -1px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 158px;
  height: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 1.5rem);
  font-size: 0.95rem;
  font-weight: 500;
}
/* Text links only : .btn carries its own padding; nav > a was squashing the CTA. */
.nav-links > a:not(.btn),
.nav-dd-top {
  color: var(--ink-soft);
  padding: 0.4rem 0.1rem;
  white-space: nowrap;
}
.nav-links > a:not(.btn):hover,
.nav-dd-top:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.nav-links > a:not(.btn)[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.nav-cta {
  display: inline-flex;
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-links .btn--primary,
.nav-links .btn--primary:hover {
  color: #fff;
}
.nav-caret {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  vertical-align: -2px;
}
.nav-dd {
  position: relative;
}
.nav-dd-top {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: -0.9rem;
  min-width: 215px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display: none;
  flex-direction: column;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  display: flex;
}
.nav-dd-menu a {
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
}
.nav-dd-menu a:hover {
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  min-height: 44px;
  padding: 10px 6px;
  cursor: pointer;
  font: 600 0.85rem Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  z-index: 75;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-toggle-bars span {
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
/* While the overlay is open, pin the toggle to the viewport so the Close
   button cannot leave the screen no matter what scrolls underneath.
   The exact top/right come from JS (measured at open) so the button does
   not jump whether or not the topbar is still in view; these are fallbacks. */
.nav-toggle[aria-expanded="true"] {
  position: fixed;
  top: 14px;
  right: clamp(14px, 4vw, 28px);
  color: var(--cream);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 880px) {
  .topbar .wrap {
    justify-content: space-between;
    gap: 0.55rem;
    min-height: 34px;
    padding-block: 0.42rem;
  }
  .topbar-msg {
    display: none;
  }
  .topbar-msg-short {
    display: inline;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
  }
  /* Compact tap-to-call on the right; sticky mob-call stays for thumb reach. */
  .topbar-call {
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.3rem;
  }
  .topbar-call::before {
    content: "";
    flex-shrink: 0;
    width: 0.82em;
    height: 0.82em;
    background: currentColor;
    opacity: 0.9;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 4h4l2 5-2.5 1.5a12 12 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 4h4l2 5-2.5 1.5a12 12 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .nav-toggle {
    display: flex;
  }
  /* Full-screen ink overlay menu: the brand inversion is the event. */
  .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 70;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--ink);
    padding: 100px clamp(22px, 7vw, 40px) calc(5.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    counter-reset: menuitem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-links[data-open="true"] {
    opacity: 1;
    visibility: visible;
  }
  .nav-links > a:not(.btn),
  .nav-dd-top {
    counter-increment: menuitem;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    font-family: Sora, sans-serif;
    font-size: clamp(1.3rem, 6vw, 1.85rem);
    font-weight: 700;
    color: var(--cream);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--hairline-dark);
    opacity: 0;
    transform: translateY(12px);
  }
  .nav-links > a:not(.btn)::before,
  .nav-dd-top::before {
    content: "0" counter(menuitem);
    font-family: Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(244, 244, 242, 0.45);
    font-variant-numeric: tabular-nums;
  }
  .nav-links[data-open="true"] > a:not(.btn),
  .nav-links[data-open="true"] .nav-dd-top {
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .nav-links[data-open="true"] > a:nth-child(1) {
    transition-delay: 0.05s;
  }
  .nav-links[data-open="true"] > .nav-dd .nav-dd-top {
    transition-delay: 0.1s;
  }
  .nav-links[data-open="true"] > a:nth-child(3) {
    transition-delay: 0.15s;
  }
  .nav-links[data-open="true"] > a:nth-child(4) {
    transition-delay: 0.2s;
  }
  .nav-links[data-open="true"] > a:nth-child(5) {
    transition-delay: 0.25s;
  }
  .nav-links[data-open="true"] > a:nth-child(6) {
    transition-delay: 0.3s;
  }
  .nav-links > a:not(.btn):hover,
  .nav-dd-top:hover {
    color: #fff;
  }
  /* Beat desktop [aria-current] ink color, otherwise "Home" vanishes on the home page. */
  .nav-links > a:not(.btn)[aria-current="page"],
  .nav-dd-menu a[aria-current="page"] {
    color: #fff;
  }
  .nav-dd {
    display: contents;
  }
  .nav-caret {
    display: none;
  }
  .nav-dd-menu {
    position: static;
    display: flex;
    flex-direction: column;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.2rem 0 0.6rem;
    border-bottom: 1px solid var(--hairline-dark);
  }
  .nav-dd-menu a {
    color: rgba(244, 244, 242, 0.78);
    font-size: 0.98rem;
    font-weight: 500;
    padding: 0.4rem 0 0.4rem 2.3rem;
    border-left: 0;
    border-radius: 0;
    margin-left: 0;
  }
  .nav-dd-menu a:hover {
    background: none;
    color: #fff;
  }
  /* Menu CTA: pinned while open; .mob-call hides via body.menu-open so no overlap. */
  .nav-cta {
    position: fixed;
    left: clamp(22px, 7vw, 40px);
    right: clamp(22px, 7vw, 40px);
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 71;
    margin: 0;
    justify-content: center;
    background: var(--paper);
    color: var(--ink);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
  }
  .nav-links .nav-cta.btn--primary {
    background: var(--paper);
    color: var(--ink);
  }
  .nav-links .nav-cta.btn--primary:hover {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.45);
  }
  .nav-links[data-open="true"] .nav-cta {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.35s ease 0.3s, transform 0.35s ease 0.3s;
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-links,
    .nav-links > a:not(.btn),
    .nav-dd-top,
    .nav-cta {
      transition: none !important;
      transform: none !important;
    }
  }
}

/* ---------- Ridge section divider ---------- */
.ridge-divider {
  display: block;
  width: 100%;
  height: 40px;
  overflow: visible;
  line-height: 0;
}
.ridge-divider path {
  stroke: var(--line);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Signature image (wider column, taller crop) ---------- */
.signature-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* ---------- Pull quote ---------- */
.pull-quote {
  border-left: 2px solid var(--line);
  padding: 0.6rem 0 0.6rem 1.4rem;
  margin: 0 0 1.4rem;
}
.pull-quote blockquote {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}
.pull-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 25, 27, 0.55), rgba(23, 25, 27, 0.25) 45%, rgba(23, 25, 27, 0.82)),
    linear-gradient(100deg, rgba(23, 25, 27, 0.8) 12%, rgba(23, 25, 27, 0) 64%);
}
.hero .wrap {
  position: relative;
  padding-top: clamp(72px, 12vw, 138px);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.hero h1 {
  color: var(--white);
  max-width: 16ch;
}
.hero-lede {
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  color: rgba(255, 255, 255, 0.8);
}
.hero-ridge {
  width: min(420px, 70vw);
  margin-bottom: 1rem;
  display: block;
}
.hero-ridge path {
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ridge-draw path {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}
.ridge-draw.drawn path {
  animation: ridge 1.7s ease-out forwards;
}
@keyframes ridge {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ridge-draw path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none !important;
  }
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #63676c;
  margin: 0 0 0.9rem;
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.hero-cta .btn {
  margin: 0;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 2.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.68);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-meta svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Page hero (interior pages, shorter) */
.hero--page .wrap {
  padding-top: clamp(56px, 9vw, 100px);
  padding-bottom: clamp(48px, 7vw, 84px);
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat span {
  font-size: 0.8rem;
  color: var(--body);
  letter-spacing: 0.01em;
}
@media (max-width: 760px) {
  .trust .wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 0.8rem;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 9vw, 112px) 0;
}
.section--cream {
  background: var(--cream);
}
.section--ink {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.85);
  /* subtle noise grain: architectural, not decorative */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.section--ink h2,
.section--ink h3 {
  color: var(--cream);
}
.section--ink .eyebrow {
  color: rgba(244, 244, 242, 0.8);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}
.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -20px rgba(23, 25, 27, 0.3);
}
.card .ico {
  width: 34px;
  height: 34px;
  stroke: var(--ink-soft);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.9rem;
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p {
  font-size: 0.94rem;
  margin: 0;
}
/* Material swatch photo bleeding to the card edges (decks materials band) */
.card-swatch {
  display: block;
  width: calc(100% + 3rem);
  max-width: none;
  margin: -1.6rem -1.5rem 1.1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  margin-bottom: -12px;
}
.card-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Service card with photo */
.svc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.svc-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.svc-card:hover img {
  transform: scale(1.03);
}
.svc-card-body {
  padding: 1.5rem 1.6rem 1.8rem;
  flex: 1;
}

/* ---------- Split bands ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.split--flip {
  grid-template-columns: 1fr 1.1fr;
}
/* Wide-photo variant: text narrower, photo dominant */
.split--photo {
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
}
.split img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .split,
  .split--flip {
    grid-template-columns: 1fr;
  }
}

/* ---------- Checklist ---------- */
.checks {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.checks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.97rem;
}
.checks svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  stroke: var(--ink-soft);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section--ink .checks svg {
  stroke: rgba(244, 241, 234, 0.7);
}

/* ---------- Work gallery ---------- */
.gallery {
  columns: 3;
  column-gap: clamp(0.9rem, 2vw, 1.4rem);
}
@media (max-width: 860px) {
  .gallery {
    columns: 2;
  }
}
@media (max-width: 520px) {
  .gallery {
    columns: 1;
  }
}
.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  cursor: zoom-in;
  margin: 0 0 clamp(0.9rem, 2vw, 1.4rem);
  break-inside: avoid;
}
.work-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, opacity 0.35s ease;
}
.work-card:hover img {
  transform: scale(1.04);
  opacity: 0.82;
}
.work-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, rgba(23, 25, 27, 0), rgba(23, 25, 27, 0.9));
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 500;
}
.work-card figcaption strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
@media (max-width: 860px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}
.review-stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.review p {
  font-size: 0.95rem;
}
.review cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}
.review cite span {
  display: block;
  font-weight: 400;
  color: var(--body);
  font-size: 0.8rem;
}
.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
}
.section--ink .rating-line {
  color: var(--cream);
}
.rating-line .review-stars {
  margin: 0;
}


/* ---------- Google-styled review band ---------- */
.gsummary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section--ink .gsummary {
  background: var(--ink-soft);
  border-color: var(--line-dark);
}
.glogo {
  width: 38px;
  height: 38px;
  flex: none;
  align-self: center;
}
.gsummary-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}
.gsummary-score-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.gscore {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}
.section--ink .gscore {
  color: var(--cream);
}
.gsummary-rating .review-stars {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  line-height: 1;
}
/* Honest 4.8: the summary band's fifth star is only partially filled.
   92% (not 96%) because the glyph's ink stops short of the box edge and
   letter-spacing pads the row; measured so the grey lands on visible ink.
   Review cards keep solid stars; each of those is an individual 5-star review. */
.gsummary-score-row .review-stars {
  background: linear-gradient(90deg, var(--gold) 92%, #d8d8d3 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gcount {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--body);
}
.section--ink .gcount {
  color: rgba(244, 241, 234, 0.7);
}
.gsummary .btn {
  justify-self: end;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .gsummary {
    grid-template-columns: auto 1fr;
    gap: 0.85rem 1rem;
  }
  .gsummary .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.ghead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.gavatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.review .ghead cite {
  display: block;
}
.gsource {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--body);
}
.section--ink .gsource {
  color: rgba(244, 241, 234, 0.6);
}
.gsource svg {
  width: 12px;
  height: 12px;
}

/* ---------- FAQ ---------- */
/* Cost-guide pricing table: scrollable on phones, clean rows on desktop. */
.cost-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cost-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.cost-table th,
.cost-table td {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cost-table thead th {
  font-family: Sora, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--cream);
}
.cost-table tbody tr:last-child td {
  border-bottom: 0;
}
.cost-table td strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
}
.cost-table td span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.cost-table td:nth-child(2) {
  font-weight: 700;
  white-space: nowrap;
}

.faq {
  max-width: 780px;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 0.8rem;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
  flex: none;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.95rem;
}
.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- Process steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 1.5rem);
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.step::before {
  content: "0" counter(step);
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  opacity: 0.18;
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-size: 1.02rem;
}
.step p {
  font-size: 0.92rem;
  margin: 0;
}
.section--ink .step {
  background: var(--ink-soft);
  border-color: var(--line-dark);
}
.section--ink .step p {
  color: rgba(244, 241, 234, 0.78);
}
/* Steps with a craft photo beside them (home) */
.steps-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: stretch;
}
.steps-split > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.steps-split .steps {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) {
  .steps-split {
    grid-template-columns: 1fr;
  }
  .steps-split > img {
    max-height: 340px;
  }
  .steps-split .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .steps-split .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Area blocks ---------- */
.area {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.area img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.area-body {
  padding: 1.2rem 1.3rem 1.4rem;
}
.area-body h3 {
  margin-bottom: 0.3rem;
}
.area-body p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 0.9rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.form input,
.form textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.select-wrap {
  position: relative;
  display: block;
}
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2d30' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form select {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.72rem 2.75rem 0.72rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: var(--white);
}
.form input:focus,
.form input:focus-visible,
.form select:focus,
.form select:focus-visible,
.form textarea:focus,
.form textarea:focus-visible {
  outline: 2px solid var(--focus-on-light);
  outline-offset: 1px;
  border-color: var(--ink);
}
.form textarea {
  min-height: 130px;
  resize: vertical;
}

/* ---------- Contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  margin-bottom: 1.1rem;
}
.contact-card h3 {
  margin-bottom: 0.5rem;
}
.contact-card p {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}
.map-embed {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
/* Real project photo under the ink: grayscale keeps the band monochrome. */
.cta-band-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(1) brightness(0.62);
}
.cta-band .wrap {
  position: relative;
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(64px, 9vw, 104px);
  text-align: center;
}
/* Owner avatars beside conversion points: the human "you deal with us" cue. */
.owners-note {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  text-align: left;
}
.owner-faces {
  display: inline-flex;
  flex: none;
}
.owners-note img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
}
.owners-note img + img {
  margin-left: -11px;
}
.owners-note span:last-child {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--body);
  max-width: 34ch;
}
/* Post-submit confirmation under the Send button (hidden until the mailto fires). */
.form-sent {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--body);
}
.form .owners-note {
  margin-top: 0.9rem;
}
.form .owners-note span:last-child {
  max-width: 46ch;
}
.cta-band .owners-note span:last-child {
  color: rgba(244, 241, 234, 0.85);
}
.cta-band .owners-note img {
  border-color: rgba(244, 244, 242, 0.55);
}
.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band p {
  max-width: 56ch;
  margin: 0 auto 1.4rem;
  color: rgba(244, 241, 234, 0.8);
}
.cta-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: 90px;
  opacity: 0.22;
  pointer-events: none;
}
.cta-ridge path {
  stroke: rgba(244, 244, 242, 0.85);
  stroke-width: 2;
  fill: none;
}

/* ---------- Footer ---------- */
.footer {
  background: #101214;
  color: rgba(244, 241, 234, 0.72);
  font-size: 0.92rem;
}
.footer a {
  color: rgba(244, 241, 234, 0.72);
}
.footer a:hover {
  color: rgba(244, 244, 242, 0.8);
  text-decoration: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding: clamp(48px, 7vw, 72px) 0 2.4rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand img {
  width: 190px;
  height: auto;
  margin-bottom: 0.9rem;
}
.footer h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-block: -7px;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.1rem;
}
.footer-social a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}
.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.2rem 0 1.4rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: space-between;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.footer-bottom a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Reveal motion ----------
   Hiding is gated on .reveal-ready (set synchronously by script.js), so a
   no-JS visitor or crawler sees the full page instead of blank sections. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card,
  .btn,
  .work-card img,
  .to-top {
    transition: none !important;
  }
  .to-top,
  .to-top.show,
  .to-top:hover,
  .to-top:active {
    transform: none;
  }
  .to-top svg,
  .to-top:hover svg {
    transform: none;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 18, 20, 0.92);
  padding: 4vmin;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Mobile sticky call bar ---------- */
.mob-call {
  display: none;
}
@media (max-width: 880px) {
  .mob-call {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 28px -10px rgba(23, 25, 27, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.94);
    transition:
      opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.32s,
      background 0.18s ease,
      box-shadow 0.22s ease;
  }
  .mob-call.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .mob-call.show:hover {
    text-decoration: none;
    background: #000;
    transform: translateY(-2px) scale(1);
    box-shadow: 0 14px 32px -12px rgba(23, 25, 27, 0.58);
  }
  .mob-call.show:active {
    transform: translateY(0) scale(0.98);
  }
  .mob-call:focus-visible {
    outline-color: var(--focus-on-dark);
  }
  .mob-call svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }
  body.mob-call-pad .footer {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

/* While the overlay menu is open, its pinned CTA owns the thumb zone. */
body.menu-open .mob-call,
body.menu-open .to-top {
  display: none;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 85;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(244, 244, 242, 0.28);
  background: linear-gradient(
    165deg,
    rgba(42, 45, 48, 0.94) 0%,
    rgba(23, 25, 27, 0.97) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
  box-shadow:
    0 14px 34px -14px rgba(23, 25, 27, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.to-top:hover {
  border-color: rgba(244, 244, 242, 0.62);
  color: #fff;
  box-shadow:
    0 18px 40px -14px rgba(23, 25, 27, 0.68),
    0 0 28px -10px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-3px) scale(1);
}
.to-top:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 8px 20px -12px rgba(23, 25, 27, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.to-top:focus-visible {
  outline-color: var(--focus-on-dark);
}
.to-top svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.to-top:hover svg {
  transform: translateY(-2px);
}
/* Must follow the base .to-top block : an earlier mobile rule was losing the cascade. */
@media (max-width: 880px) {
  .to-top {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
    box-shadow:
      0 16px 36px -14px rgba(23, 25, 27, 0.66),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .to-top svg {
    width: 16px;
    height: 16px;
  }
  body.mob-call-pad .to-top {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Legal ---------- */
.legal {
  max-width: 760px;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
