:root {
  --stj-bg-wash-opacity: 0.45;
  --stj-bg-saturation: 1.22;
  --stj-bg-contrast: 1.08;
  --stj-card-opacity: 0.78;
  --stj-primary-teal: 1.08;
  --stj-accent-coral: 0.81;
  --stj-button-strength: 1.35;
  --stj-text-contrast: 1.35;
  --ink: #062b38;
  --ink-soft: #31535f;
  --muted: #6f8892;
  --teal: #03baab;
  --teal-2: #40d4c3;
  --coral: #e05b4f;
  --line: #d5e7e5;
  --line-soft: #e8efee;
  --bg-shell: #ffffff;
  --bg-soft: #f4fbfa;
  --bg-mist: #ecf7f5;
  --bg-sand: #fef7ea;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  padding: 0;
}

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: #f7fefd;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("media/st-john-bay.webp") center top / cover no-repeat fixed;
  filter: saturate(var(--stj-bg-saturation)) contrast(var(--stj-bg-contrast));
  transform: scale(1.01);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(247, 254, 253, var(--stj-bg-wash-opacity)) 0%, rgba(240, 252, 250, var(--stj-bg-wash-opacity)) 38%, rgba(255, 250, 241, var(--stj-bg-wash-opacity)) 100%),
    radial-gradient(circle at 16% 18%, rgba(6, 182, 164, 0.24) 0%, rgba(6, 182, 164, 0) 44%),
    radial-gradient(circle at 84% 78%, rgba(255, 107, 91, 0.16) 0%, rgba(255, 107, 91, 0) 42%);
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: normal;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft);
}

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

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

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9100;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, var(--stj-card-opacity));
  backdrop-filter: blur(10px);
}

.nav {
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 0 0 7px rgba(6, 182, 164, 0.12);
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--teal);
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.brand small {
  min-width: 0;
  margin-left: 4px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.desktop-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

.desktop-nav a {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3f5f69;
  font-weight: bold;
  padding: 7px 8px;
  border-bottom: 2px solid transparent;
}

.desktop-nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.desktop-nav a.signin {
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #ffffff;
  padding: 8px 16px;
}

.mobile-account-link {
  flex: 0 0 auto;
  display: none;
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 9px 13px;
  box-shadow: 0 8px 20px rgba(13, 58, 74, 0.12);
  white-space: nowrap;
}

.menu-btn {
  flex: 0 0 auto;
  display: none;
  max-width: 42vw;
  border: 1px solid #078f83;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 9px 12px;
  box-shadow: 0 6px 18px rgba(13, 58, 74, 0.14);
  cursor: pointer;
  white-space: nowrap;
}

.menu-btn[aria-expanded="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, var(--stj-card-opacity));
  padding: 8px 20px 14px;
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: bold;
  color: #3f5f69;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a.signin {
  color: var(--coral);
}

.mobile-nav.is-open {
  display: block;
}

.page-guide {
  position: relative;
  z-index: 12;
  border-bottom: 1px solid rgba(213, 231, 229, 0.62);
  background: rgba(255, 255, 255, 0.74);
}

.page-guide__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 7px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-guide__title {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: bold;
  color: #67858e;
}

.page-guide__nav {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  overflow: visible;
  scrollbar-width: none;
}

.page-guide__nav::-webkit-scrollbar {
  display: none;
}

.page-guide__nav a {
  flex: 0 0 auto;
  position: relative;
  min-width: auto;
  border: 0;
  background: transparent;
  padding: 5px 18px 5px 0;
  color: #315d68;
}

.page-guide__nav a + a {
  padding-left: 12px;
}

.page-guide__nav a:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(74, 106, 120, 0.36);
  font-size: 11px;
}

.page-guide__nav a.active {
  color: var(--ink);
}

.page-guide__nav span {
  display: none;
  font-size: 8px;
  letter-spacing: 0.08em;
  font-weight: bold;
  color: var(--coral);
}

.page-guide__nav strong {
  display: inline-block;
  margin-top: 0;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.page-guide__nav a.active strong {
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}

.page-guide__nav small {
  display: none;
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.home-intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.76s ease, visibility 0s linear 0.76s;
}

.home-intro.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.home-intro.is-hidden {
  display: none;
}

.home-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(242, 255, 253, 0.92), rgba(255, 255, 255, 0.70)),
    radial-gradient(circle at 16% 16%, rgba(6, 182, 164, 0.24), rgba(6, 182, 164, 0) 42%),
    radial-gradient(circle at 84% 80%, rgba(255, 107, 91, 0.13), rgba(255, 107, 91, 0) 40%),
    url("media/st-john-bay.webp") center center / cover no-repeat;
}

.home-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%);
}

.home-intro__content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 38px));
  min-height: min(620px, calc(100vh - 56px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
}

.home-intro__copy {
  max-width: 650px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(208, 233, 229, 0.88);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 54px rgba(13, 58, 74, 0.10);
}

.home-intro__greeting {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--teal);
}

.home-intro__copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  margin: 0;
}

.home-intro__line {
  margin-top: 18px;
  max-width: 560px;
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.45;
  color: #264f5a;
}

.home-intro__skip {
  margin-top: 24px;
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 11px 16px;
  cursor: pointer;
}

.home-intro__skip:hover {
  background: #ff7b6d;
}

.home-intro__media {
  min-height: clamp(270px, 38vw, 420px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 164, 0.28);
  background:
    linear-gradient(180deg, rgba(238, 253, 251, 0.96) 0%, rgba(255, 255, 255, 0.90) 58%, rgba(255, 247, 234, 0.82) 100%),
    radial-gradient(circle at 18% 24%, rgba(6, 182, 164, 0.22), rgba(6, 182, 164, 0) 44%),
    radial-gradient(circle at 82% 78%, rgba(255, 107, 91, 0.16), rgba(255, 107, 91, 0) 42%);
}

.home-intro__waterline {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 70px;
  height: 108px;
  background:
    repeating-linear-gradient(170deg, rgba(255, 255, 255, 0.38) 0 2px, rgba(255, 255, 255, 0) 2px 18px),
    linear-gradient(135deg, rgba(6, 182, 164, 0.30), rgba(53, 212, 192, 0.18));
  transform: rotate(-2deg);
}

.home-intro__media-copy {
  position: absolute;
  inset: auto 16px 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(213, 231, 229, 0.88);
}

.home-intro__media-copy span,
.home-intro__media-copy small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #688590;
  font-weight: bold;
}

.home-intro__media-copy strong {
  display: block;
  margin: 5px 0;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 22px;
  line-height: 1.08;
  color: var(--ink);
}

.home-intro__media-copy small {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  font-weight: normal;
  color: var(--ink-soft);
}
.replay-intro {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  border: 1px solid #b9d8d4;
  background: rgba(255, 255, 255, 0.95);
  color: #2f5c67;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  cursor: pointer;
}

.signin-handoff {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(13, 58, 74, 0.28);
}

.signin-handoff.is-open {
  display: flex;
}

.signin-handoff__panel {
  width: min(520px, 100%);
  border: 1px solid rgba(213, 231, 229, 0.92);
  background: rgba(255, 255, 255, 0.97);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 24px 70px rgba(13, 58, 74, 0.18);
}

.signin-handoff__label {
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: bold;
}

.signin-handoff__panel h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.signin-handoff__panel p {
  margin-top: 12px;
  font-size: 15px;
}

.signin-handoff__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signin-handoff__close {
  border: 1px solid var(--teal);
  background: #ffffff;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 14px;
  cursor: pointer;
}

main {
  display: block;
}

.page-hero {
  padding: 46px 0 34px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: bold;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 12px;
  padding-bottom: 3px;
}

.home-page .page-hero .eyebrow,
.home-page .section-head .eyebrow {
  display: block;
  width: fit-content;
  margin-bottom: 7px;
  padding: 0;
  border-bottom: 0;
  color: #2d6b73;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
}

.home-page .section-head .eyebrow {
  margin-bottom: 8px;
}

body:not(.home-page) .page-hero .eyebrow,
body:not(.home-page) .section-head .eyebrow,
body:not(.home-page) .copy-panel .eyebrow,
body:not(.home-page) .form-panel .eyebrow,
body:not(.home-page) .path-card .eyebrow,
body:not(.home-page) .conn-eyebrow,
body:not(.home-page) .portfolio-flow__eyebrow {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 0;
  border-bottom: 0;
  color: #2d6b73;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
}

body:not(.home-page) .copy-panel .eyebrow,
body:not(.home-page) .form-panel .eyebrow,
body:not(.home-page) .path-card .eyebrow,
body:not(.home-page) .conn-eyebrow,
body:not(.home-page) .portfolio-flow__eyebrow {
  font-size: 14px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.page-hero p {
  max-width: 560px;
  font-size: 16px;
}

.home-lead {
  display: inline-block;
  margin-bottom: 12px;
  border-left: 3px solid var(--coral);
  padding: 6px 0 6px 10px;
  color: #355f6a;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
}

.hero-step-note {
  margin-top: 10px;
  font-size: 13px;
  color: #3f6471;
}

.hero-step-note strong {
  color: var(--ink);
}

.home-hero {
  position: relative;
  padding: clamp(34px, 5vw, 68px) 0 clamp(34px, 5vw, 58px);
  background:
    linear-gradient(180deg, rgba(247, 254, 253, 0.72), rgba(255, 250, 241, 0.58)),
    radial-gradient(circle at 74% 14%, rgba(6, 182, 164, 0.15), rgba(6, 182, 164, 0) 42%);
}

.home-hero__inner {
  max-width: 760px;
}

.home-hero .hero-side {
  display: none;
}

.home-hero__copy {
  min-width: 0;
}

.home-hero__copy h1 {
  max-width: 680px;
}

.home-hero__copy p {
  max-width: 620px;
}

.home-page .page-hero .home-lead,
.home-page .page-hero .eyebrow,
.home-page .page-hero h1,
.home-page .page-hero p,
.home-page .page-hero .cta-row,
.home-page .page-hero .home-hero__visual,
.home-page .page-hero .hero-side,
.home-page .photo-band.island-atmosphere,
.home-page #sensor-monitor .section-head {
  opacity: 1;
  transform: none;
  transition: opacity 0.92s cubic-bezier(0.22, 0.78, 0.2, 1), transform 0.92s cubic-bezier(0.22, 0.78, 0.2, 1);
}

