:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-soft: #10161d;
  --panel: rgba(26, 37, 50, 0.92);
  --panel-glass: rgba(26, 37, 50, 0.78);
  --text: #e6edf3;
  --muted: #99a7b5;
  --line: rgba(160, 190, 210, 0.3);
  --accent: #8fd3ff;
  --accent-soft: #66b8eb;
  --ok: #92d6a6;
  --pink: #c060a0;
  --max-width: 72rem;
  --radius: 14px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Single-family typography: mono alias kept for legacy rules, resolves to sans */
  --mono: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(55rem 40rem at 10% 15%, rgba(143, 211, 255, 0.055), transparent 62%),
    radial-gradient(48rem 36rem at 92% 75%, rgba(102, 184, 235, 0.045), transparent 62%),
    linear-gradient(rgba(143, 211, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 211, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(143, 211, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 211, 255, 0.045) 1px, transparent 1px),
    linear-gradient(160deg, #0b0f14 0%, #111a24 40%, #0f1820 70%, #0b0f14 100%);
  background-size: auto, auto, 220px 220px, 220px 220px, 44px 44px, 44px 44px, auto;
  background-attachment: fixed;
}

a {
  color: var(--accent);
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: #000;
  color: #fff;
  border: 1px solid var(--line);
}

.wrap {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.92);
  height: 52px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
  z-index: 1001;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--mono);
  line-height: 1;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.nav-list a[aria-current="page"],
.nav-list a:hover,
.nav-list a:focus-visible {
  border-color: var(--line);
  background: rgba(143, 211, 255, 0.08);
}

main {
  flex: 1 0 auto;
  padding-top: 52px;
  padding-bottom: 2rem;
}

.hero {
  padding: 2rem 0 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-two {
  grid-template-columns: 2fr 1fr;
}

.grid-cards {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid rgba(143, 211, 255, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}

@supports (backdrop-filter: blur(10px)) {
  .panel {
    background: var(--panel-glass);
    backdrop-filter: blur(10px) saturate(115%);
  }
}

.section-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin: 0.55rem auto 0;
  border-radius: 1px;
  background: var(--accent-soft);
}

main .panel h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 0.65rem 0 0;
  border-radius: 2px;
  background: var(--accent-soft);
}

.process-step {
  height: 100%;
}

.process-step h3 {
  margin-bottom: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-number {
  margin: 0 0 0.75rem;
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

p,
ul,
ol {
  margin-top: 0;
}

.lead {
  font-size: 1.08rem;
  color: #d6e0e8;
}

.muted {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(143, 211, 255, 0.08);
  font-family: var(--mono);
}

.button.secondary {
  background: transparent;
}

.map-shell {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 12, 18, 0.72);
  overflow: hidden;
}

.map-frame {
  position: relative;
  border-top: 1px solid var(--line);
  background: #07111a;
}

.map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(143, 211, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 211, 255, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.45;
}

.map-embed {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  filter: grayscale(1) contrast(1.1) brightness(0.75) sepia(0.2) hue-rotate(150deg) saturate(1.1);
}

.section {
  padding: 1rem 0;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li + li {
  margin-top: 0.75rem;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.stat-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.status-ok {
  color: var(--ok);
}

.status-ok::before {
  content: "✓ ";
  opacity: 0.9;
}

.code-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
}

.code-list li + li {
  margin-top: 0.6rem;
}

.note {
  border-left: 3px solid var(--accent-soft);
  padding-left: 0.9rem;
}

.note h2 {
  margin-bottom: 0.5rem;
}

.note :last-child {
  margin-bottom: 0;
}

.footer,
.site-footer {
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  padding: 0;
  height: 52px;
  display: flex;
  align-items: center;
  color: var(--muted);
  background: rgba(11, 15, 20, 0.92);
}

.footer-inner,
.footer-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.8rem;
}

.footer-bottom {
  font-size: 0.8rem;
}

.footer-line a {
  color: var(--text);
}

.footer-line a:hover,
.footer-line a:focus-visible {
  color: var(--accent);
}

.divider {
  color: var(--muted);
}

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

  .stat-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    text-align: left;
  }

  .stat-list li strong {
    text-align: left;
  }
}

/* ─── Profile / single-viewport layout ─────────────────────────────── */

.profile-body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.profile-header {
  flex-shrink: 0;
}

.profile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-badge {
  font-family: var(--mono);
  font-size: 0.76rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}

.badge-ok {
  color: var(--ok);
  border-color: rgba(146, 214, 166, 0.35);
}

/* Main grid */
.profile-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.9fr 1.5fr 1.4fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  align-self: stretch;
}

.profile-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scale h1 tightly inside panel */
.profile-panel h1 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  margin-bottom: 0.45rem;
}

.profile-h2 {
  font-size: 1rem !important;
  margin-bottom: 0.5rem;
}

