/* ═══════════════════════════════════════════════════════════════════
   ESTAVIO — HOMEPAGE v3
   Everything that defines the brand lives in :root. Swap that block
   and the whole page re-skins — nothing below hard-codes a colour.

   Accessibility notes baked into the tokens:
   · No text is set below 0.8125rem (13px), and that size is reserved
     for uppercase labels with generous tracking.
   · Every text/background pair below meets WCAG AA (4.5:1). The old
     --ink-3 (3.95), --gold-700 (4.29) and --cream-3 (2.75) failed and
     have been corrected.
   · --gold-600 is never used for text on light surfaces (2.79:1) — it
     is a rule, border and icon colour only. Gold text on light uses
     --gold-ink (5.15:1).
   · Readers can raise the base size from the utility bar; everything
     is rem-based, so the whole page scales with it.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── surfaces ──────────────────────────────────────── */
  --bg: #f7f4ee;
  --bg-2: #efe9dd;
  --bg-3: #e7dfd0;
  --paper: #fffdf9;

  /* ── forest ────────────────────────────────────────── */
  --forest-900: #04231a;
  --forest-800: #082d20;
  --forest-700: #0d3527;
  --forest-600: #14412f;
  --emerald: #244f40;

  /* ── gold ──────────────────────────────────────────── */
  --gold-400: #e2bb82;
  --gold-500: #d0a367;
  --gold-600: #b98b4c;
  /* decorative only */
  --gold-ink: #85602f;
  /* gold text on light — 5.15:1 */

  /* ── ink ───────────────────────────────────────────── */
  --ink: #142720;
  /* 14.3:1 on --bg */
  --ink-2: #3c4f47;
  /*  8.0:1 on --bg */
  --ink-3: #55655d;
  /*  5.6:1 on --bg */
  --cream: #f3efe6;
  /* 13.0:1 on forest */
  --cream-2: rgba(243, 239, 230, .78);
  /*  8.4:1 */
  --cream-3: rgba(243, 239, 230, .56);
  /*  4.9:1 */
  --cream-4: rgba(243, 239, 230, .3);
  /* decorative only */

  /* ── lines ─────────────────────────────────────────── */
  --line: rgba(20, 39, 32, .15);
  --line-2: rgba(20, 39, 32, .08);
  --line-light: rgba(243, 239, 230, .18);

  /* ── type families ─────────────────────────────────── */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ── type scale ────────────────────────────────────── */
  --fs-micro: .8125rem;
  /* 13px — uppercase labels only */
  --fs-sm: .9375rem;
  /* 15px — meta, captions */
  --fs-body: 1.0625rem;
  /* 17px — base */
  --fs-lead: 1.1875rem;
  /* 19px — lead paragraphs */
  --fs-h3: 1.375rem;

  /* ── motion ────────────────────────────────────────── */
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* mirror of --ease, for exits: fast out of rest, settling at the end */
  --ease-in: cubic-bezier(.64, 0, .78, 0);
  --t-fast: .28s;
  --t: .55s;

  /* ── layout ────────────────────────────────────────── */
  --shell: 1320px;
  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --sec: clamp(4.5rem, 8vw, 7.5rem);
  --r: 4px;
  --r-lg: 8px;
  --head-h: 88px;

  /* The jaali motif as a tileable data URI, so any section can carry a
     trace of it without another SVG element in the markup. */
  --tex: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%3E%3Cg%20fill='none'%20stroke='%23b98b4c'%20stroke-width='1'%3E%3Cpath%20d='M40%206%20L54%2020%20L74%2020%20L74%2040%20L54%2054%20L54%2074%20L40%2074%20L26%2054%20L6%2054%20L6%2034%20L26%2020%20L26%206%20Z'/%3E%3Ccircle%20cx='40'%20cy='40'%20r='11'/%3E%3Cpath%20d='M0%2040%20H14%20M66%2040%20H80%20M40%200%20V10%20M40%2070%20V80'/%3E%3C/g%3E%3C/svg%3E");
}

/* Reader-controlled text size. Everything is rem-based, so this scales
   type and the spacing tied to it. */
html {
  font-size: 100%;
}

html[data-text-size="large"] {
  font-size: 112.5%;
}

html[data-text-size="xlarge"] {
  font-size: 125%;
}

/* ═══════════════════ RESET ═══════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Native smooth scrolling for anything that moves the page without going
     through the anchor handler — the in-page skip link, :target and
     find-in-page. The reduced-motion block below overrides it. */
  scroll-behavior: smooth;
  /* Keeps an anchored heading clear of the fixed header. */
  scroll-padding-top: calc(var(--head-h) + 1.2rem);
}

/* The damped scroller writes a new scroll position every frame; native
   smoothing on top of that would ease toward each of those frames in turn
   and turn the motion to mush. It is switched off only once the script has
   actually taken over. */
html.js-smooth {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

::selection {
  background: var(--gold-600);
  color: var(--forest-900);
}

:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.pillars :focus-visible,
.stats :focus-visible,
.cta :focus-visible,
.site-foot :focus-visible,
.drawer :focus-visible,
.util-bar :focus-visible,
.site-head:not(.solid) :focus-visible {
  outline-color: var(--gold-400);
}

/* one icon size rule — every <use> instance inherits it */
.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

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

.skip-link {
  position: fixed;
  top: -200%;
  left: 1rem;
  z-index: 9999;
  padding: .85rem 1.4rem;
  background: var(--forest-800);
  color: var(--cream);
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-600);
  border: 2px solid var(--bg-2);
  border-radius: 99px;
}

/* ═══════════════════ UTILITIES ═══════════════════ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--sec);
  position: relative;
}

.rule {
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--gold-600);
  vertical-align: middle;
  margin-right: .8rem;
}

.overline {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.7;
}

.overline--light {
  color: var(--cream-2);
}

.overline--center {
  text-align: center;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 4.1vw, 3.5rem);
  line-height: 1.11;
  letter-spacing: -.008em;
  color: var(--forest-700);
  margin-top: 1rem;
}

.h2--light {
  color: var(--cream);
}

.h2--center {
  text-align: center;
}

.h2 em,
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-ink);
}

.h2--light em {
  color: var(--gold-400);
}

.lede {
  max-width: 48ch;
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--ink-2);
}

.body-copy {
  max-width: 54ch;
  margin-top: 1.2rem;
  color: var(--ink-2);
}

.body-copy a {
  color: var(--gold-ink);
  border-bottom: 1px solid currentColor;
}

.sec-note {
  max-width: 34ch;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-3);
}

/* ── buttons ── */
.btn {
  --btn-bg: var(--forest-800);
  --btn-fg: var(--cream);
  --btn-hover: var(--forest-600);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 1.9rem;
  border-radius: 99px;
  overflow: hidden;
  isolation: isolate;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  transition: color var(--t) var(--ease);
  will-change: transform;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-hover);
  transform: translateY(101%);
  transition: transform var(--t) var(--ease);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateY(0);
}

.btn .ico {
  width: 1.1em;
  height: 1.1em;
}

.btn-arrow {
  transition: transform var(--t) var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-gold {
  --btn-bg: linear-gradient(115deg, var(--gold-500), var(--gold-600));
  --btn-fg: var(--forest-900);
  --btn-hover: var(--forest-800);
  font-weight: 600;
}

.btn-gold:hover {
  color: var(--gold-400);
}

.btn-forest {
  --btn-bg: var(--forest-800);
  --btn-hover: linear-gradient(115deg, var(--gold-500), var(--gold-600));
}

.btn-forest:hover {
  color: var(--forest-900);
}

.btn-lg {
  padding: 1.15rem 2.2rem;
}

/* ── arrow link ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  padding-bottom: .25rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t) var(--ease);
}

.link-arrow .ico {
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--t) var(--ease);
}

.link-arrow:hover {
  background-size: 100% 1px;
}

.link-arrow:hover .ico {
  transform: translateX(5px);
}

.sec-head .link-arrow {
  align-self: flex-end;
}

/* ── round button ── */
.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
  will-change: transform;
}