.home-page .page-hero .home-lead { transition-delay: 0.14s; }
.home-page .page-hero .eyebrow { transition-delay: 0.21s; }
.home-page .page-hero h1 { transition-delay: 0.30s; }
.home-page .page-hero p { transition-delay: 0.39s; }
.home-page .page-hero .cta-row { transition-delay: 0.50s; }
.home-page .page-hero .home-hero__visual { transition-delay: 0.60s; }
.home-page .page-hero .hero-side { transition-delay: 0.60s; }
.home-page .photo-band.island-atmosphere { transition-delay: 0.62s; }
.home-page #sensor-monitor .section-head { transition-delay: 0.70s; }

body.intro-active.home-page .page-hero .home-lead,
body.intro-active.home-page .page-hero .eyebrow,
body.intro-active.home-page .page-hero h1,
body.intro-active.home-page .page-hero p,
body.intro-active.home-page .page-hero .cta-row,
body.intro-active.home-page .page-hero .home-hero__visual,
body.intro-active.home-page .page-hero .hero-side,
body.intro-active.home-page .photo-band.island-atmosphere,
body.intro-active.home-page #sensor-monitor .section-head {
  opacity: 0;
  transform: translateY(16px);
  transition-delay: 0s;
}

.cta-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6, 182, 164, 0.7);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 11px 16px;
  box-shadow: 0 8px 20px rgba(13, 58, 74, 0.08);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn.primary {
  border-color: #d74f44;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 14px 32px rgba(224, 91, 79, 0.28);
}

.btn.path-cta {
  border-color: #d74f44;
  background: linear-gradient(135deg, var(--coral), #f06b5d);
  box-shadow: 0 16px 36px rgba(224, 91, 79, 0.30);
}

.btn.subtle {
  border-color: rgba(6, 182, 164, 0.32);
  background: rgba(255, 255, 255, 0.58);
  color: #426a74;
  box-shadow: 0 6px 16px rgba(13, 58, 74, 0.06);
}

.btn:hover {
  border-color: var(--teal);
  background: #ffffff;
  color: #048576;
  box-shadow: 0 12px 26px rgba(13, 58, 74, 0.14);
  transform: translateY(-1px);
}

.btn.primary:hover {
  border-color: #cb493f;
  background: #cb493f;
  color: #ffffff;
}

.btn.path-cta:hover {
  border-color: #cb493f;
  background: linear-gradient(135deg, #d65045, #f17365);
  box-shadow: 0 18px 42px rgba(224, 91, 79, 0.34);
}

.btn.subtle:hover {
  border-color: rgba(6, 182, 164, 0.48);
  background: rgba(255, 255, 255, 0.78);
  color: #31535f;
}

.btn:active {
  box-shadow: 0 5px 14px rgba(13, 58, 74, 0.12);
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.hero-side {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}

.public-support-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 24px);
  border-color: rgba(6, 182, 164, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 251, 248, 0.94)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(13, 58, 74, 0.09);
}

.public-support-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.public-support-card p {
  max-width: none;
  font-size: 14px;
  line-height: 1.58;
}

.support-card-points {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.support-card-points span {
  position: relative;
  min-width: 0;
  padding-left: 18px;
  color: #315d68;
  font-size: 13px;
  line-height: 1.42;
}

.support-card-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(6, 182, 164, 0.12);
}

.home-media-copy strong {
  display: block;
  margin: 4px 0;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink);
}

.home-media-copy small {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  font-weight: normal;
  color: var(--ink-soft);
}

.side-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c8992;
  font-weight: bold;
  margin-bottom: 8px;
}

.photo-band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #ffffff;
}

.photo-band .shell {
  padding: 18px 0;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.photo-main,
.photo-sub {
  min-height: 180px;
  position: relative;
  overflow: hidden;
  border: 1px solid #d6e4e3;
  background: #fff;
}

.photo-main img,
.photo-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-main.contain img,
.photo-sub.contain img {
  object-fit: contain;
  background: #fff;
}

.photo-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8e8e4;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #4c6d77;
  padding: 5px 8px;
}

.photo-band.island-atmosphere {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #d2e8e7;
  border-bottom: 1px solid #d2e8e7;
  background: linear-gradient(180deg, rgba(245, 255, 254, 0.74) 0%, rgba(233, 249, 247, 0.84) 58%, rgba(255, 247, 236, 0.78) 100%);
}

.photo-band.island-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.70) 8%, rgba(220, 246, 242, 0.54) 54%, rgba(255, 244, 228, 0.42) 100%),
    radial-gradient(circle at 20% 30%, rgba(17, 196, 183, 0.22) 0%, rgba(17, 196, 183, 0) 48%),
    radial-gradient(circle at 78% 70%, rgba(255, 138, 114, 0.12) 0%, rgba(255, 138, 114, 0) 46%);
  opacity: 0.9;
}

.photo-band.island-atmosphere::after {
  content: none;
}

.photo-band.island-atmosphere .shell {
  position: relative;
  z-index: 2;
  min-height: clamp(150px, 24vw, 220px);
  padding: 0;
}

.photo-band.island-atmosphere .photo-strip {
  display: none;
}

.home-page .photo-band.island-atmosphere {
  height: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.home-page .photo-band.island-atmosphere::before,
.home-page .photo-band.island-atmosphere::after {
  content: none;
}

.home-page .photo-band.island-atmosphere .shell {
  min-height: 0;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line-soft);
}

.home-scroll-section {
  overflow-x: clip;
}

body.scroll-reveal-ready.home-page [data-scroll-reveal] {
  opacity: 0;
  transform: translateX(var(--reveal-x, 24px));
  transition: opacity 0.72s ease-out, transform 0.72s ease-out;
}

body.scroll-reveal-ready.home-page [data-reveal-direction="left"] {
  --reveal-x: -24px;
}

body.scroll-reveal-ready.home-page [data-reveal-direction="right"] {
  --reveal-x: 24px;
}

body.scroll-reveal-ready.home-page [data-scroll-reveal].is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.section:last-child {
  border-bottom: 0;
}

.section-head {
  max-width: 740px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.section-head h2 em {
  font-style: normal;
  color: var(--coral);
}

.section-head p {
  font-size: 15px;
  line-height: 1.65;
}

.sensor-block {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: center;
}

.sensor-card,
.copy-panel,
.data-panel,
.info-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.copy-panel h3,
.data-panel h3,
.info-panel h3 {
  font-size: clamp(23px, 2.8vw, 30px);
  line-height: 1.12;
  margin-bottom: 10px;
}

.copy-panel p,
.data-panel p,
.info-panel p {
  font-size: 14px;
  line-height: 1.65;
}

.sensor-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7fbfc 0%, #edf8f6 100%);
  border: 1px solid #cde5e3;
  padding: clamp(16px, 2.2vw, 24px);
  text-align: center;
  min-width: 0;
}

.sensor-visual__magnifier {
  --lens-left: 50%;
  --lens-top: 50%;
  --lens-bg-x: 50%;
  --lens-bg-y: 50%;
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}

.sensor-visual__magnifier:focus-visible {
  outline: 3px solid rgba(6, 182, 164, 0.55);
  outline-offset: 5px;
}

.home-page #sensor-monitor .sensor-visual img {
  width: 100%;
  height: auto;
  max-height: clamp(360px, 42vw, 620px);
  object-fit: contain;
  margin: 0 auto;
}

.sensor-visual__magnifier.is-lens-locked {
  cursor: zoom-out;
}

.puck {
  width: 94px;
  height: 94px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: radial-gradient(circle at 35% 30%, #3b5f70 0%, #163848 58%, #092333 100%);
  border: 2px solid #2d5263;
  position: relative;
}

.puck::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, #ff8d7f 0%, #ea5141 100%);
}

.puck::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 30px;
  height: 6px;
  background: var(--teal);
}

.rings {
  position: relative;
  height: 40px;
  margin-bottom: 6px;
}

.rings span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: sonar 2.4s infinite;
}

.rings span:nth-child(2) {
  animation-delay: 0.8s;
}

.rings span:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes sonar {
  0% { width: 18px; height: 18px; opacity: 0.9; }
  100% { width: 88px; height: 60px; opacity: 0; }
}

.cistern-mini {
  margin: 12px auto 0;
  width: 180px;
  height: 98px;
  border: 2px solid #1f4455;
  border-top: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 32%, #a5e5ef 32%, #5ecfe0 100%);
  position: relative;
}

.cistern-mini::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -6px;
  height: 6px;
  background: #1f4455;
}

.cistern-mini .beam {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 30px solid rgba(6, 182, 164, 0.22);
}

.monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: start;
}

.browser {
  border: 1px solid #d4dfe2;
  background: #fff;
  overflow: hidden;
}

.laptop-proof {
  position: relative;
  padding: 12px 12px 24px;
  border: 1px solid #c8dcdf;
  background: linear-gradient(180deg, #edf5f6 0%, #dfecef 100%);
  box-shadow: 0 16px 38px rgba(13, 58, 74, 0.13);
}

.laptop-screen {
  overflow: hidden;
  border: 1px solid #153d4b;
  background: #ffffff;
}

.dashboard-proof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #d7e6e8;
  background: #f4faf9;
}

.dashboard-proof-top span {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--teal);
}

.dashboard-proof-top strong {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 18px;
  color: var(--ink);
}

.dashboard-body {
  background: #ffffff;
}

.laptop-base {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 7px;
  height: 9px;
  border: 1px solid #c0d2d6;
  border-top: 0;
  background: linear-gradient(180deg, #f7fbfb 0%, #d5e2e5 100%);
}


.browser-body {
  padding: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.kpi {
  background: #f5fbfa;
  border: 1px solid #d8ece9;
  padding: 9px;
}

.kpi span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6d8791;
  margin-bottom: 4px;
}

.kpi strong {
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--ink);
  font-weight: normal;
}

