/* ============================================================
   Procity Painters — public design system v3
   Editorial, premium, authoritative.
   Type system: Inter Tight (variable, optical).
   Palette: true white/black with one restrained blue accent.
   ============================================================ */

:root {
  /* ---- core surfaces (light) ---- */
  --paper:        #FFFFFF;
  --paper-2:      #F8FAFC;
  --surface:      #FFFFFF;
  --surface-2:    #F8FAFC;
  --surface-3:    #F1F5F9;
  --inverse-bg:   #000000;
  --inverse-bg-2: #0B0B0D;
  --inverse-ink:  #FFFFFF;
  --inverse-muted:#A1A1AA;

  /* ---- ink (text) ---- */
  --ink:          #000000;
  --ink-soft:     #20242B;
  --muted:        #6A6F78;
  --faint:        #9B9FA7;

  /* ---- structure ---- */
  --line:         #E5E7EB;
  --line-soft:    #F1F5F9;
  --line-strong:  #D1D5DB;

  /* ---- brand (single disciplined accent) ---- */
  --brand:        #C0492B;
  --brand-hover:  color-mix(in srgb, var(--brand) 82%, #000);
  --brand-strong: var(--brand-hover);
  --brand-soft:   #EFF6FF;
  --brand-ink:    #1D4ED8;

  /* ---- supportive editorial accents kept neutral to avoid color noise ---- */
  --gold:         #64748B;
  --forest:       #334155;
  --copper:       #475569;

  /* ---- status ---- */
  --ok:           #1D6B3C;
  --ok-soft:      #DCEAD9;
  --warn:         #9A6E08;
  --warn-soft:    #F3E6BD;
  --danger:       #B0231A;
  --danger-soft:  #F4D6D2;

  /* ---- radii / shadows ---- */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow:    0 1px 2px rgba(14,17,22,.04), 0 14px 36px -22px rgba(14,17,22,.18);
  --shadow-lg: 0 30px 70px -40px rgba(14,17,22,.40);

  /* ---- layout ---- */
  --maxw: 1240px;
  --gutter: 32px;

  /* ---- motion ---- */
  --ease: cubic-bezier(.22,.61,.36,1);

  /* ---- type ---- */
  --font-display: "Inter Tight", "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter Tight", "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --paper:        #000000;
  --paper-2:      #050505;
  --surface:      #0B0B0D;
  --surface-2:    #111113;
  --surface-3:    #18181B;
  --inverse-bg:   #000000;
  --inverse-bg-2: #0B0B0D;
  --inverse-ink:  #FFFFFF;
  --inverse-muted:#A1A1AA;

  --ink:          #FFFFFF;
  --ink-soft:     #D7DAE0;
  --muted:        #8A8F99;
  --faint:        #5E636E;

  --line:         #27272A;
  --line-soft:    #18181B;
  --line-strong:  #3F3F46;

  --brand-hover:  color-mix(in srgb, var(--brand) 78%, #fff);
  --brand-strong: var(--brand-hover);
  --brand-soft:   color-mix(in srgb, var(--brand) 18%, transparent);
  --brand-ink:    color-mix(in srgb, var(--brand) 35%, #fff);
  --gold:         #94A3B8;
  --forest:       #CBD5E1;
  --copper:       #94A3B8;

  --ok:           #4FB870;
  --ok-soft:      #0F2017;
  --warn:         #E0B448;
  --warn-soft:    #251D08;
  --danger:       #E96B61;
  --danger-soft:  #2A1010;

  --shadow:    0 1px 2px rgba(0,0,0,.45), 0 18px 50px -28px rgba(0,0,0,.75);
  --shadow-lg: 0 50px 110px -50px rgba(0,0,0,.85);
}

/* ---- base reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 420;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
::selection { background: var(--ink); color: var(--paper); }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- typography scale ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 0;
  font-feature-settings: "ss01", "cv11";
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 620; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1rem; }

.display-1 { font-size: clamp(3rem, 8.5vw, 7rem); font-weight: 640; letter-spacing: -0.04em; line-height: .98; }
.display-2 { font-size: clamp(2.4rem, 5.8vw, 4.6rem); font-weight: 620; letter-spacing: -0.035em; line-height: 1.02; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: currentColor; display: inline-block;
}
.eyebrow.is-brand { color: var(--brand); }

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 420;
  letter-spacing: -0.005em;
}
.muted { color: var(--muted); }
.kicker {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---- containers / sections ---- */
.container        { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px;       margin: 0 auto; padding: 0 var(--gutter); }
.container-wide   { max-width: 1440px;      margin: 0 auto; padding: 0 var(--gutter); }

.section       { padding: clamp(56px, 7vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }

.section-divider { border-top: 1px solid var(--line); }
.section-sand    { background: var(--paper-2); }
.section-ink     { background: var(--inverse-bg); color: var(--inverse-ink); }
.section-ink h1,.section-ink h2,.section-ink h3 { color: var(--inverse-ink); }
.section-ink .lead, .section-ink .muted { color: var(--inverse-muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 560;
  font-size: .92rem;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 75%, transparent);
}
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
[data-theme="dark"] .btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
[data-theme="dark"] .btn-primary:hover { background: var(--brand); color: #fff; }

.btn-brand {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--brand) 65%, transparent);
}
.btn-brand:hover { background: var(--brand-strong); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn-light:hover { background: var(--surface-2); border-color: var(--ink); color: var(--ink); }
.cta-band .btn-light,
.section-ink .btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24); }
.cta-band .btn-light:hover,
.section-ink .btn-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.58); color: #fff; }
.btn-dark { background: var(--inverse-bg); color: var(--inverse-ink); border-color: var(--inverse-bg); }
.btn-dark:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.btn-link {
  padding: 0; background: transparent; border: 0;
  color: var(--ink); border-bottom: 1.5px solid currentColor;
  border-radius: 0; font-weight: 560;
}
.btn-link:hover { color: var(--brand); }

.btn-lg { padding: 15px 28px; font-size: .98rem; }
.btn-sm { padding: 9px 16px; font-size: .82rem; }

/* tiny pill chip used in nav/CTAs */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 620; font-size: 1.2rem; color: var(--ink);
  letter-spacing: -0.025em;
}
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; flex: none;
}
[data-theme="dark"] .brand .mark { background: var(--paper); color: var(--ink); }
.brand .mark svg { width: 21px; height: 21px; }
.brand .logo-img { height: 36px; width: auto; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.brand small {
  display: block; font-family: var(--font-body);
  font-size: .58rem; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .92rem; font-weight: 500;
  color: var(--ink); padding: 9px 14px; border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

.nav-toggle { display: none; }

/* ---- skip link ---- */
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 10px; font-size: .88rem; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 12px; color: var(--paper); outline: 2px solid var(--brand); outline-offset: 2px; }

/* =========================================================
   Mobile navigation sheet (shadcn-style side sheet)
   Rendered OUTSIDE .site-header on purpose: the header uses
   backdrop-filter, which would otherwise become the containing
   block for position:fixed children and clip the scrim.
   ========================================================= */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
}
.sheet[hidden] { display: none; }

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .26s var(--ease);
}
.sheet__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 360px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -30px rgba(0,0,0,.45);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overscroll-behavior: contain;
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translateX(0); }