.round-btn .ico {
  width: 19px;
  height: 19px;
}

.round-btn:hover {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--gold-400);
}

/* ═══════════════════ MOTION PRIMITIVES ═══════════════════ */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

.line {
  display: block;
  /* `hidden` cut the tail off descenders and italic overhang — the g in the
     hero's "Brighter" was sliced flat. `clip` with a margin lets the ink
     paint past the line box while still masking the reveal, and costs no
     layout change. `hidden` stays first as the fallback. */
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: .22em;
}

.js .line-in {
  display: block;
  /* Clears the line box plus the clip margin above, so the waiting line is
     still out of sight before it rises. */
  transform: translateY(130%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-split].in .line-in {
  transform: none;
}

/* custom cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

.cursor.on {
  opacity: 1;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--gold-600);
}

.cursor-ring {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold-600);
  transition: width .38s var(--ease), height .38s var(--ease), background .38s var(--ease),
    border-color .38s var(--ease);
}

.cursor-label {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--forest-900);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .3s var(--ease);
}

.cursor.lg .cursor-ring {
  width: 88px;
  height: 88px;
  background: var(--gold-500);
  border-color: transparent;
}

.cursor.lg .cursor-label {
  opacity: 1;
  transform: none;
}

.cursor.lg .cursor-dot {
  opacity: 0;
}

@media (hover: none),
(max-width: 900px) {
  .cursor {
    display: none;
  }
}

/* ═══════════════════ LOADER ═══════════════════ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  background: var(--forest-900);
  transition: opacity .7s var(--ease), visibility .7s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-arch {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 160vmax;
  height: 160vmax;
  transform: translate(-50%, 46%) scale(.2);
  background: var(--forest-800);
  clip-path: url(#archOgee);
  opacity: .55;
  transition: transform 1.5s var(--ease);
}

.loader.go .loader-arch {
  transform: translate(-50%, 46%) scale(1);
}

.loader-inner {
  position: relative;
  text-align: center;
}

.loader-mark {
  width: 72px;
  margin: 0 auto 1.4rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.loader.go .loader-mark {
  opacity: 1;
  transform: none;
}

.loader-word {
  width: clamp(190px, 26vw, 300px);
  height: auto;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease) .12s, transform .9s var(--ease) .12s;
}

.loader.go .loader-word {
  opacity: 1;
  transform: none;
}

.loader-tag {
  display: block;
  margin-top: 1rem;
  font-size: var(--fs-micro);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-500);
  opacity: 0;
  transition: opacity .8s var(--ease) .5s;
}

.loader.go .loader-tag {
  opacity: 1;
}

.loader-pct {
  position: absolute;
  right: var(--pad);
  bottom: 2rem;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--cream-4);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════ UTILITY BAR ═══════════════════ */

.util-bar {
  position: relative;
  z-index: 190;
  background: var(--forest-900);
  color: var(--cream-2);
  font-size: var(--fs-micro);
  border-bottom: 1px solid rgba(243, 239, 230, .09);
}

.util-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--shell);
  margin-inline: auto;
  padding: .55rem var(--pad);
}

.util-msg {
  display: flex;
  align-items: center;
  gap: .55rem;
  letter-spacing: .02em;
}

.util-msg .ico {
  width: 1.2em;
  height: 1.2em;
  color: var(--gold-500);
}

.util-right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.util-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--cream);
  transition: color var(--t-fast) var(--ease);
}

.util-link .ico {
  width: 1.15em;
  height: 1.15em;
  color: var(--gold-500);
}

.util-link:hover {
  color: var(--gold-400);
}

.text-size {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.text-size-lab {
  margin-right: .3rem;
  color: var(--cream-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.text-size button {
  min-width: 2.1rem;
  padding: .12rem .4rem;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  color: var(--cream-2);
  line-height: 1.5;
  transition: all var(--t-fast) var(--ease);
}

.text-size button sup {
  font-size: .62em;
}

.text-size button:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.text-size button[aria-pressed="true"] {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--forest-900);
  font-weight: 600;
}

/* ═══════════════════ HEADER ═══════════════════ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 180;
  color: var(--cream);
  /* The header is sticky, so it occupies layout space rather than
     overlaying the hero. It therefore carries the hero's top colour at
     rest and cross-fades to the ivory bar on scroll. */
  background: var(--forest-900);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 244, 238, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.site-head.solid {
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(185, 139, 76, .28), 0 14px 40px rgba(20, 39, 32, .07);
}

.site-head.solid::before {
  opacity: 1;
}

.site-head.hide {
  transform: translateY(-105%);
}

.site-head-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 1.05rem var(--pad);
  transition: padding .45s var(--ease);
}

.site-head.solid .site-head-in {
  padding-block: .7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
}

/* Logo lockup — the supplied mark and wordmark artwork, side by side.
   Both wordmark colourways sit in the DOM and cross-fade with the header
   state, so there is no swap flash and no JS involved. */
.brand-mark {
  width: auto;
  height: 54px;
  transition: height .45s var(--ease), transform .6s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}

.site-head.solid .brand-mark {
  height: 44px;
}

.brand-word {
  position: relative;
  display: block;
  height: 35px;
  aspect-ratio: 640 / 182;
  transition: height .45s var(--ease);
}

.site-head.solid .brand-word {
  height: 28px;
}

.brand-word img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .45s var(--ease);
}

.brand-word-on-light {
  opacity: 0;
}

.site-head.solid .brand-word-on-dark {
  opacity: 0;
}

.site-head.solid .brand-word-on-light {
  opacity: 1;
}


.primary-nav {
  display: flex;
  gap: clamp(.8rem, 1.8vw, 1.75rem);
}

.primary-nav a {
  position: relative;
  font-size: var(--fs-sm);
  letter-spacing: .03em;
  padding-block: .4rem;
}

.primary-nav a span {
  position: relative;
  display: inline-block;
}

.primary-nav a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.primary-nav a:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background var(--t-fast) var(--ease);
}

.icon-btn .ico {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: rgba(185, 139, 76, .2);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(243, 239, 230, .12);
  padding: 0 12px;
}

.site-head.solid .burger {
  background: rgba(20, 39, 32, .08);
}

.burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .45s var(--ease), opacity .3s, width .45s var(--ease);
}

.burger span:nth-child(2) {
  width: 70%;
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 6rem var(--pad) 3rem;
  background: var(--forest-900);
  color: var(--cream);
  clip-path: circle(0% at 100% 0%);
  visibility: hidden;
  overflow-y: auto;
  /* Closing: the circle retracts over .6s and only then does the panel go
     `hidden` — the delayed, stepped visibility is what gives the close an
     animation instead of the instant disappearance it had before. */
  transition: clip-path .6s var(--ease-in), visibility 0s linear .6s;
}

.drawer.open {
  clip-path: circle(150% at 100% 0%);
  visibility: visible;
  transition: clip-path .85s var(--ease), visibility 0s linear 0s;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.drawer-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.9rem);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}

.drawer.open .drawer-nav a {
  opacity: 1;
  transform: none;
}

.drawer-nav a:nth-child(1) {
  transition-delay: .18s;
}

.drawer-nav a:nth-child(2) {
  transition-delay: .24s;
}

.drawer-nav a:nth-child(3) {
  transition-delay: .3s;
}

.drawer-nav a:nth-child(4) {
  transition-delay: .36s;
}

.drawer-nav a:nth-child(5) {
  transition-delay: .42s;
}

.drawer-nav a:nth-child(6) {
  transition-delay: .48s;
}