.chart {
  border: 1px solid #dde7ea;
  background: #fbfcfd;
  min-height: 110px;
  padding: 8px;
  position: relative;
}

.chart svg {
  width: 100%;
  height: 82px;
  display: block;
}

.chart-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 3.5s 0.4s ease-out forwards;
}

.chart-fill {
  fill: rgba(6, 182, 164, 0.14);
  opacity: 0;
  animation: fadein 0.8s 2.8s forwards;
}

.rain-chip {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #e6f4ff;
  color: #226ea3;
  padding: 3px 7px;
  opacity: 0;
  animation: fadein 0.5s 2.2s forwards;
}

.alert-pop {
  margin-top: 10px;
  border-left: 3px solid var(--coral);
  border: 1px solid #ffd0c8;
  background: #fff;
  padding: 8px 10px;
  font-size: 11px;
  color: #47606b;
  opacity: 0;
  transform: translateY(8px);
  animation: pop 0.5s 3.8s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; transform: none; } }

.phone {
  border: 1px solid #254857;
  background: #123d4c;
  padding: 8px;
  width: min(100%, 260px);
  justify-self: center;
  align-self: start;
  border-radius: 34px;
  box-shadow: 0 16px 38px rgba(13, 58, 74, 0.18);
}

.phone-screen {
  background: linear-gradient(170deg, var(--teal), var(--teal-2));
  padding: 18px 10px 12px;
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 26px;
}

.phone-time {
  font-size: 34px;
  color: #fff;
  text-align: center;
  margin-top: 6px;
}

.phone-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  margin-bottom: 14px;
}

.phone-note {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 8px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(16px);
  animation: slidein 0.5s forwards;
}

.phone-note:nth-child(3) { animation-delay: 4.8s; }
.phone-note:nth-child(4) { animation-delay: 5.4s; }
.phone-note:nth-child(5) { animation-delay: 6s; }

@keyframes slidein {
  to {
    opacity: 1;
    transform: none;
  }
}

.phone-note strong {
  display: block;
  font-size: 10px;
  color: #0f3a4c;
  margin-bottom: 2px;
}

.phone-note span {
  display: block;
  font-size: 9px;
  color: #4f6671;
  line-height: 1.35;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.path-link-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.path-link-card:hover {
  border-color: rgba(6, 182, 164, 0.42);
  box-shadow: 0 18px 38px rgba(13, 58, 74, 0.11);
  transform: translateY(-2px);
}

.path-card-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(205, 230, 226, 0.95);
  background: #eef8f6;
}

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

.path-link-card .tag {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5d7b86;
  margin-bottom: 8px;
}

.path-link-card h3 {
  font-size: 27px;
  margin-bottom: 8px;
}

.path-link-card p {
  font-size: 14px;
  margin-bottom: 14px;
}

.path-fit {
  margin: -2px 0 14px;
  padding: 11px 12px;
  border-left: 3px solid rgba(6, 182, 164, 0.62);
  background: rgba(236, 247, 245, 0.64);
  color: #315f69;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.42;
}

.path-link-card ul {
  margin: 0 0 14px 18px;
  color: #46616d;
  font-size: 13px;
  line-height: 1.5;
}

.path-link-card .open {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--teal);
}

.inline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.inline-table th,
.inline-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.inline-table th {
  background: #f3faf9;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4e6f7a;
}

.feature-rows {
  border: 1px solid var(--line);
  background: #fff;
}

.feature-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  padding: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row strong {
  font-size: 14px;
  color: var(--ink);
}

.feature-row span {
  font-size: 13px;
  color: #4a6975;
  line-height: 1.6;
}

.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.note-box {
  border: 1px solid #cde6e2;
  background: #f4fcfa;
  padding: 14px;
  font-size: 13px;
  color: #42626e;
  line-height: 1.55;
}

.residential-page .page-hero .hero-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 250, 248, 0.96) 100%);
  border-color: #cde6e2;
}

.residential-service-card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.5vw, 24px);
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(20, 79, 91, 0.08);
}

.residential-service-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.residential-service-card p {
  max-width: none;
  font-size: 14px;
  line-height: 1.58;
}

.residential-service-points {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.residential-service-points span {
  position: relative;
  min-width: 0;
  padding-left: 18px;
  color: #315d68;
  font-size: 13px;
  line-height: 1.42;
}

.residential-service-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(6, 182, 164, 0.12);
}

.residential-utility {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(6, 182, 164, 0.42);
}

.cta-utility {
  align-self: center;
  margin-top: 0;
}

.homeowner-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.homeowner-value {
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
}

.homeowner-value span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: bold;
}

.homeowner-value strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.homeowner-value p {
  font-size: 13px;
  line-height: 1.55;
}

.residential-monitoring-section {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(244, 252, 250, 0.72), rgba(255, 255, 255, 0.96)),
    #fff;
}

.residential-monitoring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
  min-width: 0;
}

.residential-demo-preview,
.residential-demo-summary {
  min-width: 0;
  border: 1px solid rgba(196, 225, 224, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 50px rgba(20, 79, 91, 0.08);
}

.residential-demo-preview {
  position: relative;
  overflow: hidden;
  padding: clamp(12px, 2vw, 16px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 250, 248, 0.92)),
    #fff;
}

.residential-demo-browser {
  overflow: hidden;
  border: 1px solid rgba(167, 207, 207, 0.86);
  background: #f8fdfc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.residential-demo-browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(196, 225, 224, 0.82);
  background: linear-gradient(180deg, #ffffff, #edf8f7);
}

.residential-demo-browser__bar span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8fd9d0;
}

.residential-demo-browser__bar span:nth-child(2) {
  background: #ffd09b;
}

.residential-demo-browser__bar span:nth-child(3) {
  background: #ff8f7c;
}

.residential-demo-browser__bar strong {
  min-width: 0;
  margin-left: 6px;
  color: #46616d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.residential-demo-frame {
  position: relative;
  height: clamp(420px, 48vw, 620px);
  overflow: hidden;
  background: #f0f9ff;
}

.residential-demo-frame iframe {
  position: absolute;
  left: 50%;
  top: 0;
  width: 960px;
  height: 720px;
  max-width: none;
  border: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.78);
  transform-origin: top center;
}

.residential-demo-summary {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 26px);
}

.residential-demo-summary h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

.residential-demo-summary p {
  color: #496a74;
  font-size: 14px;
  line-height: 1.6;
}

.residential-demo-points {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
}

.residential-demo-points span {
  position: relative;
  min-width: 0;
  padding: 12px 12px 12px 34px;
  border: 1px solid rgba(202, 226, 225, 0.78);
  background: rgba(248, 253, 252, 0.92);
  color: #46616d;
  font-size: 13px;
  line-height: 1.5;
}

.residential-demo-points span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(6, 182, 164, 0.12);
}

.residential-monitoring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.residential-demo-cta {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(196, 225, 224, 0.72);
}

.residential-demo-link {
  justify-self: start;
  border-color: rgba(6, 182, 164, 0.34);
  background: rgba(236, 250, 248, 0.82);
  color: var(--teal-dark);
}

.residential-demo-cta span {
  color: #6a8088;
  font-size: 12px;
  line-height: 1.35;
}

.residential-customer-signin {
  margin-top: 14px;
  color: #55737d;
  font-size: 13px;
}

.residential-customer-signin a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 137, 128, 0.36);
}

.residential-page .note-box strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.villa-page .page-hero .hero-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 250, 248, 0.96) 100%);
  border-color: #cde6e2;
}

.villa-utility {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(6, 182, 164, 0.42);
}

.villa-value-grid,
.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.villa-value,
.scale-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
}

.villa-value span,
.scale-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: bold;
}

.villa-value strong,
.scale-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.villa-value p,
.scale-card p {
  font-size: 13px;
  line-height: 1.55;
}

.role-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.role-card {
  border-left: 3px solid var(--teal);
  background: #f7fcfb;
  padding: 10px 12px;
}

.role-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.role-card span {
  display: block;
  color: #466571;
  font-size: 12px;
  line-height: 1.5;
}

.field-log {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}

.field-log > div {
  background: #fff;
  padding: 12px;
}

.field-log span {
  display: inline-block;
  margin-bottom: 5px;
  color: #5f7e88;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: bold;
}

.field-log strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.field-log p {
  font-size: 12px;
  line-height: 1.5;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
}

.list-clean li {
  margin-bottom: 8px;
  color: #466571;
  line-height: 1.55;
  font-size: 14px;
}

.services-list {
  border: 1px solid var(--line);
  background: #fff;
}

.services-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.services-row:last-child {
  border-bottom: 0;
}

.services-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.services-row p {
  font-size: 13px;
  line-height: 1.6;
}

.customer-signin-card {
  border-color: rgba(6, 182, 164, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 251, 248, 0.92)),
    #ffffff;
  box-shadow: 0 16px 34px rgba(13, 58, 74, 0.09);
}

.customer-signin-card p {
  font-size: 14px;
  line-height: 1.55;
}

.customer-signin-card .dashboard-link {
  margin-top: 14px;
}

.service-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border-top: 2px solid rgba(6, 182, 164, 0.28);
  box-shadow: 0 14px 34px rgba(13, 58, 74, 0.07);
}

.service-path-icon {
  display: block;
  width: 38px;
  height: 38px;
  color: var(--teal);
  margin-bottom: 14px;
}

.service-path-card .cta-row {
  margin-top: auto;
  padding-top: 18px;
}

.path-bullet-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.path-bullet-list li {
  position: relative;
  padding-left: 18px;
  color: #405f6b;
  font-size: 14px;
  line-height: 1.45;
}

.path-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
}

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.asset-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.asset-card img {
  width: 100%;
  height: auto;
  max-height: clamp(190px, 30vw, 330px);
  object-fit: contain;
  border: 1px solid #dce9e7;
  background: #fff;
}

.asset-note {
  margin-top: 8px;
  font-size: 12px;
  color: #55737f;
  line-height: 1.5;
}

.sensor-page .columns-2,
.sensor-page .asset-grid {
  align-items: start;
}

.sensor-page .sensor-hero {
  padding: 52px 0 42px;
}