.profile-body-text {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* Principles list */
.profile-principles {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.profile-principles li::before {
  content: "› ";
  color: var(--accent-soft);
}

/* Services list */
.profile-services {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.profile-services li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.profile-services li strong {
  font-size: 0.88rem;
}

.profile-services li .muted {
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Process steps mini-grid */
.profile-section-label {
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
}

.profile-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.profile-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.step-num {
  color: var(--accent-soft);
  font-weight: 700;
}

/* Status stat list (tighter) */
.profile-stat-list li {
  padding: 0.4rem 0;
  font-size: 0.82rem;
}

/* Contact sub-section */
.profile-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.profile-contact li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.85rem;
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* Footer */
.profile-footer {
  flex-shrink: 0;
  padding: 0.45rem 0;
}

.profile-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--muted);
  padding: 0 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.profile-footer-inner a {
  color: var(--muted);
}

.profile-footer-inner a:hover,
.profile-footer-inner a:focus-visible {
  color: var(--accent);
}

/* Responsive: allow scroll on small screens */
@media (max-width: 860px) {
  .profile-body {
    height: auto;
    overflow: auto;
  }

  .profile-main {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .profile-panel {
    overflow: visible;
  }

  .profile-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile-header-inner {
    padding: 0.75rem 0;
  }
}

/* ─── Panel-style content windows ──────────────────────────────────── */

/* Bracket label: [VegaComm], [property_owners@vegacomm], etc. */
.panel-label {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pink);
}

/* Centered icon area inside a panel */
.panel-icon-wrap {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 1rem;
}

.panel-icon {
  max-width: 100%;
}

/* Check list: pink circle-check icons + text */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--pink);
}

.check-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Contact rows: icon + text */
.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--muted);
}

/* Obfuscated contact lines rendered as SVG text */
.line-svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  min-height: 1.4rem;
}

.line-svg svg {
  display: block;
  height: 1.5rem;
  width: auto;
  max-width: 100%;
}

.line-svg-text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Push button row to bottom of flex panel */
.panel-button-row {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* CTA button inside panels */
.panel-cta {
  width: 100%;
  text-align: center;
  background: rgba(50, 100, 65, 0.55);
  border-color: var(--ok);
  color: var(--ok);
}

.panel-cta:hover,
.panel-cta:focus-visible {
  background: rgba(60, 120, 80, 0.7);
  text-decoration: none;
}

/* ─── Hamburger dropdown nav ───────────────────────────────────────── */

.header-inner {
  position: relative;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--mono);
  line-height: 1;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(143, 211, 255, 0.08);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: rgba(11, 15, 20, 0.97);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 0.5rem;
  margin-top: 0.35rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

/* Invisible bridge covers the margin-top gap so hover doesn't drop out */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 0;
  right: 0;
  height: 0.45rem;
}

.nav-dropdown.open {
  display: flex;
}

.nav-dropdown .nav-list {
  flex-direction: column;
  gap: 0.15rem;
}

.nav-dropdown .nav-list a {
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
}

.nav-overlay-bg {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.nav-overlay-bg.open {
  pointer-events: auto;
}

/* Hide default inline nav when hamburger is present */
.header-inner > .nav-list {
  display: none;
}

/* ─── Cookie / privacy notice ───────────────────────────────────────── */

.cookie-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(11, 15, 20, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

.cookie-note-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 60rem;
}

.cookie-note-text a {
  color: var(--text);
}

.cookie-note-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  flex-shrink: 0;
  cursor: pointer;
}

/* ─── SPA scroll sections ────────────────────────────────────────────── */

.page-section {
  position: relative;
  min-height: 60vh;
}/* Alternating bands so adjacent pages read as distinct modules */
.page-section:nth-of-type(odd) {
  background: linear-gradient(180deg, rgba(3, 6, 9, 0.5), rgba(3, 6, 9, 0.2) 30%, rgba(3, 6, 9, 0.45));
}

.page-section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(30, 44, 59, 0.9), rgba(18, 28, 38, 0.55));
  box-shadow:
    inset 0 28px 36px -24px rgba(0, 0, 0, 0.65),
    inset 0 -28px 36px -24px rgba(0, 0, 0, 0.65);
}

/* Glowing hairline at each section seam */
.page-section + .page-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(143, 211, 255, 0.4) 50%, transparent 95%);
}

/* Inner-page scale styles (applied to non-home sections) */
.page-section main h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.page-section main h2 { font-size: 1.2rem; }
.page-section main .lead { font-size: 1rem; }
.page-section main p, .page-section main li { font-size: 0.95rem; line-height: 1.55; }
.page-section main .panel { padding: 1rem 1.2rem; border-radius: 10px; }
.page-section main.section, .page-section main .section { padding: var(--space-2) 0; }

/* Property-owners process grid within page-section */
.page-section .section-heading { margin-bottom: var(--space-2); }
.page-section main .grid { gap: var(--space-2); }
.page-section .process-number { font-size: 1.25rem; margin-bottom: 0.5rem; }
.page-section .process-step h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.page-section main .process-step p { font-size: 0.9rem; line-height: 1.5; margin: 0; }

/* ─── Reveal on scroll ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}
