/* ==========================================================================
   Quasar Integrations — public site
   Dark-first, single committed theme. Tokens first, then layout, then parts.
   ========================================================================== */

:root {
  --bg:            #070b16;
  --bg-alt:        #0a1020;
  --surface:       #0e1729;
  --surface-hi:    #131e34;
  --border:        rgba(255, 255, 255, 0.085);
  --border-hi:     rgba(255, 255, 255, 0.16);

  --text:          #e9eef8;
  --text-soft:     #b9c4d8;
  --muted:         #8896ae;

  --accent:        #58a6ff;
  --accent-hi:     #8fd0ff;
  --accent-deep:   #2563eb;
  --accent-soft:   rgba(88, 166, 255, 0.12);

  --wrap:          1160px;
  --radius:        14px;
  --radius-lg:     20px;

  --step-0:        clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --step-1:        clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2:        clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3:        clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4:        clamp(2.3rem, 1.7rem + 2.8vw, 4.1rem);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
}

/* --- reset ------------------------------------------------------------- */

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* `.card` sets display:flex, which would otherwise beat the [hidden] default
   and leave JS-filtered cards visible. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #04101f; padding: .7rem 1.1rem;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- typography -------------------------------------------------------- */

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.032em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .9rem;
}

.lede {
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 62ch;
  text-wrap: pretty;
}

.section-lede {
  color: var(--muted);
  max-width: 62ch;
  margin-top: .9rem;
  text-wrap: pretty;
}

/* --- layout ------------------------------------------------------------ */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.band { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.band-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { margin-bottom: 2.75rem; max-width: 74ch; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; max-width: none;
}

.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }

/* --- header ------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { font-weight: 650; letter-spacing: -0.02em; font-size: 1.03rem; }
.brand-sub {
  font-size: .68rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav ul { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a {
  font-size: .92rem; color: var(--text-soft); font-weight: 500;
  transition: color .15s ease; position: relative; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent-hi); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-hi);
  border-radius: 9px; width: 40px; height: 38px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 17px; height: 1.6px; background: var(--text);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; }
.nav-toggle-bars::before { top: -5.5px; }
.nav-toggle-bars::after  { top: 5.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* --- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .68rem 1.3rem; border-radius: 10px;
  font-size: .93rem; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #f2f8ff;
  box-shadow: 0 6px 20px -8px rgba(37, 99, 235, .8);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent) 100%); }

.btn-ghost { border-color: var(--border-hi); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-block { width: 100%; }

/* --- hero -------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-glow {
  position: absolute; inset: -45% -10% auto -10%; height: 115%;
  background:
    radial-gradient(48% 55% at 22% 32%, rgba(37, 99, 235, .30), transparent 68%),
    radial-gradient(42% 48% at 76% 22%, rgba(125, 211, 252, .16), transparent 66%);
  filter: blur(14px); pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 { max-width: 17ch; margin-bottom: 1.5rem; }
.hero .lede { max-width: 60ch; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2.2rem; }

.hero-locations {
  display: flex; flex-wrap: wrap; gap: .55rem 1.6rem;
  margin-top: 3.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.hero-locations a {
  font-size: .87rem; color: var(--muted); font-weight: 500;
  transition: color .15s ease;
}
.hero-locations a:hover { color: var(--accent-hi); }

/* --- page heads -------------------------------------------------------- */

.page-head {
  padding: clamp(3rem, 6.5vw, 5.2rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 100% at 12% 0%, rgba(37, 99, 235, .16), transparent 70%),
    var(--bg);
}
.page-head h1 { margin-bottom: 1.15rem; }
.page-head-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 1.3rem;
  border: 1px solid var(--border-hi); border-radius: 13px;
  background: var(--accent-soft); color: var(--accent-hi);
}
.page-head-icon svg { width: 25px; height: 25px; }

.crumbs {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem;
}
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--accent-hi); }

.error-page { border-bottom: none; min-height: 58vh; }

/* --- cards ------------------------------------------------------------- */

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
a.card:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .93rem; text-wrap: pretty; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 1.1rem; flex: none;
  border-radius: 11px; border: 1px solid var(--border-hi);
  background: var(--accent-soft); color: var(--accent-hi);
}
.card-icon svg { width: 21px; height: 21px; }

