/* ============================================================
   HAUS OF LUXUR — Real Estate Media
   Shared stylesheet
   ------------------------------------------------------------
   Aesthetic: minimal, editorial, monochrome.
   The photography brings the colour — the interface stays quiet.
   ============================================================ */

/* ------------------------------------------------------------
   FONTS
   ------------------------------------------------------------
   Headings use Eurostile Extended (served live via Adobe Fonts —
   Typekit kit "agn7jdi", family "eurostile-extended"); body uses
   Helvetica Neue Light.
   Neither is a free web font, so we degrade gracefully:
     - Headings fall back to "Michroma" (loaded from Google Fonts),
       the closest free match to Eurostile Extended's wide geometry.
     - Body falls back to the Helvetica/Arial system stack at
       weight 300 (the "Light" weight).

   >> When you license the real fonts, drop the files into
      /fonts and uncomment the @font-face blocks below. They are
      already first in each font stack, so they take over
      automatically with no other changes needed.
------------------------------------------------------------ */

/*
@font-face {
  font-family: "Eurostile Extended";
  src: url("fonts/EurostileExtended.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Light";
  src: url("fonts/HelveticaNeue-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
*/

/* ------------------------------------------------------------
   DESIGN TOKENS
------------------------------------------------------------ */
:root {
  /* Core palette — black primary, white secondary */
  --black:        #0A0A0A;   /* primary */
  --ink:          #141414;   /* near-black surfaces */
  --white:        #FFFFFF;   /* secondary */
  --paper:        #F4F3F1;   /* warm off-white sections */
  --smoke:        #6E6E6E;   /* muted secondary text */
  --ash:          #5A5A5A;   /* body text on light */
  --line:         #E4E2DE;   /* hairline on light */
  --line-dark:    #262626;   /* hairline on dark */
  --accent:       #B8A78C;   /* whisper of warm stone — used sparingly */

  /* Type */
  --font-display: "eurostile-extended", "Michroma", "Trebuchet MS", sans-serif;
  --font-body:    "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   RESET
------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--black); color: var(--white); }

/* ------------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------------ */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, .h1 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  letter-spacing: 0.03em;
}

h2, .h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

h3, .h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.06em;
}

p { max-width: 62ch; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ash);
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--smoke);
  display: inline-block;
}

.section-index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

/* ------------------------------------------------------------
   LAYOUT HELPERS
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 10vw, var(--space-7));
}

.section--tight { padding-block: clamp(3rem, 6vw, var(--space-6)); }

.bg-dark  { background: var(--black); color: var(--white); }
.bg-paper { background: var(--paper); }
.bg-ink   { background: var(--ink);  color: var(--white); }

.bg-dark .lead,
.bg-ink  .lead { color: rgba(255,255,255,0.66); }

.bg-dark .eyebrow,
.bg-ink  .eyebrow { color: rgba(255,255,255,0.5); }

.hairline { height: 1px; background: var(--line); border: 0; }
.bg-dark .hairline, .bg-ink .hairline { background: var(--line-dark); }

.grid { display: grid; gap: var(--gutter); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   BUTTONS
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  padding: 1.05em 2.1em;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--black); }

.btn--ghost {
  background: transparent;
  color: var(--black);
}
.btn--ghost:hover { background: var(--black); color: var(--white); }

.btn--light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--light:hover { background: transparent; color: var(--white); }

.btn--invert-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--invert-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Text link with animated underline */
.tlink {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  position: relative;
  padding-bottom: 3px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------------------------------------
   HEADER / NAV
------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.site-header.is-solid {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding-block: 1rem;
}
/* On pages with a dark hero, the header starts light-on-dark */
.site-header.on-dark { color: var(--white); }
.site-header.on-dark.is-solid {
  background: rgba(10,10,10,0.85);
  border-bottom-color: var(--line-dark);
  color: var(--white);
}

.brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  white-space: nowrap;
}
.brand small { display:block; font-size:0.5rem; letter-spacing:0.4em; color: var(--smoke); margin-top: 3px; }
.on-dark .brand small { color: rgba(255,255,255,0.55); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.7vw, 1.7rem);
}
.nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content:"";
  position:absolute; left:0; bottom:0;
  width:100%; height:1px; background: currentColor;
  transform: scaleX(0); transform-origin:right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin:left; }
