/* HomeAgain site foundation.
   All new homepage features are styled here and use only the tokens below.
   Rules:
   - One typeface: Satoshi for every title, body and UI element. Keep each
     title's authored size and weight.
   - Animate only transform, opacity and clip-path. Never width, height, top
     or left. No catch-all transition shorthand. No important-flag overrides.
   - Every animated feature ships a prefers-reduced-motion: reduce version
     that shows the final state with no movement. */

:root {
  --ink: #595960;
  --ink-soft: #595960;
  --font-title: "Satoshi", sans-serif;
  --paper: #f5f2ee;
  --line: rgba(15, 23, 42, 0.12);

  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* Typographic scope for every new feature. Add class "site-feature" to a
   feature's root element. */
.site-feature {
  color: var(--ink);
  background: var(--paper);
  font-family: "Satoshi", sans-serif;
  font-weight: 400;
}

.site-feature :is(h1, h2, h3, h4, h5, h6) {
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.site-feature :is(h1, h2, h3, h4, h5, h6).site-heading-medium {
  font-weight: 500;
}

.site-feature p {
  color: var(--ink-soft);
}

.site-feature hr,
.site-feature .site-rule {
  border: 0;
  border-top: 1px solid var(--line);
}

/* Shared entrance pattern. A feature adds "site-reveal"; site.js adds
   "is-in" when it enters the viewport. Only opacity and transform move. */
.site-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 380ms var(--ease-out) var(--site-delay, 0ms),
    transform 380ms var(--ease-out) var(--site-delay, 0ms);
}

.site-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-reveal,
  .site-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------
   Service cards (#services .svc-card)
   Every card keeps one height. The open state is a plate (::before) that is
   revealed with clip-path, card positions animate with transforms (js/site.js,
   initServiceCards) and the description fades in. Nothing animates width,
   height, top or left.
   ------------------------------------------------------------------ */
.svc-card {
  --svc-open: clamp(280px, 32cqw, 420px);
  --svc-closed: clamp(180px, 17cqw, 240px);
  --svc-pad: clamp(22px, 2vw, 29px);
  --svc-copy: rgba(255, 255, 255, 0.78);
  isolation: isolate;
  transition:
    transform var(--dur-slow) var(--ease-out),
    color var(--dur-slow) var(--ease-out);
}

.svc-card[data-on="true"] {
  --svc-copy: #4b5563;
}

.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  box-sizing: border-box;
  width: var(--svc-open);
  border: 1px solid var(--svc-border);
  border-radius: 20px;
  background-color: var(--svc-bg);
  clip-path: inset(0 calc(var(--svc-open) - var(--svc-closed)) 0 0 round 20px);
  transition:
    clip-path var(--dur-slow) var(--ease-out),
    background-color var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out);
}

.svc-card[data-on="true"]::before {
  clip-path: inset(0 0 0 0 round 20px);
}

.svc-card > div:last-child {
  overflow: clip;
}

.svc-card h3 {
  white-space: nowrap;
}

.svc-more {
  display: grid;
  gap: 14px;
  justify-items: start;
  width: calc(var(--svc-open) - 2 * var(--svc-pad));
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--dur-fast) var(--ease-in),
    transform var(--dur-fast) var(--ease-in);
}

.svc-more p {
  /* Reserve three lines (four on very narrow phones) so the Book service
     button sits at the same height on every card. */
  min-height: calc(3 * 1.6 * 15.5px);
  color: var(--svc-copy);
}

@media (max-width: 360px) {
  .svc-more {
    gap: 8px;
  }

  .svc-more p {
    min-height: calc(4 * 1.6 * 15.5px);
  }
}

.svc-more .btn {
  transition: background-color var(--dur-fast) var(--ease-out);
}

.svc-card[data-on="true"] .svc-more {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity var(--dur-base) var(--ease-out) var(--dur-fast),
    transform var(--dur-base) var(--ease-out) var(--dur-fast);
}

/* Closing: the description leaves first, then the card shrinks. */
.svc-card[data-on="true"][data-closing="true"] .svc-more {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--dur-fast) var(--ease-in),
    transform var(--dur-fast) var(--ease-in);
}

/* Phones: cards are all one size and every card shows its full content. The
   snapped card is only highlighted, with colour and opacity. */