.sensor-page .page-hero-inner {
  grid-template-columns: minmax(0, 0.84fr) minmax(380px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

.sensor-hero-copy h1 {
  max-width: 680px;
}

.sensor-hero-copy p {
  max-width: 610px;
}

.sensor-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.sensor-benefits span {
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.78);
  color: #315f69;
  font-size: 12px;
  font-weight: bold;
  padding: 7px 10px;
}

.sensor-install-copy {
  max-width: none;
}

.puck-hero-media {
  align-self: stretch;
}

.puck-hero-frame {
  height: clamp(280px, 32vw, 420px);
  overflow: hidden;
  border: 1px solid rgba(205, 230, 226, 0.9);
  background: rgba(255, 255, 255, 0.78);
}

.puck-hero-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 28% 48%;
  border: 0;
}

.install-story-panel {
  background: rgba(255, 255, 255, 0.84);
}

.install-story-panel > p {
  max-width: 720px;
  margin-bottom: 18px;
}

.install-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.install-step,
.connection-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
}

.install-step span,
.connection-card span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: bold;
}

.install-step strong,
.connection-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}

.install-step p,
.connection-card p {
  font-size: 12px;
  line-height: 1.5;
}

.physical-reference-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.install-reference-copy {
  background: rgba(255, 255, 255, 0.86);
}

.install-reference-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.install-reference-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.connection-options-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.connection-card {
  border: 1px solid var(--line);
}

.scenario-guide-section .copy-panel {
  background: rgba(255, 255, 255, 0.9);
}

.scenario-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  margin-top: 16px;
}

.scenario-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 15px;
}

.scenario-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}

.scenario-card p {
  font-size: 12px;
  line-height: 1.5;
}

.sensor-page .asset-card img {
  max-height: clamp(165px, 24vw, 275px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.form-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.form-field {
  margin-bottom: 13px;
}

.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #597a84;
  margin-bottom: 5px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid #cbdfdd;
  padding: 10px 10px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #2f4f59;
  background: #fff;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 34px;
  font-size: 12px;
  color: #5f7c87;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Demo embed */
.demo-embed {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: #f0f9ff;
}

.demo-frame {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

.demo-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: #5f7c87;
  line-height: 1.5;
}

/* Icon utilities */
.icon-sm {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  color: var(--teal);
  flex-shrink: 0;
}

.card-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--teal);
  margin-bottom: 12px;
}

.value-icon {
  display: block;
  width: 34px;
  height: 34px;
  color: var(--teal);
  margin-bottom: 12px;
}

/* ── Feature icon grid ── */
.feature-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.feature-icon-item {
  background: rgba(255, 255, 255, 0.96);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}

.feature-icon-lg {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--teal);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.feature-icon-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.feature-icon-item p {
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
}

/* -- Demo guide panel (above embeds) -- */
.demo-guide {
  background: linear-gradient(to right, rgba(6, 182, 164, 0.06), rgba(255, 255, 255, 0));
  border: 1px solid rgba(6, 182, 164, 0.22);
  border-bottom: 0;
  padding: 14px 18px;
}

.demo-guide__label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--teal);
  margin-bottom: 8px;
}

.demo-guide__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-guide__steps li {
  font-size: 12px;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.demo-guide__steps li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: bold;
}

/* ── Hero showcase panel (index) ── */
.hero-showcase {
  border: 1px solid rgba(13, 58, 74, 0.18);
  background: #f5fafa;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(13, 58, 74, 0.09);
}

.hero-showcase__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--ink);
}

.hero-showcase__bar-label {
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: bold;
}

.hero-showcase__bar-name {
  font-size: 11px;
  color: var(--teal-2);
  font-weight: bold;
  letter-spacing: 0.04em;
}

.hero-showcase__body {
  padding: 12px 14px;
}

.hero-showcase__prop {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: bold;
  margin-bottom: 9px;
}

.hero-showcase__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 10px;
}

.hero-showcase__kpi {
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 8px 10px;
}

.hero-showcase__kpi span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.hero-showcase__kpi strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 17px;
  color: var(--ink);
  line-height: 1;
}

.hero-showcase__chart {
  border-top: 1px solid var(--line-soft);
  padding-top: 9px;
  margin-bottom: 10px;
}

.hero-showcase__chart svg {
  display: block;
  width: 100%;
  height: 36px;
}

.hero-showcase__alert {
  padding: 8px 10px;
  background: rgba(255, 107, 91, 0.07);
  border-left: 2px solid var(--coral);
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.hero-showcase__alert strong {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 2px;
}

.hero-showcase__caption {
  padding: 7px 14px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ── Villa team/roles section ── */
.team-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.team-roles-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-role-item {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.78);
  border-left: 3px solid var(--teal);
}

.team-role-item strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

.team-role-item span {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.ops-log {
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  background: #fff;
}

.ops-log-entry {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
}

.ops-log-entry:last-child {
  border-bottom: 0;
}

.ops-log-date {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: bold;
  padding-top: 2px;
}

.ops-log-content strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

.ops-log-content p {
  font-size: 12px;
  line-height: 1.45;
}

/* ── Contact icon items ── */
.contact-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.contact-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(6, 182, 164, 0.04);
  border: 1px solid rgba(6, 182, 164, 0.16);
}

.contact-icon-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--teal);
  margin-top: 1px;
}

.contact-icon-item strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 3px;
}

.contact-icon-item span {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ── Services larger icons ── */
.services-list .icon-sm {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.services-row p {
  font-size: 13px;
  line-height: 1.6;
}

/* ── Sensor page tighter image cards ── */
.sensor-page .asset-card {
  padding: 4px;
}

.sensor-page .asset-card img {
  border: 0;
}

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

  .mobile-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .page-hero-inner,
  .home-hero__inner,
  .home-intro__content,
  .sensor-block,
  .monitor-grid,
  .columns-2,
  .services-image-grid,
  .physical-reference-section,
  .connection-options-section,
  .contact-grid,
  .path-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .install-step-grid,
  .connection-grid,
  .scenario-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homeowner-value-grid,
  .villa-value-grid,
  .scale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sensor-page .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .services-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-stack-mobile,
  .table-stack-mobile tbody,
  .table-stack-mobile tr,
  .table-stack-mobile td {
    display: block;
    width: 100%;
  }

  .table-stack-mobile thead {
    display: none;
  }

  .table-stack-mobile tr {
    border-bottom: 1px solid var(--line-soft);
    padding: 9px 10px;
  }

  .table-stack-mobile tr:last-child {
    border-bottom: 0;
  }

  .table-stack-mobile td {
    border: 0;
    padding: 4px 0;
    line-height: 1.45;
    color: #3f5f6a;
  }

  .table-stack-mobile td::before {
    content: attr(data-label) \": \";
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: bold;
    color: #5f7e88;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .photo-band.island-atmosphere .shell {
    min-height: clamp(140px, 34vw, 180px);
  }
  .home-intro__content {
    align-content: center;
  }

  .phone-screen {
    min-height: 0;
  }

  .asset-card img {
    max-height: 270px;
  }

  .sensor-page .asset-card img {
    max-height: 235px;
  }

  .puck-hero-frame {
    height: clamp(285px, 46vw, 390px);
  }

  .install-reference-frame {
    overflow-x: auto;
  }

  .install-reference-frame img {
    min-width: 760px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 22px);
  }

  .home-hero {
    padding-top: 32px;
  }

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

  .page-hero {
    padding-top: 34px;
  }
  .page-guide__inner {
    width: calc(100% - 22px);
    display: block;
    padding: 8px 0;
  }

  .page-guide__title {
    margin-bottom: 5px;
  }

  .page-guide__nav a {
    min-width: auto;
    padding: 6px 8px;
    border: 1px solid rgba(213, 231, 229, 0.74);
    background: rgba(255, 255, 255, 0.68);
  }

  .page-guide__nav a + a {
    padding-left: 8px;
  }

  .page-guide__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .page-guide__nav a:not(:last-child)::after {
    content: none;
  }

  .page-guide__nav strong {
    white-space: normal;
    font-size: 10px;
    line-height: 1.2;
  }

  .phone {
    width: min(78vw, 248px);
  }

  .phone-time {
    font-size: 30px;
  }

  .phone-note {
    padding: 7px;
  }

  .home-intro__content {
    width: calc(100% - 24px);
    min-height: calc(100vh - 24px);
    margin: 12px auto;
    gap: 14px;
  }

  .home-intro__copy {
    padding: 18px;
  }

  .home-intro__copy h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .home-intro__media {
    min-height: 180px;
  }

  .home-intro__waterline {
    bottom: 48px;
    height: 72px;
  }

  .home-intro__media-copy strong {
    font-size: 18px;
  }

  .section {
    padding: 44px 0;
  }

  .path-link-card h3 {
    font-size: 24px;
  }

  .asset-card img {
    max-height: 220px;
  }

  .sensor-page .asset-card img {
    max-height: 205px;
  }

  .puck-hero-frame {
    height: 280px;
  }

  .puck-hero-frame img {
    object-position: 26% 48%;
  }

  .install-step-grid,
  .connection-grid,
  .scenario-card-grid,
  .homeowner-value-grid,
  .residential-monitoring-layout,
  .villa-value-grid,
  .scale-grid {
    grid-template-columns: 1fr;
  }

  .residential-demo-frame {
    height: 520px;
  }

  .residential-demo-frame iframe {
    transform: translateX(-50%) scale(0.72);
  }

  .sensor-benefits span {
    width: 100%;
  }

  .demo-frame {
    height: 480px;
  }

}

@media (max-width: 420px) {
  .nav {
    gap: 8px;
  }

  .brand {
    font-size: 19px;
  }

  .brand small {
    display: none;
  }

  .residential-monitoring-actions {
    display: grid;
  }

  .residential-demo-frame {
    height: 440px;
  }

  .residential-demo-frame iframe {
    transform: translateX(-50%) scale(0.56);
  }

  .menu-btn {
    padding: 9px 10px;
  }

  .mobile-account-link {
    padding: 9px 10px;
  }
}