/* Still painted while the circle retracts, so it must stop swallowing
   clicks the moment the close begins. */
.drawer:not(.open) {
  pointer-events: none;
}

/* Closing: the links leave top-down, faster than they arrived, and clear
   the panel before the clip-path circle finishes retracting. */
.drawer:not(.open) .drawer-nav a {
  transform: translateY(-14px);
  transition-duration: .34s, .34s, .3s;
  transition-timing-function: var(--ease-in);
}

.drawer:not(.open) .drawer-nav a:nth-child(1) { transition-delay: 0s; }
.drawer:not(.open) .drawer-nav a:nth-child(2) { transition-delay: .03s; }
.drawer:not(.open) .drawer-nav a:nth-child(3) { transition-delay: .06s; }
.drawer:not(.open) .drawer-nav a:nth-child(4) { transition-delay: .09s; }
.drawer:not(.open) .drawer-nav a:nth-child(5) { transition-delay: .12s; }
.drawer:not(.open) .drawer-nav a:nth-child(6) { transition-delay: .15s; }

.drawer-foot {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .34s var(--ease-in), transform .34s var(--ease-in);
}

.drawer.open .drawer-foot {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease) .54s, transform .6s var(--ease) .54s;
}

.drawer-nav a:hover {
  color: var(--gold-400);
}

.drawer-nav small {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  letter-spacing: .2em;
  color: var(--gold-500);
}

.drawer-foot {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: var(--fs-sm);
  color: var(--cream-2);
  border-top: 1px solid var(--line-light);
  padding-top: 1.5rem;
}

/* ═══════════════════ HERO ═══════════════════ */
/* One full-bleed photograph behind everything, a scrim for legibility,
   and the arch reduced to a drawn ornament. Nothing is cropped into a
   floating panel, so the section reads as one stage at every width. */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(90svh, 880px);
  padding: clamp(6rem, 14vw, 10rem) 0 clamp(6rem, 10vw, 8.5rem);
  background: var(--forest-900);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero-stage {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 30s var(--ease) infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.14) translate3d(-1.2%, -1.4%, 0);
  }
}

/* Two-axis scrim: dark from the left so the copy always has contrast,
   dark from the bottom so the stats and card sit on solid ground. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--forest-900) 0%, rgba(4, 35, 26, .92) 30%, rgba(4, 35, 26, .55) 62%, rgba(4, 35, 26, .35) 100%),
    linear-gradient(to top, var(--forest-900) 0%, rgba(4, 35, 26, .55) 26%, transparent 62%);
}

.hero-jaali {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: min(44%, 560px);
  height: 100%;
  color: var(--gold-500);
  opacity: .1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, #000 5%, transparent 74%);
  mask-image: linear-gradient(100deg, #000 5%, transparent 74%);
}

/* The motif, kept as a line. No photograph is cut into it. */
.hero-arch {
  position: absolute;
  right: clamp(-4rem, 2vw, 4rem);
  bottom: 0;
  z-index: -1;
  width: clamp(320px, 38vw, 560px);
  height: clamp(420px, 52vw, 720px);
  color: var(--gold-500);
  opacity: .3;
  pointer-events: none;
}

.hero-arch path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawArch 2.8s var(--ease) .7s forwards;
}

@keyframes drawArch {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 44rem;
}

.hero-eyebrow {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -.012em;
  margin-top: 1.3rem;
  color: var(--paper);
}

.hero-title em {
  color: var(--gold-400);
}

.hero-lede {
  max-width: 46ch;
  margin-top: 1.7rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--cream-2);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--cream);
  will-change: transform;
}

.play-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--cream-3);
  color: var(--gold-400);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}

.play-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.play-ring .ico {
  width: 22px;
  height: 22px;
}

.play:hover .play-ring {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--forest-900);
}

.play:hover .play-ring::after {
  opacity: 1;
  transform: scale(1.3);
}

.play-label {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* ── hero baseline: stats and the featured residence ── */
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line-light);
}

.hero-trust {
  display: flex;
  gap: clamp(1.4rem, 4vw, 3.4rem);
  flex-wrap: wrap;
}

.hero-trust li {
  display: flex;
  flex-direction: column;
}

.hero-trust b {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--gold-400);
  line-height: 1.15;
}

.hero-trust span {
  margin-top: .2rem;
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-3);
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.1rem .75rem .75rem;
  border-radius: var(--r-lg);
  background: rgba(4, 35, 26, .66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-light);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-600);
  background: rgba(4, 35, 26, .82);
}

.hero-card-media {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--forest-700);
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-card-flag {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.hero-card strong {
  margin-top: .15rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
}

.hero-card-loc {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .1rem;
  font-size: var(--fs-micro);
  color: var(--cream-2);
}

.hero-card-loc .ico {
  width: 1.05em;
  height: 1.05em;
  color: var(--gold-500);
  flex: none;
}

.hero-card-foot {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .45rem;
}

.hero-card-foot b {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--gold-400);
}

.hero-card-foot i {
  font-style: normal;
  font-size: var(--fs-micro);
  color: var(--cream-3);
}

.hero-card-go {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--gold-400);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.hero-card-go .ico {
  width: 17px;
  height: 17px;
}

.hero-card:hover .hero-card-go {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--forest-900);
}

/* ═══════════════════ DEVELOPER STRIP ═══════════════════ */
/* The label and the names sit on one baseline. Extra bottom padding
   reserves the space the search panel overlaps into, so the names are
   never covered. */

.devstrip {
  background: var(--forest-900);
  padding-block: 1.5rem clamp(4.2rem, 7vw, 5.4rem);
  border-top: 1px solid rgba(243, 239, 230, .07);
}

.devstrip-in {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .9rem clamp(1.4rem, 3vw, 2.6rem);
  flex-wrap: wrap;
}

.devstrip-lab {
  display: flex;
  align-items: center;
  flex: none;
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-500);
  white-space: nowrap;
}

.devstrip-lab .rule {
  width: 1.6rem;
  margin-right: .7rem;
}

.devstrip-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  flex-wrap: wrap;
}

.devstrip-list li {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  letter-spacing: .06em;
  color: var(--cream-3);
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}

.devstrip-list li:hover {
  color: var(--gold-400);
}

/* ═══════════════════ SEARCH ═══════════════════ */

.search-wrap {
  position: relative;
  z-index: 20;
  margin-top: clamp(-3.6rem, -4vw, -2.6rem);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.3rem 2.4rem;
  align-items: center;
  padding: 1.5rem clamp(1.2rem, 3vw, 2.2rem);
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -32px rgba(8, 45, 32, .38), 0 1px 0 rgba(185, 139, 76, .3) inset;
}

.search-tabs {
  position: relative;
  grid-column: 1;
  display: flex;
  gap: .2rem;
  border-bottom: 1px solid var(--line-2);
}

.tab {
  position: relative;
  padding: .4rem .9rem .7rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  transition: color var(--t-fast) var(--ease);
}

.tab:hover {
  color: var(--ink);
}

.tab.is-on {
  color: var(--forest-700);
  font-weight: 500;
}

.tab-ink {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold-600);
  transition: transform .5s var(--ease), width .5s var(--ease);
}

.search-row {
  grid-column: 1;
  display: flex;
  gap: .6rem;
  align-items: stretch;
}

.search-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.search-field:focus-within {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(185, 139, 76, .14);
}

.sf-ico {
  width: 19px;
  height: 19px;
  color: var(--ink-3);
}

.search-field input {
  flex: 1;
  min-width: 0;
  padding: .85rem 0;
  font-size: var(--fs-sm);
}

.search-field input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.search-select {
  position: relative;
  display: flex;
  align-items: center;
}

.search-select select {
  appearance: none;
  height: 100%;
  padding: .85rem 2.4rem .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  cursor: pointer;
}