@media (max-width: 900px) {
  .svc-car {
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
  }

  .svc-card {
    scroll-snap-align: start;
  }

  .svc-card::before {
    width: 100%;
    clip-path: none;
  }

  .svc-card[data-on="true"]::before {
    clip-path: none;
  }

  .svc-more {
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .svc-card[data-on="true"][data-closing="true"] .svc-more {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-card::before,
  .svc-more,
  .svc-card[data-on="true"] .svc-more,
  .svc-more .btn {
    transition: none;
  }

  .svc-more,
  .svc-card[data-on="true"][data-closing="true"] .svc-more {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Hover and press (one rule per component)
   Mouse only. The service cards lift 2px; buttons only change
   colour on hover (the page runtime handles that) and scale to .98 when
   pressed.
   ------------------------------------------------------------------ */
@media (hover: hover) and (pointer: fine) {
  .svc-card[data-on="false"]:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card[data-on="false"]:hover {
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------
   About split headline (#overview.hs)
   One sentence in two blocks around a portrait photo: "Homes made" top left,
   "to feel new again." bottom right. 12-column grid; full viewport height.
   Headline size follows the section width (container units) so the page
   sidebar never makes the two blocks collide with the photo.
   ------------------------------------------------------------------ */
.hs {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: 24px;
  min-height: 100svh;
  box-sizing: border-box;
  padding: 56px 48px;
  background: var(--paper);
  color: var(--ink);
}

.hs-left {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  align-self: start;
}

.hs-eyebrow.ws-pill {
  margin: 0 0 24px;
  background: transparent;
}

.hs-title {
  margin: 0;
  color: var(--ink);
}

.hs-line {
  display: block;
  /* Same heading style as the other sections (face comes from the h2). */
  font-family: inherit;
  font-weight: 550;
  font-size: clamp(44px, min(8vw, 6.5cqw), 128px);
  line-height: 1.02;
  letter-spacing: -0.033em;
  color: var(--ink);
  text-wrap: balance;
}

.hs-sub {
  max-width: 34ch;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hs-sub .area {
  display: inline-block;
  box-sizing: border-box;
  /* Fixed-width underline: js/site.js widens this to the longest word in the
     list, so the line never re-wraps while words change. */
  min-width: var(--area-min, 9ch);
  /* Hairline underline: a half-pixel line drawn as a background, because
     borders cannot be thinner than one pixel. The transparent border keeps the
     box the same height as before. */
  border-bottom: 1px solid transparent;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 0.5px no-repeat border-box;
  line-height: 1.2;
  white-space: nowrap;
}

.area-word {
  font-weight: 700;
  transition: opacity 180ms var(--ease-out);
}

.area-word[data-fading="true"] {
  opacity: 0;
}

.area-word:empty::before {
  content: "\200b";
}

.area-caret {
  display: none;
}

.hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hs-photo {
  grid-column: 6 / span 3;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: stretch;
  height: 62svh;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e2db;
}

.hs-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.hs-scroll {
  grid-column: 9 / span 1;
  grid-row: 2;
  align-self: center;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 120px;
}

.hs-scroll-line {
  width: 1px;
  height: 120px;
  background: var(--line);
}

.hs-scroll-label {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hs-right {
  grid-column: 9 / span 4;
  grid-row: 3;
  align-self: end;
  text-align: right;
}

.hs-right .hs-line {
  text-align: right;
}

/* Entrance: plays once when the section scrolls into view. The pending state
   is set by js/site.js, so the section is fully visible without scripts. */
.hs[data-hs] .hs-left,
.hs[data-hs] .hs-right {
  transition:
    opacity 400ms var(--ease-out) var(--hs-delay, 0ms),
    transform 400ms var(--ease-out) var(--hs-delay, 0ms);
}

.hs[data-hs] .hs-right {
  --hs-delay: 60ms;
}

.hs[data-hs] .hs-photo img {
  transition: opacity 450ms var(--ease-out);
}

.hs[data-hs="pending"] .hs-left,
.hs[data-hs="pending"] .hs-right {
  opacity: 0;
  transform: translateY(8px);
}

.hs[data-hs="pending"] .hs-photo img {
  opacity: 0;
}

@media (max-width: 767px) {
  .hs {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: 40px 24px 48px;
  }

  .hs-line {
    font-size: clamp(35.64px, 10.53vw, 51.84px);
  }

  /* A narrow, tall pill. The height is the old height (4:5 of the content width), so
   nothing below moves; the width follows from the ratio, including when the pinned
   layout shrinks the photo on short phones. */
  .hs-photo {
    align-self: center;
    width: auto;
    height: calc((100vw - 48px) * 1.25);
    min-height: 0;
    aspect-ratio: 14 / 25;
    margin-top: 32px;
  }

  .hs-scroll {
    display: none;
  }

  .hs-right {
    margin-top: 32px;
    margin-left: -8px;
    text-align: left;
  }

  .hs-right .hs-line {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs[data-hs] .hs-left,
  .hs[data-hs] .hs-right,
  .hs[data-hs] .hs-photo img {
    transition: none;
  }

  .hs[data-hs="pending"] .hs-left,
  .hs[data-hs="pending"] .hs-right,
  .hs[data-hs="pending"] .hs-photo img {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Pinned hero scroll (#hero-scroll)
   js/site.js sets data-pin="on" only when pinning is allowed (motion allowed,
   viewport at least 480px tall, content fits). Otherwise this is a normal
   section. While pinned, the sticky stage holds the page and two full-bleed
   photos animate with clip-path and transform only; text fades with opacity.
   ------------------------------------------------------------------ */
.hero-scroll {
  position: relative;
}

.hero-scroll-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.hero-stage {
  position: relative;
}

.stage-layer,
.stage-end {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-scroll[data-pin="on"] {
    height: 320vh;
  }

  .hero-scroll[data-pin="on"] .hero-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    background: var(--paper);
  }

  .hero-scroll[data-pin="on"] .stage-layer {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .stage-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    will-change: clip-path;
  }

  .stage-frame img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    /* Extra width on the right gives the parallax slide room to move. */
    width: 112%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    will-change: transform;
  }

  /* Frames the pendants and island inside the portrait window at the start. */
  .stage-a img {
    object-position: 56% 50%;
  }

  .stage-b {
    clip-path: inset(0 0 0 100%);
  }

  .hero-scroll[data-pin="on"] .hs {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 0;
    background: transparent;
  }

  /* The original portrait photo keeps its place in the layout so it can be
     measured; the first stage photo is drawn in its window instead. */
  .hero-scroll[data-pin="on"] .hs-photo {
    visibility: hidden;
  }

  .hero-scroll[data-pin="on"] .hs-left .hs-title {
    transform: translateX(calc(var(--hs-t, 0) * -12vw));
    opacity: calc(1 - var(--hs-t, 0));
  }
  .hero-scroll[data-pin="on"] .hs-right .hs-title {
    transform: translateX(calc(var(--hs-t, 0) * 1.5vw));
    opacity: calc(1 - var(--hs-t, 0));
  }
  .hero-scroll[data-pin="on"] :is(.hs-eyebrow, .hs-sub, .hs-scroll) {
    opacity: calc(1 - var(--hs-s, 0));
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .hero-scroll[data-pin="on"] {
    height: 300vh;
  }

  .hero-scroll[data-pin="on"] .hs {
    justify-content: flex-start;
    padding-top: 80px;
    padding-bottom: 16px;
  }

  .hero-scroll[data-pin="on"] :is(.hs-photo, .hs-right) {
    margin-top: 24px;
  }

  .hero-scroll[data-pin="on"] .hs-eyebrow {
    margin-bottom: 16px;
  }

  .hero-scroll[data-pin="on"] .hs-sub {
    margin-top: 16px;
  }
}

/* ------------------------------------------------------------------
   Pinned hero scroll, phase 3 (.stage-end)
   Gradient and closing message over the second photo. Progress variables are
   set by js/site.js: --ov (gradient) and --e0..--e2 (content items). Only opacity and transform change; blur is static.
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll[data-pin="on"] .stage-end {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    color: #fff;
  }

  .stage-end::before {
    content: "";
    position: absolute;
    inset: 0;
    /* The diagonal gradient is the main treatment. The bottom layer keeps text
       readable over the lightest parts of the photo. */
    background:
      linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.3) 40%, rgba(15, 23, 42, 0) 70%),
      linear-gradient(to top right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0) 75%);
    opacity: var(--ov, 0);
  }

  .se-content {
    z-index: 1;
    position: absolute;
    left: 48px;
    bottom: 48px;
    max-width: 640px;
  }

  .se-i0 { opacity: var(--e0, 0); transform: translateY(calc((1 - var(--e0, 0)) * 20px)); }
  .se-i1 { opacity: var(--e1, 0); transform: translateY(calc((1 - var(--e1, 0)) * 20px)); }
  .se-i2 { opacity: var(--e2, 0); transform: translateY(calc((1 - var(--e2, 0)) * 20px)); }

  .se-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.45)), rgba(255, 255, 255, 0.12);
    font-size: 13px;
    line-height: 18px;
    color: #fff;
  }

  .se-dot {
    position: relative;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
  }

  .se-title {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: #fff;
  }

  /* Keep every part of this headline consistent with the same weight. */
  .se-title strong,
  .se-title .light {
    display: block;
    font-family: inherit;
    font-weight: inherit;
  }

  .se-copy {
    max-width: 52ch;
    margin: 24px 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
  }

  .se-copy strong {
    color: #fff;
  }

  .se-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
  }

  .se-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 48px;
    padding: 0 24px;
    border: 1px solid #fff;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    transition:
      background-color var(--dur-fast) var(--ease-out),
      color var(--dur-fast) var(--ease-out),
      transform var(--dur-fast) var(--ease-out);
  }

  .se-btn-solid {
    background: #17243a;
    border-color: #17243a;
    color: #fff;
  }

  .se-btn-line {
    background: transparent;
    color: #fff;
  }

  .se-btn:active {
    transform: scale(0.98);
  }

  .se-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }

  @media (hover: hover) and (pointer: fine) {
    .se-btn-solid:hover {
      background: #101a2b;
      border-color: #101a2b;
    }

    .se-btn-line:hover {
      background: rgba(255, 255, 255, 0.14);
    }
  }
}

/* Match the Home Services title at every viewport and motion preference. */
.se-title {
  font-size: clamp(34px, 5.1vw, 74px);
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .hero-scroll[data-pin="on"] .stage-end {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 20px 24px;
    box-sizing: border-box;
  }

  .se-content {
    position: relative;
    inset: auto;
    max-width: none;
  }

  .se-pill {
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), rgba(255, 255, 255, 0.12);
  }

  .se-copy {
    font-size: 16px;
  }

  .stage-end::before {
    background:
      linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0) 92%),
      linear-gradient(to top right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0) 75%);
  }
}

