@charset "UTF-8";
/* qataridiardevelopment.com — see DESIGN.md.
   Lane: bronze survey marker set in sunlit limestone.
   Reem Kufi (display) · Mada (Arabic body) · Archivo (Latin + all numerals). */

:root {
  --ink:        oklch(0.180 0.030 48);
  --ink-2:      oklch(0.380 0.022 48);
  --ink-3:      oklch(0.498 0.018 48);
  --paper:      oklch(0.968 0.008 85);
  --card:       oklch(0.992 0.004 85);
  --slab:       oklch(0.930 0.011 80);
  --copper:     oklch(0.660 0.115 55);
  --copper-ink: oklch(0.500 0.100 45);  /* copper as TEXT on paper */
  --copper-btn: oklch(0.400 0.086 45);  /* copper as a BUTTON GROUND behind paper text */
  --sea:        oklch(0.450 0.075 225);
  --line:       oklch(0.870 0.010 70);
  --line-2:     oklch(0.800 0.014 65);

  --ff-display: "Reem Kufi", "Noto Kufi Arabic", serif;
  --ff-body:    Mada, "Segoe UI", system-ui, sans-serif;
  --ff-num:     Archivo, "SF Mono", ui-monospace, sans-serif;

  --wrap: 1220px;
  --gut: clamp(1.15rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Belt against horizontal panning. `clip` is the correct value; `hidden` is the
   fallback for older Safari and webviews, where emulation hides real panning. */
html, body { overflow-x: hidden; overflow-x: clip; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="ltr"] body { font-family: Archivo, system-ui, sans-serif; line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, .dsp {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1  { font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.9rem); line-height: 1.14; }
h2  { font-size: clamp(1.5rem, 1.16rem + 1.5vw, 2.35rem); }
h3  { font-size: clamp(1.16rem, 1.03rem + 0.6vw, 1.5rem); }
p   { margin: 0 0 1.05em; max-width: 68ch; }

/* Figures. Isolated LTR so an Arabic sentence cannot reverse a price, and
   tabular so columns line up. Never allowed to break across lines. */
.num {
  font-family: var(--ff-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.wrap-wide { width: min(1560px, 100% - var(--gut) * 2); margin-inline: auto; }
section { padding-block: clamp(3rem, 6vw, 6.5rem); }
section.tight { padding-block: clamp(2rem, 3.5vw, 3.25rem); }
.slab { background: var(--slab); }
.dark { background: var(--ink); color: var(--paper); }
.dark h1, .dark h2, .dark h3 { color: var(--paper); }
.dark p { color: oklch(0.880 0.012 70); line-height: 1.93; }
.dark a { color: oklch(0.780 0.090 60); }

/* ── the Kufic bracket ────────────────────────────────────────────────────
   The logo is an open square built from four words. Abstracted: two copper
   corner brackets that frame a figure. Never a closed box. */
.kf { position: relative; }
.kf::before, .kf::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  border: 2px solid var(--copper);
}
.kf::before { inset-block-start: -9px; inset-inline-start: -9px; border-inline-end: 0; border-block-end: 0; }
.kf::after  { inset-block-end: -9px;  inset-inline-end: -9px;  border-inline-start: 0; border-block-start: 0; }

/* ── the dimension line ───────────────────────────────────────────────────
   A plan annotates a distance with a ruled line and end ticks. Key figures are
   presented this way instead of the banned big-number stat-tile row. */
.dims { display: grid; gap: clamp(1rem, 2.6vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); margin: 0; }
.dim { margin: 0; padding-block-start: 0.85rem; position: relative; }
.dim::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 1px; background: var(--line-2);
}
.dim::after {
  content: ""; position: absolute; inset-block-start: -3px; inset-inline-start: 0;
  width: 1px; height: 7px; background: var(--copper);
}
.dim > b { display: block; font-family: var(--ff-num); font-weight: 700; letter-spacing: -0.02em;
           font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.15rem); line-height: 1.1;
           direction: ltr; unicode-bidi: isolate; }
.dim > b span { font-family: var(--ff-body); font-size: 0.44em; font-weight: 600; color: var(--copper-ink);
                margin-inline-start: 0.3em; letter-spacing: 0; }
.dim > i { display: block; font-style: normal; font-size: 0.83rem; color: var(--ink-3); line-height: 1.5; margin-block-start: 0.3rem; }
.dark .dim::before { background: oklch(0.34 0.02 48); }
.dark .dim > i { color: oklch(0.760 0.016 70); }
.dark .dim > b span { color: oklch(0.780 0.090 60); }

/* ── header ───────────────────────────────────────────────────────────── */
.hd { position: sticky; inset-block-start: 0; z-index: 60; background: oklch(0.968 0.008 85 / 0.94);
      backdrop-filter: saturate(1.4) blur(9px); border-block-end: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.6rem); min-height: 70px; }
.hd-logo { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; text-decoration: none; }
.hd-logo img { width: 46px; height: 46px; }
.hd-logo b { font-family: var(--ff-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.15; display: block; }
.hd-logo i { font-style: normal; font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.04em; display: block; }
.nav { display: flex; gap: clamp(0.5rem, 1.4vw, 1.15rem); margin-inline-start: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--copper-ink); }
.hd-cta { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--ink); color: var(--paper);
          padding: 0.56rem 0.95rem; border-radius: 2px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.hd-cta:hover { background: var(--copper-ink); color: var(--paper); }
.hd-cta .num { font-size: 0.88rem; font-weight: 700; }
.lang { font-size: 0.85rem; color: var(--ink-3); text-decoration: none; border: 1px solid var(--line-2);
        padding: 0.3rem 0.55rem; border-radius: 2px; }
.burger { display: none; background: none; border: 1px solid var(--line-2); border-radius: 2px;
          padding: 0.42rem 0.6rem; cursor: pointer; color: var(--ink); font-size: 1rem; }

@media (max-width: 1040px) {
  .nav { position: fixed; inset-block-start: 70px; inset-inline: 0; background: var(--paper);
         border-block-end: 1px solid var(--line); flex-direction: column; align-items: stretch;
         padding: 0.6rem var(--gut) 1.15rem; gap: 0; display: none; max-height: calc(100dvh - 70px);
         overflow-y: auto; margin-inline-start: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 0.72rem 0; border-block-end: 1px solid var(--line); font-size: 1rem; }
  /* The call button never joins the collapsed menu: it stays in the bar so the
     number is legible at 390px without a tap. */
  .hd-cta { margin-inline-start: auto; }
  .burger { display: block; }
}
@media (max-width: 620px) {
  .hd-logo span { display: none; }
  .hd-in { gap: 0.5rem; }
  .hd-cta { padding: 0.5rem 0.6rem; font-size: 0.8rem; gap: 0.3rem; }
  .hd-cta .num { font-size: 0.8rem; }
  .lang { padding: 0.3rem 0.4rem; font-size: 0.78rem; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */
/* The hero carries its own vertical rhythm through .hero-in and the plinth;
   the generic section padding on top of that left a strip of bare image
   hanging below the plinth. */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; padding-block: 0; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
/* Two scrims, not one flat wash: a directional one that only darkens the side
   the text sits on, and a short foot under the dimension lines. A uniform
   overlay heavy enough for the type crushes the photograph, and on a property
   site the photograph is the argument. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to var(--scrim-dir, left), oklch(0.16 0.028 48 / 0.92) 0%, oklch(0.16 0.028 48 / 0.62) 42%, oklch(0.16 0.028 48 / 0.12) 78%),
    linear-gradient(to top, oklch(0.16 0.028 48 / 0.80) 0%, oklch(0.16 0.028 48 / 0.10) 34%);
}
[dir="ltr"] .hero::after { --scrim-dir: right; }
.hero-in { position: relative; z-index: 2; padding-block: clamp(3rem, 8vh, 5.5rem); }
.hero h1 { color: var(--paper); max-width: 19ch; }
.hero .lede { font-size: clamp(1.03rem, 0.97rem + 0.4vw, 1.22rem); color: oklch(0.895 0.014 70); max-width: 58ch; }
.kicker { font-family: var(--ff-num); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em;
          text-transform: uppercase; color: var(--copper); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--copper); flex: 0 0 auto; }
/* The figure row sits on its own plinth, like the title block on a drawing
   sheet. Without it the labels land on whatever the photograph happens to be
   doing there — over bright sand they vanish, and a CSS-only contrast check
   cannot see that because the offending layer is an image. */
.hero-plinth { position: relative; z-index: 2; background: oklch(0.15 0.026 48 / 0.90);
               backdrop-filter: blur(6px); border-block-start: 1px solid oklch(0.42 0.03 48); }
.hero-plinth .dims { padding-block: clamp(1.1rem, 2.4vw, 1.7rem); }
.hero-plinth .dim::before { background: oklch(0.40 0.025 48); }
.hero-plinth .dim > b { color: var(--paper); }
.hero-plinth .dim > i { color: oklch(0.800 0.014 70); }
.hero-plinth .dim > b span { color: oklch(0.780 0.090 60); }
.hero-sea { --copper: oklch(0.72 0.085 215); }
.hero-sea .hero-plinth .dim > b span { color: oklch(0.80 0.075 215); }

/* ── answers ──────────────────────────────────────────────────────────────
   The FIRST answer on a page is framed; the rest are lead paragraphs with a
   copper rule. Repeating one coloured box six times per page reads as noise. */
.answer { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.2rem); line-height: 1.78; color: var(--ink);
          border-block-start: 2px solid var(--copper); padding-block-start: 0.85rem; max-width: 66ch; font-weight: 500; }
.answer-lead { background: var(--card); border: 1px solid var(--line); border-block-start: 2px solid var(--copper);
               padding: clamp(1.15rem, 2.6vw, 1.9rem); max-width: 72ch; }
.answer-lead p { margin: 0; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.24rem); font-weight: 500; line-height: 1.75; }
.dark .answer { color: oklch(0.92 0.012 70); border-block-start-color: oklch(0.72 0.095 58); }

/* ── project cards: editorial grid, first card double ─────────────────── */
.pgrid { display: grid; gap: clamp(0.9rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
@media (min-width: 900px) { .pgrid > .pc:first-child { grid-column: span 2; grid-row: span 2; } }
.pc { position: relative; display: flex; flex-direction: column; background: var(--card);
      border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden;
      transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); min-height: 262px; }
.pc:hover { border-color: var(--copper); transform: translateY(-3px); }
.pc-img { position: relative; overflow: hidden; flex: 1 1 auto; min-height: 168px; background: var(--slab); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
              transition: transform 0.7s var(--ease); }
.pc:hover .pc-img img { transform: scale(1.035); }
.pc:first-child .pc-img { min-height: 300px; }
.pc-body { padding: clamp(0.95rem, 2vw, 1.35rem); }
.pc-body h3 { margin: 0 0 0.3rem; color: var(--ink); }
.pc-meta { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.pc-price { margin: 0.6rem 0 0; font-size: 0.94rem; color: var(--copper-ink); font-weight: 600; }
.pc-tag { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2;
          background: var(--ink); color: var(--paper); font-size: 0.71rem; font-weight: 600;
          padding: 0.3rem 0.6rem; letter-spacing: 0.04em; }

/* ── split: image beside text ─────────────────────────────────────────── */
.split { display: grid; gap: clamp(1.4rem, 4vw, 3.4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-text { grid-template-columns: 5fr 6fr; } }
.split figure { margin: 0; }
.split img { width: 100%; }

/* ── master plan: a searched asset, never a background texture ─────────── */
.mp { margin: 0; }
.mp a { display: block; border: 1px solid var(--line); background: var(--card); padding: 0.5rem; }
.mp a:hover { border-color: var(--copper); }
.mp img { width: 100%; }
.mp figcaption { font-size: 0.87rem; color: var(--ink-3); margin-block-start: 0.7rem; line-height: 1.6; max-width: 66ch; }

/* ── gallery: uneven tiles, not a uniform strip ───────────────────────── */
.gal { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.gal a { display: block; overflow: hidden; background: var(--slab); aspect-ratio: 4 / 3; }
.gal a:nth-child(3n+1) { aspect-ratio: 4 / 5; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gal a:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .gal a, .gal a:nth-child(3n+1) { aspect-ratio: 3 / 2; } }

/* ── unit matrix: the one permitted table, and it scrolls itself ───────── */
.tw { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
table.units { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 0.94rem; }
table.units th, table.units td { padding: 0.72rem 0.9rem; text-align: start; border-block-end: 1px solid var(--line); white-space: nowrap; }
table.units thead th { background: var(--slab); font-family: var(--ff-display); font-weight: 600;
                       font-size: 0.85rem; color: var(--ink-2); }
table.units tbody tr:last-child td { border-block-end: 0; }
table.units tbody tr:hover { background: oklch(0.955 0.010 80); }
.tcap { font-size: 0.85rem; color: var(--ink-3); margin-block-start: 0.65rem; }

/* ── the plan ladder ──────────────────────────────────────────────────── */
.ladder { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: rung; }
.ladder li { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(0.6rem, 2vw, 1.3rem);
             align-items: baseline; padding: 0.95rem 0; border-block-end: 1px solid var(--line); }
.ladder li:last-child { border-block-end: 0; }
.ladder li::before { counter-increment: rung; content: counter(rung, decimal-leading-zero);
                     font-family: var(--ff-num); font-size: 0.78rem; font-weight: 700; color: var(--copper); }
.ladder b { font-weight: 600; font-family: var(--ff-display); }
.ladder i { font-style: normal; color: var(--ink-3); font-size: 0.88rem; display: block; font-family: var(--ff-body); }
.ladder .rv { text-align: end; font-family: var(--ff-num); font-weight: 700; direction: ltr; unicode-bidi: isolate; }

/* ── VS cards (comparisons; wide tables are banned) ───────────────────── */
.vs { display: grid; gap: clamp(0.8rem, 2vw, 1.3rem); grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.vsc { background: var(--card); border: 1px solid var(--line); padding: clamp(1.05rem, 2.4vw, 1.6rem); position: relative; }
.vsc h3 { margin: 0 0 0.15rem; font-size: 1.16rem; }
.vsc > p:first-of-type { color: var(--ink-3); font-size: 0.87rem; margin: 0 0 1rem; }
.vsc dl { display: grid; grid-template-columns: auto 1fr; gap: 0.42rem 0.9rem; margin: 0; font-size: 0.92rem; }
.vsc dt { color: var(--ink-3); }
.vsc dd { margin: 0; text-align: end; font-weight: 600; }
.vsc .go { display: inline-block; margin-block-start: 1.15rem; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.vsc .go::after { content: " ←"; }
[dir="ltr"] .vsc .go::after { content: " →"; }

/* ── evidence note ────────────────────────────────────────────────────── */
.note { border-inline-start: 0; border-block-start: 1px solid var(--line-2); padding-block-start: 0.8rem;
        font-size: 0.88rem; color: var(--ink-3); max-width: 72ch; }
.note b { color: var(--ink-2); font-weight: 600; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { border-block-start: 1px solid var(--line); }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.05rem 0; font-family: var(--ff-display); font-weight: 600;
               font-size: clamp(1rem, 0.96rem + 0.25vw, 1.13rem); list-style: none;
               display: flex; gap: 0.9rem; align-items: flex-start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; color: var(--copper); font-family: var(--ff-num);
                      font-weight: 400; font-size: 1.35rem; line-height: 1; flex: 0 0 auto;
                      transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq details[open] .ans { grid-template-rows: 1fr; }
.faq .ans > div { overflow: hidden; }
.faq .ans p { margin: 0 0 1.05rem; color: var(--ink-2); }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
       padding: 0.92rem 1.5rem; border-radius: 2px; text-decoration: none; font-weight: 600;
       font-size: 1rem; border: 1px solid transparent; transition: background 0.3s var(--ease); }
.cta-1 { background: var(--copper-btn); color: var(--paper); }
.cta-1:hover { background: var(--ink); color: var(--paper); }
.cta-2 { background: transparent; color: var(--ink); border-color: var(--line-2); }
.cta-2:hover { border-color: var(--copper); color: var(--copper-ink); }
/* .hero is a dark ground too, but it is not .dark — omitting it here left the
   secondary button rendering ink-on-ink, invisible above the fold. */
.dark .cta-2, .hero .cta-2 { color: var(--paper); border-color: oklch(0.62 0.02 48); }
.dark .cta-2:hover, .hero .cta-2:hover { border-color: var(--copper); color: var(--copper); }
.cta .num { font-weight: 700; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ── form ─────────────────────────────────────────────────────────────── */
.lead-card { background: var(--card); border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2.1rem); }
.dark .lead-card { background: oklch(0.235 0.026 48); border-color: oklch(0.34 0.02 48); }
.f-row { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lead-card label { display: block; font-size: 0.85rem; font-weight: 600; margin-block-end: 0.32rem; }
.lead-card input, .lead-card textarea {
  width: 100%; padding: 0.72rem 0.85rem; border: 1px solid var(--line-2); border-radius: 2px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 0.97rem;
}
.dark .lead-card input, .dark .lead-card textarea { background: oklch(0.20 0.024 48); border-color: oklch(0.38 0.02 48); color: var(--paper); }
.lead-card input:focus, .lead-card textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: transparent; }
.lead-card textarea { min-height: 92px; resize: vertical; }
.lead-card button { width: 100%; margin-block-start: 1rem; padding: 0.92rem; border: 0; border-radius: 2px;
                    background: var(--copper-btn); color: var(--paper); font: inherit; font-weight: 700;
                    font-size: 1rem; cursor: pointer; }
.lead-card button:hover { background: var(--ink); }
.dark .lead-card button:hover { background: var(--copper); color: var(--ink); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.err { background: oklch(0.94 0.045 30); border: 1px solid oklch(0.72 0.13 30); color: oklch(0.42 0.13 30);
       padding: 0.7rem 0.9rem; font-size: 0.9rem; margin-block-end: 1rem; }

/* ── strips and lists ─────────────────────────────────────────────────── */
.strip { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.strip a { display: block; padding: 1.1rem 1.15rem; background: var(--card); border: 1px solid var(--line);
           text-decoration: none; color: var(--ink); transition: border-color 0.3s var(--ease); }
.strip a:hover { border-color: var(--copper); }
.strip b { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.02rem; margin-block-end: 0.2rem; }
.strip i { font-style: normal; font-size: 0.85rem; color: var(--ink-3); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.plain li { padding-inline-start: 1.15rem; position: relative; color: var(--ink-2); }
.plain li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.72em;
                    width: 6px; height: 1px; background: var(--copper); }
.dark .plain li { color: oklch(0.88 0.012 70); }

/* ── breadcrumb + footer ──────────────────────────────────────────────── */
.crumb { font-size: 0.84rem; color: var(--ink-3); padding-block: 0.9rem; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--copper-ink); }
.ft { background: var(--ink); color: oklch(0.86 0.012 70); padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem; }
.ft h4 { font-size: 0.94rem; color: var(--paper); margin: 0 0 0.75rem; }
.ft-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.42rem; }
.ft a { color: oklch(0.82 0.014 70); text-decoration: none; font-size: 0.92rem; }
.ft a:hover { color: var(--copper); }
.ft-logo img { width: 62px; height: 62px; margin-block-end: 0.7rem; }
.ft-legal { border-block-start: 1px solid oklch(0.32 0.02 48); margin-block-start: clamp(1.8rem, 3vw, 2.6rem);
            padding-block-start: 1.3rem; font-size: 0.82rem; color: oklch(0.72 0.014 70); line-height: 1.8; }

/* ── motion ───────────────────────────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(16px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rise { opacity: 1; transform: none; }
}

/* ── lightbox ─────────────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 200; background: oklch(0.14 0.02 48 / 0.95);
      display: none; align-items: center; justify-content: center; padding: 2.2rem 1rem; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 92dvh; object-fit: contain; }
.lb button { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; background: none;
             border: 1px solid oklch(0.5 0.02 48); color: var(--paper); font-size: 1.4rem; line-height: 1;
             padding: 0.35rem 0.7rem; cursor: pointer; border-radius: 2px; }

.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: var(--gut); inset-block-start: 0.5rem; z-index: 300; background: var(--ink);
              color: var(--paper); padding: 0.6rem 1rem; position: fixed; }

/* ══════════════════════════════════════════════════════════════════════════
   CENTRED LAYOUT — operator's call, site-wide: body copy, headings, questions.
   Centred text has no consistent left edge for the eye to return to, so the
   measure is tightened (68ch → 58ch) to keep line starts findable. Anything
   the eye scans as a column — table cells, typed input — keeps its alignment.
   ══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4,
p, .lede, .answer, .answer-lead, .note, .tcap, .crumb,
.dim, .vsc, .pc-body, .strip a, .mp figcaption, .ft-legal, .ft-logo p {
  text-align: center;
}

p, .answer, .answer-lead, .note, .lede { margin-inline: auto; }
p, .answer { max-width: 58ch; }
.answer-lead { max-width: 64ch; }
.note, .tcap { max-width: 66ch; }
.hero h1 { max-width: 22ch; margin-inline: auto; }

/* The hero scrim was directional because the text sat on one side. Centred
   text crosses the whole frame, so it needs a symmetric scrim instead. */
.hero::after {
  background:
    radial-gradient(120% 85% at 50% 52%, oklch(0.16 0.028 48 / 0.80) 0%, oklch(0.16 0.028 48 / 0.42) 55%, oklch(0.16 0.028 48 / 0.20) 100%),
    linear-gradient(to top, oklch(0.16 0.028 48 / 0.72) 0%, oklch(0.16 0.028 48 / 0.10) 32%);
}
.hero .ctas { justify-content: center; }

/* The kicker's single rule became a pair, so it reads as a centred label. */
.kicker { justify-content: center; }
.kicker::after {
  content: ""; width: 34px; height: 1px; background: var(--copper); flex: 0 0 auto;
}

/* Dimension lines: the tick moves to the centre, under the figure it marks. */
.dim::after { inset-inline-start: 50%; transform: translateX(-50%); }

/* Questions and their answers, centred, with the toggle sitting after the
   text rather than pushed to the far edge. */
.faq summary { justify-content: center; text-align: center; gap: 0.6rem; }
.faq summary::after { margin-inline-start: 0; }
.faq .ans p { text-align: center; margin-inline: auto; }

/* Definition rows stack instead of running as a two-column ledger. */
.vsc dl { grid-template-columns: 1fr; gap: 0.15rem; }
.vsc dt { margin-block-start: 0.55rem; }
.vsc dd { text-align: center; }
.vsc dl > dt:first-child { margin-block-start: 0; }

/* Plan rungs stack centred; the step number sits above its label. */
.ladder li { grid-template-columns: 1fr; justify-items: center; gap: 0.15rem; text-align: center; }
.ladder li::before { margin-block-end: 0.15rem; }
.ladder .rv { text-align: center; }

/* Bulleted lists lose the hanging dash and centre as a list of statements. */
.plain li { padding-inline-start: 0; text-align: center; }
.plain li::before { display: none; }

.ft-grid { text-align: center; }
.ft ul { justify-items: center; }
.ctas { justify-content: center; }
.split { text-align: center; }
.lead-card { text-align: center; }
.lead-card label { text-align: center; }

/* Kept deliberately un-centred: table cells scan as columns, and text the user
   is typing should start where the caret starts. */
table.units th, table.units td { text-align: center; }
table.units tbody td:first-child, table.units thead th:first-child { text-align: center; }
.lead-card input, .lead-card textarea { text-align: start; }

/* ── floating conversion rail ──────────────────────────────────────────────
   Operator's call. Built as a fixed bar on phones and a stacked pair on
   desktop: no bounce, no pulse, no auto-opening chat bubble. The phone number
   is inside the button, per the fleet convention. */
.fab { position: fixed; z-index: 90; display: flex; gap: 0.5rem; }
.fab a {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none; font-weight: 700; font-size: 0.92rem; border-radius: 2px;
  box-shadow: 0 6px 22px oklch(0.18 0.03 48 / 0.28);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.fab a:hover { transform: translateY(-2px); }
.fab-call { background: var(--copper-btn); color: var(--paper); }
.fab-call:hover { background: var(--ink); color: var(--paper); }
.fab-wa { background: oklch(0.52 0.14 152); color: var(--paper); }
.fab-wa:hover { background: oklch(0.44 0.13 152); color: var(--paper); }
.fab .num { font-weight: 700; }

@media (min-width: 861px) {
  .fab { inset-block-end: 1.5rem; inset-inline-end: 1.5rem; flex-direction: column; align-items: flex-end; }
  .fab a { padding: 0.72rem 1.05rem; }
  /* Clearance so the rail never sits on top of the footer disclaimer when the
     reader reaches the bottom of the page. */
  .ft { padding-block-end: 9.5rem; }
}
@media (max-width: 860px) {
  /* A full-width bar: on a phone a corner bubble competes with the thumb. */
  .fab { inset-block-end: 0; inset-inline: 0; gap: 0; box-shadow: 0 -2px 18px oklch(0.18 0.03 48 / 0.22); }
  .fab a { flex: 1 1 auto; padding: 0.85rem 0.5rem; border-radius: 0; box-shadow: none; font-size: 0.88rem; }
  .fab-wa { flex: 0 0 38%; }
  .fab a:hover { transform: none; }
  /* The bar is fixed, so the footer needs room to clear it. */
  body { padding-block-end: 56px; }
  .lb { padding-block-end: 4.5rem; }
}
@media (max-width: 380px) {
  .fab-call .num { font-size: 0.8rem; }
  .fab a { gap: 0.3rem; }
}

/* ── in-section CTA strip ─────────────────────────────────────────────────
   A short conversion line placed mid-page, so a reader who is convinced by
   section three does not have to scroll to the footer to act. */
.cta-strip {
  margin-block: clamp(1.6rem, 3.5vw, 2.6rem) 0;
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  background: var(--card); border: 1px solid var(--line);
  border-block-start: 2px solid var(--copper);
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem; text-align: center;
}
.cta-strip p { margin: 0; max-width: 54ch; font-weight: 500; }
.cta-strip .ctas { margin: 0; }
.slab .cta-strip { background: var(--paper); }
.dark .cta-strip { background: oklch(0.235 0.026 48); border-color: oklch(0.36 0.02 48); }

/* ── image-background bands ────────────────────────────────────────────────
   A section whose ground is a photograph. The scrim is deliberately heavy and
   FIXED, not tuned per image: the contrast gate composites CSS layers only and
   cannot see the photo underneath, so legibility here has to be guaranteed by
   construction rather than verified by measurement.
   ⛔ Master plans are never used as a background — they are a searched asset
   and belong in a click-to-enlarge figure under their own heading. */
.imgbg { position: relative; isolation: isolate; background: var(--ink); color: var(--paper); }
.imgbg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--bg); background-size: cover; background-position: center;
}
/* 0.86 is a floor, not a taste setting. Worst case is a blown-white region of
   the photograph: composited against ink at 0.86 that lands at ~0.158 relative
   luminance, which gives paper text 4.7:1 — just past AA. At 0.80 the same
   region gives 3.7:1 and fails. Do not lighten this to show more of the image. */
.imgbg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(oklch(0.16 0.028 48 / 0.86), oklch(0.16 0.028 48 / 0.90));
}
.imgbg h2, .imgbg h3, .imgbg h4 { color: var(--paper); }
.imgbg p, .imgbg li { color: oklch(0.905 0.012 70); }
.imgbg .answer { color: oklch(0.93 0.012 70); border-block-start-color: oklch(0.72 0.095 58); }
.imgbg .note { color: oklch(0.80 0.014 70); border-block-start-color: oklch(0.42 0.02 48); }
.imgbg .note b { color: oklch(0.90 0.012 70); }
.imgbg .plain li { color: oklch(0.90 0.012 70); }
.imgbg .dim > i { color: oklch(0.80 0.014 70); }
.imgbg .dim::before { background: oklch(0.42 0.02 48); }
.imgbg .cta-2 { color: var(--paper); border-color: oklch(0.62 0.02 48); }
.imgbg .cta-2:hover { border-color: var(--copper); color: var(--copper); }

/* The documented trap: a light card sitting inside a dark band inherits the
   band's white text and vanishes. The card flips back to page ink — but only
   the card. Text sitting directly on the band stays light. */
.imgbg .lead-card, .imgbg .vsc, .imgbg .cta-strip, .imgbg .strip a, .imgbg .pc {
  background: var(--card); color: var(--ink); border-color: oklch(0.62 0.02 48 / 0.5);
}
.imgbg .lead-card h3, .imgbg .vsc h3, .imgbg .strip a b, .imgbg .pc h3 { color: var(--ink); }
.imgbg .lead-card p, .imgbg .vsc p, .imgbg .cta-strip p { color: var(--ink-2); }
.imgbg .lead-card label { color: var(--ink); }
.imgbg .lead-card input, .imgbg .lead-card textarea { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.imgbg .vsc dt, .imgbg .strip a i, .imgbg .pc-meta { color: var(--ink-3); }
.imgbg .vsc dd, .imgbg .pc-price { color: var(--ink); }
.imgbg .lead-card .note { color: var(--ink-3); border-block-start-color: var(--line-2); }