.sel-arrow {
  position: absolute;
  right: .85rem;
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  pointer-events: none;
}

/* Stretches to the row instead of sizing itself, so at rest it lines up
   with the field and the Search button rather than only looking right
   once hover paints a background over the discrepancy. */
.pin-btn {
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: none;
  width: 52px;
  height: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-3);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
  will-change: transform;
}

.pin-btn .ico {
  width: 20px;
  height: 20px;
}

.pin-btn:hover {
  color: var(--gold-ink);
  border-color: var(--gold-600);
  background: rgba(185, 139, 76, .09);
}

.search-go {
  border-radius: var(--r);
  padding-inline: 1.6rem;
}

.search-aside {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding-left: 2rem;
  border-left: 1px solid var(--line-2);
}

.search-note {
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.95;
}

.search-note em {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--gold-ink);
}

/* The supplied leaf mark, sitting where the drawn lotus used to. It fades
   and lifts on reveal, then drifts with the shared [data-parallax] loop —
   which writes `transform`, so the entry offset lives on an inner wrapper
   property (translate) that parallax does not touch. */
.search-leaf {
  width: clamp(58px, 6.6vw, 88px);
  height: auto;
  flex: none;
  opacity: 0;
  translate: 0 18px;
  transition: opacity 1.1s var(--ease) .15s, translate 1.1s var(--ease) .15s;
}

[data-reveal].in .search-leaf {
  opacity: .92;
  translate: 0 0;
}

/* ── decorative texture layers ──────────────────────────────────────
   Full-bleed, inert, and clipped to the section. Everything inside is
   driven by [data-parallax], so the drift is tied to scroll position
   rather than to a timed animation. */
.tex-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.tex-leaf {
  position: absolute;
  height: auto;
  opacity: .1;
  will-change: transform;
}

.tex-leaf--a {
  top: -6%;
  right: -4%;
  width: clamp(200px, 26vw, 400px);
  rotate: 8deg;
}

.tex-leaf--b {
  bottom: -18%;
  left: -6%;
  width: clamp(170px, 20vw, 320px);
  rotate: -14deg;
  opacity: .08;
}

.tex-layer--soft .tex-leaf {
  opacity: .07;
}


.search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  padding-left: .2rem;
}

.search-chips-lab {
  margin-right: .3rem;
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.search-chips button {
  padding: .45rem 1.05rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}

.search-chips button:hover,
.search-chips button.on {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--gold-400);
}

/* ═══════════════════ CATEGORIES ═══════════════════ */

.cats {
  position: relative;
  padding-block: clamp(2.8rem, 4.5vw, 4rem);
  border-bottom: 1px solid var(--line-2);
}

.cats-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.4rem;
  align-items: center;
}

.cat-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .4rem;
}

.cat {
  display: grid;
  grid-template-rows: auto minmax(2.9rem, auto) auto;
  justify-items: center;
  align-content: start;
  gap: .5rem;
  height: 100%;
  padding: 1.1rem .5rem;
  border-radius: var(--r);
  text-align: center;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}

.cat-list > li {
  display: flex;
}

.cat-list > li > .cat {
  flex: 1;
}

.cat:hover {
  background: var(--bg-2);
  transform: translateY(-4px);
}

.cat-ico {
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  transition: color var(--t) var(--ease), transform .6s var(--ease);
}

.cat-ico .ico {
  width: 34px;
  height: 34px;
}

.cat:hover .cat-ico {
  color: var(--forest-600);
  transform: translateY(-2px) scale(1.06);
}

.cat-name {
  display: flex;
  align-items: center;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
}

.cat-n {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.cats-note {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--gold-ink);
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.cats-note em {
  color: var(--forest-600);
}

/* ═══════════════════ SECTION TEXTURE ═══════════════════ */
/* Very low-opacity lattice plus a soft corner wash. Enough to give the
   large light bands some depth without competing with the content. */

.shell {
  position: relative;
  z-index: 1;
}

.featured,
.services,
.process,
.insights,
.team,
.calc,
.quotes,
.localities,
.life,
.faq,
.about {
  isolation: isolate;
}

.featured::before,
.services::before,
.process::before,
.insights::before,
.team::before,
.calc::before,
.quotes::before,
.localities::before,
.life::before,
.faq::before,
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--tex);
  background-size: 84px 84px;
  opacity: .05;
}

/* alternate the fade direction so consecutive bands do not repeat */
.featured::before,
.process::before,
.team::before,
.life::before {
  -webkit-mask-image: radial-gradient(70% 60% at 100% 0%, #000, transparent 72%);
  mask-image: radial-gradient(70% 60% at 100% 0%, #000, transparent 72%);
}

.services::before,
.insights::before,
.calc::before,
.localities::before,
.faq::before,
.about::before,
.quotes::before {
  -webkit-mask-image: radial-gradient(70% 60% at 0% 100%, #000, transparent 72%);
  mask-image: radial-gradient(70% 60% at 0% 100%, #000, transparent 72%);
}

/* a barely-there warm wash, so flat bands have a light source */
.featured::after,
.services::after,
.insights::after,
.calc::after,
.team::after,
.process::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 70% at 78% 8%, rgba(185, 139, 76, .07), transparent 60%);
}

/* ═══════════════════ SECTION HEAD ═══════════════════ */

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.4rem, 4vw, 3.5rem);
}

.sec-head--tight {
  align-items: center;
}

.sec-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sec-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .9rem;
}

.filters {
  display: flex;
  gap: .3rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.filter {
  padding: .5rem 1.1rem;
  border-radius: 99px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.filter:hover {
  color: var(--ink);
}

.filter.is-on {
  background: var(--forest-800);
  color: var(--gold-400);
}

.filter-count {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* ═══════════════════ ABOUT ═══════════════════ */

.about {
  background: var(--bg-2);
}

.about-in {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* Sticky, so the photograph stays with the reader while the copy scrolls.
   `align-items: start` on the grid above is what makes sticky possible —
   a stretched item has no room to move. */
.about-media {
  position: sticky;
  top: calc(var(--head-h) + 1.2rem);
}

/* ── arch frame: a clipped photograph with its drawn outline ──────────
   Both children are absolutely positioned to the same frame, and the
   SVG is given an explicit 100%/100% so it cannot fall back to its
   viewBox aspect ratio — which is what made the outline and the photo
   disagree previously. */
.arch-frame {
  position: relative;
  height: 100%;
  min-height: 260px;
}

.about-img {
  position: relative;
  display: block;
  height: clamp(400px, 64vh, 640px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--forest-700);
  box-shadow: 0 30px 64px -34px rgba(8, 45, 32, .5);
}

.story-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--forest-700);
  clip-path: url(#archRound);
}

.about-img img,
.story-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--gold-600);
  opacity: .5;
  pointer-events: none;
}

.arch-line path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease) .25s;
}

.about-media.in .arch-line path,
.story .arch-line path {
  stroke-dashoffset: 0;
}

.story .arch-line {
  color: var(--gold-500);
  opacity: .55;
}

.about-badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--forest-800);
  color: var(--cream);
  box-shadow: 0 20px 44px -20px rgba(8, 45, 32, .55);
  white-space: nowrap;
}

.about-badge b {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-400);
}

.about-badge span {
  font-size: var(--fs-micro);
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-2);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2rem;
}

.about-points li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.about-points .ico {
  width: 1.3em;
  height: 1.3em;
  margin-top: .3em;
  color: var(--gold-ink);
}

.about-points b {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.about-points span {
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-2);
}

.about-cta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* ═══════════════════ PROPERTY CARDS ═══════════════════ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}

.card.hide {
  display: none;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.card-link:hover {
  transform: translateY(-7px);
  border-color: rgba(185, 139, 76, .45);
  box-shadow: 0 28px 55px -28px rgba(8, 45, 32, .42);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--forest-700);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.card-link:hover .card-media img {
  transform: scale(1.07);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 35, 26, .62), transparent 45%);
}