@media (max-width: 360px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px 0;
  }

  .brand {
    flex-basis: 100%;
  }

  .mobile-account-link {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-intro,
  .home-page .page-hero .home-lead,
  .home-page .page-hero .eyebrow,
  .home-page .page-hero h1,
  .home-page .page-hero p,
  .home-page .page-hero .cta-row,
  .home-page .page-hero .home-hero__visual,
  .home-page .page-hero .hero-side,
  .home-page .photo-band.island-atmosphere,
  .home-page #sensor-monitor .section-head {
    transition-duration: 0.01ms;
  }

  body.scroll-reveal-ready.home-page [data-scroll-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

@media (max-width: 980px) {
  .feature-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-section {
    grid-template-columns: 1fr;
  }

  .contact-icon-grid {
    grid-template-columns: 1fr;
  }

  .demo-guide__steps {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 720px) {
  .feature-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-showcase {
    display: none;
  }
}

/* ── P3 visual polish ── */

/* Centre icons in value-grid cards */
.homeowner-value,
.villa-value {
  text-align: center;
}
.homeowner-value .value-icon,
.villa-value .value-icon {
  margin-left: auto;
  margin-right: auto;
}

/* Bigger centred icons */
.value-icon {
  width: 40px;
  height: 40px;
}
.feature-icon-lg {
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-right: auto;
}
.feature-icon-item {
  align-items: center;
  text-align: center;
}

/* Softer services list */
.services-list {
  border: 0;
  background: transparent;
}
.services-row {
  background: rgba(255, 255, 255, 0.76);
}

/* Softer copy / info panels */
.copy-panel,
.data-panel,
.info-panel {
  border: 0;
  background: rgba(255, 255, 255, 0.66);
}

/* Softer connection cards — top accent replaces full border */
.connection-card {
  border: 0;
  border-top: 2px solid rgba(6, 182, 164, 0.3);
}

/* Softer scenario cards */
.scenario-card-grid {
  background: transparent;
  border: 0;
  gap: 10px;
}
.scenario-card {
  background: rgba(255, 255, 255, 0.82);
}

/* Softer install step grid */
.install-step-grid {
  background: transparent;
  border: 0;
  gap: 10px;
}
.install-step {
  background: rgba(255, 255, 255, 0.82);
}

/* Softer form panels */
.form-panel {
  border: 0;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 16px rgba(13, 58, 74, 0.07);
  padding: 22px;
}

/* Rotating showcase slides */
.hero-showcase__slides {
  min-height: 170px;
}
.hero-showcase__slide {
  display: none;
}
.hero-showcase__slide.is-active {
  display: block;
  animation: sc-fadein 0.38s ease;
}
@keyframes sc-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-showcase__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.hero-showcase__dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.hero-showcase__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(13, 58, 74, 0.2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}
.hero-showcase__dot.is-active {
  background: var(--teal);
}

/* Portfolio workflow strip */
.portfolio-flow {
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(6, 182, 164, 0.15);
  padding: 18px 20px;
}
.portfolio-flow__eyebrow {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--teal);
  margin-bottom: 12px;
}
.portfolio-flow__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin-bottom: 16px;
}
.portfolio-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-soft);
}
.portfolio-step__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.portfolio-step__arrow {
  color: rgba(13, 58, 74, 0.3);
  font-size: 14px;
  line-height: 1;
}
.portfolio-flow__chips-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: bold;
  margin-bottom: 7px;
}
.portfolio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.portfolio-chip {
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid rgba(6, 182, 164, 0.3);
  background: rgba(6, 182, 164, 0.06);
  color: var(--ink-soft);
  font-weight: bold;
}
.portfolio-chip.chip-alert {
  border-color: rgba(255, 107, 91, 0.35);
  background: rgba(255, 107, 91, 0.05);
  color: var(--coral);
}

/* Role icons in team section */
.team-role-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.role-icon {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .portfolio-flow__steps { gap: 5px 3px; }
}

/* ── Console-style portfolio frame ── */
.console-frame {
  border: 1px solid rgba(13, 58, 74, 0.14);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.console-frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(13, 58, 74, 0.04);
  border-bottom: 1px solid rgba(13, 58, 74, 0.1);
  gap: 12px;
}
.console-frame__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  flex: 1;
  max-width: 260px;
  font-size: 12px;
  color: var(--muted);
}
.console-frame__search svg {
  width: 12px;
  height: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.console-frame__sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: bold;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.console-frame__sort svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}
.console-frame__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(13, 58, 74, 0.08);
  background: rgba(255, 255, 255, 0.4);
}

.villa-portfolio-preview {
  padding: 16px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(248, 253, 252, 0.96), rgba(240, 250, 248, 0.82));
}
.villa-portfolio-preview__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(6, 182, 164, 0.16);
  background: rgba(255, 255, 255, 0.76);
}
.villa-portfolio-preview__summary span,
.villa-portfolio-notes span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.villa-portfolio-preview__summary strong {
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.1;
}
.villa-portfolio-preview__status {
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid rgba(244, 127, 78, 0.22);
  background: rgba(255, 244, 235, 0.9);
  color: #8f3d18;
  font-size: 12px;
  font-weight: 850;
}
.villa-portfolio-list {
  display: grid;
  gap: 9px;
}
.villa-property-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(13, 58, 74, 0.1);
  background: rgba(255, 255, 255, 0.88);
}
.villa-property-row.is-critical {
  border-left: 4px solid #f47f4e;
}
.villa-property-row.is-low {
  border-left: 4px solid #f5b84b;
}
.villa-property-row.is-watch {
  border-left: 4px solid var(--teal);
}
.villa-property-row__rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgba(13, 58, 74, 0.06);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 850;
}
.villa-property-row__main {
  min-width: 0;
}
.villa-property-row__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.villa-property-row__top strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}
.villa-property-row p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.villa-property-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.villa-property-row__meta span {
  padding: 5px 7px;
  border: 1px solid rgba(13, 58, 74, 0.09);
  background: rgba(236, 250, 248, 0.72);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}
.villa-property-row__action {
  justify-self: end;
  padding: 7px 9px;
  border: 1px solid rgba(6, 182, 164, 0.22);
  background: rgba(236, 250, 248, 0.86);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.villa-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.villa-status-pill.critical {
  background: rgba(255, 232, 218, 0.9);
  color: #9b3b14;
}
.villa-status-pill.low {
  background: rgba(255, 246, 218, 0.96);
  color: #80590b;
}
.villa-status-pill.watch {
  background: rgba(226, 249, 245, 0.96);
  color: var(--teal-dark);
}
.villa-portfolio-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.villa-portfolio-notes div {
  padding: 12px;
  border: 1px solid rgba(6, 182, 164, 0.14);
  background: rgba(255, 255, 255, 0.74);
}
.villa-portfolio-notes strong {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}
.villa-demo-cta {
  display: grid;
  gap: 7px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(196, 225, 224, 0.72);
  background: rgba(255, 255, 255, 0.58);
}
.villa-demo-link {
  justify-self: start;
  border-color: rgba(6, 182, 164, 0.34);
  background: rgba(236, 250, 248, 0.82);
  color: var(--teal-dark);
}
.villa-demo-cta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* ── Team tree visual ── */
.team-tree-root {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
}
.team-tree-root__label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.03em;
}
.team-tree-root__icon {
  width: 14px;
  height: 14px;
  color: #fff;
  flex-shrink: 0;
}
.team-tree-root__branch {
  width: 2px;
  height: 10px;
  background: rgba(6, 182, 164, 0.3);
  margin-left: 22px;
}
.team-tree-list-branch {
  padding-left: 20px;
  position: relative;
}
.team-tree-list-branch::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0;
  bottom: 12px;
  width: 2px;
  background: rgba(6, 182, 164, 0.25);
}
.team-tree-list-branch .team-role-item {
  position: relative;
}
.team-tree-list-branch .team-role-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: rgba(6, 182, 164, 0.25);
  transform: translateY(-50%);
}
.ops-log-note {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 10px 0 0;
}

/* Sensor Puck V1.1 public page */
body.sensor-page.prototype-locked {
  overflow-x: hidden;
}

body.sensor-page.prototype-locked .site-header,
body.sensor-page.prototype-locked .page-guide,
body.sensor-page.prototype-locked main,
body.sensor-page.prototype-locked .footer {
  filter: saturate(0.94);
  opacity: 0.9;
}

body.sensor-page.prototype-locked::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 253, 252, 0.2), rgba(234, 248, 246, 0.12)),
    radial-gradient(circle at 20% 0%, rgba(6, 182, 164, 0.06), transparent 36%);
}

.sensor-prototype-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(215, 240, 244, 0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.sensor-prototype-panel {
  position: relative;
  pointer-events: auto;
  max-width: 860px;
  max-height: 80vh;
  margin: 0 auto;
  border: 1px solid rgba(6, 182, 164, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 251, 248, 0.96)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(13, 58, 74, 0.18);
  overflow: hidden;
  overflow-y: auto;
}

.sensor-prototype-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(13, 58, 74, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(13, 58, 74, 0.08);
}

.sensor-prototype-close:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.sensor-prototype-close:hover {
  background: #ffffff;
  color: var(--teal);
}

.sensor-prototype-copy {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 4vw, 30px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(232, 249, 246, 0.64)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

.sensor-prototype-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 70px);
  line-height: 0.9;
}

.sensor-prototype-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.5;
}

.sensor-prototype-spec {
  max-width: 760px;
  padding: 8px 11px;
  border-left: 2px solid rgba(6, 182, 164, 0.68);
  background: rgba(255, 255, 255, 0.56);
  color: #4c6d74;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.sensor-status-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(213, 231, 229, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.sensor-status-item {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid rgba(213, 231, 229, 0.64);
}

.sensor-status-item:last-child {
  border-right: 0;
}

.sensor-status-item span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.sensor-status-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  overflow: visible;
}

.sensor-status-icon * {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sensor-status-item strong {
  display: block;
  color: var(--ink);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 600;
  line-height: 1.22;
}

.sensor-status-item.is-current {
  background: rgba(6, 182, 164, 0.07);
}

.sensor-status-item.is-current strong {
  color: #048576;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 650;
  line-height: 1.22;
}

.sensor-status-item.is-bench-active {
  background: rgba(6, 182, 164, 0.045);
}

.sensor-status-loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sensor-status-loading::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(6, 182, 164, 0.34);
  animation: sensorBenchPulse 1.45s ease-out infinite;
}

