/* ==========================================================================
   Faiq Advisory — landing theme
   1. Tokens          5. Hero            9.  Process / About
   2. Reset + base    6. Marquee         10. Testimonials / FAQ
   3. Primitives      7. Snapshot        11. CTA / Footer
   4. Header          8. Wall            12. Drawer / Modal / Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  /* Palette (overridable from /admin) */
  --c-deep:    #3B1C5E;
  --c-primary: #5A2D91;
  --c-accent:  #7B4BB8;
  --c-ink:     #2A1745;

  --c-deep-rgb:    59, 28, 94;
  --c-primary-rgb: 90, 45, 145;
  --c-accent-rgb:  123, 75, 184;

  --c-lilac: #C9B3EA;
  --c-mist:  #E3D9F1;
  --c-veil:  #F3EEFA;
  --c-muted: #75658A;

  --c-paper:   #FFFFFF;
  --c-canvas:  #FBFAFD;
  --c-line:    #ECE6F5;
  --c-line-2:  #DFD6EE;

  /* Type */
  --f-display: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 0.9375rem;
  --t-md:   1.0625rem;
  --t-lg:   clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --t-h3:   clamp(1.25rem, 0.7vw + 1.1rem, 1.5rem);
  --t-h2:   clamp(1.75rem, 2vw + 1.1rem, 2.75rem);
  --t-h1:   clamp(2.25rem, 3.6vw + 1.1rem, 4rem);

  /* Space */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 48px; --sp-10: 64px; --sp-11: 80px;
  --sp-section: clamp(72px, 8vw, 124px);
  --shell: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* Elevation — tinted, never neutral grey */
  --sh-1: 0 1px 2px rgba(var(--c-deep-rgb), .05), 0 2px 8px rgba(var(--c-deep-rgb), .04);
  --sh-2: 0 2px 4px rgba(var(--c-deep-rgb), .05), 0 12px 28px rgba(var(--c-deep-rgb), .07);
  --sh-3: 0 4px 10px rgba(var(--c-deep-rgb), .07), 0 24px 56px rgba(var(--c-deep-rgb), .12);
  --sh-4: 0 8px 20px rgba(var(--c-deep-rgb), .10), 0 40px 90px rgba(var(--c-deep-rgb), .20);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .5s;
}

/* 2. Reset + base ---------------------------------------------------------- */

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

/* Several overlays set their own display value, which would otherwise beat the
   user-agent rule for [hidden]. Keep the attribute authoritative. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }

body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--c-ink);
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-deep); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

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

.section { padding-block: var(--sp-section); }

.section__head { max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title { font-size: var(--t-h2); margin-top: var(--sp-3); }

.section__intro {
  margin-top: var(--sp-4);
  color: var(--c-muted);
  font-size: var(--t-lg);
  line-height: 1.65;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin: 0;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), .14);
}
.eyebrow--light { color: var(--c-lilac); }
.eyebrow--light .eyebrow__dot { box-shadow: 0 0 0 4px rgba(201, 179, 234, .18); }

.icon { flex: none; }

/* 3. Primitives ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--c-primary);
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 13px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 1px 2px rgba(var(--c-deep-rgb), .16), 0 8px 20px rgba(var(--c-primary-rgb), .26); }
.btn--primary:hover { --btn-bg: var(--c-deep); box-shadow: 0 2px 4px rgba(var(--c-deep-rgb), .18), 0 14px 32px rgba(var(--c-primary-rgb), .34); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--c-deep); box-shadow: var(--sh-2); }
.btn--light:hover { --btn-bg: var(--c-veil); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-primary); --btn-bd: var(--c-line-2); }
.btn--outline:hover { --btn-bg: #fff; --btn-bd: var(--c-accent); box-shadow: var(--sh-2); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-line-2); }
.btn--ghost:hover { --btn-bg: var(--c-veil); --btn-bd: var(--c-lilac); }

.btn--ghost-light { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.26); backdrop-filter: blur(8px); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.16); --btn-bd: rgba(255,255,255,.4); }

.btn--sm { padding: 10px 16px; font-size: var(--t-sm); border-radius: var(--r-sm); }
.btn--lg { padding: 16px 28px; font-size: var(--t-md); border-radius: var(--r-lg); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-busy .btn__spinner { display: block; }
.btn.is-busy .btn__label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.iconbtn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--c-veil);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.iconbtn:hover { background: var(--c-mist); }

.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
}
.card--pad { padding: clamp(24px, 3vw, 36px); }

.pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pill--featured { background: rgba(var(--c-accent-rgb), .12); color: var(--c-primary); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.chipbtn {
  padding: 9px 15px;
  background: var(--c-veil);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.chipbtn:hover { background: #fff; border-color: var(--c-accent); color: var(--c-primary); transform: translateY(-1px); box-shadow: var(--sh-1); }

.ticklist { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.ticklist li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--t-base); color: var(--c-ink); }
.ticklist__mark {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: 1px;
  background: rgba(var(--c-accent-rgb), .12);
  color: var(--c-primary);
  border-radius: 50%;
}

/* 4. Header ---------------------------------------------------------------- */