.card-flag {
  position: absolute;
  top: .8rem;
  left: .8rem;
  z-index: 2;
  padding: .3rem .7rem;
  border-radius: 2px;
  background: rgba(8, 45, 32, .9);
  color: var(--gold-400);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.card-flag--new {
  background: var(--gold-500);
  color: var(--forest-900);
}

.card-flag--premium {
  background: rgba(36, 79, 64, .94);
  color: var(--gold-400);
}

.card-rera {
  position: absolute;
  left: .85rem;
  bottom: .85rem;
  z-index: 2;
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  color: var(--cream-2);
}

.card-go {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--forest-900);
  opacity: 0;
  transform: translateY(10px) scale(.85);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.card-go .ico {
  width: 18px;
  height: 18px;
}

.card-link:hover .card-go {
  opacity: 1;
  transform: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.3rem 1.35rem;
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
}

.card-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest-700);
}

.card-type {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.card-loc {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .3rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.card-loc .ico {
  width: 1.05em;
  height: 1.05em;
  color: var(--gold-ink);
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin-top: .95rem;
  padding: .7rem 0;
  border-block: 1px solid var(--line-2);
}

.card-specs li {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.card-specs .ico {
  width: 1.15em;
  height: 1.15em;
  color: var(--gold-ink);
}

.card-specs b {
  font-weight: 600;
  color: var(--ink);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: .7rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.card-meta .ico {
  width: 1.1em;
  height: 1.1em;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: auto;
  padding-top: .95rem;
}

.card-price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-ink);
  white-space: nowrap;
}

.card-price small {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--ink-3);
}

.card-cta {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--forest-600);
  border-bottom: 1px solid var(--gold-600);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* Only ever shown on phones — above the breakpoint the whole grid is
   rendered, so JS keeps this button hidden and this rule is a backstop. */
.cards-more {
  display: none;
  width: 100%;
  margin-top: 1.4rem;
  padding: .95rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  font-size: var(--fs-sm);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest-700);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.cards-more:hover {
  border-color: var(--gold-600);
  background: rgba(185, 139, 76, .09);
  color: var(--gold-ink);
}

@media (max-width: 860px) {
  .cards-more:not([hidden]) {
    display: block;
  }
}

.cards-foot {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-2);
}

.cards-foot p {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  max-width: 44ch;
}

/* ═══════════════════ LOCALITIES ═══════════════════ */

.localities {
  background: var(--bg-2);
}

.loc a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.loc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

.loc a:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 139, 76, .45);
  box-shadow: 0 24px 48px -26px rgba(8, 45, 32, .4);
}

.loc-media {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--forest-700);
}

.loc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.loc a:hover .loc-media img {
  transform: scale(1.07);
}

.loc-body {
  padding: 1.2rem 1.3rem 1.3rem;
}

.loc-body h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest-700);
  line-height: 1.2;
}

.loc-sub {
  margin-top: .25rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.loc-stats {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line-2);
}

.loc-stats dt {
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.loc-stats dd {
  margin-top: .15rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
}

.loc-stats dd i {
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--ink-3);
}

.loc-stats .up {
  color: var(--emerald);
}

/* ═══════════════════ PILLARS ═══════════════════ */

.pillars {
  position: relative;
  background: linear-gradient(150deg, var(--forest-800), var(--forest-900));
  color: var(--cream);
  overflow: hidden;
}

.pillars-jaali {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48%, 640px);
  height: 100%;
  color: var(--gold-500);
  opacity: .1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(260deg, #000 10%, transparent 78%);
  mask-image: linear-gradient(260deg, #000 10%, transparent 78%);
}

.pillars-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, .82fr) 2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.pillars-sub {
  margin-top: 1.3rem;
  max-width: 30ch;
  font-size: var(--fs-sm);
  color: var(--cream-2);
}

.pillar-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.2rem);
  padding-top: .6rem;
}

.pillar {
  position: relative;
  padding-left: 1.3rem;
  border-left: 1px solid var(--line-light);
  transition: border-color var(--t) var(--ease);
}

.pillar:hover {
  border-color: var(--gold-600);
}

.pillar-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--gold-500);
  transition: transform .7s var(--ease), color var(--t) var(--ease);
}

.pillar-ico .ico {
  width: 34px;
  height: 34px;
}

.pillar:hover .pillar-ico {
  transform: translateY(-4px) scale(1.07);
  color: var(--gold-400);
}

.pillar h3 {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
}

.pillar p {
  margin-top: .6rem;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--cream-2);
}

/* ═══════════════════ PROCESS ═══════════════════ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}

.step {
  position: relative;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-600);
}

.step-num {
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-ink);
}

.step-body h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--forest-700);
  line-height: 1.25;
}

.step-body p {
  margin-top: .6rem;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--ink-2);
}

.step-when {
  display: block;
  margin-top: .9rem;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  color: var(--ink-3);
  font-style: italic;
}

/* ═══════════════════ SERVICES ═══════════════════ */

.svc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

.svc {
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.svc:hover {
  transform: translateY(-5px);
  border-color: rgba(185, 139, 76, .45);
  box-shadow: 0 22px 46px -26px rgba(8, 45, 32, .35);
}

.svc-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--gold-ink);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.svc-ico .ico {
  width: 26px;
  height: 26px;
}

.svc:hover .svc-ico {
  background: var(--forest-800);
  color: var(--gold-400);
}

.svc h3 {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--forest-700);
}

.svc p {
  margin-top: .55rem;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--ink-2);
}

/* ═══════════════════ STORY ═══════════════════ */

.story {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: stretch;
}

.story-media {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  min-height: clamp(360px, 44vw, 600px);
  padding: clamp(1.4rem, 3vw, 2.8rem);
  background: linear-gradient(150deg, var(--forest-700), var(--forest-900));
}

.story-copy {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4.5rem);
  background: var(--bg);
  overflow: hidden;
}

.story-jaali {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  height: 100%;
  color: var(--gold-600);
  opacity: .1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(250deg, #000, transparent 75%);
  mask-image: linear-gradient(250deg, #000, transparent 75%);
}

.story-inner {
  position: relative;
  max-width: 34rem;
}

.story-inner .btn {
  margin-top: 2rem;
}

.story-axis {
  position: relative;
  align-self: center;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}

.story-axis li {
  position: relative;
  padding-right: 1.5rem;
}

.story-axis li::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1rem;
  height: 1px;
  background: var(--gold-600);
}

/* ═══════════════════ STATS ═══════════════════ */

.stats {
  background: var(--forest-800);
  color: var(--cream);
  padding-block: clamp(2.8rem, 4.5vw, 4rem);
}

.stats-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.4rem;
  align-items: center;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.stat {
  position: relative;
  padding-right: 1rem;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: var(--line-light);
}

.stat-num {
  display: flex;
  align-items: baseline;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-400);
  font-variant-numeric: lining-nums tabular-nums;
}

.stat-num i {
  font-style: normal;
  font-size: .7em;
  color: var(--gold-500);
}

.stat-lab {
  display: block;
  margin-top: .5rem;
  font-size: var(--fs-sm);
  letter-spacing: .05em;
  color: var(--cream-2);
}

.stats-note {
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--cream-2);
  padding-left: 2rem;
  border-left: 1px solid var(--line-light);
}

.stats-note em {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--gold-400);
}

/* ═══════════════════ EMI CALCULATOR ═══════════════════ */

.calc-in {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.calc-copy .link-arrow {
  margin-top: 1.6rem;
}

.calc-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 26px 60px -34px rgba(8, 45, 32, .38);
}

.calc-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .4rem .8rem;
  align-items: baseline;
}