.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
  min-height: 76px;
  flex: none;
}
.brand--sheet { font-size: 1.06rem; min-width: 0; }
.brand--sheet .logo-img { height: 30px; }
.brand--sheet .mark { width: 34px; height: 34px; }

.sheet__close {
  flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.sheet__close svg { width: 17px; height: 17px; }
.sheet__close:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.sheet__close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.sheet__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.sheet__link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem; font-weight: 500;
  color: var(--ink);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.sheet__link svg { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .16s var(--ease); }
.sheet__link:hover { background: var(--surface-2); color: var(--ink); }
.sheet__link:hover svg { transform: translateX(2px); }
.sheet__link:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.sheet__link.is-active {
  background: var(--surface-2);
  color: var(--brand);
  font-weight: 600;
}
.sheet__link.is-active svg { color: var(--brand); }

.sheet__foot {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
}
.sheet__cta {
  width: 100%;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  font-size: .95rem;
}
.sheet__cta svg { width: 17px; height: 17px; }
.sheet__meta { display: flex; flex-direction: column; gap: 8px; }
.sheet__meta a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .85rem; color: var(--ink-soft);
  min-height: 28px;
  word-break: break-word;
}
.sheet__meta svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.sheet__meta a:hover { color: var(--brand); }

body.sheet-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .sheet__panel, .sheet__scrim { transition: none; }
}

/* the sheet only exists below the desktop breakpoint */
@media (min-width: 961px) {
  .sheet { display: none !important; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
}

/* ---- HERO (editorial) ---- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 7vw, 110px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.18fr .82fr;
  gap: clamp(36px, 4vw, 72px); align-items: stretch;
}
.hero-grid-centered {
  display: block;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.hero-title { display:flex; flex-direction:column; justify-content:center; min-width:0; }
.hero-title h1 { letter-spacing: -0.04em; }
.hero-title h1 .em {
  font-style: normal;
  color: var(--ink);
  background: none;
}
.hero-title h1 .ink { color: var(--ink); }
.hero-rotator {
  display: inline-block;
  color: var(--brand);
  transition: opacity .22s var(--ease), transform .22s var(--ease), filter .22s var(--ease);
}
.hero-rotator.is-changing {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}
.hero-title .lead { margin: 28px auto 36px; max-width: 62ch; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }

.hero-foot {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-foot .stat .n {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 620; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1;
}
.hero-foot .stat .l {
  display: block; margin-top: 8px;
  font-size: .78rem; color: var(--muted); line-height: 1.4;
}

/* hero right: editorial showcase tile */
.hero-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
  box-shadow: var(--shadow-lg);
}
.hero-stage .stage-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(140% 80% at 20% 0%, rgba(177,70,39,.55) 0%, transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(160,119,48,.35) 0%, transparent 50%),
    linear-gradient(160deg, #1A1F28 0%, #0B0E12 100%);
}
.hero-stage .stage-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(120% 80% at 30% 30%, #000 30%, transparent 75%);
}
.hero-stage .stage-img {
  position: absolute; inset: 0; object-fit: cover; opacity: .55;
  mix-blend-mode: luminosity;
}
.hero-stage .stage-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55) 95%);
}
.hero-stage .stage-top {
  position: absolute; top: 22px; left: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: center; z-index: 2;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
  font-weight: 500;
}
.hero-stage .stage-top .badge {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 11px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; background: rgba(255,255,255,.07); backdrop-filter: blur(6px);
}
.hero-stage .stage-top .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #6FAE8C; box-shadow: 0 0 0 4px rgba(111,174,140,.18); }

.hero-stage .stage-body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 28px 28px 26px;
  display: grid; gap: 18px;
}
.hero-stage .stage-body h3 {
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  letter-spacing: -0.02em; font-weight: 580;
}
.hero-stage .stage-body p {
  color: rgba(255,255,255,.78);
  margin: 0; font-size: .94rem; max-width: 32ch;
}

.hero-stage .stage-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stage .stage-tags span {
  font-size: .74rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
}