.topbar { background: var(--c-deep); color: rgba(255,255,255,.82); font-size: var(--t-sm); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 38px; }
.topbar__text { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__phone { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; white-space: nowrap; }
.topbar__phone:hover { color: var(--c-lilac); }

.masthead { position: sticky; top: 0; z-index: 60; }

.masthead__main {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .25s var(--ease);
}
.masthead.is-stuck .masthead__main { box-shadow: var(--sh-2); }

.masthead__row { display: flex; align-items: center; gap: var(--sp-6); min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); margin-right: auto; }
.brand__avatar {
  flex: none; width: 44px; height: 44px;
  border-radius: 50%; overflow: hidden;
  background: var(--c-mist);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c-mist);
}
.brand__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.brand__text { display: grid; line-height: 1.25; }
.brand__name { font-family: var(--f-display); font-size: var(--t-md); font-weight: 700; letter-spacing: -0.015em; }
.brand__suffix { font-size: var(--t-xs); color: var(--c-muted); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav__link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--c-muted);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-ink); background: var(--c-veil); }

.masthead__actions { display: flex; align-items: center; gap: var(--sp-3); }

.burger { display: none; width: 42px; height: 42px; background: var(--c-veil); border: 1px solid var(--c-line); border-radius: var(--r-md); cursor: pointer; padding: 0; }
.burger span { display: block; width: 17px; height: 1.8px; margin: 3.4px auto; background: var(--c-ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }

.devstrip { background: #fff; border-bottom: 1px solid var(--c-line); }
.devstrip__inner { display: flex; align-items: center; gap: var(--sp-5); min-height: 48px; }
.devstrip__label {
  flex: none;
  font-family: var(--f-display); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted);
}
.devstrip__scroll {
  display: flex; align-items: center; gap: var(--sp-1);
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.devstrip__scroll::-webkit-scrollbar { display: none; }
.devstrip__item, .devstrip__more {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border: 0; background: transparent;
  border-radius: var(--r-sm);
  font-size: var(--t-base); font-weight: 500; color: var(--c-muted);
  white-space: nowrap; cursor: pointer; scroll-snap-align: start;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.devstrip__item:hover, .devstrip__more:hover { color: var(--c-primary); background: var(--c-veil); }
.devstrip__more { font-weight: 600; color: var(--c-primary); }
.devstrip__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.devstrip__more .icon { transition: transform .22s var(--ease); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-3);
  animation: megaIn .22s var(--ease);
}
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }

.mega__inner {
  display: grid;
  grid-template-columns: 1fr 1fr .8fr;
  gap: var(--sp-9);
  padding-block: var(--sp-8);
}
.mega__title {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--t-sm); letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted);
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}
.mega__title span {
  padding: 2px 7px; background: var(--c-veil); border-radius: var(--r-pill);
  font-size: 10px; color: var(--c-primary);
}
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--sp-4); }
.mega__list a {
  display: flex; align-items: baseline; gap: var(--sp-2);
  padding: 7px 10px; border-radius: var(--r-sm);
  font-size: var(--t-base); color: var(--c-ink);
  transition: background-color .14s var(--ease), color .14s var(--ease);
}
.mega__list a:hover { background: var(--c-veil); color: var(--c-primary); }
.mega__list em {
  font-style: normal; font-size: 10px; font-weight: 700;
  color: var(--c-lilac); font-variant-numeric: tabular-nums;
}
.mega__col--cta {
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--c-veil), #fff);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.mega__kicker { font-family: var(--f-display); font-weight: 700; font-size: var(--t-md); }
.mega__text { margin: var(--sp-2) 0 var(--sp-5); font-size: var(--t-base); color: var(--c-muted); }