.nav a[aria-current="page"] { color: var(--accent); }

.nav .btn { padding: 0.85em 1.6em; }

/* Burger */
.burger {
  display: none;
  width: 30px; height: 18px;
  position: relative;
  z-index: 120;
}
.burger span {
  position:absolute; left:0; width:100%; height:1.5px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .3s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1){ top:0; }
.burger span:nth-child(2){ top:8px; }
.burger span:nth-child(3){ top:16px; }
body.menu-open .burger span:nth-child(1){ top:8px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity:0; }
body.menu-open .burger span:nth-child(3){ top:8px; transform: rotate(-45deg); }

@media (max-width: 1200px) {
  .burger { display: block; color: inherit; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.6rem;
    background: var(--black);
    color: var(--white);
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
    padding: 5rem var(--gutter) 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.menu-open .nav { transform: translateY(0); }
  .nav a { font-size: 1.1rem; color: var(--white); }
  .nav a[aria-current="page"]{ color: var(--accent); }
  .nav .btn { margin-top: 1rem; background: var(--white); color: var(--black); border-color: var(--white); }
  .site-header.on-dark .burger,
  .site-header .burger { color: inherit; }
  body.menu-open .site-header { color: var(--white); }
}

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--black);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.2) 35%, rgba(10,10,10,0.75) 100%),
    /* placeholder "architecture" gradient — swap for a real image */
    linear-gradient(135deg, #1c1c1c 0%, #2b2b2b 40%, #0d0d0d 100%);
  background-size: cover;
  background-position: center;
}
/* >> To use a real hero photo, add this to the element's style:
      background-image:
        linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0.75)),
        url('images/hero.jpg');  */

.hero__grid-lines {
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 25vw 100%;
  pointer-events:none;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}