.calc-field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
}

.calc-field output {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-700);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calc-field input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 26px;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  cursor: pointer;
}

.calc-field input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: var(--bg-3);
}

.calc-field input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: var(--bg-3);
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--forest-800);
  border: 3px solid var(--gold-500);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest-800);
  border: 3px solid var(--gold-500);
}

.calc-field input[type="range"]:hover::-webkit-slider-thumb,
.calc-field input[type="range"]:focus-visible::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(185, 139, 76, .18);
}

.calc-scale {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-micro);
  color: var(--ink-3);
  margin-top: -.5rem;
}

.calc-result {
  margin-top: .3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-2);
}

.calc-emi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.calc-emi span {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.calc-emi strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}

.calc-break {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.calc-break dt {
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.calc-break dd {
  margin-top: .15rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
}

.calc-bar {
  display: flex;
  height: 8px;
  margin-top: 1.1rem;
  border-radius: 99px;
  overflow: hidden;
  background: var(--gold-500);
}

.calc-bar i {
  display: block;
  height: 100%;
  background: var(--forest-700);
  transition: width .5s var(--ease);
}

.calc-legend {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .7rem;
  font-size: var(--fs-micro);
  color: var(--ink-3);
}

.calc-legend .k {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.calc-legend .k--p {
  background: var(--forest-700);
}

.calc-legend .k--i {
  background: var(--gold-500);
  margin-left: .8rem;
}

/* ═══════════════════ LIFE PANELS ═══════════════════ */

.life {
  background: var(--bg-2);
}

.panels {
  display: flex;
  gap: .7rem;
  height: clamp(340px, 40vw, 440px);
}

.panel {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--forest-700);
  transition: flex 1s var(--ease);
}

.panel.is-open {
  flex: 2.7;
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(.85);
  transition: transform 1.2s var(--ease), filter 1s var(--ease);
}

.panel.is-open img {
  transform: scale(1);
  filter: saturate(1);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 35, 26, .9) 4%, rgba(4, 35, 26, .3) 46%, transparent 76%);
}

.panel-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.5rem 1.4rem;
  color: var(--cream);
}

.panel-idx {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: .24em;
  color: var(--gold-500);
}

.panel-body h3 {
  margin-top: .4rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  font-weight: 600;
}

.panel-body p {
  max-width: 34ch;
  margin-top: .5rem;
  font-size: var(--fs-sm);
  line-height: 1.68;
  color: var(--cream-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease) .15s, transform .7s var(--ease) .15s;
}

.panel.is-open .panel-body p {
  opacity: 1;
  transform: none;
}

/* ═══════════════════ TEAM ═══════════════════ */

.team-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}

.member-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--forest-700);
}

.member-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform 1.1s var(--ease), filter var(--t) var(--ease);
}

.member:hover .member-media img {
  transform: scale(1.05);
  filter: saturate(1);
}

.member h3 {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--forest-700);
}

.member-role {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gold-ink);
}

.member-note {
  margin-top: .2rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.member-mail {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .6rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.member-mail .ico {
  width: 1.1em;
  height: 1.1em;
  color: var(--gold-ink);
}

.member-mail:hover {
  color: var(--gold-ink);
  border-color: currentColor;
}

/* ═══════════════════ QUOTES ═══════════════════ */

.quotes {
  background: var(--bg-3);
}

.quotes-in {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}

.quote-mark {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .7;
  color: var(--gold-ink);
  opacity: .5;
  align-self: start;
}

.quote-stage {
  position: relative;
  min-height: 12rem;
  display: grid;
}

.quote {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}

.quote.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  line-height: 1.42;
  color: var(--forest-700);
  max-width: 48ch;
}

.quote blockquote em {
  color: var(--gold-ink);
}

.quote figcaption {
  margin-top: 1.2rem;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.quote figcaption span {
  position: relative;
  padding-left: .9rem;
  margin-left: .55rem;
  font-weight: 400;
  color: var(--ink-3);
}

.quote figcaption span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: .5rem;
  height: 1px;
  background: var(--gold-600);
}

.quote-nav {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.quote-count {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.quote-count b {
  color: var(--forest-700);
  font-weight: 600;
}

.quote-bar {
  display: block;
  width: clamp(40px, 8vw, 110px);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.quote-bar i {
  display: block;
  height: 100%;
  background: var(--gold-600);
  transform-origin: left;
  transform: scaleX(.33);
  transition: transform .7s var(--ease);
}

/* ═══════════════════ INSIGHTS ═══════════════════ */

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}

.post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.post a:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 139, 76, .45);
  box-shadow: 0 24px 48px -26px rgba(8, 45, 32, .4);
}

.post-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--forest-700);
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.post a:hover .post-media img {
  transform: scale(1.06);
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.3rem 1.4rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--fs-micro);
  color: var(--ink-3);
}

.post-tag {
  padding: .2rem .6rem;
  border-radius: 2px;
  background: var(--bg-2);
  color: var(--gold-ink);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-body h3 {
  margin-top: .7rem;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.28;
  color: var(--forest-700);
}

.post-excerpt {
  margin-top: .55rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-2);
}

.post-read {
  margin-top: auto;
  padding-top: 1rem;
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══════════════════ FAQ ═══════════════════ */

.faq {
  background: var(--bg-2);
}

.faq-in {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--forest-700);
  transition: color var(--t-fast) var(--ease);
}

.faq-item summary:hover {
  color: var(--gold-ink);
}

.faq-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold-ink);
  transition: transform .45s var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.faq-ico .ico {
  width: 18px;
  height: 18px;
}

.faq-item[open] .faq-ico {
  transform: rotate(135deg);
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--gold-400);
}

.faq-body {
  padding-bottom: 1.35rem;
}

.faq-body p {
  max-width: 62ch;
  font-size: var(--fs-sm);
  line-height: 1.78;
  color: var(--ink-2);
}

.js .faq-item[open] .faq-body {
  animation: faqIn .45s var(--ease);
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════ CTA / CONTACT ═══════════════════ */

.cta {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.cta-bg {
  position: absolute;
  inset: -10% 0;
  z-index: -1;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 35, 26, .94), rgba(8, 45, 32, .97));
}

.cta-in {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.cta-sub {
  max-width: 44ch;
  margin-top: 1.3rem;
  color: var(--cream-2);
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-light);
}

.cta-contacts li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.cta-contacts .ico {
  width: 1.35em;
  height: 1.35em;
  margin-top: .25em;
  color: var(--gold-500);
}

.cta-contacts b {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-3);
}

.cta-contacts span,
.cta-contacts a {
  display: block;
  margin-top: .2rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--cream);
}

.cta-contacts a:hover {
  color: var(--gold-400);
}

.cta-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
  background: rgba(243, 239, 230, .06);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: .35rem;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-3);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--line-light);
  background: rgba(4, 35, 26, .35);
  color: var(--cream);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 5rem;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
}

.field select option {
  background: var(--forest-800);
  color: var(--cream);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(4, 35, 26, .55);
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap .sel-arrow {
  top: 50%;
  transform: translateY(-50%);
  color: var(--cream-3);
}

.cta-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.cta-privacy {
  max-width: 30ch;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--cream-3);
}