.mobilenav {
  position: fixed; inset: 0 0 0 auto; z-index: 90;
  width: min(360px, 86vw);
  padding: var(--sp-6);
  background: #fff;
  box-shadow: var(--sh-4);
  overflow-y: auto;
  animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } }
.mobilenav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.mobilenav__title { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; }
.mobilenav__link {
  display: block; padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--t-md); font-weight: 500;
}
.mobilenav__link:hover { color: var(--c-primary); }
.mobilenav__cta { margin-top: var(--sp-6); }

.drawer-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(var(--c-deep-rgb), .42);
  backdrop-filter: blur(3px);
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }

/* 5. Hero ------------------------------------------------------------------ */

/*
 * The hero reads as an architect's elevation rather than a gradient: a drawn
 * skyline on the baseline, drafting rules behind it, one light source, and a
 * grain pass so the large flat areas do not band.
 */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px) 0;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(118% 86% at 80% 4%,  rgba(146, 97, 214, .50), transparent 56%),
    radial-gradient(90% 80% at 6% 104%,  rgba(42, 16, 78, .92),   transparent 60%),
    linear-gradient(168deg, #2A1148 0%, #371A58 26%, var(--c-deep) 52%, #4E2680 78%, var(--c-primary) 100%);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

/* One soft light source, behind the portrait. */
.hero__glow {
  position: absolute; top: -22%; right: -8%;
  width: min(780px, 64vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(178,135,243,.42), rgba(var(--c-accent-rgb), .16) 44%, transparent 70%);
}

/* Drafting rules — vertical only, so they read as a section drawing. */
.hero__rules {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.07) 0 1px,
    transparent 1px 124px
  );
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 58%, transparent 94%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 58%, transparent 94%);
}