.hero h1 {
  font-size: clamp(2.8rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}
.hero .lead { color: rgba(255,255,255,0.72); max-width: 46ch; margin-top: 1.5rem; }
.hero__meta {
  display:flex; flex-wrap:wrap; gap: 2.5rem;
  margin-top: 2.5rem; align-items:center;
}
.hero__scroll {
  position:absolute; right: var(--gutter); bottom: clamp(3rem,8vw,6rem);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 880px){ .hero__scroll { display:none; } }

/* ------------------------------------------------------------
   SECTION HEADER
------------------------------------------------------------ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: var(--space-5);
}
.sec-head__title h2 { margin-top: 0.8rem; }
@media (max-width: 880px){
  .sec-head { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   SERVICES LIST (editorial rows)
------------------------------------------------------------ */
.svc-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: var(--gutter);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .45s var(--ease);
}
.bg-dark .svc-row, .bg-ink .svc-row { border-top-color: var(--line-dark); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.bg-dark .svc-row:last-child { border-bottom-color: var(--line-dark); }
.svc-row:hover { padding-left: 0.8rem; }
.svc-row .num { font-family: var(--font-display); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.2em; }
.svc-row h3 { font-size: clamp(1.3rem, 3vw, 2.1rem); letter-spacing: 0.03em; }
.svc-row p { color: var(--smoke); font-size: 0.95rem; margin-top: 0.4rem; }
.svc-row .svc-link { opacity: 0; transform: translateX(-8px); transition: all .45s var(--ease); }
.svc-row:hover .svc-link { opacity: 1; transform: translateX(0); }
@media (max-width: 700px){
  .svc-row { grid-template-columns: 3rem 1fr; }
  .svc-row .svc-link { display:none; }
}

/* ------------------------------------------------------------
   FEATURE / SPLIT BLOCK
------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 880px){
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ------------------------------------------------------------
   PLACEHOLDER IMAGE TILES
   Intentional-looking monochrome placeholders. Replace the
   .ph element with <img src="..."> when you have real photos.
------------------------------------------------------------ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.025) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #ececea 0%, #dedcd7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.ph--dark {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #1f1f1f 0%, #0c0c0c 100%);
  color: rgba(255,255,255,0.5);
}
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  color: var(--smoke);
  border: 1px solid currentColor;
  padding: 0.5em 1em;
}
.ph--dark .ph__label { color: rgba(255,255,255,0.45); }

/* image hover frame */
.frame { overflow: hidden; }
.frame .ph, .frame img { transition: transform 1.1s var(--ease); }
.frame:hover .ph, .frame:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------
   GALLERY
------------------------------------------------------------ */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
  margin-bottom: var(--space-4);
}
.filterbar button {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--smoke);
  padding-bottom: 4px;
  position: relative;
  transition: color .3s var(--ease);
}
.filterbar button::after{
  content:""; position:absolute; left:0; bottom:-1.25rem;
  width:100%; height:1px; background: var(--black);
  transform: scaleX(0); transform-origin:left;
  transition: transform .4s var(--ease);
}
.filterbar button:hover { color: var(--black); }
.filterbar button.is-active { color: var(--black); }
.filterbar button.is-active::after { transform: scaleX(1); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1.1rem);
}
.gallery-grid .item { grid-column: span 1; }
.gallery-grid .item.span-2 { grid-column: span 2; }
.gallery-grid .item.tall .ph { aspect-ratio: 3/4; }
@media (max-width: 900px){
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .item.span-2 { grid-column: span 2; }
}
@media (max-width: 560px){
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .item.span-2 { grid-column: span 1; }
}
.item { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.item.is-hidden { display: none; }

/* ------------------------------------------------------------
   PRICING
------------------------------------------------------------ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px){ .price-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.6rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
}
.plan--feature { background: var(--black); color: var(--white); }
.plan__name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 1.05rem; }
.plan__tag { font-size: 0.85rem; color: var(--smoke); margin-top: 0.5rem; }
.plan--feature .plan__tag { color: rgba(255,255,255,0.6); }
.plan__price { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.4rem); margin: 1.6rem 0 0.2rem; letter-spacing: 0.02em; }
.plan__price small { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--smoke); }
.plan--feature .plan__price small { color: rgba(255,255,255,0.6); }
.plan ul.feat { margin: 1.8rem 0 2.2rem; }
.plan ul.feat li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ash);
  display: flex; gap: 0.7rem;
}
.plan--feature ul.feat li { border-top-color: var(--line-dark); color: rgba(255,255,255,0.78); }
.plan ul.feat li::before { content:"—"; color: var(--accent); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan__flag {
  font-family: var(--font-display); text-transform:uppercase;
  font-size: 0.6rem; letter-spacing: 0.3em; color: var(--accent);
}

/* Add-ons table */
.addons { border-top: 1px solid var(--line); }
.addon-row {
  display:grid; grid-template-columns: 1fr auto;
  gap: 1rem; align-items:baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.addon-row h3 { font-family: var(--font-display); text-transform:uppercase; letter-spacing:0.08em; font-size: 0.95rem; }
.addon-row p { color: var(--smoke); font-size: 0.88rem; margin-top: 0.25rem; }
.addon-row .price { font-family: var(--font-display); letter-spacing: 0.04em; white-space:nowrap; }

/* ------------------------------------------------------------
   REVIEWS
------------------------------------------------------------ */
.quote-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); }
/* A lone review (or the odd last one) spans the full row — no empty cell */
.quote-grid .quote:only-child,
.quote-grid .quote:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 780px){ .quote-grid { grid-template-columns:1fr; } }
.quote {
  background: var(--white);
  padding: clamp(2rem,4vw,3rem);
  display:flex; flex-direction:column; gap: 1.4rem;
}
.quote .stars { letter-spacing:0.3em; font-size:0.8rem; color: var(--accent); }
.quote blockquote {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  font-weight: 300;
}
.quote figcaption { margin-top:auto; }
.quote .name { font-family: var(--font-display); text-transform:uppercase; letter-spacing:0.12em; font-size:0.8rem; }
.quote .role { color: var(--smoke); font-size:0.82rem; margin-top:0.3rem; }