.form-ok {
  margin-top: .2rem;
  font-size: var(--fs-sm);
  color: var(--gold-400);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.form-ok.show {
  opacity: 1;
  transform: none;
}

/* ═══════════════════ FOOTER ═══════════════════ */

.site-foot {
  position: relative;
  background: var(--forest-900);
  color: var(--cream);
  padding-block: clamp(3rem, 5.5vw, 4.5rem) 1.6rem;
  overflow: hidden;
}

.foot-jaali {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(36%, 460px);
  height: 100%;
  color: var(--gold-600);
  opacity: .09;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, #000, transparent 80%);
  mask-image: linear-gradient(100deg, #000, transparent 80%);
}

.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr .75fr .95fr .75fr 1.3fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.foot-lockup {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.foot-mark {
  width: auto;
  height: 50px;
}

.foot-word {
  width: auto;
  height: 28px;
}

.foot-tag {
  margin-top: .9rem;
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.foot-note {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--cream-2);
}

.foot-col h4 {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.foot-col a {
  font-size: var(--fs-sm);
  color: var(--cream-2);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.foot-col a:hover {
  color: var(--gold-400);
  padding-left: .3rem;
}

.foot-form {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.foot-form input {
  flex: 1;
  min-width: 0;
  padding: .8rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--line-light);
  background: rgba(243, 239, 230, .07);
  color: var(--cream);
  font-size: var(--fs-sm);
}

.foot-form input::placeholder {
  color: var(--cream-3);
  opacity: 1;
}

.foot-form input:focus {
  outline: none;
  border-color: var(--gold-500);
}

.foot-form button {
  display: grid;
  place-items: center;
  width: 50px;
  flex: none;
  border-radius: var(--r);
  background: linear-gradient(115deg, var(--gold-500), var(--gold-600));
  color: var(--forest-900);
  transition: filter var(--t-fast) var(--ease);
  will-change: transform;
}

.foot-form button .ico {
  width: 19px;
  height: 19px;
}

.foot-form button:hover {
  filter: brightness(1.08);
}

.form-ok--foot {
  margin-top: .6rem;
}

.socials {
  display: flex;
  flex-direction: row;
  gap: .55rem;
  margin-top: 1.4rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--cream-2);
  transition: all var(--t-fast) var(--ease);
  will-change: transform;
}

.socials .ico {
  width: 19px;
  height: 19px;
}

.socials a:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: rgba(185, 139, 76, .14);
}

.foot-legal {
  position: relative;
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--cream-3);
  max-width: 100ch;
}

.foot-legal b {
  color: var(--cream-2);
  font-weight: 500;
}

.foot-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-sm);
  color: var(--cream-3);
}

.foot-legal-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.foot-legal-nav a {
  transition: color var(--t-fast) var(--ease);
}

.foot-legal-nav a:hover {
  color: var(--gold-400);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-2);
  transition: color var(--t-fast) var(--ease);
  will-change: transform;
}

.to-top .ico {
  width: 16px;
  height: 16px;
  transition: transform var(--t) var(--ease);
}

.to-top:hover {
  color: var(--gold-400);
}

.to-top:hover .ico {
  transform: translateY(-3px);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */

/* ═══════════════════ LARGE DESKTOPS ═══════════════════ */
/* Nothing at or below 1980px is touched — that width is the reference the
   layout was tuned on, and every token below already sits at the flat top
   of its clamp by ~1500px, so these tiers cannot leak downwards.

   Above it the fixed 1320px measure read as a narrow column stranded in
   the middle of the screen. Widening the shell alone would have left the
   type looking undersized inside it, so each tier steps the root size up
   as well: the scale is rem-based throughout, so the headings' clamp
   ceilings, the gutters and the section rhythm all move together and the
   page keeps its proportions. The shell is held near 70% of the viewport,
   roughly what 1320px gives at the 1980px reference.

   The steps are small and frequent rather than few and large, so dragging
   a window across a threshold does not visibly lurch.

   The text-size controls are restated in each tier because
   `html[data-text-size]` outranks a bare `html`, and without them A+ / A++
   would stop compounding once a tier took effect. */

@media (min-width: 1981px) {
  html {
    font-size: 103%;
  }

  html[data-text-size="large"] {
    font-size: 116%;
  }

  html[data-text-size="xlarge"] {
    font-size: 129%;
  }

  :root {
    --shell: 1440px;
    --head-h: 92px;
  }

  .brand-mark {
    height: 58px;
  }

  .site-head.solid .brand-mark {
    height: 47px;
  }

  .brand-word {
    height: 38px;
  }

  .site-head.solid .brand-word {
    height: 30px;
  }
}

@media (min-width: 2240px) {
  html {
    font-size: 107%;
  }

  html[data-text-size="large"] {
    font-size: 120%;
  }

  html[data-text-size="xlarge"] {
    font-size: 134%;
  }

  :root {
    --shell: 1620px;
    --head-h: 96px;
  }

  .brand-mark {
    height: 63px;
  }

  .site-head.solid .brand-mark {
    height: 51px;
  }

  .brand-word {
    height: 41px;
  }

  .site-head.solid .brand-word {
    height: 33px;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 112%;
  }

  html[data-text-size="large"] {
    font-size: 126%;
  }

  html[data-text-size="xlarge"] {
    font-size: 140%;
  }

  :root {
    --shell: 1840px;
    --head-h: 102px;
  }

  .brand-mark {
    height: 68px;
  }

  .site-head.solid .brand-mark {
    height: 55px;
  }

  .brand-word {
    height: 44px;
  }

  .site-head.solid .brand-word {
    height: 35px;
  }

  /* Three cards across a 1840px shell leaves each one wider than it is
     tall; a fourth column restores the card proportions. */
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 3100px) {
  html {
    font-size: 118%;
  }

  html[data-text-size="large"] {
    font-size: 133%;
  }

  html[data-text-size="xlarge"] {
    font-size: 148%;
  }

  :root {
    --shell: 2200px;
    --head-h: 110px;
  }

  .brand-mark {
    height: 76px;
  }

  .site-head.solid .brand-mark {
    height: 61px;
  }

  .brand-word {
    height: 49px;
  }

  .site-head.solid .brand-word {
    height: 39px;
  }
}

/* Breakpoints run 1240 → 1150 → 1040 → 860 → 620 → 400. The extra rungs
   at 860 and 620 are where the two-up grids and the hero baseline were
   breaking; 400 covers small Android handsets. */

@media (max-width: 1240px) {
  .foot-grid {
    grid-template-columns: 1.3fr .8fr .9fr 1.2fr;
  }

  .foot-col--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1150px) {
  .pillars-in {
    grid-template-columns: 1fr;
  }

  .pillar-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .cat-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .cats-in {
    grid-template-columns: 1fr;
  }

  /* One line once the column becomes full-width: the three-line stack was
     set for a narrow side column that no longer exists here. */
  .cats-note {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.3rem;
    font-size: min(1.3rem, 4.8vw);
    text-align: center;
    white-space: nowrap;
  }

  /* The breaks go, the surrounding spaces in the markup carry the words;
     sizing against the viewport keeps it on one line down to 320px. */
  .cats-note .br-wide {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem;
  }

  .svc-list,
  .loc-list,
  .post-list,
  .team-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1040px) {
  .primary-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .head-actions .btn {
    display: none;
  }

  .util-msg {
    display: none;
  }

  .util-in {
    justify-content: space-between;
  }

  .hero {
    min-height: min(88svh, 760px);
    align-items: flex-end;
  }

  .hero-arch {
    width: clamp(260px, 46vw, 400px);
    opacity: .22;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-aside {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-2);
    padding-top: 1.1rem;
    justify-content: space-between;
  }

  .about-in,
  .calc-in,
  .faq-in,
  .cta-in {
    grid-template-columns: 1fr;
  }

  /* `relative`, not `static` — the badge is absolutely positioned against
     this box, and a static parent let it escape to the section shell and
     collide with the CTA row. `top` has to be cleared with it: the base
     rule sets one for the sticky desktop layout, and a relative box would
     otherwise shift down by that amount and sit over the copy. */
  .about-media {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 34rem;
    justify-self: center;
  }

  .about-img {
    height: clamp(340px, 54vw, 460px);
  }

  .story {
    grid-template-columns: 1fr;
  }

  .story-media {
    min-height: 320px;
  }

  .story-axis {
    display: none;
  }

  .stats-in {
    grid-template-columns: 1fr;
  }

  .stats-note {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-light);
    padding-top: 1.2rem;
  }
}