/* floating credibility card */
.hero-card {
  position: absolute; bottom: -28px; left: -36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  display: flex; gap: 14px; align-items: center;
  z-index: 3; max-width: 280px;
}
.hero-card .avatars { display: flex; }
.hero-card .avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--surface);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
}
.hero-card .avatars span + span { margin-left: -10px; }
.hero-card b { display: block; font-size: .94rem; color: var(--ink); }
.hero-card span.l { font-size: .78rem; color: var(--muted); }

/* swatch column on hero */
.hero-swatches {
  position: absolute; right: -16px; top: 20%;
  display: flex; flex-direction: column; border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow);
  z-index: 1;
}
.hero-swatches span { width: 14px; height: 30px; display: block; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .hero-foot { grid-template-columns: repeat(2, 1fr); }
  .hero-stage { aspect-ratio: 16/12; min-height: 340px; }
  .hero-card { left: 16px; bottom: 16px; }
  .hero-swatches { display: none; }
}

/* ---- trust strip ---- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex; gap: 14px; align-items: center;
}
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.trust-item b { display: block; font-size: .96rem; color: var(--ink); font-weight: 600; }
.trust-item span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 880px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
}

/* ---- section header ---- */
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p  { color: var(--muted); font-size: 1.08rem; margin: 0; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head-flex {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}
.sec-head-flex .sec-head { margin-bottom: 0; max-width: 640px; }

/* ---- grid utilities ---- */
.grid       { display: grid; gap: 22px; }
.grid-2     { grid-template-columns: repeat(2, 1fr); }
.grid-3     { grid-template-columns: repeat(3, 1fr); }
.grid-4     { grid-template-columns: repeat(4, 1fr); }
.grid-auto  { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---- services list (premium rows) ---- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.svc-cell {
  position: relative;
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 18px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.svc-cell::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.svc-cell:hover { background: var(--paper-2); }
.svc-cell:hover::after { transform: scaleX(1); }
.svc-cell .num {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .12em; color: var(--muted);
  text-transform: uppercase;
}
.svc-cell .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
}
.svc-cell .ic svg { width: 22px; height: 22px; }
.svc-cell h3 { font-size: 1.32rem; }
.svc-cell p { color: var(--muted); font-size: .96rem; margin: 0; flex: 1; }
.svc-cell .more {
  font-size: .86rem; font-weight: 580; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; align-self: flex-start;
}
.svc-cell .more svg { width: 14px; height: 14px; transition: transform .25s; }
.svc-cell:hover .more { color: var(--brand); }
.svc-cell:hover .more svg { transform: translateX(3px); }

/* Service list rows (services page) */
.svc-row {
  display: grid; grid-template-columns: 90px 1fr auto;
  gap: 28px; align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease);
}
.svc-row:hover { padding-left: 12px; padding-right: 0; }
.svc-row:hover .svc-row-arrow { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateX(6px); }
.svc-row .svc-row-num { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .12em; }
.svc-row h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 6px; }
.svc-row p { color: var(--muted); margin: 0; max-width: 60ch; font-size: .98rem; }
.svc-row-arrow {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: var(--ink);
  transition: all .25s var(--ease);
}
.svc-row-arrow svg { width: 20px; height: 20px; }