.bigstat { display:grid; grid-template-columns: repeat(4,1fr); gap: var(--gutter); }
@media (max-width: 780px){ .bigstat { grid-template-columns: repeat(2,1fr); } }
.bigstat .n { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3.6rem); letter-spacing:0.02em; }
.bigstat .k { color: var(--smoke); font-size: 0.78rem; text-transform:uppercase; letter-spacing:0.18em; margin-top:0.5rem; }
.bg-dark .bigstat .n { color: var(--white); }

/* ------------------------------------------------------------
   STEPS
------------------------------------------------------------ */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--gutter); }
@media (max-width: 880px){ .steps { grid-template-columns:1fr; } }
.step { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
.bg-paper .step, body:not(.dark) .step.on-light { border-top-color: var(--line); }
.step .s-num { font-family: var(--font-display); color: var(--accent); font-size:0.8rem; letter-spacing:0.2em; }
.step h2 { margin: 0.8rem 0 0.6rem; font-size: 1.15rem; }
.step p { font-size: 0.94rem; color: inherit; opacity:0.8; }

/* ------------------------------------------------------------
   BOOKING EMBED
------------------------------------------------------------ */
.embed-shell {
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 520px;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding: var(--space-5) var(--gutter);
}
.embed-shell .inner { max-width: 46ch; }
.embed-shell .eyebrow { color: var(--accent); }
.embed-note {
  font-size: 0.8rem; color: var(--smoke);
  border-left: 2px solid var(--accent);
  padding-left: 1rem; margin-top: 1.5rem; text-align:left;
}
.embed-shell iframe { width:100%; min-height: 760px; border:0; }

/* ------------------------------------------------------------
   CONTACT FORM
------------------------------------------------------------ */
.form { display:grid; gap: 1.6rem; }
.field { display:flex; flex-direction:column; gap: 0.5rem; }
.field label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--smoke);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-size: 1rem;
  transition: border-color .3s var(--ease);
}
.bg-dark .field input,
.bg-dark .field select,
.bg-dark .field textarea { border-bottom-color: var(--line-dark); color: var(--white); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--black); }
.bg-dark .field input:focus,
.bg-dark .field textarea:focus,
.bg-dark .field select:focus { border-bottom-color: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.form .row2 { display:grid; grid-template-columns:1fr 1fr; gap:1.6rem; }
@media (max-width:680px){ .form .row2 { grid-template-columns:1fr; } }
.form .error { color: #c0392b; font-size: 0.78rem; min-height: 1em; }
.form-success {
  border:1px solid var(--line); padding: 1.2rem 1.4rem;
  font-size: 0.9rem; display:none;
}
.form-success.show { display:block; }

/* contact rail */
.contact-rail { display:flex; flex-direction:column; gap: 2rem; }
.contact-rail .ci .k { font-family:var(--font-display); text-transform:uppercase; font-size:0.66rem; letter-spacing:0.2em; color: var(--smoke); }
.contact-rail .ci .v { margin-top:0.4rem; font-size: 1.05rem; }

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem;
}
.footer-top {
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gutter);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 880px){ .footer-top { grid-template-columns:1fr; gap: 2.5rem; } }
.footer-brand .brand { font-size: 1.4rem; }
.footer-brand p { color: rgba(255,255,255,0.55); margin-top: 1.2rem; font-size: 0.92rem; max-width: 34ch; }
.footer-col h2 { font-size: 0.66rem; letter-spacing: 0.24em; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; }
.footer-col a { display:block; padding: 0.4rem 0; color: rgba(255,255,255,0.8); font-size: 0.92rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-social { display:flex; gap:1rem; margin-top: 1.6rem; }
.footer-social a {
  width: 42px; height:42px; border:1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.footer-social a:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.footer-social svg { width: 18px; height:18px; }
.footer-bottom {
  display:flex; flex-wrap:wrap; justify-content:space-between; gap: 1rem;
  padding-top: 2rem;
  font-size: 0.74rem; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.62); /* AA contrast on black */
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ------------------------------------------------------------
   CTA STRIP
------------------------------------------------------------ */
.cta {
  text-align:center;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.cta h2 { font-size: clamp(2rem, 6vw, 4.5rem); }
.cta .lead { margin: 1.4rem auto 2.4rem; }

/* ------------------------------------------------------------
   PAGE HERO (interior pages)
------------------------------------------------------------ */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding-top: clamp(8rem, 16vw, 12rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.page-hero h1 { margin-top: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.66); margin-top: 1.4rem; }

/* ------------------------------------------------------------
   SCROLL REVEAL
------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity:1 !important; transform:none !important; transition:none !important; }
}

/* utility */
.mt-1{margin-top:var(--space-1);} .mt-2{margin-top:var(--space-2);}
.mt-3{margin-top:var(--space-3);} .mt-4{margin-top:var(--space-4);} .mt-5{margin-top:var(--space-5);}
.mb-2{margin-bottom:var(--space-2);} .mb-3{margin-bottom:var(--space-3);}
.muted{ color: var(--smoke); }
.center{ text-align:center; }
.maxw-prose{ max-width: 60ch; }
.maxw-prose.center{ margin-inline:auto; }

/* ------------------------------------------------------------
   COMING SOON BADGE
------------------------------------------------------------ */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  padding: 0.4em 0.75em;
  border: 1px solid var(--accent);
  color: var(--accent);
  vertical-align: middle;
  margin-left: 0.7rem;
  white-space: nowrap;
  line-height: 1;
}
.is-soon { opacity: 0.6; }
.is-soon:hover { padding-left: 0 !important; }

/* ------------------------------------------------------------
   FAQ ACCORDION
------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq .plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq .plus::before,
.faq .plus::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform .35s var(--ease);
}
.faq .plus::before { left: 0; top: 7px; width: 16px; height: 1.5px; }
.faq .plus::after { left: 7px; top: 0; width: 1.5px; height: 16px; }
.faq details[open] .plus::after { transform: scaleY(0); }
.faq details > .answer {
  padding: 0 0 1.7rem;
  color: var(--ash);
  max-width: 72ch;
}
.faq details > .answer a { color: var(--accent); }

/* ------------------------------------------------------------
   DOCUMENT CARDS (FORMS)
------------------------------------------------------------ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 760px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-card {
  background: var(--white);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.doc-card .doc-kind {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.6rem; color: var(--smoke);
}
.doc-card h3 { font-size: 1.1rem; letter-spacing: 0.04em; }
.doc-card p { color: var(--smoke); font-size: 0.9rem; }
.doc-card .doc-foot {
  margin-top: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.doc-card .doc-meta { font-size: 0.72rem; color: var(--smoke); letter-spacing: 0.04em; }

/* ------------------------------------------------------------
   GOOGLE REVIEWS
------------------------------------------------------------ */
.grev { text-align: center; max-width: 700px; margin-inline: auto; }
.grev .gmark {
  width: 66px; height: 66px; border-radius: 50%;
  border: 1px solid var(--line); margin: 0 auto 1.6rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem;
}
.bg-dark .grev .gmark { border-color: var(--line-dark); }
.grev .gstars { color: var(--accent); letter-spacing: 0.3em; font-size: 1.1rem; margin: 1rem 0; }
.grev-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.9rem; }
.grev-embed {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem; text-align: center;
}
.grev-embed .eyebrow { color: var(--accent); }

/* ============================================================
   MOBILE OPTIMISATION  —  iOS Safari + Android Chrome
   ============================================================ */

/* No element should ever cause sideways scrolling */
html, body { max-width: 100%; overflow-x: hidden; }
h1, h2, h3, h4, p, a, blockquote, li, summary { overflow-wrap: break-word; }
.footer-col a, .contact-rail .v, .embed-note, .doc-card p { overflow-wrap: anywhere; }

/* Remove the grey tap flash; we provide our own active states */
a, button, summary { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* Inputs stay at 16px so iOS never zooms the page on focus */
input, select, textarea { font-size: 16px; }

/* Lock the page behind the open mobile menu */
body.menu-open { overflow: hidden; }

/* Touch devices: never hide an action behind :hover */
@media (hover: none) {
  .svc-row .svc-link { opacity: 1; transform: none; }
  .frame:hover .ph, .frame:hover img { transform: none; }
}

/* Tablet / large phone (menu is already collapsed under 1200px) */
@media (max-width: 1200px) {
  .footer-col a { padding-block: 0.55rem; }   /* ~44px tap targets */
  .filterbar { gap: 0.4rem 1.4rem; }
}

/* Phones */
@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }

  h1, .h1 { letter-spacing: 0.02em; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 3.8rem); line-height: 0.96; }
  .page-hero h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .cta h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .lead { font-size: 1.04rem; }

  /* Calmer vertical rhythm on small screens */
  .section { padding-block: 3.25rem; }
  .section--tight { padding-block: 2.5rem; }
  .page-hero { padding-top: 7.5rem; }

  /* Full-width, thumb-friendly primary actions */
  .hero__meta { gap: 1rem; }
  .hero__meta .btn,
  .cta .btn,
  .grev-actions .btn,
  .grev-actions { width: 100%; }
  .hero__meta .btn, .cta .btn, .grev-actions .btn { justify-content: center; }

  /* Editorial section labels sit above their headings cleanly */
  .sec-head { gap: 1rem; margin-bottom: 2.5rem; }

  /* Services rows: tighten and keep the badge from crowding */
  .svc-row { grid-template-columns: 2.5rem 1fr; row-gap: 0.2rem; }
  .badge { margin-left: 0.5rem; }

  /* Footer breathes */
  .footer-top { gap: 2.25rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* Very small phones (e.g. iPhone SE, 320px) */
@media (max-width: 360px) {
  .hero h1 { font-size: 2.5rem; }
  .brand { font-size: 0.85rem; }
}

/* Landscape phones: let the tall hero shrink to the viewport */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 540px; }
  .nav { gap: 1rem; }
}