@keyframes sensorBenchPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 164, 0.34);
    opacity: 0.82;
  }
  70% {
    box-shadow: 0 0 0 8px rgba(6, 182, 164, 0);
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 164, 0);
    opacity: 0.82;
  }
}

.sensor-waitlist-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px) clamp(20px, 5vw, 42px);
  background: rgba(255, 251, 242, 0.82);
}

.sensor-waitlist-note span {
  display: block;
  color: var(--ink);
  font-weight: bold;
}

.sensor-waitlist-note p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.sensor-waitlist-button[disabled] {
  min-width: 142px;
  border-color: rgba(6, 182, 164, 0.28);
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.78;
}

.hero-image-card {
  display: none;
}

@media (max-width: 900px) {
  .sensor-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sensor-status-item:nth-child(2n) {
    border-right: 0;
  }

  .sensor-status-item:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 600px) {
  .sensor-prototype-overlay {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .sensor-prototype-panel {
    margin: auto;
  }

  .sensor-status-strip {
    margin: 0 12px 14px;
  }
}

@media (max-width: 560px) {
  body.sensor-page.prototype-locked .site-header,
  body.sensor-page.prototype-locked .page-guide,
  body.sensor-page.prototype-locked main,
  body.sensor-page.prototype-locked .footer {
    filter: saturate(0.96);
    opacity: 0.94;
  }

  .sensor-prototype-panel {
    border-radius: 8px;
  }

  .sensor-prototype-copy {
    padding: 20px 16px;
  }

  .sensor-prototype-copy h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .sensor-status-strip {
    grid-template-columns: 1fr;
  }

  .sensor-status-item,
  .sensor-status-item:nth-child(2n),
  .sensor-status-item:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(213, 231, 229, 0.64);
  }

  .sensor-status-item:last-child {
    border-bottom: 0;
  }

  .sensor-waitlist-note {
    display: grid;
    padding: 18px;
  }

  .sensor-waitlist-button[disabled] {
    width: 100%;
    min-width: 0;
  }
}

.sensor-page .page-hero-inner {
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
}

.sensor-page .sensor-hero {
  padding: 58px 0 46px;
}

.sensor-hero-copy h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.98;
  margin-bottom: 16px;
}

.sensor-section-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}

.sensor-section-grid.reversed {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.sensor-image-card {
  border: 1px solid rgba(205, 230, 226, 0.96);
  background: rgba(255, 255, 255, 0.88);
  padding: clamp(10px, 2vw, 14px);
  box-shadow: 0 16px 42px rgba(13, 58, 74, 0.08);
}

.sensor-image-frame {
  position: relative;
  min-height: clamp(260px, 33vw, 390px);
  overflow: hidden;
  border: 1px solid rgba(213, 231, 229, 0.92);
  background:
    linear-gradient(180deg, rgba(248, 254, 253, 0.95), rgba(238, 250, 248, 0.88)),
    #ffffff;
}

.sensor-image-frame img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  user-select: none;
}

.crop-hero-product img {
  width: 178%;
  left: -72%;
  top: -3%;
}

.crop-installed-water img {
  width: 210%;
  left: -4%;
  top: clamp(-560px, -46vw, -360px);
}

.crop-connection-path img {
  width: 218%;
  left: -96%;
  top: clamp(-560px, -46vw, -360px);
}

.crop-outside-cistern img {
  width: 205%;
  left: -120%;
  top: clamp(-1180px, -96vw, -760px);
}

.crop-service-puck img {
  width: 185%;
  left: -74%;
  top: -2%;
}

.standalone-image-frame {
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 18px);
}

.standalone-image-frame img {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-hero-frame img {
  object-position: center center;
}

.installed-water-frame,
.service-cable-frame {
  min-height: clamp(280px, 34vw, 430px);
}

.sensor-copy-panel h3 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.sensor-copy-panel > p {
  font-size: 14px;
}

.outside-list,
.service-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.outside-list span,
.service-note-grid div {
  border-top: 2px solid rgba(6, 182, 164, 0.28);
  background: rgba(255, 255, 255, 0.82);
  padding: 13px 14px;
  color: #315f69;
  font-size: 12px;
  line-height: 1.45;
}

.service-note-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.service-note-grid p {
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-result-section {
  align-items: stretch;
}

.dashboard-mini-card {
  border: 1px solid rgba(205, 230, 226, 0.96);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(13, 58, 74, 0.08);
  overflow: hidden;
}

.dashboard-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: #ffffff;
}

.dashboard-mini-top span {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: bold;
}

.dashboard-mini-top strong {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 20px;
}

.dashboard-mini-level {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 4vw, 30px);
  background: linear-gradient(180deg, #f7fdfc 0%, #effaf8 100%);
}

.dashboard-mini-level span,
.dashboard-mini-grid span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: bold;
}

.dashboard-mini-level strong {
  display: block;
  margin: 4px 0;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(54px, 8vw, 76px);
  line-height: 0.92;
  color: var(--ink);
}

.dashboard-mini-level small {
  display: block;
  color: var(--ink-soft);
}

.level-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--teal) 0 62%, rgba(6, 182, 164, 0.14) 62% 100%);
}

.level-ring span {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--ink);
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.dashboard-mini-grid div {
  padding: 14px;
  border-right: 1px solid var(--line-soft);
}

.dashboard-mini-grid div:last-child {
  border-right: 0;
}

.dashboard-mini-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.connectivity-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(236, 247, 245, 0.78)),
    var(--bg-soft);
}

.conn-head {
  max-width: 760px;
  margin: 0 0 24px;
}

.conn-eyebrow,
.conn-path-badge,
.conn-zone {
  color: var(--teal);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.conn-head h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 0.98;
}

.conn-head p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.conn-path-stack {
  display: grid;
  gap: 18px;
}

.conn-path-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 250, 0.92)),
    var(--bg-shell);
  box-shadow: 0 18px 42px rgba(13, 58, 74, 0.08);
}

.conn-path-copy {
  min-width: 0;
}

.conn-path-copy h3 {
  margin: 9px 0 10px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.03;
}

.conn-path-copy p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.conn-path-copy ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.conn-path-copy li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.conn-path-copy li::before,
.conn-footer-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--teal);
  background: rgba(6, 182, 164, 0.12);
}

.conn-path-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(236, 247, 245, 0.7)),
    var(--bg-mist);
}

.conn-zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.26fr);
  gap: 8px;
  margin-bottom: 9px;
}

.conn-zone {
  display: block;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(6, 182, 164, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.conn-zone-inside {
  color: var(--coral);
  border-color: rgba(255, 107, 91, 0.28);
}

.conn-path-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.conn-device {
  flex: 1 1 78px;
  min-width: 76px;
  display: grid;
  grid-template-rows: 42px auto;
  justify-items: center;
  align-items: center;
  gap: 6px;
  padding: 9px 7px;
  border: 1px solid rgba(6, 182, 164, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-align: center;
}

.conn-device-inside {
  border-color: rgba(255, 107, 91, 0.34);
  background: rgba(254, 247, 234, 0.86);
}

.conn-device svg {
  display: block;
  width: 42px;
  height: 42px;
  overflow: visible;
}

.conn-device svg * {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conn-device-inside svg * {
  stroke: var(--coral);
}

.conn-device span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1.24;
  text-transform: uppercase;
}

.conn-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--teal);
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.conn-footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  list-style: none;
}

.conn-footer-note li {
  position: relative;
  min-width: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
}

.conn-footer-note li::before {
  top: 4px;
}

@media (max-width: 768px) {
  .conn-path-card {
    grid-template-columns: 1fr;
  }

  .conn-path-visual {
    padding: 12px;
  }

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

  .conn-path-flow {
    gap: 7px;
  }

  .conn-device {
    flex-basis: 96px;
  }
}

@media (max-width: 480px) {
  .conn-head h2 {
    font-size: 36px;
  }

  .conn-path-card {
    padding: 16px;
  }

  .conn-path-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .conn-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .conn-footer-note {
    display: grid;
  }
}

@media (max-width: 980px) {
  .sensor-page .page-hero-inner,
  .sensor-section-grid,
  .sensor-section-grid.reversed,
  .dashboard-result-section {
    grid-template-columns: 1fr;
  }

  .sensor-image-frame {
    min-height: clamp(250px, 52vw, 370px);
  }

  .crop-installed-water img {
    top: clamp(-520px, -58vw, -300px);
  }

  .crop-outside-cistern img {
    top: clamp(-1040px, -118vw, -650px);
  }

}

@media (max-width: 720px) {
  .sensor-hero-copy h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .sensor-image-frame {
    min-height: 255px;
  }

  .crop-hero-product img,
  .crop-service-puck img {
    width: 220%;
    left: -98%;
  }

  .crop-installed-water img {
    width: 245%;
    left: -7%;
    top: -315px;
  }

  .crop-connection-path img {
    width: 260%;
    left: -116%;
    top: -315px;
  }

  .crop-outside-cistern img {
    width: 250%;
    left: -132%;
    top: -720px;
  }

  .installed-water-frame,
  .service-cable-frame {
    min-height: 255px;
  }

  .outside-list,
  .service-note-grid,
  .dashboard-mini-level,
  .dashboard-mini-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-mini-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .dashboard-mini-grid div:last-child {
    border-bottom: 0;
  }

}

/* Home dashboard device mockups */
.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.78fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
  max-width: none;
}

.home-hero__visual {
  min-width: 0;
  width: 100%;
  display: grid;
  justify-items: stretch;
}