/* ---- finishes (premium swatch cards) ---- */
.finishes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.finish-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 22px 22px 76px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.finish-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.finish-card .sw {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 4px 14px -8px rgba(0,0,0,.4);
}
.finish-card .sw::after { content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px rgba(255,255,255,.22); }
.sw-venetian { background: linear-gradient(135deg,#f5f1ea 0%,#cfc4b6 42%,#fff8ef 58%,#a89d91 100%); }
.sw-venetian::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 60% at 22% 16%,rgba(255,255,255,.82),transparent 45%), linear-gradient(70deg,transparent 0 42%,rgba(255,255,255,.6) 43% 47%,transparent 48%); }
.sw-stucco { background: #b9a48c; }
.sw-stucco::before { content:""; position:absolute; inset:0; opacity:.55; background-image: radial-gradient(circle at 20% 30%,rgba(255,255,255,.75) 0 1px,transparent 1.7px), radial-gradient(circle at 72% 64%,rgba(0,0,0,.28) 0 1px,transparent 1.8px), radial-gradient(circle at 45% 80%,rgba(255,255,255,.4) 0 1px,transparent 2px); background-size: 10px 10px, 13px 13px, 16px 16px; }
.sw-scradding { background: repeating-linear-gradient(110deg,#8d8f87 0 4px,#b8b39e 4px 8px,#d7cfb8 8px 12px); }
.sw-marble { background: #eee9e3; }
.sw-marble::before { content:""; position:absolute; inset:0; background: linear-gradient(120deg,transparent 0 34%,rgba(92,86,80,.35) 35% 37%,transparent 38% 55%,rgba(180,170,160,.45) 56% 59%,transparent 60%), radial-gradient(80% 90% at 20% 20%,#fff,transparent 60%); }
.sw-concrete { background: linear-gradient(135deg,#d5d5d2,#8f918f); }
.sw-concrete::before { content:""; position:absolute; inset:0; opacity:.45; background-image: radial-gradient(circle,rgba(0,0,0,.25) 0 1px,transparent 1.5px); background-size: 7px 7px; }
.sw-metallic { background: linear-gradient(120deg,#6b5b4a 0%,#d4c1a4 28%,#fff1c7 46%,#8c765c 70%,#f5e2b7 100%); }
.sw-travertine { background: #c9ad83; }
.sw-travertine::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg,rgba(88,57,33,.22) 0 2px,transparent 3px 12px), radial-gradient(ellipse at 25% 35%,rgba(86,58,37,.35) 0 2px,transparent 6px), radial-gradient(ellipse at 70% 65%,rgba(255,255,255,.28) 0 3px,transparent 7px); }
.sw-sand { background:#cdb98e; }
.sw-sand::before { content:""; position:absolute; inset:0; opacity:.7; background-image: radial-gradient(circle,rgba(255,255,255,.6) 0 .8px,transparent 1.3px), radial-gradient(circle,rgba(86,68,46,.35) 0 .8px,transparent 1.4px); background-size: 5px 5px, 7px 7px; }
.sw-gloss { background: linear-gradient(135deg,#f7f9fb 0%,#b7c1c8 45%,#ffffff 50%,#8a959e 100%); }
.sw-gloss::before { content:""; position:absolute; left:8px; top:7px; width:22px; height:6px; border-radius:99px; background:rgba(255,255,255,.85); transform:rotate(-28deg); }
.finish-card b { display: block; font-size: 1.02rem; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
.finish-card span { display: block; font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* ---- projects (editorial cards) ---- */
.proj-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.proj-card .ph {
  aspect-ratio: 5/4; overflow: hidden; background: var(--surface-2);
  position: relative;
}
.proj-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj-card:hover .ph img { transform: scale(1.05); }
.proj-card .ph .ph-pattern {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(177,70,39,.18) 0%, transparent 60%),
    linear-gradient(155deg, var(--surface-3) 0%, var(--paper-2) 60%, var(--surface-2) 100%);
  color: var(--ink-soft);
}
.proj-card .ph .ph-pattern svg { width: 64px; height: 64px; opacity: .35; }
.proj-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.proj-card .cat {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; color: var(--brand); text-transform: uppercase;
}
.proj-card h3 { font-size: 1.2rem; }
.proj-card .meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted);
}
.proj-card .meta svg { width: 13px; height: 13px; }

/* feature project (large) */
.proj-feature {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 3vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
}
.proj-feature .ph { aspect-ratio: 4/3; }
.proj-feature .body { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.proj-feature h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.proj-feature .meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: .86rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px;
}
@media (max-width: 760px) {
  .proj-feature { grid-template-columns: 1fr; }
}

/* ---- process steps (editorial timeline) ---- */
.process {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.process .step {
  position: relative;
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process .step:nth-child(3n) { border-right: 0; }
.process .step:nth-last-child(-n+3) { border-bottom: 0; }
.process .step .n {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 640;
  color: var(--ink); opacity: .15;
  display: block; line-height: 1; margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.process .step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process .step p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---- why / features grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature-grid > div {
  padding: 28px 32px 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 20px; align-items: flex-start;
}
.feature-grid > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 32px; }
.feature-grid > div:nth-child(even) { padding-left: 32px; }
.feature-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.feature-grid .ic {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--brand); display: grid; place-items: center; flex: none;
}
.feature-grid .ic svg { width: 21px; height: 21px; }
.feature-grid h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature-grid p { color: var(--muted); margin: 0; font-size: .94rem; }

/* spaces tag list */
.spaces { display: flex; flex-wrap: wrap; gap: 10px; }
.space-tag {
  padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .9rem; color: var(--ink-soft); background: var(--surface);
  transition: color .2s, border-color .2s, background .2s;
}
.space-tag:hover, a.space-tag:hover { border-color: var(--ink); color: var(--ink); }
.space-tag.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- team ---- */
.team-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.team-grid + * { margin-top: 0; }
.sec-head:has(+ .team-grid) { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head:has(+ .team-grid) .eyebrow { justify-content: center; }
.sec-head:has(+ .team-grid) h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.sec-head:has(+ .team-grid) h2::first-letter { color: inherit; }
.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 28px 28px;
  box-shadow: 0 16px 42px -34px rgba(0,0,0,.38);
  position: relative;
}
.team-card:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 8px;
  border-radius: 12px 12px 0 0;
  background: var(--brand);
}
.team-card .ph {
  position: relative;
  width: 122px; height: 122px; border-radius: 50%;
  overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line); margin: 0 auto 22px;
  display: grid; place-items: center;
}
.team-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.team-card .ph .ph-init {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600; color: var(--ink); letter-spacing: -0.03em;
}
.team-card h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--brand); }
.team-card .role { font-size: .88rem; color: var(--ink); font-weight: 650; font-style: italic; letter-spacing: -0.005em; }
.team-card p { font-size: .86rem; color: var(--muted); margin: 16px auto 0; line-height: 1.65; max-width: 28ch; }

@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- testimonials ---- */
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; height: 100%;
  position: relative;
}
.quote-card::before {
  content: "”"; position: absolute; top: -14px; right: 22px;
  font-family: var(--font-display); font-size: 5.5rem; line-height: 1; font-weight: 600;
  color: var(--brand); opacity: .35;
}
.quote-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: .98rem; }
.quote-card blockquote {
  font-size: 1.1rem; line-height: 1.55; font-weight: 460;
  margin: 0 0 24px; color: var(--ink); flex: 1;
  letter-spacing: -0.005em;
}
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .who .av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-weight: 600; font-size: .9rem;
  overflow: hidden; flex: none;
}
.quote-card .who .av img { width: 100%; height: 100%; object-fit: cover; }
.quote-card .who b { display: block; font-size: .94rem; color: var(--ink); font-weight: 600; }
.quote-card .who span { font-size: .82rem; color: var(--muted); }

/* ---- blog ---- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .ph {
  display: block;
  position: relative; aspect-ratio: 16/10;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  margin-bottom: 20px;
}
.post-feature .ph { display: block; }
.proj-card .ph { display: block; }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .ph img { transform: scale(1.05); }
.post-card .ph .ph-pattern {
  position: absolute; inset: 0;
  background:
    linear-gradient(140deg, var(--paper-2) 0%, var(--surface-2) 60%, var(--surface-3) 100%);
}
.post-card .ph .ph-mono {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 620;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--ink); opacity: .12; letter-spacing: -0.04em;
}
.post-card .meta {
  font-family: var(--font-mono);
  font-size: .72rem; color: var(--muted);
  display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
  letter-spacing: .05em; text-transform: uppercase;
}
.post-card .meta .cat { color: var(--brand); font-weight: 600; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 8px; line-height: 1.25; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { font-size: .94rem; color: var(--muted); margin: 0; }

/* feature blog (large) */
.post-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 3vw, 48px);
  align-items: center;
}
.post-feature .ph {
  display: block;
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.post-feature .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-feature:hover .ph img { transform: scale(1.04); }
.post-feature .ph .ph-pattern {
  position: absolute; inset: 0;
  background: linear-gradient(140deg, var(--paper-2) 0%, var(--surface-2) 60%, var(--surface-3) 100%);
}
.post-feature .ph .ph-mono {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 620;
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--ink); opacity: .14; letter-spacing: -0.04em;
}
.post-feature h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); margin-bottom: 14px; }
@media (max-width: 760px) { .post-feature { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: 0; border: 0;
  padding: 26px 0; cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 540; letter-spacing: -0.015em;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-q .pm {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; position: relative;
  transition: background .25s, border-color .25s, transform .25s;
}
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
}
.faq-q .pm::before { width: 12px; height: 1.5px; }
.faq-q .pm::after  { width: 1.5px; height: 12px; transition: transform .25s; }
.faq-item.open .pm { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq-item.open .pm::before, .faq-item.open .pm::after { background: var(--paper); }
.faq-item.open .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 0 26px; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; max-width: 72ch; }

/* ---- CTA band ---- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 46px) clamp(22px, 4vw, 42px);
}
[data-theme="dark"] .cta-band {
  background: var(--inverse-bg); border: 1px solid var(--line);
}
.cta-band h2 { color: #fff; letter-spacing: -0.03em; max-width: 22ch; font-size: clamp(1.55rem, 3vw, 2.3rem); }
[data-theme="dark"] .cta-band h2 { color: var(--inverse-ink); }
.cta-band p { color: rgba(255,255,255,.72); font-size: .98rem; max-width: 54ch; }
[data-theme="dark"] .cta-band p { color: var(--inverse-muted); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.cta-band .grid-bg {
  position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(80% 80% at 100% 0%, #000 0%, transparent 70%);
}
.cta-band .accent {
  position: absolute; right: -80px; top: -100px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 62%, transparent) 0%, transparent 70%);
  filter: blur(16px);
}
.cta-band-inner { position: relative; max-width: 680px; }

/* ---- footer ---- */
.site-footer {
  background: var(--paper); color: var(--ink);
  padding: clamp(64px, 7vw, 100px) 0 38px;
  margin-top: clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--line);
}
[data-theme="dark"] .site-footer { background: #000; color: var(--ink); border-top: 1px solid var(--line); }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
[data-theme="dark"] .site-footer h4 { color: var(--ink); }
.site-footer a { color: var(--ink); }
[data-theme="dark"] .site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--brand); }
[data-theme="dark"] .site-footer a:hover { color: var(--ink); }
.foot-top {
  display: grid; grid-template-columns: 1.5fr 2.5fr;
  gap: 48px; padding-bottom: 8px;
}
.foot-brand .brand { color: var(--ink); }
[data-theme="dark"] .foot-brand .brand { color: var(--ink); }
.foot-brand .brand .mark { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .foot-brand .brand .mark { background: var(--surface-2); color: var(--ink); }
.foot-brand p { color: var(--ink-soft); max-width: 38ch; margin-top: 18px; font-size: .96rem; }
.foot-cols li { color: var(--ink-soft); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-cols li a { font-size: .94rem; }

.foot-cta {
  margin-top: 30px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.foot-cta .btn-light, .foot-cta .btn-brand { font-size: .88rem; padding: 11px 18px; }
.site-footer .btn-light { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.site-footer .btn-light:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.site-footer .btn-brand,.site-footer .btn-brand:hover { color:#fff; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  flex-wrap: wrap; padding-top: 26px; margin-top: 44px;
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-soft);
}
.foot-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom .links a { font-size: .82rem; color: var(--ink); }

@media (max-width: 880px) {
  .foot-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 4px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}

/* mobile: centre the whole footer */
@media (max-width: 720px) {
  .site-footer { text-align: center; }
  .foot-brand { display: flex; flex-direction: column; align-items: center; }
  .foot-brand .brand { justify-content: center; }
  .foot-brand p { max-width: 42ch; margin-left: auto; margin-right: auto; }
  .foot-cta { justify-content: center; width: 100%; }
  .foot-cta .btn { flex: 1 1 auto; justify-content: center; min-width: 150px; }
  .foot-cols ul { align-items: center; }
  .site-footer h4 { margin-bottom: 14px; }
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .foot-bottom .links { justify-content: center; }
}

/* ---- WhatsApp floater ---- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center; z-index: 90;
  box-shadow: 0 18px 40px -12px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---- badges ---- */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .03em;
}
.badge-ok     { background: var(--ok-soft);     color: var(--ok); }
.badge-warn   { background: var(--warn-soft);   color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info   { background: var(--brand-soft);  color: var(--brand); }
.badge-muted  { background: var(--line-soft);   color: var(--muted); }

/* ---- page hero (interior pages) ---- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 7vw, 120px) 0 clamp(40px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}
.page-hero .grid-bg {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(14,17,22,.04) 1px, transparent 1px),
    linear-gradient(rgba(14,17,22,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 80%);
}
.page-hero .inner { position: relative; max-width: 940px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18ch; }
.page-hero .lead { margin: 22px 0 0; max-width: 56ch; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .82rem; color: var(--muted); margin-bottom: 22px;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: .5; }

/* ---- prose (markdown) ---- */
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.prose h2 { font-size: 1.7rem; margin: 2.3rem 0 1rem; color: var(--ink); letter-spacing: -0.025em; }
.prose h3 { font-size: 1.32rem; margin: 1.8rem 0 .8rem; color: var(--ink); letter-spacing: -0.02em; }
.prose p { margin: 0 0 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; color: var(--brand); }
.prose img { border-radius: var(--radius); margin: 1.8rem 0; border: 1px solid var(--line); }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 1.4rem;
  margin: 1.8rem 0; font-size: 1.22rem; line-height: 1.55;
  color: var(--ink); font-weight: 500;
  letter-spacing: -0.01em;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: .92em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }

/* ---- modal gallery ---- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: flex-start; justify-content: center;
  padding: 4vh 16px; overflow-y: auto;
}
.modal.open { display: flex; }
.modal-overlay { position: fixed; inset: 0; background: rgba(11,14,17,.7); backdrop-filter: blur(8px); }
.modal-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-lg); max-width: 1100px; width: 100%;
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.modal-head {
  padding: 26px 32px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.modal-head h3 { font-size: 1.55rem; margin-bottom: 4px; }
.modal-head .cat {
  font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .12em; color: var(--brand); text-transform: uppercase;
}
.modal-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; display: grid; place-items: center; color: var(--ink); flex: none;
}
.modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.modal-gallery {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 24px 32px; scroll-snap-type: x mandatory;
}
.modal-gallery img {
  height: 380px; border-radius: var(--radius);
  scroll-snap-align: start; flex: none;
}
.modal-foot {
  padding: 22px 32px 28px; border-top: 1px solid var(--line);
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ---- forms ---- */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 7px; letter-spacing: -0.005em;
}
.input, .field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(14,17,22,.08);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ---- color palette lab ---- */
.palette-lab {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}
.palette-panel, .palette-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.palette-controls { display: grid; gap: 14px; margin-top: 22px; }
.palette-controls label {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}
.palette-controls label span {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 650;
}
.palette-controls input[type="color"] {
  width: 54px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 4px;
}
.palette-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.palette-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 .78rem var(--font-body);
  cursor: pointer;
}
.palette-chip:hover { border-color: var(--brand); color: var(--brand); }
.palette-chip span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid var(--line);
}
.preview-room {
  --base:#ffffff;
  --feature:#c0492b;
  --trim:#111111;
  position: relative;
  min-height: clamp(360px, 48vw, 560px);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--base);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.room-wall { position: absolute; top: 0; bottom: 24%; }