/* ============================================================
   RESPONSIVE REFINEMENTS v2  (appended 2026-06-14)
   Unifies breakpoints, fixes mid-word heading breaks,
   graceful grid stepping, and large-screen / TV scaling.
   ============================================================ */

/* 1. Headings keep whole words (kill ugly mid-word splits like "REFRAME|D").
      Long URLs/emails in body text still wrap via the earlier rule. */
h1, h2, h3, h4, .display, .brand, .nav a, .btn, .eyebrow {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

/* 2. Hero headline: size down so 8-letter words fit on one line, phones → small phones */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.05rem, 12vw, 3.4rem); line-height: 0.98; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.95rem; }
}

/* 3. Graceful grid stepping — tablets get 2 columns before collapsing to 1.
      (Was: 3/4-up straight to 1-up at 880px, which looked abrupt.) */
@media (min-width: 641px) and (max-width: 1024px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid      { grid-template-columns: repeat(2, 1fr); }
  .steps           { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* 4. Tablet footer: brand full-width over a 2-column link area (instead of all stacked) */
@media (min-width: 560px) and (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* 5. Large monitors, ultrawide & TVs: widen the content cap so it doesn't
      float lost in the center. Fluid type already clamps, so nothing explodes. */
@media (min-width: 1700px) { :root { --maxw: 1480px; } }
@media (min-width: 2200px) { :root { --maxw: 1680px; } }
@media (min-width: 3000px) { :root { --maxw: 2040px; } }

/* 6. Safety: never allow a stray wide element to break the layout */
.container, .hero__inner, .footer-top, .price-grid, .quote-grid, .doc-grid,
.gallery-grid, .bigstat, .steps, .form .row2 { min-width: 0; }
img, video, iframe { max-width: 100%; height: auto; }

/* ============================================================
   MOBILE BUGFIXES — device-tested on iPhone 16 Pro Max (2026-06-15)
   ============================================================ */

/* (1) Hero headline: was overflowing/clipping ("Y" & "D" cut off).
       Size down + remove extra letter-spacing so words sit fully inside. */
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(1.85rem, 9.8vw, 3rem);
    letter-spacing: 0;
    line-height: 1.0;
  }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.8rem; }
}