/* ==========================================================================
   Who we work with (#who-we-serve)
   Accordion of client types beside a photo panel. Motion uses only opacity
   and transform, plus grid-template-rows for the accordion panel.
   ========================================================================== */
.ws {
  --ws-height: 480px;
  --ws-pad: 22px;
  padding: clamp(88px, 10vw, 168px) clamp(28px, 5vw, 88px);
  color: var(--ink);
}

.ws-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
}

/* The two lines set the title face themselves. */
.ws-title {
  margin: 0;
  font-size: clamp(30px, 6.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ws-title-a,
.ws-title-b {
  display: block;
  font-family: var(--font-title);
  font-weight: 500;
}

.ws-title-a {
  color: var(--ink);
}

.ws-title-b {
  color: #94a3b8;
}

.ws-intro {
  max-width: 40ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.ws-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 16px;
  /* A minimum, not a fixed height: a long open row grows the section
     instead of pushing the last row out of the accordion. */
  min-height: var(--ws-height);
}

/* Accordion */
.ws-acc {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.ws-row {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
}

.ws-row[data-open] {
  flex: 0 0 auto;
}

.ws-row + .ws-row {
  border-top: 1px solid var(--line);
}

.ws-row-title {
  display: flex;
  flex: 1 1 auto;
  margin: 0;
}

.ws-trigger {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 26px 1fr 12px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 16px var(--ws-pad);
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Satoshi", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.ws-num {
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ws-name {
  display: block;
  min-width: 0;
}

.ws-name-text {
  display: block;
}

.ws-dot {
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.ws-row[data-open] .ws-dot {
  background: var(--ink);
}

.ws-progress {
  display: block;
  height: 2px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
  opacity: 0;
}

.ws-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.ws[data-auto="on"] .ws-row[data-open] .ws-progress {
  opacity: 1;
}

.ws[data-auto="on"] .ws-row[data-open] .ws-progress-bar {
  animation: ws-fill 7s linear forwards;
}

.ws[data-auto="on"]:not([data-visible]) .ws-row[data-open] .ws-progress-bar {
  animation-play-state: paused;
}

@keyframes ws-fill {
  to {
    transform: scaleX(1);
  }
}

.ws-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}

.ws-row[data-open] .ws-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows var(--dur-base) var(--ease-out),
    visibility 0s;
}

.ws-panel-clip {
  min-height: 0;
  overflow: hidden;
}

.ws-panel-body {
  padding: 0 var(--ws-pad) 20px calc(var(--ws-pad) + 38px);
}

.ws-sub {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.ws-text {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.ws-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.ws-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ws-points svg {
  flex: none;
  margin-top: 2px;
}

/* Photo panel */
.ws-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ink);
  isolation: isolate;
}

.ws-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}

.ws-img[data-active] {
  opacity: 1;
}

.ws-shade {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
}

.ws-photo-stats .ws-shade {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.3) 100%);
}