.wall-base { left: 0; width: 58%; background: var(--base); }
.wall-feature { right: 0; width: 44%; background: var(--feature); }
.room-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.07) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--base) 78%, #bda176), color-mix(in srgb, var(--trim) 18%, #e5dac9));
  background-size: 42px 100%, 100% 100%;
}
.room-window {
  position: absolute; left: 12%; top: 18%; width: 22%; height: 24%;
  border: 8px solid var(--trim);
  background: linear-gradient(135deg,#f8fdff,#cfe7f7);
  box-shadow: 0 18px 42px -28px rgba(0,0,0,.55);
}
.room-window i { position:absolute; background:var(--trim); opacity:.75; }
.room-window i:first-child { left:50%; top:0; bottom:0; width:4px; transform:translateX(-50%); }
.room-window i:last-child { top:50%; left:0; right:0; height:4px; transform:translateY(-50%); }
.room-art {
  position:absolute; right: 13%; top: 22%; width: 16%; height: 22%;
  border: 7px solid var(--trim);
  background: linear-gradient(145deg, color-mix(in srgb,var(--base) 72%,#fff), color-mix(in srgb,var(--feature) 58%,#fff));
}
.room-trim { position:absolute; background:var(--trim); }
.trim-top { left:0; right:0; top:0; height:8px; }
.trim-left { left:0; top:0; bottom:0; width:8px; }
.trim-right { right:0; top:0; bottom:0; width:8px; }
.room-sofa {
  position:absolute; left: 36%; bottom: 19%; width: 34%; height: 17%;
  border-radius: 22px 22px 8px 8px;
  background: color-mix(in srgb, var(--trim) 18%, var(--base));
  border: 5px solid var(--trim);
  box-shadow: 0 24px 44px -34px rgba(0,0,0,.65);
}
.room-sofa span { position:absolute; left:8%; right:8%; bottom:-20%; height:34%; border-radius:8px; background:var(--trim); opacity:.9; }
.palette-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.palette-summary div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.palette-summary span { display:block; color:var(--muted); font-size:.74rem; text-transform:uppercase; letter-spacing:.08em; }
.palette-summary strong { display:block; color:var(--ink); margin-top:3px; font-family:var(--font-mono); font-size:.88rem; }
@media (max-width: 900px) { .palette-lab { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .palette-summary { grid-template-columns: 1fr; } }

/* ---- alerts ---- */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: .94rem; margin-bottom: 16px; border: 1px solid;
}
.alert-success { background: var(--ok-soft);     color: var(--ok);     border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert-error   { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-info    { background: var(--brand-soft);  color: var(--brand);  border-color: color-mix(in srgb, var(--brand) 28%, transparent); }
.alert-warning { background: var(--warn-soft);   color: var(--warn);   border-color: color-mix(in srgb, var(--warn) 35%, transparent); }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 10px; } .gap-3 { gap: 16px; }

/* legacy compat (kept so older usages still render) */
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: all .25s var(--ease); display: flex; flex-direction: column; gap: 14px; }
.svc-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.svc-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.svc-card .ic svg { width: 22px; height: 22px; }
.svc-card h3 { font-size: 1.2rem; }
.svc-card p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }

/* hero slider (legacy fallback if some other page still uses it) */
.hero-section { margin: 0; padding: 0; position: relative; overflow: hidden; }
.hero-slider {
  position: relative; overflow: hidden;
  background: var(--ink);
  min-height: clamp(520px, 74vh, 900px);
}

/* ---- responsive tail ---- */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > div { border-right: 0 !important; padding: 24px 0 !important; }
  .finishes { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process .step { border-right: 1px solid var(--line) !important; }
  .process .step:nth-child(2n) { border-right: 0 !important; }
  .process .step:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .svc-grid, .grid-3, .grid-4, .grid-2, .finishes, .process { grid-template-columns: 1fr; }
  .svc-grid .svc-cell { border-right: 0 !important; }
  .process .step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .modal-gallery img { height: 250px; }
  .container, .container-narrow, .container-wide { padding: 0 22px; }
  .svc-row { grid-template-columns: 1fr auto; gap: 16px; }
  .svc-row .svc-row-num { grid-column: 1 / -1; }
  .hero-foot { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 540px) {
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
}

/* payment page */
.payment-page { padding: clamp(24px, 5vw, 56px) 0 clamp(52px, 7vw, 88px); }
.payment-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
.pay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.invoice-card { padding: clamp(22px, 3vw, 38px); min-width: 0; }
.pay-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.pay-head h1 {
  margin-top: 4px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pay-kicker {
  display: inline-block;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 650;
}
.pay-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.pay-summary div { min-width: 0; display: grid; gap: 6px; }
.pay-summary span, .billing-grid span, .pay-line span, .pay-totals span { color: var(--muted); }
.pay-summary strong {
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.pay-summary .due strong {
  color: var(--brand);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}
.billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0;
}
.billing-grid p { margin: 8px 0 0; }
.billing-grid strong, .billing-grid span { overflow-wrap: anywhere; }
.pay-lines { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pay-line {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(80px, .7fr) minmax(92px, .8fr) minmax(100px, .8fr);
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pay-line:last-child { border-bottom: 0; }
.pay-line-head {
  padding-top: 0;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.pay-line span, .pay-line b { text-align: right; }
.pay-line strong { min-width: 0; overflow-wrap: anywhere; }
.pay-totals {
  width: min(100%, 360px);
  margin: 22px 0 0 auto;
  display: grid;
  gap: 10px;
}
.pay-totals div { display: flex; justify-content: space-between; gap: 18px; }
.pay-totals .grand { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.08rem; }
.pay-totals .grand strong { color: var(--brand); }
.pay-aside { position: sticky; top: 96px; min-width: 0; }
.payment-panel { padding: clamp(22px, 3vw, 30px); }
.payment-panel h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin-bottom: 10px; }
.amount-box {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.amount-box label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.payment-amount-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
  font: 650 1.15rem/1 var(--font-display);
}
.amount-box span { display: block; margin-top: 8px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.pay-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.pay-choice button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 650;
  cursor: pointer;
}
.pay-choice button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.payment-methods { display:flex; flex-direction:column; gap:12px; margin-bottom:10px; }
.payment-method { margin:0; }
.payment-method-btn {
  width:100%;
  min-height:76px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  border-radius:var(--radius-sm);
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  cursor:pointer;
  font-family:var(--font-body);
  text-align:left;
  transition:transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.payment-method-btn:hover { transform:translateY(-1px); border-color:var(--brand); background:var(--brand); color:#fff; }
.payment-method-btn.secondary { background:var(--surface); color:var(--ink); }
.payment-method-btn.secondary:hover { background:var(--brand); color:#fff; }
.payment-method-btn b { display:block; font-size:1rem; letter-spacing:-.01em; }
.payment-method-btn small { display:block; margin-top:3px; color:currentColor; opacity:.72; font-size:.78rem; line-height:1.35; }
.payment-method-btn strong { white-space:nowrap; font-size:.9rem; font-variant-numeric:tabular-nums; }
.pay-divider { position: relative; text-align: center; margin: 18px 0; color: var(--muted); font-size: .82rem; }
.pay-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.pay-divider span { position: relative; z-index: 1; background: var(--surface); padding: 0 12px; }
.bank-transfer summary { display: none; }
.bank-toggle { margin: 12px 0 10px; }
.bank-transfer { margin-top: 0; }
.bank-box {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.bank-box div { display: flex; justify-content: space-between; gap: 16px; }
.bank-box span { color: var(--muted); }
.bank-box strong { text-align: right; overflow-wrap: anywhere; }
.bank-form .btn { width: 100%; }
.secure-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }
@media (max-width: 980px) {
  .payment-shell { grid-template-columns: 1fr; }
  .pay-aside { position: static; top: auto; }
}
@media (max-width: 680px) {
  .payment-page .container { padding: 0 14px; }
  .pay-card { border-radius: 14px; }
  .pay-head { flex-direction: column; align-items: flex-start; }
  .pay-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .billing-grid { grid-template-columns: 1fr; }
  .pay-line { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .pay-line-head { display: none; }
  .pay-line span, .pay-line b { text-align: left; }
  .pay-line span::before {
    display: inline-block;
    min-width: 58px;
    margin-right: 8px;
    color: var(--faint);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
  }
  .pay-line span:nth-child(2)::before { content: "Qty"; }
  .pay-line span:nth-child(3)::before { content: "Rate"; }
  .pay-line b::before {
    content: "Amount";
    display: inline-block;
    min-width: 58px;
    margin-right: 8px;
    color: var(--faint);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .pay-totals { width: 100%; }
  .payment-method-btn { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .pay-summary { grid-template-columns: 1fr; }
  .brand { gap: 10px; font-size: 1.08rem; min-width: 0; }
  .brand small { letter-spacing: .18em; }
  .brand .mark { width: 34px; height: 34px; border-radius: 9px; }
  .nav { gap: 12px; }
  .nav-actions { gap: 8px; }
}

/* print */
@media print {
  .site-header, .site-footer, .wa-float, .theme-toggle, .nav-actions { display: none; }
}

/* =========================================================
   Share sheet
   ========================================================= */
.share-overlay {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  padding: 20px;
}
.share-overlay__scrim {
  position: absolute; inset: 0;
  background: rgba(9, 9, 11, .55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s var(--ease);
}
.share-overlay.is-open .share-overlay__scrim { opacity: 1; }
.share-dialog {
  position: relative;
  width: min(100%, 460px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 32px 80px -30px rgba(0,0,0,.5);
  padding: 20px;
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.share-overlay.is-open .share-dialog { opacity: 1; transform: none; }
.share-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.share-dialog__head h3 { font-size: 1.06rem; font-weight: 620; letter-spacing: -.01em; margin: 0; }
.share-dialog__head p { margin: 4px 0 0; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.share-dialog__close {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer;
}
.share-dialog__close svg { width: 16px; height: 16px; }
.share-dialog__close:hover { background: var(--surface-2); color: var(--ink); }

.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 8px; min-height: 88px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
  font-size: .78rem; font-weight: 500; color: var(--ink);
  text-align: center;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.share-tile:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.share-tile__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); }
.share-tile svg { width: 17px; height: 17px; }
.share-tile--whatsapp .share-tile__icon { background: rgba(37,211,102,.14); color: #128C4A; }
.share-tile--x .share-tile__icon { background: rgba(0,0,0,.07); color: var(--ink); }
.share-tile--facebook .share-tile__icon { background: rgba(24,119,242,.14); color: #1877F2; }
.share-tile--linkedin .share-tile__icon { background: rgba(10,102,194,.14); color: #0A66C2; }
.share-tile--telegram .share-tile__icon { background: rgba(42,171,238,.14); color: #229ED9; }
.share-tile--email .share-tile__icon { color: var(--ink-soft); }
[data-theme="dark"] .share-tile--x .share-tile__icon { background: rgba(255,255,255,.1); }

.share-link { display: flex; gap: 8px; margin-top: 16px; }
.share-link input {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--ink-soft);
  padding: 0 12px; height: 42px; font-size: 16px;
  font-family: var(--font-mono, monospace);
  text-overflow: ellipsis;
}
.share-link .btn { flex: none; gap: 7px; height: 42px; }
.share-link .btn svg { width: 15px; height: 15px; }

.share-toast-host {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 260; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.share-toast {
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.share-toast.is-in { opacity: 1; transform: none; }
body.share-open { overflow: hidden; }

@media (max-width: 420px) {
  .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .share-tile { min-height: 80px; font-size: .72rem; padding: 12px 4px; }
  .share-link { flex-direction: column; }
  .share-link .btn { justify-content: center; }
}

/* detail-page action row (project / gallery hero) */
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.detail-actions .btn { gap: 8px; }
@media (max-width: 520px) {
  .detail-actions { width: 100%; }
  .detail-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 140px; }
}

/* =========================================================
   Public listing toolbar + pager (projects, galleries)
   ========================================================= */
/* stat strip shared by the public listings */
.list-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.list-stats > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px 18px;
}
.list-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 620; letter-spacing: -.03em;
  line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.list-stats span {
  display: block; margin-top: 5px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 18px;
}
.list-toolbar__search { position: relative; min-width: 0; flex: 3 1 260px; }
.list-toolbar > select { flex: 1 1 168px; }
.list-toolbar__search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.list-toolbar__search input {
  width: 100%; height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font-size: 16px; font-family: inherit;
}
.list-toolbar select {
  height: 44px; min-width: 0;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font-size: 15px; font-family: inherit;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
  cursor: pointer;
}
.list-toolbar__search input:focus, .list-toolbar select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.list-toolbar__actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; margin-left: auto; }
.list-toolbar__actions .btn { height: 44px; white-space: nowrap; }

.list-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.list-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .84rem; font-weight: 500; color: var(--ink-soft);
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.list-chip:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.list-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.list-chip.is-active:hover { color: var(--paper); }
.list-chip small { opacity: .65; font-size: .95em; }

.pagerbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 18px 2px;
}
.pagerbar--top { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px; }
.pagerbar--bottom { border-top: 1px solid var(--line); margin-top: 36px; }
.pagerbar__count { margin: 0; font-size: .88rem; color: var(--muted); }
.pagerbar__count strong { color: var(--ink); font-weight: 600; }
.pagerbar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pagerbar__per { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.pagerbar__per select {
  height: 36px; padding: 0 28px 0 10px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink);
  font-size: 15px; font-family: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}
.pagerbar__pages { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pagerbar__pg {
  min-width: 36px; height: 36px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink-soft);
  font-size: .86rem; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.pagerbar__pg:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.pagerbar__pg.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagerbar__pg.is-current:hover { color: var(--paper); }
.pagerbar__pg.is-disabled { opacity: .4; pointer-events: none; }
.pagerbar__pg--arrow { padding: 0; }
.pagerbar__pg svg { width: 16px; height: 16px; }
.pagerbar__gap { padding: 0 4px; color: var(--muted); font-size: .86rem; }

@media (max-width: 900px) {
  .list-toolbar__search { flex: 1 1 100%; }
  .list-toolbar__actions { flex: 1 1 100%; margin-left: 0; }
  .list-toolbar__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
  .list-toolbar > select { flex: 1 1 100%; }
  .list-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-stats > div { padding: 13px 14px; }
  .list-stats b { font-size: 1.35rem; }
  .pagerbar { flex-direction: column; align-items: stretch; text-align: center; }
  .pagerbar__right { justify-content: space-between; }
  .pagerbar__pages { justify-content: center; width: 100%; }
}