.home-hero__image {
  width: 100%;
  max-width: min(720px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% 52%;
  border: 1px solid rgba(8, 79, 99, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 62px rgba(5, 39, 51, 0.22);
  justify-self: center;
}

.hero-dashboard-phone {
  width: clamp(218px, 22vw, 310px);
}

.device-phone {
  max-width: 100%;
}

.device-phone__body {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgba(8, 45, 59, 0.92);
  border-radius: 36px;
  background: linear-gradient(180deg, #102f3d 0%, #061d27 100%);
  box-shadow: 0 22px 48px rgba(13, 58, 74, 0.18);
}

.device-phone__speaker {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(229, 245, 244, 0.72);
  transform: translateX(-50%);
}

.device-screen-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.device-phone .device-screen-media {
  border-radius: 25px;
  background: #eef9fb;
}

.phone-alert-screen {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 501 / 958;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 46px 10px 10px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 255, 255, 0.86) 0 24px, rgba(255, 255, 255, 0) 25px),
    linear-gradient(180deg, rgba(237, 249, 251, 0.98), rgba(222, 243, 247, 0.96) 54%, rgba(238, 250, 248, 0.98)),
    #eef9fb;
  color: #0b3442;
}

.phone-alert-card {
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(153, 27, 27, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.97)),
    #ffffff;
  box-shadow: 0 14px 30px rgba(153, 27, 27, 0.14);
}

.phone-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.phone-alert-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background:
    url("icons/icon-192-vi-drop.png") center / cover no-repeat,
    #ffffff;
  box-shadow: 0 0 0 1px rgba(153, 27, 27, 0.14);
}

.phone-alert-source {
  flex: 1 1 auto;
  color: #1f5360;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.phone-alert-time {
  color: #8b6b6b;
  font-size: 8px;
  font-weight: 800;
}

.phone-alert-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 7px;
  border: 1px solid rgba(153, 27, 27, 0.34);
  border-radius: 999px;
  background: rgba(254, 202, 202, 0.96);
  color: #7f1d1d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.phone-alert-title {
  margin-bottom: 5px;
  color: #0a3443;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.12;
}

.phone-alert-property {
  margin-bottom: 8px;
  color: #b91c1c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.18;
}

.phone-alert-body {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  color: #395f69;
  font-size: 9.5px;
  line-height: 1.25;
}

.phone-alert-body strong {
  color: #7f1d1d;
  font-size: 10px;
}

.phone-alert-body span {
  display: block;
}

.phone-alert-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.phone-alert-status span {
  padding: 6px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #6f3333;
}

.phone-alert-status b {
  display: block;
  color: #b91c1c;
  font-size: 12px;
}

.phone-alert-actions {
  display: flex;
  border-top: 1px solid rgba(153, 27, 27, 0.14);
  margin: 0 -10px -10px;
}

.phone-alert-actions span {
  flex: 1;
  padding: 8px 4px;
  color: #087f79;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.phone-alert-actions span + span {
  border-left: 1px solid rgba(153, 27, 27, 0.14);
}

.dashboard-preview {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(236, 247, 245, 0.74)),
    var(--bg-soft);
}

.dashboard-preview__devices {
  position: relative;
  min-width: 0;
  max-width: 940px;
  margin: 0 auto;
  padding: 18px 0 74px;
}

.device-laptop {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  max-width: 100%;
  padding-bottom: 24px;
  perspective: 1200px;
  filter: drop-shadow(0 34px 50px rgba(13, 58, 74, 0.18));
}

.device-laptop__screen {
  overflow: hidden;
  position: relative;
  z-index: 4;
  padding: clamp(34px, 4.9vw, 52px) clamp(30px, 4.4vw, 48px) clamp(30px, 4vw, 46px);
  border: 4px solid #061d27;
  border-bottom-width: 8px;
  border-radius: 30px 30px 18px 18px;
  background:
    radial-gradient(circle at 50% 19px, rgba(219, 244, 245, 0.34) 0 5px, transparent 6px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg, #183f4e 0%, #071f2a 58%, #041923 100%);
  box-shadow:
    0 18px 34px rgba(13, 58, 74, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 -18px 24px rgba(0, 0, 0, 0.22);
}

.device-laptop__screen::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 5;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(220, 241, 242, 0.72);
  box-shadow: 0 0 0 2px rgba(5, 23, 31, 0.48);
  transform: translateX(-50%);
}

.device-laptop__bezel {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(220, 241, 242, 0.44);
  border-radius: 14px;
  background: #081f2a;
  padding: clamp(6px, 0.8vw, 9px);
  box-shadow:
    0 0 0 1px rgba(2, 14, 20, 0.78),
    0 16px 30px rgba(4, 24, 32, 0.24);
}

.device-laptop__bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, rgba(4, 25, 35, 0.18));
  pointer-events: none;
}

.device-laptop__screen .device-screen-media {
  border-radius: 9px;
  background: #eef9fb;
  box-shadow: 0 0 0 1px rgba(213, 231, 229, 0.72);
}

.device-laptop__hinge {
  position: relative;
  z-index: 5;
  width: min(82%, 660px);
  height: 18px;
  margin: -3px auto 0;
  border: 1px solid rgba(119, 145, 153, 0.48);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background:
    linear-gradient(90deg, rgba(113, 139, 148, 0.18), rgba(255, 255, 255, 0.84), rgba(113, 139, 148, 0.18)),
    linear-gradient(180deg, #d9e6e9, #aebfc5);
  box-shadow: 0 7px 14px rgba(8, 31, 40, 0.12);
}

.device-laptop__deck {
  position: relative;
  z-index: 3;
  width: min(98%, 810px);
  height: clamp(76px, 8.5vw, 96px);
  margin: -3px auto 0;
  border: 1px solid #b6c8cd;
  border-top: 0;
  border-radius: 0 0 26px 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #f8fbfb 0%, #d7e3e6 100%);
  transform-origin: center;
  transform: rotateX(12deg);
  box-shadow:
    0 18px 32px rgba(9, 34, 40, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.device-laptop__keyboard {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 13px;
  height: 22px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(88, 115, 124, 0.22) 0 18px, transparent 18px 25px),
    repeating-linear-gradient(180deg, rgba(88, 115, 124, 0.16) 0 6px, transparent 6px 10px);
  opacity: 0.72;
}

.device-laptop__trackpad {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: min(24%, 160px);
  height: 22px;
  border: 1px solid rgba(117, 145, 153, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  transform: translateX(-50%);
}

.device-laptop__base {
  position: relative;
  z-index: 2;
  width: min(100%, 840px);
  height: 24px;
  margin: -8px auto 0;
  border-radius: 0 0 48px 48px;
  background:
    linear-gradient(90deg, rgba(142, 166, 172, 0.1), rgba(255, 255, 255, 0.8), rgba(142, 166, 172, 0.1)),
    linear-gradient(180deg, #eef5f6 0%, #b8c9cf 100%);
  box-shadow: 0 18px 24px rgba(9, 34, 40, 0.10);
}

.device-laptop__base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(20%, 150px);
  height: 8px;
  border-radius: 0 0 999px 999px;
  background: rgba(135, 158, 166, 0.26);
  transform: translateX(-50%);
}

.device-laptop__base::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: min(86%, 680px);
  height: 18px;
  border-radius: 999px;
  background: rgba(8, 31, 40, 0.11);
  filter: blur(10px);
  transform: translateX(-50%);
}

/* subtle hinge/deck highlight behind the screen to add depth */
.device-laptop::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 44px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(230, 241, 243, 0.92) 0%, rgba(191, 209, 214, 0.92) 100%);
  transform-origin: center;
  transform: rotateX(12deg);
  box-shadow: 0 8px 16px rgba(9, 34, 40, 0.08);
  z-index: 1;
  pointer-events: none;
}

.dashboard-preview__phone {
  position: absolute;
  z-index: 8;
  right: clamp(16px, 3.5vw, 38px);
  bottom: -12px;
  width: clamp(170px, 19vw, 190px);
}

@media (max-width: 980px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
  }

  .home-hero__visual {
    margin-top: 8px;
    justify-items: center;
  }

  .home-hero__image {
    max-width: 720px;
    aspect-ratio: 16 / 10;
    object-position: 58% 54%;
  }

  .hero-dashboard-phone {
    width: min(62vw, 280px);
  }

  .dashboard-preview__devices {
    display: grid;
    gap: 24px;
    padding-right: 0;
    padding-bottom: 0;
    max-width: 100%;
  }

  .device-laptop {
    width: 100%;
  }

  .device-laptop__deck {
    height: clamp(54px, 10vw, 72px);
  }

  .dashboard-preview__phone {
    position: static;
    z-index: auto;
    width: min(52vw, 190px);
    margin: 24px auto 0;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .home-hero__image {
    aspect-ratio: 4 / 3;
    object-position: 63% 56%;
    border-radius: 14px;
  }

  .hero-dashboard-phone {
    width: min(72vw, 250px);
  }

  .home-page .page-hero .eyebrow,
  .home-page .section-head .eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .device-phone__body {
    padding: 10px;
    border-radius: 30px;
  }

  .device-phone .device-screen-media {
    border-radius: 21px;
  }

  .phone-alert-screen {
    padding: 38px 9px 9px;
    border-radius: 21px;
  }

  .phone-alert-card {
    padding: 9px;
  }

  .device-laptop__screen {
    padding: 24px 13px 13px;
    border-width: 3px;
    border-bottom-width: 6px;
    border-radius: 18px 18px 10px 10px;
  }

  .device-laptop__bezel {
    padding: 4px;
    border-radius: 10px;
  }

  .device-laptop__hinge {
    height: 10px;
  }

  .device-laptop__deck {
    height: 50px;
    border-radius: 0 0 18px 18px;
  }

  .device-laptop__base {
    height: 15px;
  }

  .device-laptop__keyboard {
    top: 10px;
    height: 15px;
  }

  .device-laptop__trackpad {
    bottom: 9px;
    height: 16px;
  }

  .dashboard-preview__phone {
    width: min(62vw, 190px);
  }

}