/* The skyline sits on the hero's baseline, fading upward into the gradient. */
.hero__sky {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(280px, 36vw, 480px);
  mask-image: linear-gradient(to top, #000 30%, rgba(0,0,0,.62) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 30%, rgba(0,0,0,.62) 70%, transparent 100%);
}
.sky { display: block; width: 100%; height: 100%; }
.sky__far {
  fill: none;
  stroke: rgba(205,182,240,.17);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.sky__forms {
  fill: rgba(255,255,255,.07);
  stroke: rgba(212,191,245,.42);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.sky__floors {
  fill: none;
  stroke: rgba(212,191,245,.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.sky__base {
  stroke: rgba(212,191,245,.46);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Keeps the headline off the busiest part of the drawing. */
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(102deg, rgba(26,10,48,.62) 0%, rgba(26,10,48,.30) 32%, transparent 60%);
}

/* Fine noise: kills gradient banding and takes the plastic off the flat areas. */
.hero__grain {
  position: absolute; inset: 0;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.hero__title { font-size: var(--t-h1); color: #fff; margin-top: var(--sp-5); max-width: 15ch; }
.hero__intro {
  margin-top: var(--sp-5);
  max-width: 54ch;
  font-size: var(--t-lg);
  line-height: 1.68;
  color: rgba(255,255,255,.76);
  text-wrap: pretty;
}

.toggle {
  display: inline-flex;
  margin-top: var(--sp-7);
  padding: 5px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.toggle__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-size: var(--t-base); font-weight: 600;
  color: rgba(255,255,255,.72);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.toggle__btn em {
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14);
  font-variant-numeric: tabular-nums;
}
.toggle__btn:hover { color: #fff; }
.toggle__btn.is-active { background: #fff; color: var(--c-deep); }
.toggle__btn.is-active em { background: rgba(var(--c-primary-rgb), .12); color: var(--c-primary); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-6);
  font-size: var(--t-sm);
  color: rgba(255,255,255,.6);
}

/* Portrait */
.hero__figure { position: relative; display: grid; place-items: center; }

.portrait { position: relative; width: min(100%, 440px); }

.portrait__frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #241038;
  box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 32px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.1);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(var(--c-deep-rgb), .92) 0%, rgba(var(--c-deep-rgb), .18) 38%, transparent 62%),
    linear-gradient(120deg, rgba(var(--c-primary-rgb), .26), transparent 58%);
}

.portrait__plate {
  position: absolute; left: var(--sp-5); right: var(--sp-5); bottom: var(--sp-5);
  display: grid; gap: 2px;
  padding: 14px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.portrait__plate-name { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; color: #fff; letter-spacing: -0.015em; }
.portrait__plate-role { font-size: var(--t-sm); color: rgba(255,255,255,.72); }

.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 15px;
  background: #fff;
  color: var(--c-ink);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  font-size: var(--t-sm);
  white-space: nowrap;
}
.chip .icon { color: var(--c-primary); }
.chip strong { font-family: var(--f-display); font-weight: 700; }
.chip--tl { top: 9%; left: -22px; animation: float 6s ease-in-out infinite; }
.chip--br { bottom: 22%; right: -22px; animation: float 6s ease-in-out infinite 1.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Counter bar */
.statbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-bottom: 0;
  overflow: hidden;
}
.statbar__item {
  padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2vw, 28px);
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
}
.statbar__value {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.statbar__label { margin-top: var(--sp-3); font-size: var(--t-base); font-weight: 600; color: #fff; }
.statbar__detail { margin-top: 2px; font-size: var(--t-sm); color: rgba(255,255,255,.58); }

/* 6. Marquee --------------------------------------------------------------- */

.marquee {
  position: relative;
  padding-block: var(--sp-6);
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.marquee__track { display: flex; width: max-content; animation: marquee 58s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  padding-inline: var(--sp-6);
  font-family: var(--f-display);
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-muted);
  opacity: .62;
  transition: opacity .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.marquee__item:hover { opacity: 1; color: var(--c-primary); }
.marquee__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--c-mist); }
.marquee__fade { position: absolute; top: 0; bottom: 0; width: 96px; z-index: 2; pointer-events: none; }
.marquee__fade--l { left: 0; background: linear-gradient(to right, #fff, transparent); }
.marquee__fade--r { right: 0; background: linear-gradient(to left, #fff, transparent); }

/* 7. Snapshot -------------------------------------------------------------- */

.snapshot__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.legend { display: flex; gap: var(--sp-5); margin-top: var(--sp-6); }
.legend__item { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--t-base); color: var(--c-muted); }
.legend__swatch { width: 11px; height: 11px; border-radius: 3px; }
.legend__swatch--dubai { background: var(--c-primary); }
.legend__swatch--ad { background: var(--c-lilac); }

.snapshot__head .btn { margin-top: var(--sp-7); }

.bargroup { padding-block: var(--sp-5); border-bottom: 1px solid var(--c-line); }
.bargroup:first-child { padding-top: 0; }
.bargroup:last-of-type { border-bottom: 0; padding-bottom: var(--sp-3); }
.bargroup__label { font-family: var(--f-display); font-size: var(--t-base); font-weight: 600; margin-bottom: var(--sp-4); }

.bar { display: grid; grid-template-columns: 76px 1fr 48px; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-3); }
.bar:last-child { margin-bottom: 0; }
.bar__city { font-size: var(--t-sm); color: var(--c-muted); }
.bar__track { height: 9px; background: var(--c-veil); border-radius: var(--r-pill); overflow: hidden; }
.bar__fill {
  display: block; height: 100%; width: 0;
  border-radius: var(--r-pill);
  transition: width 1.1s var(--ease);
}
.bar__fill--dubai { background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); }
.bar__fill--ad { background: linear-gradient(90deg, var(--c-lilac), #D9C8F0); }
.bar__value {
  font-family: var(--f-display); font-size: var(--t-base); font-weight: 700;
  text-align: right; font-variant-numeric: tabular-nums;
}

.chart__note {
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--t-sm); line-height: 1.6; color: var(--c-muted);
}

/* 8. Wall ------------------------------------------------------------------ */

.wall { background: #fff; }
.wall .section__head { margin-bottom: var(--sp-10); }

.wallblock { margin-bottom: var(--sp-11); scroll-margin-top: 150px; }
.wallblock:last-child { margin-bottom: 0; }

.wallblock__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--c-line);
}
.wallblock__title { display: flex; align-items: baseline; gap: var(--sp-4); font-size: var(--t-h3); }
.wallblock__count {
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 500;
  color: var(--c-primary);
  padding: 4px 11px; background: var(--c-veil); border-radius: var(--r-pill);
}
.wallblock__hint { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--c-muted); white-space: nowrap; }

.wallgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: var(--sp-5);
}

.devcard {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--sp-6);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  cursor: pointer;
  overflow: hidden;
  scroll-margin-top: 170px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.devcard::before {
  content: "";
  position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.devcard:hover, .devcard:focus-visible {
  transform: translateY(-3px);
  border-color: var(--c-line-2);
  box-shadow: var(--sh-3);
}
.devcard:hover::before, .devcard:focus-visible::before { transform: scaleX(1); }

.devcard__rank {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--f-display);
  font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: var(--c-mist);
  font-variant-numeric: tabular-nums;
  transition: color .22s var(--ease);
  pointer-events: none;
}
.devcard:hover .devcard__rank { color: var(--c-lilac); }

.devcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.devcard__logo {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: linear-gradient(145deg, var(--c-veil), #fff);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.devcard__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.devcard__mono {
  font-family: var(--f-display); font-size: var(--t-base); font-weight: 700;
  letter-spacing: -0.02em; color: var(--c-primary);
}

.devcard__name { font-size: var(--t-lg); position: relative; }
.devcard__tag { margin-top: 5px; font-size: var(--t-sm); color: var(--c-muted); }

.devcard__projects { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-5); }
.devcard__projects li {
  padding: 4px 10px;
  background: var(--c-veil);
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  color: var(--c-muted);
}
.devcard__more { background: rgba(var(--c-accent-rgb), .1) !important; color: var(--c-primary) !important; font-weight: 600; }

.devcard__foot {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: auto; padding-top: var(--sp-5);
}
.devcard__count { font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-lilac); }
.devcard__foot .devcard__go { margin-left: auto; }
.devcard__go {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--c-veil); color: var(--c-primary);
  border-radius: 50%;
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.devcard:hover .devcard__go { background: var(--c-primary); color: #fff; transform: translateX(3px); }

/* 9. Districts / Plans / Process / About ----------------------------------- */

.districts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-top: var(--sp-9); }
.districts__head { padding-bottom: var(--sp-5); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--c-line); }
.districts__title { font-size: var(--t-h3); }
.districts__note { margin-top: 4px; font-size: var(--t-sm); color: var(--c-muted); }

.plans { background: #fff; }
.plans__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.plans__visual { display: grid; place-items: center; }

.donut { position: relative; width: min(100%, 320px); }
.donut svg { width: 100%; height: auto; transform: rotate(-90deg); }
.donut__rail { fill: none; stroke: var(--c-veil); stroke-width: 22; }
.donut__seg {
  fill: none; stroke-width: 22; stroke-linecap: butt;
  transition: stroke-dasharray 1.2s var(--ease);
}
.donut__seg--1 { stroke: var(--c-primary); }
.donut__seg--2 { stroke: var(--c-accent); }
.donut__seg--3 { stroke: var(--c-lilac); }
.donut__seg--4 { stroke: #DFD0F2; }

.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__big {
  display: block;
  font-family: var(--f-display); font-size: 2.5rem; font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.donut__cap { display: block; margin-top: 6px; font-size: var(--t-sm); color: var(--c-muted); }

.planlist { margin-top: var(--sp-7); border-top: 1px solid var(--c-line); }
.planlist__row {
  display: grid;
  grid-template-columns: 14px minmax(96px, auto) 1fr auto;
  align-items: center; gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}
.planlist__dot { width: 10px; height: 10px; border-radius: 3px; }
.planlist__dot--1 { background: var(--c-primary); }
.planlist__dot--2 { background: var(--c-accent); }
.planlist__dot--3 { background: var(--c-lilac); }
.planlist__dot--4 { background: #DFD0F2; }
.planlist__name { font-family: var(--f-display); font-weight: 600; font-size: var(--t-base); }
.planlist__note { font-size: var(--t-sm); color: var(--c-muted); }
.planlist__share { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.plans .btn { margin-top: var(--sp-7); }

.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.steps__rail { position: absolute; top: 19px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, var(--c-mist), var(--c-lilac), var(--c-mist)); }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin-bottom: var(--sp-5);
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: 50%;
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 700;
  color: var(--c-primary);
  box-shadow: var(--sh-1);
  font-variant-numeric: tabular-nums;
}
.step__title { font-size: var(--t-md); margin-bottom: var(--sp-2); }
.step__text { font-size: var(--t-base); color: var(--c-muted); line-height: 1.62; }
.process__cta { display: flex; justify-content: center; margin-top: var(--sp-10); }

.about { background: #fff; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about__figure { position: relative; }
.about__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-mist);
  box-shadow: var(--sh-3);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--c-deep-rgb), .3), transparent 45%);
}
.about__stamp {
  position: absolute; right: -18px; bottom: 32px;
  display: grid; gap: 2px;
  padding: 16px 20px;
  background: var(--c-deep); color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.about__stamp-num { font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.about__stamp-txt { font-size: var(--t-xs); line-height: 1.4; color: rgba(255,255,255,.74); }
.about__body { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); color: var(--c-muted); font-size: var(--t-md); line-height: 1.72; }
.about__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }

/* 10. Testimonials / FAQ --------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-9); }
.quote {
  position: relative;
  display: flex; flex-direction: column;
  margin: 0; padding: var(--sp-7);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.quote__mark {
  font-family: var(--f-display); font-size: 3.4rem; line-height: .7;
  color: var(--c-mist); margin-bottom: var(--sp-3);
}
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { font-size: var(--t-base); line-height: 1.68; color: var(--c-ink); }
.quote figcaption { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); }
.quote__avatar {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--c-veil); color: var(--c-primary);
  border-radius: 50%;
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 700;
}
.quote__who { display: grid; line-height: 1.35; }
.quote__who strong { font-size: var(--t-base); font-weight: 600; }
.quote__who em { font-style: normal; font-size: var(--t-sm); color: var(--c-muted); }

.faq { background: #fff; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__head .btn { margin-top: var(--sp-7); }

.accordion { border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  width: 100%; padding: var(--sp-5) 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--f-display); font-size: var(--t-md); font-weight: 600;
  color: var(--c-ink);
  transition: color .16s var(--ease);
}
.accordion__trigger:hover { color: var(--c-primary); }
.accordion__icon { position: relative; flex: none; width: 18px; height: 18px; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 1.8px; background: var(--c-primary); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__item[data-open] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.accordion__panel { padding-bottom: var(--sp-5); }
.accordion__panel p { max-width: 62ch; font-size: var(--t-base); line-height: 1.7; color: var(--c-muted); }

/* 11. CTA band / Footer ---------------------------------------------------- */

.ctaband { padding-bottom: var(--sp-section); }
.ctaband__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; gap: var(--sp-9);
  padding: clamp(36px, 5vw, 64px);
  background: linear-gradient(140deg, var(--c-deep), var(--c-primary) 72%, var(--c-accent));
  border-radius: clamp(24px, 3vw, 36px);
  color: #fff;
  box-shadow: var(--sh-4);
  overflow: hidden;
}
.ctaband__orb {
  position: absolute; top: -140px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.17), transparent 68%);
  pointer-events: none;
}
.ctaband__title { position: relative; font-size: var(--t-h2); color: #fff; max-width: 18ch; }
.ctaband__text { position: relative; margin-top: var(--sp-4); max-width: 52ch; color: rgba(255,255,255,.76); font-size: var(--t-md); }
.ctaband__action { position: relative; display: grid; gap: var(--sp-3); justify-items: center; }
.ctaband__micro { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: rgba(255,255,255,.6); }

.footer { background: var(--c-ink); color: rgba(255,255,255,.66); padding-block: var(--sp-11) var(--sp-7); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.2fr; gap: var(--sp-9); }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__suffix { color: rgba(255,255,255,.52); }
.brand--footer .brand__avatar { box-shadow: 0 0 0 2px var(--c-ink), 0 0 0 3px rgba(255,255,255,.18); }
.footer__blurb { margin-top: var(--sp-5); font-size: var(--t-base); line-height: 1.68; max-width: 36ch; }
.footer__title {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; margin-bottom: var(--sp-5);
}
.footer__links { display: grid; gap: var(--sp-3); }
.footer__links a, .footer__links span { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--t-base); transition: color .16s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__links .icon { color: var(--c-lilac); }
.footer__note { font-size: var(--t-base); line-height: 1.6; margin-bottom: var(--sp-5); }

.compliance {
  margin-top: var(--sp-10); padding-top: var(--sp-7);
  border-top: 1px solid rgba(255,255,255,.1);
}
.compliance__text { font-size: var(--t-sm); line-height: 1.68; color: rgba(255,255,255,.5); max-width: 92ch; }
.compliance__ids { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.compliance__ids li {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 5px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  font-size: var(--t-sm); color: rgba(255,255,255,.76);
}
.compliance__ids span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-lilac); }

.footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
  margin-top: var(--sp-7); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--t-sm); color: rgba(255,255,255,.42);
}
.footer__meta { max-width: 68ch; }
.footer__meta a { color: var(--c-lilac); margin-left: var(--sp-2); }
.footer__meta a:hover { color: #fff; }

.mobilecta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 12px var(--gutter);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -4px 24px rgba(var(--c-deep-rgb), .1);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.mobilecta.is-visible { transform: translateY(0); }
.mobilecta__text { display: grid; line-height: 1.3; }
.mobilecta__text strong { font-family: var(--f-display); font-size: var(--t-base); }
.mobilecta__text span { font-size: var(--t-xs); color: var(--c-muted); }

/* 12. Drawer / Modal ------------------------------------------------------- */

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 85;
  display: flex; flex-direction: column;
  width: min(480px, 100vw);
  background: #fff;
  box-shadow: var(--sh-4);
  animation: slideIn .32s var(--ease);
}
.drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-7) var(--sp-7) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.drawer__eyebrow {
  font-family: var(--f-display); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary);
}
.drawer__title { font-size: var(--t-h3); margin-top: var(--sp-2); }
.drawer__tag { margin-top: 4px; font-size: var(--t-base); color: var(--c-muted); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-6) var(--sp-7); }