/* (2) Mobile menu only opened at the top of the page.
       Cause: the header's backdrop-filter (when scrolled/"is-solid") traps the
       position:fixed nav inside the header box. Removing the filter while the
       menu is open lets the overlay cover the full screen at any scroll point. */
body.menu-open .site-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
}
/* Belt-and-suspenders: pin the open overlay to the viewport explicitly */
body.menu-open .nav {
  position: fixed;
  inset: 0;
  z-index: 110;
}

/* (3) Gallery filter underline overlapped the wrapped row beneath it.
       On small screens, underline each option directly (not 1.25rem below). */
@media (max-width: 680px) {
  .filterbar { gap: 0.5rem 1.3rem; padding-bottom: 0.9rem; }
  .filterbar button { padding-bottom: 3px; }
  .filterbar button::after { bottom: -2px; }
}

/* ============================================================
   GALLERY FILTER — mobile chips (fixes underline overlap, 2026-06-15)
   On phones the underline indicator collided with the wrapped row.
   Replace it with clearly separated pill/chip buttons + filled active state.
   ============================================================ */
@media (max-width: 680px) {
  .filterbar {
    gap: 0.6rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.1rem;
    margin-bottom: 2rem;
  }
  .filterbar button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    line-height: 1;
    color: var(--ash);
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  }
  .filterbar button::after { display: none; }      /* remove overlapping underline */
  .filterbar button.is-active,
  .filterbar button:active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
  }
}