@media (max-width: 760px) {
  .villa-portfolio-preview__summary,
  .villa-property-row,
  .villa-portfolio-notes {
    grid-template-columns: 1fr;
  }

  .villa-portfolio-preview__status,
  .villa-property-row__action {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .villa-portfolio-preview {
    padding: 12px;
  }

  .villa-property-row {
    gap: 10px;
    padding: 12px;
  }
}

.home-hero,
.dashboard-preview {
  background: rgba(255, 255, 255, calc(var(--stj-card-opacity) * 0.5));
}

.hero-side,
.public-support-card,
.sensor-card,
.dashboard-mini-card,
.path-link-card,
.photo-main,
.photo-sub,
.signin-handoff__panel {
  background: rgba(255, 255, 255, var(--stj-card-opacity));
}

.path-card-media img,
.photo-main img,
.photo-sub img,
.device-screen-media,
.sensor-visual__magnifier img {
  filter: saturate(var(--stj-bg-saturation)) contrast(var(--stj-bg-contrast));
}

.path-link-card {
  border-color: rgba(6, 182, 164, 0.34);
  box-shadow: 0 18px 42px rgba(13, 58, 74, 0.10);
}

.path-link-card:hover {
  border-color: rgba(224, 91, 79, 0.58);
  box-shadow: 0 22px 48px rgba(13, 58, 74, 0.15);
}

.path-link-card .open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  border: 1px solid #d74f44;
  background: linear-gradient(135deg, var(--coral), #f06b5d);
  color: #ffffff;
  padding: 10px 13px;
  box-shadow: 0 14px 30px rgba(224, 91, 79, 0.24);
}

/* Public-site soft surface pass */
.home-page,
.residential-page,
.villa-page,
.sensor-page {
  --public-surface: rgba(255, 255, 255, 0.72);
  --public-surface-strong: rgba(255, 255, 255, 0.82);
  --public-surface-mist: rgba(238, 250, 248, 0.74);
  --public-surface-border: rgba(150, 203, 201, 0.42);
  --public-surface-shadow: 0 18px 46px rgba(7, 58, 70, 0.11);
  --public-surface-inner: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --public-image-bg: linear-gradient(180deg, rgba(240, 251, 249, 0.8), rgba(226, 244, 242, 0.66));
}

.home-page .section-head,
.residential-page .section-head,
.villa-page .section-head,
.sensor-page .section-head {
  background: transparent;
}

.home-page .hero-side,
.home-page .public-support-card,
.home-page .copy-panel,
.home-page .data-panel,
.home-page .info-panel,
.home-page .sensor-card,
.home-page .sensor-visual,
.home-page .path-link-card,
.residential-page .hero-side,
.residential-page .public-support-card,
.residential-page .residential-service-card,
.residential-page .copy-panel,
.residential-page .data-panel,
.residential-page .info-panel,
.residential-page .homeowner-value,
.residential-page .feature-icon-item,
.residential-page .residential-demo-preview,
.residential-page .residential-demo-summary,
.villa-page .hero-side,
.villa-page .public-support-card,
.villa-page .copy-panel,
.villa-page .data-panel,
.villa-page .info-panel,
.villa-page .villa-value,
.villa-page .scale-card,
.villa-page .portfolio-flow,
.villa-page .console-frame,
.villa-page .villa-portfolio-preview,
.villa-page .villa-portfolio-preview__summary,
.villa-page .villa-property-row,
.villa-page .villa-portfolio-notes div,
.sensor-page .sensor-prototype-panel,
.sensor-page .sensor-prototype-copy,
.sensor-page .sensor-image-card,
.sensor-page .copy-panel,
.sensor-page .data-panel,
.sensor-page .info-panel,
.sensor-page .asset-card,
.sensor-page .install-step,
.sensor-page .connection-card,
.sensor-page .scenario-card,
.sensor-page .conn-path-card,
.sensor-page .dashboard-mini-card,
.sensor-page .outside-list span,
.sensor-page .service-note-grid div {
  border-color: var(--public-surface-border);
  background:
    linear-gradient(145deg, var(--public-surface-strong), var(--public-surface-mist)),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--public-surface-shadow), var(--public-surface-inner);
  backdrop-filter: blur(8px) saturate(1.08);
}

.home-page .path-link-card,
.residential-page .homeowner-value,
.residential-page .feature-icon-item,
.villa-page .villa-value,
.villa-page .scale-card,
.sensor-page .install-step,
.sensor-page .connection-card,
.sensor-page .scenario-card {
  box-shadow: 0 12px 30px rgba(7, 58, 70, 0.08), var(--public-surface-inner);
}

.residential-page .homeowner-value-grid,
.residential-page .feature-icon-grid,
.villa-page .villa-value-grid,
.villa-page .scale-grid,
.sensor-page .install-step-grid,
.sensor-page .connection-grid,
.sensor-page .scenario-card-grid {
  gap: 10px;
  border: 0;
  background: transparent;
}

.home-page .photo-band,
.residential-page .photo-band,
.villa-page .photo-band,
.sensor-page .connectivity-section,
.residential-page .residential-monitoring-section {
  border-color: rgba(150, 203, 201, 0.28);
  background:
    linear-gradient(180deg, rgba(236, 250, 248, 0.34), rgba(255, 255, 255, 0.22)),
    transparent;
}

.home-page .photo-main,
.home-page .photo-sub,
.residential-page .photo-main,
.residential-page .photo-sub,
.villa-page .photo-main,
.villa-page .photo-sub,
.home-page .path-card-media,
.residential-page .residential-demo-browser,
.residential-page .residential-demo-frame,
.sensor-page .sensor-image-frame,
.sensor-page .standalone-image-frame,
.sensor-page .puck-hero-frame,
.sensor-page .install-reference-frame {
  border-color: rgba(150, 203, 201, 0.42);
  background: var(--public-image-bg);
  box-shadow: 0 16px 38px rgba(7, 58, 70, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.home-page .sensor-visual,
.home-page .path-card-media,
.sensor-page .sensor-image-card,
.sensor-page .sensor-image-frame,
.sensor-page .standalone-image-frame,
.sensor-page .install-reference-frame {
  padding: clamp(10px, 1.8vw, 16px);
}

.home-page #sensor-monitor .sensor-visual img,
.path-card-media img,
.photo-main img,
.photo-sub img,
.sensor-page .sensor-image-frame img,
.sensor-page .asset-card img,
.sensor-page .standalone-image-frame img,
.sensor-page .install-reference-frame img {
  border-color: rgba(150, 203, 201, 0.30);
  filter: saturate(calc(var(--stj-bg-saturation) * 0.98)) contrast(1.04);
}

.home-page #sensor-monitor .sensor-visual > img,
.sensor-page .standalone-image-frame img,
.sensor-page .install-reference-frame img,
.sensor-page .asset-card img {
  background: rgba(243, 252, 250, 0.64);
  box-shadow: 0 10px 26px rgba(7, 58, 70, 0.08);
}

.photo-caption,
.asset-note,
.residential-demo-cta,
.villa-demo-cta,
.sensor-waitlist-note {
  border-color: rgba(150, 203, 201, 0.38);
  background: rgba(244, 252, 250, 0.72);
}

.residential-demo-browser__bar,
.console-frame__bar,
.console-frame__filters,
.dashboard-mini-level,
.dashboard-mini-grid,
.villa-demo-cta {
  background:
    linear-gradient(180deg, rgba(244, 252, 250, 0.78), rgba(229, 245, 243, 0.58)),
    transparent;
  border-color: rgba(150, 203, 201, 0.36);
}

.residential-demo-points span,
.path-fit,
.role-card,
.field-log > div,
.villa-property-row__meta span,
.villa-property-row__action,
.conn-device,
.portfolio-chip,
.sensor-prototype-spec,
.sensor-status-item,
.outside-list span,
.service-note-grid div {
  border-color: rgba(150, 203, 201, 0.34);
  background: rgba(239, 250, 248, 0.62);
}

.console-frame__search,
.villa-portfolio-notes div,
.dashboard-mini-grid div {
  border-color: rgba(150, 203, 201, 0.32);
}

.home-page .path-link-card:hover {
  border-color: rgba(224, 91, 79, 0.52);
  box-shadow: 0 22px 48px rgba(7, 58, 70, 0.15), var(--public-surface-inner);
}

/* Public direct text surface pass */
.home-page,
.residential-page,
.villa-page,
.sensor-page,
.services-page,
.contact-page {
  --public-text-surface: rgba(255, 255, 255, 0.86);
  --public-text-surface-mist: rgba(238, 250, 248, 0.80);
  --public-text-border: rgba(150, 203, 201, 0.46);
  --public-text-shadow: 0 18px 42px rgba(7, 58, 70, 0.12);
  --public-text-hero-max: 690px;
  --public-text-section-max: 640px;
}

:is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .page-hero .page-hero-inner > div:first-child,
:is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .section > .shell > .section-head {
  box-sizing: border-box;
  width: fit-content;
  max-width: min(var(--public-text-section-max), 100%);
  padding: clamp(15px, 2.1vw, 22px);
  border: 1px solid var(--public-text-border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--public-text-surface), var(--public-text-surface-mist)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--public-text-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px) saturate(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.06);
}

:is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .page-hero .page-hero-inner > div:first-child {
  max-width: min(var(--public-text-hero-max), 100%);
}

:is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .section > .shell > .section-head {
  margin-bottom: 16px;
}

:is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .section > .shell > .section-head + .cta-row {
  max-width: min(var(--public-text-section-max), 100%);
}

@media (max-width: 720px) {
  :is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .page-hero .page-hero-inner > div:first-child,
  :is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .section > .shell > .section-head,
  :is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .section > .shell > .section-head + .cta-row {
    width: 100%;
    max-width: 100%;
  }
}

/* Public secondary button visibility pass */
:is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .btn:not(.primary):not(.path-cta):not(:disabled):not([disabled]) {
  border-color: rgba(4, 133, 118, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(225, 248, 245, 0.82)),
    rgba(255, 255, 255, 0.86);
  color: #075f57;
  box-shadow: 0 10px 24px rgba(7, 58, 70, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

:is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .btn:not(.primary):not(.path-cta):not(:disabled):not([disabled]):hover,
:is(.home-page, .residential-page, .villa-page, .sensor-page, .services-page, .contact-page) .btn:not(.primary):not(.path-cta):not(:disabled):not([disabled]):focus-visible {
  border-color: rgba(3, 117, 104, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(210, 245, 241, 0.90)),
    rgba(255, 255, 255, 0.92);
  color: #044f48;
  box-shadow: 0 14px 30px rgba(7, 58, 70, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