.ptile {
  display: grid; gap: var(--sp-2);
  padding: var(--sp-5);
  margin-bottom: var(--sp-3);
  background: var(--c-canvas);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}
.ptile:hover { border-color: var(--c-accent); background: #fff; transform: translateX(2px); box-shadow: var(--sh-1); }
.ptile__name { font-family: var(--f-display); font-size: var(--t-md); font-weight: 600; }
.ptile__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ptile__meta span {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--t-xs); color: var(--c-muted);
}
.ptile__meta span b { font-weight: 600; color: var(--c-ink); margin-left: 4px; }
.ptile__ask { font-size: var(--t-sm); color: var(--c-primary); font-weight: 600; }

.drawer__foot { padding: var(--sp-6) var(--sp-7); border-top: 1px solid var(--c-line); background: var(--c-canvas); }
.drawer__foot p { margin-bottom: var(--sp-4); font-size: var(--t-sm); color: var(--c-muted); }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(var(--c-deep-rgb), .5); backdrop-filter: blur(5px); animation: fadeIn .25s var(--ease); }
.modal__panel {
  position: relative;
  display: grid; grid-template-columns: 260px 1fr;
  width: min(880px, 100%);
  max-height: min(92vh, 860px);
  background: #fff;
  border-radius: clamp(18px, 2vw, 26px);
  box-shadow: var(--sh-4);
  overflow: hidden;
  animation: modalIn .34s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }

.modal__aside {
  display: flex; flex-direction: column;
  padding: var(--sp-8) var(--sp-7);
  background: linear-gradient(170deg, var(--c-deep), var(--c-primary));
  color: #fff;
}
.modal__portrait {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.16);
}
.modal__aside-name { margin-top: var(--sp-5); font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; }
.modal__aside-role { margin-top: 2px; font-size: var(--t-sm); color: rgba(255,255,255,.66); }
.modal__aside-list { display: grid; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-8); }
.modal__aside-list li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--t-sm); color: rgba(255,255,255,.82); line-height: 1.5; }
.modal__aside-list .icon { color: var(--c-lilac); margin-top: 2px; }

.modal__main { position: relative; padding: var(--sp-8); overflow-y: auto; }
.modal__close { position: absolute; top: var(--sp-5); right: var(--sp-5); }
.modal__context {
  display: inline-flex; align-items: center;
  padding: 5px 12px; margin-bottom: var(--sp-4);
  background: var(--c-veil); color: var(--c-primary);
  border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 600;
}
.modal__title { font-size: var(--t-h3); padding-right: var(--sp-9); }
.modal__intro { margin-top: var(--sp-2); font-size: var(--t-base); color: var(--c-muted); }

.form { margin-top: var(--sp-6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: grid; align-content: start; gap: 6px; margin-bottom: var(--sp-4); }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--c-ink); }
.field label span { color: var(--c-accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  font-family: inherit; font-size: var(--t-base); color: var(--c-ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), .14);
}
.field.has-error input, .field.has-error select { border-color: #C2334D; background: #FFF7F8; }
.field__error { font-size: var(--t-xs); color: #C2334D; min-height: 0; }
.field__error:empty { display: none; }

.checkbox { display: flex; align-items: flex-start; gap: var(--sp-3); margin-top: var(--sp-2); font-size: var(--t-sm); color: var(--c-muted); cursor: pointer; }
.checkbox input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--c-primary); cursor: pointer; }