.card-link {
  margin-top: auto; padding-top: 1.2rem;
  font-size: .85rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card-link .arrow { transition: transform .18s ease; }
a.card:hover .card-link .arrow { transform: translateX(3px); }

.card-count {
  margin-top: 1rem; font-size: .82rem; color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.location-card .location-region {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: .55rem;
}
.location-card h3 { font-size: var(--step-2); }

.market-card-uses {
  margin-top: 1.1rem; display: flex; flex-direction: column; gap: .4rem;
}
.market-card-uses li {
  font-size: .85rem; color: var(--text-soft); padding-left: 1.1rem;
  position: relative;
}
.market-card-uses li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.use-case-card { padding: 1.7rem; }
.use-case-card p { color: var(--text-soft); }

/* --- tags -------------------------------------------------------------- */

.project-card-meta, .project-tags {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem;
}
.project-tags { margin-bottom: 1.4rem; }

.tag {
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: .26rem .62rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-soft); white-space: nowrap;
}
a.tag:hover { border-color: var(--accent); color: var(--accent-hi); }
.tag-quiet { color: var(--muted); font-variant-numeric: tabular-nums; }
.tag-market { color: var(--accent-hi); border-color: rgba(88,166,255,.32); background: var(--accent-soft); }
.tag-residential { color: #9fe3c4; border-color: rgba(74, 222, 168, .3); background: rgba(74, 222, 168, .1); }
.tag-industrial  { color: #f0c78a; border-color: rgba(240, 180, 90, .3);  background: rgba(240, 180, 90, .1); }

/* Sits inline in the card meta row so it cannot collide with the year tag.
   Disappears entirely once `placeholder: true` is removed from a project. */
.placeholder-flag {
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  align-self: center;
  font-weight: 700; color: #f0c78a;
  background: rgba(240, 180, 90, .12); border: 1px solid rgba(240, 180, 90, .3);
  padding: .2rem .5rem; border-radius: 5px;
}

.placeholder-banner {
  margin-top: 1.6rem; padding: .9rem 1.1rem; border-radius: 10px;
  font-size: .89rem; color: #f0c78a;
  background: rgba(240, 180, 90, .1); border: 1px solid rgba(240, 180, 90, .28);
}
.placeholder-banner code { font-family: var(--mono); font-size: .93em; }

/* --- prose ------------------------------------------------------------- */

.prose { max-width: 68ch; color: var(--text-soft); }
.prose-wide { max-width: 76ch; }
.prose p { margin-bottom: 1.25rem; font-size: var(--step-0); text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- detail layout ----------------------------------------------------- */

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.detail-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  position: sticky; top: 92px;
}
.detail-aside h2 {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1.1rem;
}
.aside-cta { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.aside-note { font-size: .85rem; color: var(--muted); margin-top: 1.3rem; }

.check-list { display: flex; flex-direction: column; gap: .75rem; }
.check-list li {
  position: relative; padding-left: 1.65rem;
  font-size: .9rem; color: var(--text-soft);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 9px; height: 5px; border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg);
}

.area-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.area-list li {
  font-size: .82rem; color: var(--text-soft);
  padding: .26rem .6rem; border-radius: 7px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}

.scope-list { display: flex; flex-direction: column; gap: .2rem; }
.scope-list a {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .55rem; border-radius: 9px;
  font-size: .88rem; color: var(--text-soft);
  transition: background .15s ease, color .15s ease;
}
.scope-list a:hover { background: rgba(255,255,255,.045); color: var(--text); }
.scope-icon { color: var(--accent); display: flex; flex: none; }
.scope-icon svg { width: 17px; height: 17px; }

/* --- chain (home process) --------------------------------------------- */

.chain {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.chain-step {
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  position: relative; overflow: hidden;
}
.chain-step::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .55;
}
.chain-num {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .1em;
  color: var(--accent); display: block; margin-bottom: .8rem;
}
.chain-step h3 { margin-bottom: .5rem; }
.chain-step p { font-size: .89rem; color: var(--muted); }

/* --- segments (location page) ------------------------------------------ */

.segment-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.segment-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  border-radius: 12px; border: 1px solid var(--border-hi);
  background: var(--accent-soft); color: var(--accent-hi);
}
.segment-icon svg { width: 23px; height: 23px; }
.segment-head .eyebrow { margin-bottom: .3rem; }
.segment-lede {
  color: var(--text-soft); max-width: 68ch;
  margin-bottom: 2.2rem; font-size: var(--step-0); text-wrap: pretty;
}
.sub-segment-head {
  margin: 2.6rem 0 1.3rem; padding-top: 1.8rem;
  border-top: 1px solid var(--border); color: var(--text-soft);
}
.empty-note {
  color: var(--muted); font-size: .92rem;
  padding: 1.3rem 1.5rem; border-radius: var(--radius);
  border: 1px dashed var(--border-hi); background: rgba(255,255,255,.02);
}
.empty-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- matrix ------------------------------------------------------------ */

.matrix {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.matrix-head, .matrix-row {
  display: grid; grid-template-columns: minmax(140px, 1.5fr) 1fr 1fr;
  gap: 1rem; padding: .95rem 1.4rem; align-items: center;
}
.matrix-head {
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border);
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.matrix-row + .matrix-row { border-top: 1px solid var(--border); }
.matrix-label a { font-weight: 600; color: var(--text); }
.matrix-label a:hover { color: var(--accent-hi); }
.matrix-cell { font-size: .88rem; color: var(--muted); }
.matrix-cell strong { color: var(--accent-hi); font-variant-numeric: tabular-nums; }
.matrix-cell-label { display: none; }

/* --- stats ------------------------------------------------------------- */

.stat-band { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.stat-row {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-block: clamp(2rem, 4vw, 3rem);
}
.stat-value {
  display: block; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  font-weight: 650; letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; line-height: 1.05;
}
.stat-label {
  display: block; margin-top: .5rem; font-size: .87rem; color: var(--muted);
  max-width: 26ch;
}

/* --- filters ----------------------------------------------------------- */

.filters {
  display: flex; flex-direction: column; gap: 1rem;
  padding-bottom: 1.8rem; margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}
.filter-group { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.filter-label {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; min-width: 78px;
}
.chip {
  padding: .38rem .85rem; border-radius: 999px; cursor: pointer;
  font-size: .84rem; font-weight: 500;
  background: rgba(255,255,255,.035); border: 1px solid var(--border);
  color: var(--text-soft);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--border-hi); color: var(--text); }
.chip.is-active {
  background: var(--accent-soft); border-color: rgba(88,166,255,.45);
  color: var(--accent-hi); font-weight: 600;
}
.filter-status {
  font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem;
  font-variant-numeric: tabular-nums; min-height: 1.4em;
}

/* --- pills ------------------------------------------------------------- */

.pill-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  font-size: .88rem; font-weight: 500; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pill:hover { border-color: var(--accent); color: var(--accent-hi); background: var(--accent-soft); }

/* --- contact ----------------------------------------------------------- */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.contact-primary h2 { font-size: var(--step-2); margin-bottom: 1.5rem; }
.contact-subhead { margin-top: 3rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  border: 1px solid var(--border-hi); background: var(--accent-soft);
  color: var(--accent-hi);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-label {
  display: block; font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
  margin-bottom: .2rem;
}
.contact-value { display: block; font-size: var(--step-1); color: var(--text); font-weight: 500; }
a.contact-value:hover { color: var(--accent-hi); }

.contact-aside {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.7rem;
}
.contact-aside h2 {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1.1rem;
}
.region-list { display: flex; flex-direction: column; gap: .2rem; }
.region-list a {
  display: flex; flex-direction: column; padding: .65rem .6rem;
  border-radius: 9px; transition: background .15s ease;
}
.region-list a:hover { background: rgba(255,255,255,.045); }
.region-list strong { font-weight: 600; font-size: .95rem; }
.region-list span { font-size: .8rem; color: var(--muted); }

/* --- cta band ---------------------------------------------------------- */

.cta-band {
  background:
    radial-gradient(70% 130% at 20% 0%, rgba(37, 99, 235, .22), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: .8rem; }
.cta-band p { color: var(--text-soft); max-width: 52ch; text-wrap: pretty; }
.cta-band-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* --- footer ------------------------------------------------------------ */

.site-footer {
  background: #05080f; border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
}
.footer-brand .brand-name { display: block; font-size: 1.05rem; margin-bottom: .8rem; }
.footer-brand p { color: var(--muted); font-size: .89rem; max-width: 42ch; }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; margin-top: 1.3rem; }
.footer-contact a { font-size: .89rem; color: var(--text-soft); }
.footer-contact a:hover { color: var(--accent-hi); }

.footer-col h3 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { font-size: .875rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--accent-hi); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--muted);
}

/* --- responsive -------------------------------------------------------- */

@media (max-width: 900px) {
  .detail-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.6rem;
    max-height: calc(100dvh - 68px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--border); }
  .site-nav a { display: block; padding: .9rem .2rem; font-size: 1rem; }
  .nav-cta { margin-top: 1.2rem; }
}

@media (max-width: 640px) {
  .matrix-head, .matrix-row { grid-template-columns: 1fr; gap: .3rem; padding: 1rem 1.2rem; }
  .matrix-head { display: none; }
  .matrix-cell-label {
    display: inline; color: var(--muted); font-weight: 600;
    font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  }
  .matrix-cell-label::after { content: ": "; }
  .filter-label { min-width: 100%; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}