/* ============================================================
   ACCESSIBILITY  (added 2026-06-29)
   Skip link, visible keyboard focus, AA-contrast muted text on dark.
   ============================================================ */

/* Skip-to-content link — visually hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: 0.5rem; top: -64px;
  z-index: 1000;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  padding: 0.85rem 1.3rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0.5rem; outline: 2px solid var(--white); outline-offset: 2px; }
#main:focus, #main:focus-visible { outline: none; }

/* Visible focus ring for keyboard users on every interactive element */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
/* Flip the ring to white on dark surfaces so it never disappears */
.bg-dark :focus-visible, .bg-ink :focus-visible,
.hero :focus-visible, .page-hero :focus-visible,
.site-header :focus-visible, .site-footer :focus-visible,
.plan--feature :focus-visible {
  outline-color: var(--white);
}

/* Keep muted/secondary text AA-legible on dark surfaces
   (after --smoke was darkened for light backgrounds) */
.bg-dark .muted, .bg-ink .muted,
.bg-dark .svc-row p, .bg-ink .svc-row p,
.bg-dark .bigstat .k, .bg-ink .bigstat .k { color: rgba(255,255,255,0.72); }

/* ============================================================
   PRICING — 4-tier grid (added 2026-07-03)
   Four sq-ft-bracket packages: 2×2 on desktop, stacking below.
   Placed last so it wins over the earlier 3-column rules.
   ============================================================ */