.form__privacy { margin-top: var(--sp-4); font-size: var(--t-xs); line-height: 1.6; color: var(--c-muted); }
.form button[type="submit"] { margin-top: var(--sp-5); }
.form__status { margin-top: var(--sp-3); font-size: var(--t-sm); text-align: center; }
.form__status.is-error { color: #C2334D; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.modal__done { display: grid; place-items: center; gap: var(--sp-4); padding-block: var(--sp-10); text-align: center; }
.modal__done-mark {
  display: grid; place-items: center;
  width: 68px; height: 68px;
  background: rgba(var(--c-accent-rgb), .12); color: var(--c-primary);
  border-radius: 50%;
  animation: pop .45s var(--ease);
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.modal__done h3 { font-size: var(--t-h3); }
.modal__done p { max-width: 42ch; color: var(--c-muted); font-size: var(--t-base); }

/* 13. Motion --------------------------------------------------------------- */

/* Brief highlight on whatever a header or menu link jumped to. */
.is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0); }
  22%      { box-shadow: 0 0 0 5px rgba(var(--c-accent-rgb), .28); }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* 14. Breakpoints ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .mega__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .mega__col--cta { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 940px) {
  html { scroll-padding-top: 110px; }
  .nav { display: none; }
  .burger { display: block; }
  .masthead__actions .btn { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero__title { max-width: 18ch; }
  /* Portrait leads on a phone — the brand is the person — with the headline
     still landing above the fold on a 760px-tall viewport. */
  .hero__figure { order: -1; }
  .portrait { width: min(100%, 340px); }
  .chip--tl { left: -8px; }
  .chip--br { right: -8px; }
  .statbar { grid-template-columns: 1fr 1fr; }
  .snapshot__grid, .plans__grid, .about__grid, .faq__grid { grid-template-columns: 1fr; }
  .plans__visual { order: 1; }
  .about__figure { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .steps__rail { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .ctaband__panel { grid-template-columns: 1fr; gap: var(--sp-7); }
  .ctaband__action { justify-items: start; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__aside { display: none; }
  .mobilecta { display: flex; }
}

@media (max-width: 680px) {
  .topbar__text { display: none; }
  .topbar__inner { justify-content: center; }
  .districts__grid { grid-template-columns: 1fr; }
  .wallgrid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .devcard { padding: var(--sp-5); }
  .devcard__rank { font-size: 1.9rem; top: 10px; right: 12px; }
  .devcard__logo { width: 38px; height: 38px; }
  .devcard__projects li:nth-child(n+3) { display: none; }
  /* Two cards across leaves no room for the badge; the rank still shows order. */
  .devcard__foot .pill--featured { display: none; }
  .wallblock__head { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .steps { grid-template-columns: 1fr; gap: var(--sp-6); }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel { max-height: 94vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .modal__main { padding: var(--sp-6); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .bar { grid-template-columns: 66px 1fr 42px; gap: var(--sp-3); }
  .planlist__row { grid-template-columns: 14px 1fr auto; row-gap: 2px; }
  .planlist__note { grid-column: 2 / -1; }
  .about__stamp { right: 12px; bottom: 16px; padding: 12px 16px; }
  .about__stamp-num { font-size: 1.5rem; }
}

/* The brief asks for two cards across on phones, so the wall stays scannable.
   Tighten the card rather than dropping to a single column. */
@media (max-width: 430px) {
  .devcard { padding: 14px; border-radius: var(--r-md); }
  .devcard__rank { font-size: 1.6rem; top: 8px; right: 10px; }
  .devcard__logo { width: 34px; height: 34px; border-radius: var(--r-sm); }
  .devcard__mono { font-size: var(--t-sm); }
  .devcard__top { margin-bottom: var(--sp-4); }
  .devcard__name { font-size: var(--t-base); }
  .devcard__tag { font-size: var(--t-xs); }
  .devcard__projects { margin-top: var(--sp-4); gap: 4px; }
  .devcard__projects li { padding: 3px 7px; font-size: 10.5px; }
  .devcard__foot { padding-top: var(--sp-4); }
  .devcard__count { font-size: 10px; }
  .devcard__go { width: 26px; height: 26px; }
  .statbar { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
  .wallgrid { grid-template-columns: 1fr; }
}