.ws-flows {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.ws-photo-stats .ws-flows {
  padding-bottom: 104px;
}

.ws-flow {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  width: min(300px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 150ms linear,
    transform 0s linear 150ms;
}

.ws-chip + .ws-chip {
  margin-top: 14px;
}

.ws-chip + .ws-chip::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: #fff;
}

.ws-flow[data-active] .ws-chip {
  opacity: 1;
  transform: none;
  transition:
    opacity 250ms var(--ease-out) calc(150ms + var(--i) * 60ms),
    transform 250ms var(--ease-out) calc(150ms + var(--i) * 60ms);
}

.ws-chip-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.ws-chip-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ws-chip-tag {
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.3;
}

.ws-stats {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ws-stat-value {
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.ws-stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .ws-row:not([data-open]) .ws-trigger:hover {
    background: rgba(15, 23, 42, 0.03);
  }
}

@media (max-width: 1100px) {
  .ws {
    --ws-height: 540px;
    --ws-pad: 18px;
  }

  .ws-panel-body {
    padding-left: var(--ws-pad);
  }
}

@media (max-width: 767px) {
  /* Compact phone layout: tighter section padding, header and rows, and a
     square photo. The rotation timer, row switching and photo animations are
     unchanged. */
  .ws {
    --ws-pad: 16px;
    padding: 56px 20px 48px;
  }

  .ws-head {
    gap: 12px;
    margin-bottom: 24px;
  }

  .ws-pill {
    margin-bottom: 14px;
  }

  .ws-title {
    font-size: 28px;
  }

  .ws-intro {
    font-size: 13px;
    line-height: 1.5;
  }

  .ws-body {
    gap: 12px;
  }

  .ws-acc,
  .ws-photo {
    border-radius: 14px;
  }

  .ws-trigger {
    grid-template-columns: 22px 1fr 12px;
    gap: 10px;
    min-height: 52px;
    padding: 12px var(--ws-pad);
    font-size: 15px;
  }

  .ws-panel-body {
    padding: 0 var(--ws-pad) 16px calc(var(--ws-pad) + 32px);
  }

  .ws-sub {
    margin-bottom: 6px;
    font-size: 18px;
  }

  .ws-text {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .ws-points {
    gap: 6px;
    font-size: 12.5px;
  }

  .ws-body {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .ws-photo {
    order: -1;
    aspect-ratio: 1 / 1;
  }

  .ws-flows {
    padding: 16px;
  }

  .ws-photo-stats .ws-flows {
    padding-bottom: 88px;
  }

  .ws-flow {
    transform: scale(0.9);
  }

  .ws-stats {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 6px;
  }

  .ws-stat {
    padding: 8px 10px;
  }

  .ws-stat-value {
    font-size: 18px;
  }

  .ws-stat-label {
    font-size: 12px;
  }

  .ws-row,
  .ws-row[data-open] {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-img,
  .ws-chip,
  .ws-flow[data-active] .ws-chip,
  .ws-panel,
  .ws-row[data-open] .ws-panel {
    transition: none;
  }

  .ws-chip {
    transform: none;
  }
}

/* ==========================================================================
   Coming soon (#coming-soon)
   A small label and title above the construction-data canvas
   (construction-data.js), which draws itself inside .cs-stage.
   ========================================================================== */
.cs {
  background: #fff;
  color: var(--ink);
  padding-inline: clamp(28px, 5vw, 88px);
}

.cs-head {
  padding: 0 0 12px;
}

/* Small label above the title. */
.cs-eyebrow {
  margin: 0 0 10px;
}

.cs-title {
  margin: 0;
}

/* The text sets the title face itself. */
.cs-title-text {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cs-title-line {
  display: block;
}

/* Only the word "Advanced" keeps the gradient. Gradient text is clipped to its
   box, so descenders get a little room. */
.cs-grad {
  color: #6e5bf0;
  background-image: linear-gradient(95deg, #2b7bf5 0%, #6a5cf0 48%, #b24fd0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

/* Navy pill button under the title. */
.cs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 24px;
  border-radius: 999px;
  background: #17243a;
  color: #fff;
  font-family: "Satoshi", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

/* Keep the coming-soon action quiet and avoid sticky hover on touch screens. */
@media (hover: hover) and (pointer: fine) {
  .cs-cta:hover {
    color: #fff;
    opacity: 0.9;
  }
}

.cs-cta:active {
  transform: scale(0.98);
}

.cs-cta:focus-visible {
  outline: 2px solid #17243a;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cs-cta {
    transition: none;
  }

  .cs-cta:active {
    transform: none;
  }
}

/* The animation fills this box. */
.cs-stage {
  height: clamp(400px, 50vw, 660px);
}

@media (max-width: 767px) {
  .cs-stage {
    height: 280px;
  }
}

/* ==========================================================================
   FAQ (#faq)
   Headline on the left, ruled accordion on the right. Motion uses only
   transform (the plus/minus icon) and grid-template-rows (the answer).
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  align-items: start;
  padding: 0 clamp(28px, 5vw, 88px) clamp(72px, 9vw, 144px);
  color: var(--ink);
}

.faq-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.faq-title-a,
.faq-title-b {
  display: block;
  font-family: var(--font-title);
}

.faq-title-a {
  font-weight: 400;
}

.faq-title-b {
  font-weight: 700;
}

.faq-list {
  border-bottom: 1px solid rgba(15, 23, 42, 0.28);
}

.faq-row {
  border-top: 1px solid rgba(15, 23, 42, 0.28);
}

.faq-row-title {
  margin: 0;
  font-size: inherit;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .faq-trigger:hover {
    background-color: rgba(15, 23, 42, 0.03);
  }
}

.faq-trigger:focus-visible {
  outline: 2px solid #4056a1;
  outline-offset: 2px;
}

/* Plus drawn with two bars; the vertical bar collapses when the row is open. */
.faq-icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  color: #6f6a64;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.faq-icon::before {
  top: 5.25px;
  left: 0;
  width: 12px;
  height: 1.6px;
}

.faq-icon::after {
  top: 0;
  left: 5.2px;
  width: 1.6px;
  height: 12px;
  transition: transform var(--dur-base) var(--ease-out);
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: scaleY(0);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}

.faq-row[data-open] .faq-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows var(--dur-base) var(--ease-out),
    visibility 0s;
}

.faq-panel-clip {
  min-height: 0;
  overflow: hidden;
}

.faq-a {
  margin: 0;
  padding: 0 40px 16px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon::after,
  .faq-panel,
  .faq-row[data-open] .faq-panel {
    transition: none;
  }
}

/* ==========================================================================
   Footer on phones: tighter vertical rhythm
   The legacy phone rule gives every footer link a 44px row plus a 12px gap, so
   the link text sat about 56px apart. Rows are 36px with no gap, and the large
   section margins are reduced. Desktop spacing is unchanged.
   ========================================================================== */
@media (max-width: 767px) {
  footer.ha-footer {
    padding-top: 40px;
    padding-bottom: 36px;
  }

  footer.ha-footer a {
    min-height: 36px;
  }

  footer.ha-footer .ft-flex-col {
    gap: 0;
  }

  footer.ha-footer .ft-grid {
    row-gap: 24px;
  }

  footer.ha-footer .ft-grid-cols-1.ft-gap-y-9 {
    row-gap: 28px;
  }

  footer.ha-footer .ft-mt-10 {
    margin-top: 24px;
  }

  footer.ha-footer .ft-mt-16 {
    margin-top: 32px;
  }

  footer.ha-footer .ft-mt-20 {
    margin-top: 36px;
  }

  footer.ha-footer .ft-mt-12 {
    margin-top: 28px;
  }

  footer.ha-footer .sm\:ft-mt-16 {
    margin-top: 28px;
  }

  footer.ha-footer .sm\:ft-mt-12 {
    margin-top: 24px;
  }

  footer.ha-footer nav[aria-label="Legal"] {
    row-gap: 0;
  }
}

@media (min-width: 768px) {
  footer.ha-footer {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  footer.ha-footer .ft-mt-10 {
    margin-top: 32px;
  }

  footer.ha-footer .ft-mt-12 {
    margin-top: 40px;
  }

  footer.ha-footer .sm\:ft-mt-16 {
    margin-top: 40px;
  }

  footer.ha-footer .sm\:ft-mt-12 {
    margin-top: 32px;
  }

  footer.ha-footer .ft-mt-16 {
    margin-top: 48px;
  }

  footer.ha-footer .ft-mt-20 {
    margin-top: 56px;
  }

  footer.ha-footer .ft-gap-y-9 {
    row-gap: 32px;
  }
}

/* ==========================================================================
   Kitchen transformation: wide before/after slider in a modal
   Built by js/site.js (initTransformation) when a "View Transformation"
   button is used. Only transform, opacity and clip-path animate.
   ========================================================================== */
.tf-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.62);
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 500;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}

.tf-overlay[data-open="true"] {
  opacity: 1;
}

.tf-dialog {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px 14px;
  border-radius: 22px;
  background: #fbfbfd;
  color: #1d1d1f;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.45);
}

.tf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.tf-eyebrow {
  margin: 0 0 3px;
}

.svc-eyebrow {
  margin: 0 0 24px;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.tf-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1d1d1f;
}

.tf-close {
  flex: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d2d2d7;
  border-radius: 50%;
  background: #fff;
  color: #1d1d1f;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .tf-close:hover {
    background: #f0f0f2;
  }
}

.tf-close svg {
  width: 15px;
  height: 15px;
}

.tf-slider {
  position: relative;
  width: min(100%, calc((100dvh - 195px) * 1.7778));
  min-width: 280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  isolation: isolate;
}

.tf-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Soft shade at the bottom edge keeps the labels readable on any photo. */
.tf-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 1;
}

.tf-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateX(50%);
  will-change: transform;
}

.tf-after {
  transform: translateX(-50%);
  will-change: transform;
}

/* The divider and handle ride a full-width track moved with transform. */
.tf-track {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateX(50%);
  will-change: transform;
  pointer-events: none;
}

.tf-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.tf-handle {
  position: absolute;
  top: 50%;
  left: -24px;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 250ms var(--ease-out);
}

.tf-handle svg {
  width: 20px;
  height: 20px;
}

.tf-slider:active .tf-handle {
  transform: scale(1.12);
}

.tf-label {
  position: absolute;
  bottom: 16px;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.tf-label-before { left: 16px; }
.tf-label-after { right: 16px; }

.tf-range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.tf-slider:has(.tf-range:focus-visible) {
  outline: 3px solid #2b7bf5;
  outline-offset: 3px;
}

.tf-close:focus-visible {
  outline: 2px solid #2b7bf5;
  outline-offset: 3px;
}

html[data-input-modality="pointer"] .tf-close:focus,
html[data-input-modality="pointer"] .tf-close:focus-visible {
  outline: none;
  outline-offset: 0;
}

.tf-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 4px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #6e6e73;
}

.tf-sub {
  margin: 0;
}

.tf-caption {
  flex: none;
  margin: 0;
  font-size: 12px;
  color: #86868b;
}

@media (max-width: 767px) {
  .tf-overlay { padding: 6px; }
  .tf-dialog { max-height: calc(100dvh - 12px); padding: 12px 8px 12px; border-radius: 18px; }
  .tf-head { margin-bottom: 10px; padding: 0 6px; }
  .tf-title { font-size: 20px; }
  .tf-slider {
    width: min(100%, calc((100dvh - 190px) * 1.3333));
    min-width: 240px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
  .tf-handle { left: -22px; width: 44px; height: 44px; margin-top: -22px; }
  .tf-label { bottom: 12px; padding: 6px 11px; font-size: 12px; }
  .tf-label-before { left: 12px; }
  .tf-label-after { right: 12px; }
  .tf-foot { flex-direction: column; gap: 4px; margin: 10px 6px 0; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .tf-overlay,
  .tf-close,
  .tf-handle {
    transition: none;
  }
}

/* Footer link that is shown but not available yet. It has no href, so it is not
   focusable or clickable. */
.ha-footer .ft-link-disabled {
  color: #a3a5a0;
  cursor: not-allowed;
  user-select: none;
}

/* ------------------------------------------------------------------
   Estimate dialog (#estimate): single-column light dialog with
   <est-smart-form> (js/site.js). Colors and timings are the
   site's own. Only opacity, transform and clip-path animate (the check stroke
   on the success screen is the one exception). The dialog keeps one height
   for every step, so nothing jumps between steps.
   ------------------------------------------------------------------ */
@keyframes es-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes es-fade-out { to { opacity: 0; } }
@keyframes es-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes es-sink { to { opacity: 0; transform: translateY(8px); } }
@keyframes es-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes es-draw { to { stroke-dashoffset: 0; } }

.es-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(237, 242, 247, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: es-fade 280ms var(--ease-out) backwards;
}

.es-backdrop.is-closing {
  animation: es-fade-out 250ms var(--ease-in) forwards;
}

html:has(.es-backdrop) { overflow: hidden; }

.es-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  height: min(760px, calc(100dvh - 64px));
  max-height: calc(100dvh - 64px);
  overflow: hidden;
  border: 1px solid #e4e9ef;
  border-radius: 24px;
  background: #fff;
  color: #17243a;
  font-family: "Satoshi", sans-serif;
  box-shadow: 0 22px 56px -28px rgba(23, 36, 58, .28), 0 4px 16px -8px rgba(23, 36, 58, .12);
  animation: es-rise 280ms var(--ease-out) backwards;
}

.es-backdrop.is-closing .es-dialog {
  animation: es-sink 250ms var(--ease-in) forwards;
}

.es-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #17243a;
  cursor: pointer;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.es-dialog :focus-visible { outline: 2px solid #4056a1; outline-offset: 3px; }
/* Question headings receive programmatic focus for screen-reader context;
   keep the visual keyboard ring on interactive controls, not the heading box. */
.es-dialog .es-q:focus { outline: none; outline-offset: 0; }

/* Form column. */
.es-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px clamp(24px, 4vw, 48px) 16px;
}

.est-col {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
}

est-smart-form { display: block; color: #17243a; font-family: "Satoshi", sans-serif; }
est-smart-form [hidden] { display: none; }
est-smart-form button { font-family: inherit; }

.es-head-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 44px 12px 0;
}
.es-head-labels .ws-pill { margin: 0; }
.es-booking-pill {
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid #e8edf3;
  background: #f7f9fc;
  color: #526176;
  font-size: 12px;
  line-height: 16px;
}
.es-booking-pill .se-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.es-title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.es-title-a, .es-title-b { display: block; }
.es-title-a { color: #17243a; }
.es-title-b { color: #94a3b8; }

.es-bar { height: 2px; overflow: hidden; border-radius: 2px; background: #e7ebf1; }

.es-bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #17243a;
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
}

.es-meta { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 24px; margin-top: 8px; }

.es-count {
  margin: 0;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #526176;
}

.es-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #526176;
  font-size: 14px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}

.es-back svg { transition: transform var(--dur-fast) var(--ease-out); }
.es-q {
  margin: 14px 0 0;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #17243a;
  outline: none;
}

.es-help { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: #526176; }

/* Quiet step transitions and smoothly matched content height; controls remain
   interactive throughout the transition. */
.es-body { transition: height 280ms cubic-bezier(.22, 1, .36, 1); }
.es-body[data-dir] .es-step { animation: es-step-in 280ms cubic-bezier(.22, 1, .36, 1) both; }
.es-a { animation: none; animation-delay: 0s; }

/* Option sets use equal-height rows at every viewport. */
.es-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 62px;
  gap: 6px;
  margin-top: 16px;
}
.es-cards[data-cols="2"] { grid-template-columns: minmax(0, 1fr); }

.es-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 62px;
  height: 62px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-bottom-color: #e8edf3;
  border-radius: 12px;
  background: transparent;
  color: #17243a;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out);
  animation: none;
}

.es-card::before {
  content: none;
}

.es-card[aria-checked="true"] {
  border-bottom-color: transparent;
  background: #f1f4f8;
}
.es-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.es-card .es-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  color: #718096;
  transition: color 120ms var(--ease-out);
}
.es-card[aria-checked="true"] .es-icon { color: #17243a; }
.es-card-label { font-size: 15px; line-height: 20px; font-weight: 400 !important; }

.es-card .es-check {
  opacity: 0;
  transform: scale(.82);
  transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out);
}

.es-card[aria-checked="true"] .es-check { opacity: 1; transform: none; }

/* Chips: trade and room choices, and the summary of earlier answers. */
.es-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 46px;
  gap: 8px;
  margin-top: 12px;
  animation: es-fade 120ms linear backwards;
}
.es-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }

.es-chip, .es-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e4e9ef;
  border-radius: 12px;
  background: #fff;
  color: #17243a;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.es-pick { padding: 5px 12px; font-size: 13px; line-height: 18px; }
.es-chip[aria-checked="true"] { border-color: #dce4ef; background: #f1f4f8; box-shadow: none; color: #17243a; }

/* Contact step. */
.es-form { display: block; margin-top: 8px; }
.es-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.es-field { display: block; margin-top: 10px; }
.es-field label { display: block; margin: 0 0 6px; font-size: 13px; line-height: 16px; color: #526176; }
.es-optional { opacity: 0.85; }

.es-field :where(input, textarea) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #f3f6fa;
  color: #17243a;
  font: inherit;
  font-size: 16px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.es-field :where(input, textarea)::placeholder { color: #718096; opacity: 1; }
.es-field :where(input, textarea):focus-visible { outline: none; border-color: #4056a1; background: #fff; box-shadow: 0 0 0 3px rgba(64, 86, 161, 0.18); }
.es-field :where(input, textarea)[aria-invalid="true"] { border-color: #b42318; background: #fff8f7; }
.es-field :where(input, textarea)[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14); }
.es-field :where(input, textarea):disabled { color: #718096; background: #e8edf3; border-color: #dbe3ed; cursor: not-allowed; opacity: .8; }
.es-field textarea { min-height: 48px; resize: none; }
.es-error { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: #b91c1c; }
.es-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.es-turnstile {
  position: fixed;
  z-index: 2147483647;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  overflow: visible;
}

.es-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #17243a;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.es-submit:disabled { background: #77849a; opacity: 1; cursor: not-allowed; }
.es-arrow { transition: transform var(--dur-fast) var(--ease-out); }

/* Privacy note under the form. */
.hg-privacy-note { margin: auto 0 0; padding-top: 12px; font-size: 11px; line-height: 14px; color: #94a3b8; }
.hg-privacy-note a { color: #17243a; text-decoration: underline; text-underline-offset: 3px; }
#estimate .hg-privacy-note { font-size: 11px !important; line-height: 14px !important; }
#estimate .hg-privacy-note a { display: inline; min-height: 0; line-height: inherit; }

.es-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Success screen. */
.es-done { padding: 4px 0 8px; }
.es-done-ring, .es-done-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: es-draw var(--dur-slow) var(--ease-out) forwards; }
.es-done-ring { animation-delay: 120ms; }
.es-done-tick { animation-delay: 420ms; }
.es-done-title { margin: 20px 0 0; font-size: clamp(28px, 3vw, 38px); }
.es-done-copy, .es-done-call { margin: 14px 0 0; font-size: 16px; line-height: 24px; color: #526176; }
.es-done-call { margin-top: 18px; }

.hg-root footer.ha-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.ha-footer .ft-soon-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid #d3d6da;
  border-radius: 999px;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hg-root .svc-card {
    height: 420px !important;
    min-height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }

  .hg-root .svc-card > div:last-child {
    position: static !important;
    inset-inline: auto !important;
    top: auto !important;
    width: 100% !important;
  }

  .hg-root .svc-card .svc-more p {
    min-height: 0 !important;
  }

  .hg-root .svc-card .svc-more .btn {
    margin-top: 0 !important;
  }
}

.es-call {
  display: inline-flex;
  align-items: center;
  height: 48px;
  margin-top: 10px;
  padding: 0 24px;
  border-radius: 999px;
  background: #17243a;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}

/* Phones: edge-to-edge, safe-area-aware sheet with native internal scrolling. */
@media (max-width: 860px) {
  .es-backdrop {
    align-items: stretch;
    padding: 0;
    background: rgba(15, 23, 42, .18);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .es-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .es-backdrop .es-dialog { animation-name: es-sheet-up; }
  .es-backdrop.is-closing .es-dialog { animation-name: es-sheet-down; }
  .es-main {
    padding: calc(24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  }
  .es-close {
    top: max(10px, calc(env(safe-area-inset-top, 0px) + 6px));
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 12px));
  }
  .es-head-labels { margin-right: 42px; }
  .es-title { font-size: clamp(25px, 7vw, 30px); line-height: 1.06; }
  .es-q { font-size: 22px; }
}

@media (max-width: 767px) {
  .es-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-card { min-height: 62px; height: 62px; padding-inline: 14px; }
  .es-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .es-backdrop, .es-dialog, .es-a, .es-body[data-dir] .es-step, .es-card, .es-chips { animation: none; }
  .es-backdrop.is-closing, .es-backdrop.is-closing .es-dialog { animation: none; }
  .es-step, .es-body, .es-card, .es-card::before, .es-card .es-check, .es-bar-fill, .es-arrow, .es-back svg, .es-close { transition: none; }
  .es-done-ring, .es-done-tick { animation: none; stroke-dashoffset: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .es-close:hover { background: #f1f4f8; }
  .es-back:hover { color: #17243a; }
  .es-back:hover svg { transform: translateX(-2px); }
  .es-field :where(input, textarea):hover:not(:disabled) { border-color: #aab8cc; background: #f7f9fc; }
  .es-card:not([aria-checked="true"]):hover { background: #f7f9fc; }
  .es-chip:hover, .es-pick:hover { border-color: #cbd5e1; }
  .es-submit:hover:not(:disabled) { background: #243651; }
  .es-submit:hover .es-arrow { transform: translateX(2px); }
  .es-call:hover { background: #0f172a; }
}

@keyframes es-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes es-sheet-up {
  from { opacity: .9; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes es-sheet-down {
  to { opacity: .9; transform: translateY(20px); }
}

/* Apply the approved text tone across the site while preserving white text
   over dark/photo surfaces and leaving the footer palette untouched. */
.hg-root :where(
  h1, h2, h3, h4, h5, h6, p, a, button, span, strong, em, li, label,
  small, dt, dd, figcaption, summary, input, textarea, select
):not(.ha-footer *) {
  color: #595960 !important;
}

.hg-root :where(input, textarea)::placeholder {
  color: #595960 !important;
  opacity: 1;
}

.nojs-content :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, em, li, label, small, input, textarea, select) {
  color: #595960 !important;
}

.nojs-content :where(input, textarea, select)::placeholder {
  color: #595960 !important;
  opacity: 1;
}

.nojs-content .nojs-estimate button {
  color: #fff !important;
}

.hg-root [style*="color: rgb(255, 255, 255)"],
.hg-root [style*="color: rgba(255, 255, 255"],
.hg-root [style*="color: rgb(255, 255, 255)"] *,
.hg-root [style*="color: rgba(255, 255, 255"] *,
.hg-root main > section:first-child h1,
.hg-root main > section:first-child h1 *,
.hg-root main > section:first-child > div:not([aria-hidden]):not(.hg-mobile-hero-photo):not(.hg-mobile-project-wrap) > div > p,
.hg-root main > section:first-child a[href="#estimate"],
.hg-root main > section:first-child a[href="#transformation"],
.hg-root .hg-mobile-chrome:not([data-past-hero="true"]) .hg-side > a:first-child,
.hg-root .hg-mobile-chrome:not([data-past-hero="true"]) .hg-side > a:first-child *,
.hg-root .hg-mobile-announcement,
.hg-root .hg-mobile-announcement *,
.hg-root .hg-mobile-project-caption,
.hg-root .hg-mobile-project-label,
.hg-root .stage-end,
.hg-root .stage-end *,
.hg-root #services .svc-eyebrow,
.hg-root #services h2,
.hg-root #services [role="tab"][aria-selected="true"],
.hg-root #services [role="tab"][aria-selected="true"] *,
.hg-root #services .svc-card[data-on="false"] :is(h3, p),
.hg-root #services .svc-card[data-on="false"] :is(h3, p) *,
.hg-root #services .svc-arrow,
.hg-root .ws-stat-value,
.hg-root .ws-stat-label,
.hg-root .ws-chip-icon,
.hg-root .cs-cta,
.hg-root .es-submit,
.hg-root .es-submit *,
.hg-root .es-call,
.hg-root .tf-label {
  color: #fff !important;
}

.hg-root .hg-mobile-title-serif,
.hg-root .hg-mobile-title-sans {
  -webkit-text-fill-color: #fff !important;
}

.hg-root .cs-grad {
  color: #595960 !important;
  background: none !important;
  -webkit-text-fill-color: #595960 !important;
}

/* The active service card has a white surface, so override the global white
   text rule used for content over the dark services backdrop. */
.hg-root #services .svc-card[data-on="true"] .svc-badge,
.hg-root #services .svc-card[data-on="true"] h3,
.hg-root #services .svc-card[data-on="true"] p,
.hg-root #services .svc-card[data-on="true"] .svc-more .btn,
.hg-root #services .svc-card[data-on="true"] .svc-badge *,
.hg-root #services .svc-card[data-on="true"] h3 *,
.hg-root #services .svc-card[data-on="true"] p *,
.hg-root #services .svc-card[data-on="true"] .svc-more .btn * {
  color: #17243a !important;
}

.hg-root #services .svc-card[data-on="true"] h3 {
  font-weight: 500 !important;
}

.hg-root #services .svc-card[data-on="true"] p,
.hg-root #services .svc-card[data-on="true"] p * {
  color: #4b5563 !important;
}