.price-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 641px) and (max-width: 1024px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* An odd last plan card (e.g. 5 commercial services) spans the full row */
.price-grid .plan:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Hero over a real photo: brighter copy + soft shadow for legibility */
.hero .eyebrow { color: rgba(255,255,255,0.88); }
.hero .lead { color: rgba(255,255,255,0.95); }
.hero .eyebrow, .hero .lead, .hero h1 { text-shadow: 0 1px 22px rgba(0,0,0,0.5); }

/* Frosted panel behind the hero copy — guarantees legibility on any photo */
.hero__panel {
  display: inline-block;
  max-width: 100%;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3.5vw, 2.8rem);
  background: rgba(10,10,10,0.32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 640px) {
  .hero__panel { padding: 1.2rem 1.2rem 1.4rem; }
}

/* Before/After comparison slider (day → twilight) */
.ba { position: relative; overflow: hidden; aspect-ratio: 16/9; user-select: none; touch-action: none; background: var(--ink); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--ba,50%)) 0 0); }
.ba .ba-divider { position: absolute; top: 0; bottom: 0; left: var(--ba,50%); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.ba .ba-handle { position: absolute; top: 50%; left: var(--ba,50%); transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--black); display: flex; align-items: center; justify-content: center; font-size: .9rem; pointer-events: none; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.ba .ba-label { position: absolute; top: 1rem; font-family: var(--font-display); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; background: rgba(10,10,10,.68); color: #fff; padding: .45em .9em; pointer-events: none; }
.ba .ba-label--l { left: 1rem; } .ba .ba-label--r { right: 1rem; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Real gallery images (drop-in replacements for placeholder .ph tiles) */
.gallery-grid .frame img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gallery-grid .item.span-2 .frame img { aspect-ratio: 16/9; }
.gallery-grid .item.tall .frame img { aspect-ratio: 3/4; }

/* Homepage "Recent frames" tiles as real images */
.cols-3 a.frame img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Lightbox — click any portfolio image to enlarge */
.lb {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10,10,10,0.93);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
}
.lb.open { opacity: 1; visibility: visible; }
.lb figure { margin: 0; max-width: min(1400px, 100%); display: flex; flex-direction: column; gap: .9rem; transform: scale(.955) translateY(10px); }
.lb.open figure { transform: none; }
.lb figure img { max-width: 100%; max-height: 82vh; object-fit: contain; display: block; }
.lb figcaption { color: rgba(255,255,255,0.72); font-size: .8rem; text-align: center; letter-spacing: .04em; }
.lb-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff;
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: #fff; color: var(--black); }
body.lb-open { overflow: hidden; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.4); background: rgba(10,10,10,0.45); color: #fff;
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: #fff; color: var(--black); }
.lb-prev { left: clamp(0.6rem, 2vw, 1.4rem); }
.lb-next { right: clamp(0.6rem, 2vw, 1.4rem); }
.lb.single .lb-nav { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lb { transition: opacity .35s var(--ease), visibility .35s var(--ease); }
  .lb figure { transition: transform .5s var(--ease); }
  .lb figure img { transition: opacity .25s ease; }
  .lb-close, .lb-nav { transition: background .3s var(--ease), color .3s var(--ease); }
}

/* Transformation showcase (homepage): tabbed panels that crossfade */
.xf-panels { position: relative; }
.xf-panel { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.xf-panel:not(.is-active) { opacity: 0; transform: scale(.985); position: absolute; inset: 0; pointer-events: none; }
.xf-caption { font-size: .8rem; color: var(--smoke); margin-top: .9rem; }

/* Legal pages (terms.html / privacy.html) */
.legal { max-width: 800px; }
.legal .effective { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .66rem; color: var(--smoke); display: block; margin-bottom: 1.6rem; }
.legal .callout { border-left: 2px solid var(--accent); padding: 1.1rem 1.5rem; background: var(--paper); font-style: italic; color: var(--ash); margin-bottom: 2.4rem; max-width: 72ch; }
.legal h2 { font-size: 1.02rem; letter-spacing: .08em; margin: 2.6rem 0 .9rem; }
.legal p { margin-bottom: 1rem; color: var(--ash); max-width: 74ch; }
.legal ul { margin: 0 0 1.1rem 1.2rem; list-style: disc; }
.legal ul li { color: var(--ash); margin-bottom: .45rem; max-width: 70ch; }
.legal strong { color: var(--black); }
.legal a { color: var(--accent); }

/* Residential / Commercial segment toggle (services page) */
.seg-toggle {
  display: flex; justify-content: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px;
  width: max-content; margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding: 4px; background: var(--paper);
}
.seg-toggle button {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: 0.18em;
  padding: 0.8em 1.8em; border-radius: 999px;
  color: var(--ash);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.seg-toggle button.is-active { background: var(--black); color: var(--white); }
@media (max-width: 480px) {
  .seg-toggle { width: 100%; }
  .seg-toggle button { flex: 1; padding: 0.9em 0.5em; text-align: center; }
}

/* Package copy readability: full black on light cards,
   near-white on the featured dark card, regular weight
   (body default is 300/Light — too wispy at this size). */
.plan__tag,
.plan ul.feat li,
.addon-row p { color: var(--black); font-weight: 400; }
.plan--feature .plan__tag,
.plan--feature ul.feat li { color: rgba(255,255,255,0.92); }