/* ── tablet / large phone ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    width: 100%;
  }

  .cards,
  .svc-list,
  .loc-list,
  .post-list,
  .team-list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .pillar-list {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .sec-head {
    align-items: flex-start;
  }

  .sec-head-side {
    align-items: flex-start;
    width: 100%;
  }

  .sec-head .link-arrow {
    align-self: flex-start;
  }

  .sec-note,
  .life-note {
    max-width: none;
    text-align: left;
  }

  .quotes-in {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .quote-mark {
    display: none;
  }

  .quote-stage {
    min-height: 0;
  }

  .quote {
    position: relative;
  }

  .panels {
    flex-direction: column;
    height: auto;
  }

  .panel {
    height: 200px;
    flex: none;
  }

  .panel.is-open {
    flex: none;
    height: 290px;
  }

  .panel-body p {
    opacity: 1;
    transform: none;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ── phone ──────────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  .util-bar {
    font-size: .78rem;
  }

  .util-in {
    gap: .6rem;
    padding-block: .45rem;
  }

  .util-right {
    gap: .8rem;
  }

  .text-size-lab {
    display: none;
  }

  .brand-mark {
    height: 44px;
  }

  .site-head.solid .brand-mark {
    height: 38px;
  }

  .brand-word {
    height: 26px;
  }

  .site-head.solid .brand-word {
    height: 23px;
  }

  .hero {
    min-height: 0;
    padding-block: clamp(3rem, 12vw, 4.5rem) clamp(3rem, 10vw, 4rem);
  }

  /* The desktop curve bottomed out at 46px here, which pushed the hero past
     a full screen on a phone. Scaling against the viewport instead keeps the
     same three lines in noticeably less height. */
  .hero-title {
    font-size: clamp(2rem, 8.6vw, 2.7rem);
    line-height: 1.08;
  }

  /* Was running to within 37px of the screen edge at 13px with .24em
     tracking. */
  .hero-eyebrow {
    font-size: .6875rem;
    letter-spacing: .16em;
  }

  .hero-lede {
    margin-top: 1.25rem;
    font-size: 1rem;
  }

  .hero-arch {
    display: none;
  }

  .hero-scrim {
    background: linear-gradient(to top, var(--forest-900) 14%, rgba(4, 35, 26, .84) 48%, rgba(4, 35, 26, .68) 100%);
  }

  .hero-trust {
    gap: 1rem 1.6rem;
  }

  .hero-trust li {
    min-width: 7.5rem;
  }

  .hero-card {
    align-items: flex-start;
    padding: .7rem;
  }

  .hero-card-media {
    width: 68px;
    height: 68px;
  }

  .hero-card-go {
    align-self: center;
  }

  .devstrip-in {
    justify-content: center;
    text-align: center;
  }

  .devstrip-lab {
    width: 100%;
    justify-content: center;
  }

  .devstrip-list {
    justify-content: center;
    gap: .5rem 1.2rem;
  }

  .devstrip-list li {
    font-size: 1rem;
  }

  .search-wrap {
    margin-top: -2rem;
  }

  .search-panel {
    padding: 1.1rem;
  }

  .search-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .search-tabs::-webkit-scrollbar {
    display: none;
  }

  .search-row {
    flex-wrap: wrap;
  }

  .search-field,
  .search-select {
    width: 100%;
  }

  .search-select select {
    width: 100%;
  }

  .pin-btn {
    width: 52px;
  }

  .search-go {
    flex: 1;
  }

  .search-aside {
    gap: 1rem;
  }

  .search-leaf {
    width: 52px;
  }

  /* the label reads as a heading for the chips, not as the first chip */
  .search-chips {
    gap: .45rem;
  }

  .search-chips-lab {
    flex-basis: 100%;
    margin: 0 0 .15rem;
  }

  .cat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: .3rem;
  }

  .cat {
    padding: .9rem .4rem;
  }

  .cat-ico .ico {
    width: 28px;
    height: 28px;
  }

  .about-media {
    max-width: none;
  }

  .about-img {
    height: clamp(280px, 68vw, 380px);
  }

  /* Sits inside the photograph here. Overhanging the bottom edge left it
     colliding with the first line of the heading below. */
  .about-badge {
    left: auto;
    right: .9rem;
    bottom: .9rem;
    transform: none;
    padding: .7rem 1rem;
  }

  .about-badge b {
    font-size: 2rem;
  }

  .about-cta {
    gap: 1.2rem;
  }

  .about-cta .btn {
    width: 100%;
  }

  .card-top {
    flex-wrap: wrap;
    gap: .2rem .8rem;
  }

  .card-foot {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .cards-foot .btn {
    width: 100%;
  }

  .filters {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    white-space: nowrap;
  }

  .stat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .stat-num {
    font-size: 1.9rem;
  }

  .stat-lab {
    font-size: .875rem;
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .calc-field {
    grid-template-columns: 1fr;
  }

  .calc-field output {
    text-align: left;
    font-size: 1.25rem;
  }

  .calc-break {
    gap: 1rem 1.4rem;
  }

  .calc-break > div {
    min-width: 6.5rem;
  }

  .faq-item summary {
    font-size: var(--fs-body);
    gap: .8rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .cta-form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-form-foot .btn {
    width: 100%;
  }

  .cta-privacy {
    max-width: none;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .foot-lockup {
    gap: .7rem;
  }

  .foot-mark {
    height: 42px;
  }

  .foot-word {
    height: 24px;
  }

  .foot-bottom {
    justify-content: flex-start;
    gap: .8rem;
  }

  .foot-legal-nav {
    gap: .9rem;
  }

  .story-copy {
    padding-inline: var(--pad);
  }

  .quote-nav {
    justify-content: flex-start;
  }
}

/* ── small handsets ─────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .util-link span,
  .util-link {
    font-size: .75rem;
  }

  .brand-word {
    height: 22px;
  }

  .hero-card {
    flex-wrap: wrap;
  }

  .hero-card-media {
    width: 56px;
    height: 56px;
  }

  .hero-card-go {
    margin-left: auto;
  }

  .hero-trust {
    gap: 1rem;
  }

  /* one per row, laid out as icon | name | count — the tile is a grid,
     so this needs columns, not flex-direction. */
  .cat-list {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .cat {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    justify-items: start;
    gap: .9rem;
    text-align: left;
    padding: .75rem .6rem;
  }

  .cat-name {
    line-height: 1.35;
  }

  .cat-n {
    justify-self: end;
    white-space: nowrap;
  }

  .stat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem .8rem;
  }

  .stat-num {
    font-size: 1.7rem;
  }

  .stat {
    padding-right: .5rem;
  }
}

/* ═══════════════════ REDUCED MOTION ═══════════════════ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

html.rm [data-reveal],
html.rm [data-split] .line-in,
html.rm .drawer-nav a,
html.rm .loader-word,
html.rm .loader-mark,
html.rm .loader-tag,
html.rm .panel-body p {
  opacity: 1 !important;
  transform: none !important;
}

/* The leaf mark and the texture drift are decorative; with motion reduced
   they simply sit still at their resting values. */
html.rm .search-leaf {
  opacity: .92 !important;
  translate: none !important;
}

html.rm .tex-leaf {
  transform: none !important;
}

html.rm .hero-img {
  animation: none;
}

html.rm .hero-arch path,
html.rm .arch-line path {
  stroke-dashoffset: 0;
  animation: none;
  transition: none;
}

html.rm .cursor {
  display: none;
}

/* no-JS fallback — nothing hidden, no loader */
html:not(.js) .loader,
html:not(.js) .cursor,
html:not(.js) .progress {
  display: none;
}
