/* ===== JustBrisk — base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: #ffffff;
  color: #1d1d1f;
  font-family: "Google Sans Flex", -apple-system, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* visually hidden but available to screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Liquid glass ===== */
.glass {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px) saturate(200%);
  backdrop-filter: blur(8px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(31, 38, 60, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(31, 38, 60, 0.05);
}

/* ===== Plexus background ===== */
#plexus {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.85) 100%);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  z-index: 2;
}

/* scroll locked while the hero assembly plays (released on finish/skip) */
html.hero-lock,
body.hero-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* fade-in UI after assembly (opacity only — transforms are owned by each block) */
.hero-ui {
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.hero-ui.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- nav bar --- */
.nav-bar {
  position: fixed;
  z-index: 100; /* always above every section */
  top: 4vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 1400px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  z-index: 3;
  transition: padding 0.4s ease, top 0.4s ease,
              opacity 1.2s ease, transform 1.2s ease;
}

.nav-bar.hero-ui {
  transform: translateX(-50%) translateY(8px);
}

.nav-bar.hero-ui.visible {
  transform: translateX(-50%) translateY(0);
}

/* thinner bar once the user scrolls past the hero */
.nav-bar.scrolled {
  top: 12px;
  padding: 8px 32px;
}

.nav-bar.scrolled .nav-logo {
  width: clamp(200px, 20vw, 340px);
}

.nav-link {
  color: #1d1d1f;
  text-decoration: none;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-logo {
  display: block;
  width: clamp(300px, 32vw, 540px);
  height: auto;
  transition: width 0.4s ease;
}

/* --- video: centered, scales down from full-screen cover --- */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* wide enough to cover the viewport at scale 1 (9:16 source) */
  width: max(100vw, 56.25vh);
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: transform;
  z-index: 1;
}

.hero-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* --- feature chips --- */
.chips {
  position: absolute;
  /* vertically centered on the product's resting position (set from JS) */
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* fixed, identical height on both sides so the 3 rows line up evenly */
  height: 56vh;
  /* fixed width so every chip renders the same size */
  width: clamp(180px, 15vw, 260px);
  z-index: 2;
}

/* page split into thirds; each chip column sits at the center of its third */
.chips-left { left: calc(100% / 6); }
.chips-right { left: calc(100% * 5 / 6); }

/* slogan at the very top, fading in with the rest of the hero UI */
.hero-slogan {
  position: absolute;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: clamp(20px, 1.8vw, 31px);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  font-size: clamp(16px, 1.2vw, 21px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

/* ===== Technology (motor) section ===== */
.tech-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8vh 5vw;
}

.tech-inner {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
}

/* copy on the left, its right edge exactly at the page's vertical center */
.tech-copy {
  --copy-w: clamp(440px, 36vw, 1000px);
  width: var(--copy-w);
  /* inner starts 5vw in (section padding), so 45vw + width puts the
     right edge at 50vw */
  margin-left: calc(45vw - var(--copy-w));
}
.tech-media {
  position: absolute;
  left: 45vw; /* 5vw section padding + 45vw = 50vw on the page */
  top: 50%;
  /* zero-height box: the video bleeds vertically instead of stretching
     tech-inner (top/bottom 25% of the frame is empty space anyway) */
  height: 0;
  /* from the page center to the right viewport edge */
  width: 50vw;
}

.tech-media video {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  /* centered on the zero-height box = vertically centered on the row;
     JS adds a translateX for the post-5s recentering */
  transform: translateY(-50%);
  filter: drop-shadow(0 30px 60px rgba(20, 40, 70, 0.18));
}

.sec-eyebrow {
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #0f7cc4;
  margin-bottom: 18px;
}

.sec-title {
  font-size: clamp(32px, 3vw, 53px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 6vh;
}

.tech-block {
  padding: 26px 32px;
  border-radius: 20px;
}

.tech-block + .tech-block {
  margin-top: 22px;
}

.tech-block h3 {
  font-size: clamp(20px, 1.4vw, 25px);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.tech-block .block-sub {
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 500;
  line-height: 1.4;
  color: #0f7cc4;
  margin-bottom: 12px;
}

.tech-block p {
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(29, 29, 31, 0.72);
}

/* scroll-reveal */
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rv.on {
  opacity: 1;
  transform: none;
}

/* ===== Aerodynamics section ===== */
.aero-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.aero-inner {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.aero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
}

.aero-card {
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* both cards match the taller column */
}

.aero-card-body {
  flex: 1; /* equal-height text zones… */
  display: flex;
  align-items: center; /* …vertically centred, so short text doesn't strand whitespace */
  padding: clamp(18px, 1.8vw, 28px) clamp(24px, 2.2vw, 36px) clamp(24px, 2.2vw, 36px);
}

.aero-card-head {
  padding: clamp(24px, 2.2vw, 36px) clamp(24px, 2.2vw, 36px) clamp(16px, 1.6vw, 24px);
}

.aero-card-title {
  font-size: clamp(22px, 1.6vw, 28px);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.aero-card-sub {
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 500;
  color: #0f7cc4;
}

.aero-card .aero-media {
  /* tinted zone, same recipe as the use-case card art */
  background:
    radial-gradient(120% 100% at 20% 0%, hsla(var(--h), 80%, 72%, 0.55), hsla(var(--h), 70%, 60%, 0.18) 60%, transparent),
    linear-gradient(160deg, hsla(var(--h), 70%, 88%, 0.5), hsla(var(--h), 60%, 70%, 0.25));
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.aero-card-body p {
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  color: rgba(29, 29, 31, 0.72);
}

.aero-media video {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(20, 40, 70, 0.18));
}

/* ===== Materials section: directional explode, sticky viewport ===== */
.mat-section {
  position: relative;
  z-index: 2;
  height: 100vh; /* a normal section — no extra scroll distance */
}

.mat-sticky {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mat-head {
  text-align: center;
  padding-top: 4vh;
}

.mat-head .sec-title {
  margin-bottom: 1vh; /* pull the exploded view up toward the title */
}

.mat-stage {
  position: relative;
  flex: 1;
}

.mat-stage video {
  position: absolute;
  left: 50%;
  top: 40%; /* above center: balances the title gap against the base card below */
  transform: translate(-50%, -50%);
  height: 50vh;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(20, 40, 70, 0.18));
}

/* feature callouts floating around the product */
.mat-feat {
  position: absolute;
  left: var(--fx, auto);
  right: var(--fr, auto);
  top: var(--fy);
  width: clamp(220px, 19vw, 320px);
  padding: 18px 24px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mat-feat.on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mat-feat h4 {
  font-size: clamp(17px, 1.1vw, 20px);
  font-weight: 600;
  margin-bottom: 6px;
}

.mat-feat p {
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.6;
  color: rgba(29, 29, 31, 0.7);
}

.mat-feat-wide {
  width: clamp(280px, 30vw, 480px);
  /* centered directly under the product — where the base/flashing sits */
  left: 50%;
  transform: translate(-50%, 16px) scale(0.97);
}

.mat-feat-wide.on {
  transform: translate(-50%, 0) scale(1);
}

/* tech-block header: text left, icon right, icon spans title + eyebrow */
.tb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.tb-head h3 {
  margin-bottom: 6px;
}

.tb-head .block-sub {
  margin-bottom: 0;
}

.tech-icon {
  width: clamp(38px, 3.2vw, 48px);
  height: auto;
  flex-shrink: 0;
}

/* ===== Certification cards ===== */
.cert-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(14px, 1.6vw, 24px);
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 22px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
}

.cert-card img {
  width: clamp(64px, 6vw, 90px);
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(20, 40, 70, 0.15);
}

.cert-cap h4 {
  font-size: clamp(18px, 1.2vw, 21px);
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-cap p {
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1.5;
  color: rgba(29, 29, 31, 0.6);
}

/* ===== Footer IP notice ===== */
.ip-notice {
  width: min(760px, 92vw);
  margin: 3.5vh auto 0;
  padding: 20px 26px;
  border-radius: 18px;
  text-align: center;
}

.ip-notice h4 {
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ip-notice p {
  font-size: clamp(13px, 0.85vw, 16px);
  line-height: 1.65;
  color: rgba(29, 29, 31, 0.55);
}

/* ===== Solar section: interactive bifacial viewer ===== */
.solar-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.solar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1500px, 100%);
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 8px 32px rgba(31, 38, 60, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px) saturate(200%);
  backdrop-filter: blur(8px) saturate(200%);
}

.solar-left {
  padding: clamp(36px, 4vw, 64px);
  /* very transparent liquid glass with a really light blue tint */
  background: rgba(190, 218, 248, 0.28);
}

.solar-left .sec-title {
  margin-bottom: 4vh;
}

.solar-body {
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.75;
  color: rgba(29, 29, 31, 0.75);
  max-width: 46ch;
}

.solar-specs {
  list-style: none;
  margin-top: 4vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solar-specs li {
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 500;
  color: rgba(29, 29, 31, 0.8);
  padding-left: 18px;
  position: relative;
}

.solar-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f7cc4, #57c785);
}

.solar-right {
  padding: clamp(28px, 3vw, 48px);
  /* very transparent liquid glass with a really light grey tint */
  background: rgba(240, 242, 245, 0.42);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
}

.solar-thumbs {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 22px);
}

.solar-thumb {
  appearance: none;
  border: 1px solid rgba(31, 38, 60, 0.12);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 10px 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: clamp(96px, 9vw, 140px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.solar-thumb img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.solar-thumb span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(29, 29, 31, 0.6);
}

.solar-thumb:hover {
  transform: translateY(-2px);
}

.solar-thumb.on {
  border-color: #0f7cc4;
  box-shadow: 0 6px 18px rgba(15, 124, 196, 0.22);
}

.solar-thumb.on span {
  color: #0f7cc4;
}

.solar-media {
  position: relative;
}

.solar-media video.rev {
  position: absolute;
  inset: 0;
  height: 100%;
}

.solar-media video {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(20, 40, 70, 0.18));
}

/* ===== Climate section: interactive thermostat + humidistat ===== */
.sense-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.sense-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  width: min(1500px, 100%);
  margin: 0 auto;
}

.meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.meter-name {
  font-size: clamp(16px, 1vw, 19px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.meter-track {
  position: relative;
  width: clamp(64px, 5.5vw, 92px);
  height: 56vh;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px) saturate(200%);
  backdrop-filter: blur(8px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 8px 32px rgba(31, 38, 60, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  touch-action: none;
}

.meter-fill {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f7cc4, #57c785); /* blue top, green bottom */
  opacity: 0.85;
  transition: height 0.15s ease-out;
}

.meter-temp .meter-fill {
  background: linear-gradient(180deg, #e2574c, #f2a65a);
}

.meter-knob {
  position: absolute;
  left: 50%;
  bottom: 40%;
  width: clamp(76px, 6.5vw, 106px);
  height: 22px;
  transform: translate(-50%, 50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(31, 38, 60, 0.14);
  box-shadow: 0 4px 14px rgba(31, 38, 60, 0.22);
  transition: bottom 0.15s ease-out, box-shadow 0.2s ease;
}

.meter-track.dragging .meter-knob,
.meter-track.dragging .meter-fill {
  transition: none;
}

.meter-knob:hover {
  box-shadow: 0 6px 20px rgba(15, 124, 196, 0.35);
}

.meter-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.28); /* very faint — a whisper, not a shout */
  pointer-events: none;
  user-select: none;
}

.meter-tick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 2px dashed rgba(31, 38, 60, 0.35);
  pointer-events: none;
}

.meter-tick span {
  position: absolute;
  top: -9px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(29, 29, 31, 0.55);
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px;
  border-radius: 6px;
}

.meter-temp .meter-tick span { left: calc(100% + 10px); }
.meter-hum .meter-tick span { right: calc(100% + 10px); }

.meter-value {
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 600;
  color: rgba(29, 29, 31, 0.85);
  min-width: 9ch;
  text-align: center;
}

.sense-center {
  text-align: center;
}

.sense-center .sec-title {
  margin-bottom: 4vh;
}

.sense-media {
  position: relative;
  width: min(420px, 60vw);
  margin: 0 auto;
}

.sense-media video {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(20, 40, 70, 0.18));
}

.sense-status {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.55);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.sense-status.on {
  color: #0f7cc4;
}

.sense-body {
  margin: 3.5vh auto 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.75;
  color: rgba(29, 29, 31, 0.72);
  /* liquid glass bubble for the body copy */
  padding: clamp(18px, 1.8vw, 28px) clamp(24px, 2.4vw, 36px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px) saturate(200%);
  backdrop-filter: blur(8px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 8px 32px rgba(31, 38, 60, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(31, 38, 60, 0.05);
}

/* ===== Power section: animated solar/grid blending ===== */
.power-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.power-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  width: min(1500px, 100%);
  margin: 0 auto;
}

.power-copy .sec-title {
  margin-bottom: 4vh;
}

.power-body {
  padding: clamp(18px, 1.8vw, 28px) clamp(24px, 2.4vw, 36px);
  border-radius: 24px;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.75;
  color: rgba(29, 29, 31, 0.75);
}

.power-copy .solar-specs {
  margin-top: 3vh;
}

.power-viz {
  padding: clamp(22px, 2.5vw, 40px);
  border-radius: 32px;
}

#powerSvg {
  display: block;
  width: 100%;
  height: auto;
}

#powerSvg text {
  font-family: inherit;
}

.pz-chip {
  fill: rgba(255, 255, 255, 0.55);
  stroke: rgba(31, 38, 60, 0.12);
}

.pz-chip-label {
  font-size: 15px;
  font-weight: 600;
  fill: #1d1d1f;
}

.pz-chip-sub {
  font-size: 13px;
  font-weight: 600;
  fill: #0f7cc4;
}

.pz-tl text {
  font-size: 10px;
  font-weight: 600;
  fill: rgba(29, 29, 31, 0.45);
}

.pz-clock {
  font-size: 15px;
  font-weight: 600;
  fill: rgba(29, 29, 31, 0.7);
  letter-spacing: 0.08em;
}

.power-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.force-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(29, 29, 31, 0.75);
  cursor: pointer;
  user-select: none;
}

.force-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ft-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(31, 38, 60, 0.15);
  position: relative;
  transition: background 0.25s ease;
}

.ft-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 38, 60, 0.25);
  transition: left 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.force-toggle input:checked + .ft-track {
  background: linear-gradient(90deg, #0f7cc4, #57c785);
}

.force-toggle input:checked + .ft-track .ft-thumb {
  left: 21px;
}

.ft-help {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31, 38, 60, 0.1);
  color: rgba(29, 29, 31, 0.55);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  position: relative;
}

.ft-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.92);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}

.ft-help:hover .ft-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#powerFan.paused {
  animation-play-state: paused;
}

/* ===== Gears section: dynamic power curve ===== */
.gears-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.gears-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* visual left, copy right */
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  width: min(1500px, 100%);
  margin: 0 auto;
}

.pz-watt {
  font-size: 30px;
  font-weight: 700;
  fill: #1d1d1f;
}

.pz-mode {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: #0f7cc4;
}

.pz-legend-solar {
  font-size: 11px;
  font-weight: 600;
  fill: #f2a65a;
}

.pz-legend-motor {
  font-size: 11px;
  font-weight: 600;
  fill: #0f7cc4;
}

#solarBase, #gridBase {
  opacity: 0.14;
  stroke-width: 8;
}

#solarFlow, #gridFlow {
  stroke-dasharray: 2 14;
  stroke-width: 6;
}

.pz-motor-ring {
  fill: rgba(255, 255, 255, 0.6);
  stroke: rgba(31, 38, 60, 0.12);
}

.pz-motor-label {
  font-size: 12.5px;
  font-weight: 600;
  fill: rgba(29, 29, 31, 0.55);
  letter-spacing: 0.04em;
}

#powerFan {
  transform-origin: 495px 190px;
  animation: pz-spin 1.1s linear infinite;
}

@keyframes pz-spin {
  to { transform: rotate(360deg); }
}

.power-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31, 38, 60, 0.08);
  margin-top: 8px;
}

.power-bar-solar {
  width: 100%;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  transition: width 0.4s ease;
}

.power-bar-grid {
  width: 0%;
  background: #8a93a6;
  transition: width 0.4s ease;
}

.power-status {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f7cc4;
  transition: color 0.3s ease;
}

.power-status.grid {
  color: #5a6472;
}

/* ===== Use cases: horizontal card rail ===== */
.case-section {
  position: relative;
  z-index: 2;
  padding: 8vh 0 8vh 5vw;
}

.case-head {
  width: min(1500px, 90vw);
  margin: 0 auto 3.5vh;
}

.case-head .sec-title {
  margin-bottom: 2vh;
}

.case-sub {
  font-size: clamp(16px, 1.05vw, 18px);
  color: rgba(29, 29, 31, 0.6);
  max-width: 52ch;
}

.case-rail-wrap {
  position: relative;
}

.case-rail {
  display: flex;
  gap: clamp(16px, 1.6vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 5vw 20px 0;
  scrollbar-width: none;
}

.case-rail::-webkit-scrollbar {
  display: none;
}

.case-card {
  flex: 0 0 clamp(230px, 20vw, 300px);
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px) saturate(200%);
  backdrop-filter: blur(8px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 8px 32px rgba(31, 38, 60, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(31, 38, 60, 0.16);
}

.case-art {
  aspect-ratio: 4 / 3.4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(64px, 5vw, 86px);
  background:
    radial-gradient(120% 100% at 20% 0%, hsla(var(--h, 210), 80%, 72%, 0.55), hsla(var(--h, 210), 70%, 60%, 0.18) 60%, transparent),
    linear-gradient(160deg, hsla(var(--h, 210), 70%, 88%, 0.5), hsla(var(--h, 210), 60%, 70%, 0.25));
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

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

.case-card h4 {
  font-size: clamp(17px, 1.1vw, 20px);
  font-weight: 600;
  margin: 16px 20px 6px;
}

.case-card p {
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.62);
  margin: 0 20px 20px;
}

.case-arrow {
  position: absolute;
  top: 38%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(31, 38, 60, 0.16);
  font-size: 22px;
  line-height: 1;
  color: #1d1d1f;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.case-arrow:hover {
  transform: scale(1.08);
}

.case-prev { left: 8px; }
.case-next { right: calc(5vw - 16px); }

.case-arrow[disabled] {
  opacity: 0.25;
  pointer-events: none;
}

/* ===== Remote section: centered product + floating callouts ===== */
.remote-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw 6vh;
}

.remote-head {
  text-align: center;
  margin-bottom: 4vh;
}

.remote-head .sec-title {
  margin-bottom: 0;
}

.remote-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(30px, 4vw, 64px); /* equal padding both sides of the remote */
  width: min(1300px, 100%);
  margin: 0 auto;
}

.remote-img {
  height: 64vh;
  width: auto;
  align-self: center;
  filter: drop-shadow(0 30px 60px rgba(20, 40, 70, 0.22));
}

.remote-col {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 24px;
}

.remote-col-l {
  text-align: right;
  align-items: flex-end;
}

.remote-feat {
  width: min(100%, 280px);
}

.remote-feat h4 {
  font-size: clamp(21px, 1.7vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.remote-feat p {
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.6);
}

.remote-cap {
  text-align: center;
  max-width: 56ch;
  margin: 3.5vh auto 0;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  color: rgba(29, 29, 31, 0.6);
}

/* ===== Why JustBrisk + footer ===== */
.why-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.why-inner {
  width: min(1300px, 100%);
  margin: 0 auto;
  text-align: center;
}

.why-lead {
  max-width: 68ch;
  margin: 0 auto 4vh;
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.75;
  color: rgba(29, 29, 31, 0.72);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}

.why-card {
  padding: clamp(20px, 2vw, 30px);
  border-radius: 22px;
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-card h4 {
  font-size: clamp(21px, 1.6vw, 28px);
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-card p {
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.62);
}

.why-icon {
  width: clamp(26px, 2.2vw, 34px);
  height: auto;
  margin-bottom: 12px;
}

/* 10 cards in a 3-col grid: center the lone last-row card */
.why-card:nth-child(10):last-child {
  grid-column: 2;
}

.footer-slogan {
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 2.5vh 0 1vh;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Comparison table ===== */
.cmp-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.cmp-inner {
  width: min(1300px, 100%);
  margin: 0 auto;
  text-align: center;
}

.cmp-sub {
  font-size: clamp(17px, 1.1vw, 20px);
  color: rgba(29, 29, 31, 0.6);
  margin-bottom: 5vh;
}

.cmp-wrap {
  border-radius: 26px;
  padding: clamp(10px, 1.4vw, 22px);
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: clamp(14px, 0.95vw, 18px);
  min-width: 720px;
}

.cmp-table th {
  padding: 16px 18px;
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.55);
  border-bottom: 1px solid rgba(29, 29, 31, 0.12);
}

.cmp-table th.cmp-us {
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cmp-table td {
  padding: 15px 18px;
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.72);
  border-bottom: 1px solid rgba(29, 29, 31, 0.07);
  vertical-align: top;
}

.cmp-table tr:last-child td {
  border-bottom: none;
}

.cmp-table td:first-child {
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
}

.cmp-yes { color: #1faa6d; font-weight: 700; margin-right: 6px; }
.cmp-no { color: #d05555; font-weight: 700; margin-right: 6px; }
.cmp-mid { color: #c98a2b; font-weight: 700; margin-right: 6px; }

.cmp-note {
  margin-top: 18px;
  font-size: clamp(13px, 0.85vw, 16px);
  color: rgba(29, 29, 31, 0.45);
}

/* ===== FAQ: human-readable, mirrors the FAQPage structured data ===== */
.faq-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.faq-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: 4vh;
  text-align: left;
}

.faq-item {
  padding: clamp(20px, 2vw, 30px);
  border-radius: 22px;
}

/* odd item count: let the last card span both columns */
.faq-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.faq-item h4 {
  font-size: clamp(18px, 1.15vw, 21px);
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.65;
  color: rgba(29, 29, 31, 0.68);
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7vh 5vw 6vh;
  color: rgba(29, 29, 31, 0.55);
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
}

.site-footer p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-fine {
  font-size: 11.5px;
  opacity: 0.7;
}

@media (max-width: 900px) {
  /* hero: chips move to top/bottom rows so the product can stand out bigger */
  .hero .chips {
    flex-direction: row;
    height: auto;
    width: min(94vw, 560px);
    gap: 8px;
    transform: translate(-50%, 0);
  }
  .hero .chips-left { left: 50%; top: 22vh; }
  .hero .chips-right { left: 50%; top: auto; bottom: 12vh; }
  .hero .chip {
    flex: 1;
    padding: 10px 8px;
    font-size: clamp(11px, 2.6vw, 14px);
  }
  .hero-slogan {
    top: 17.5vh;
    white-space: normal;
    text-align: center;
    width: 92vw;
    font-size: clamp(16px, 4.5vw, 21px);
  }

  .tech-copy {
    width: auto;
    margin-left: 0;
  }
  .tech-copy .sec-title {
    margin-bottom: 0; /* video's top bleed sits right under the title */
  }
  .tech-media {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto; /* back in normal flow between title and blocks */
    /* only the middle 50% of the square frame occupies layout space;
       the empty top/bottom quarters bleed over the neighbors */
    margin-top: -25%;
    /* keep the same gap below the bleed as between the tech blocks */
    margin-bottom: calc(-25% + 22px);
    overflow: visible;
  }
  .tech-media video {
    position: static;
    transform: none;
  }
  .aero-grid {
    grid-template-columns: 1fr;
  }

  /* materials: video up top, callouts stacked below */
  .mat-head {
    padding-top: 10vh;
  }
  .mat-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 5vw 5vh;
    overflow: visible;
  }
  .mat-stage video {
    position: static;
    transform: none;
    height: 34vh;
    flex-shrink: 0;
  }
  .mat-feat,
  .mat-feat-wide {
    position: static;
    width: 100%;
  }
  .mat-feat,
  .mat-feat.on,
  .mat-feat-wide,
  .mat-feat-wide.on {
    transform: none;
  }
  /* mobile stacks the cards in normal flow — always visible, otherwise
     unrevealed cards would leave blank gaps when the video rewinds */
  .mat-feat {
    opacity: 1;
  }

  /* certifications: stack */
  .cert-row {
    grid-template-columns: 1fr;
  }

  /* solar: stack the two glass columns */
  .solar-inner {
    grid-template-columns: 1fr;
  }

  /* climate: video first, meters side-by-side below */
  .sense-inner {
    grid-template-columns: 1fr 1fr;
  }
  .sense-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .meter-track {
    height: 38vh;
  }

  /* power: copy above the diagram */
  .power-inner {
    grid-template-columns: 1fr;
  }

  /* materials: content-sized on mobile, no leftover fixed height */
  .mat-section {
    height: auto;
  }
  .mat-sticky {
    height: auto;
  }

  /* gears: copy first, chart below — same order as the power section */
  .gears-inner {
    grid-template-columns: 1fr;
  }
  .gears-inner .power-copy {
    order: -1;
  }

  /* why: two-up stat cards */
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  /* remote: image first, callout columns stack below */
  .remote-stage {
    grid-template-columns: 1fr;
  }
  .remote-img {
    height: 52vh;
    justify-self: center;
    order: -1;
  }
  .remote-col-l {
    text-align: left;
    align-items: flex-start;
  }
  .remote-feat {
    width: min(420px, 100%);
  }
}

/* ===== Debug mode (body.debug): purple frames around structural blocks ===== */
body.debug .hero,
body.debug .nav-bar,
body.debug .chips,
body.debug .chip,
body.debug .hero-video,
body.debug .tech-section,
body.debug .tech-inner,
body.debug .aero-section,
body.debug .aero-inner,
body.debug .aero-col,
body.debug .aero-media,
body.debug .tech-media,
body.debug .tech-copy,
body.debug .tech-block,
body.debug .solar-section,
body.debug .solar-inner,
body.debug .solar-left,
body.debug .solar-right,
body.debug .solar-thumbs,
body.debug .solar-thumb,
body.debug .solar-media,
body.debug .sense-section,
body.debug .sense-inner,
body.debug .sense-center,
body.debug .sense-media,
body.debug .meter,
body.debug .meter-track,
body.debug .power-section,
body.debug .power-inner,
body.debug .power-copy,
body.debug .power-viz,
body.debug .remote-section,
body.debug .remote-head,
body.debug .remote-stage,
body.debug .remote-feat,
body.debug .why-section,
body.debug .why-grid,
body.debug .why-card,
body.debug .cmp-section,
body.debug .cmp-wrap,
body.debug .cert-card,
body.debug .faq-section,
body.debug .faq-item,
body.debug .site-footer,
body.debug video,
body.debug img {
  outline: 2px solid #a020f0;
  outline-offset: -2px;
}

body.debug .nav-bar,
body.debug .chips,
body.debug .hero-video,
body.debug .tech-media {
  background: rgba(160, 32, 240, 0.06);
}

/* ===== Subpages (About / Contact) ===== */
.nav-home {
  display: block;
  line-height: 0;
}

.nav-link.active {
  color: #0f7cc4;
}

.page-hero {
  position: relative;
  z-index: 2;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 26vh 0 4vh;
  text-align: center;
}

.page-hero .sec-title {
  margin-bottom: 3vh;
}

.page-lead {
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.65;
  color: rgba(29, 29, 31, 0.62);
  width: min(860px, 100%);
  margin: 0 auto;
}

.page-section {
  position: relative;
  z-index: 2;
  width: min(1300px, 94vw);
  margin: 0 auto;
  padding: 5vh 0;
  text-align: center;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
}

.stat-card {
  padding: clamp(22px, 2vw, 32px) clamp(16px, 1.6vw, 26px);
  border-radius: 22px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-num {
  display: block;
  font-size: clamp(30px, 2.6vw, 46px);
  font-weight: 700;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.5;
  color: rgba(29, 29, 31, 0.62);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  text-align: left;
}

.tl-item {
  padding: clamp(22px, 2vw, 32px) clamp(20px, 2vw, 30px);
  border-radius: 22px;
}

.tl-year {
  display: inline-block;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0f7cc4;
  margin-bottom: 10px;
}

.tl-item h4,
.about-card h4 {
  font-size: clamp(21px, 1.6vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tl-item p,
.about-card p {
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.6;
  color: rgba(29, 29, 31, 0.62);
}

/* About cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  text-align: left;
}

.about-card {
  padding: clamp(22px, 2vw, 32px) clamp(20px, 2vw, 30px);
  border-radius: 22px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.about-card:hover {
  transform: translateY(-4px);
}

.cert-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.cert-row img {
  width: calc(50% - 7px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

/* CTA */
.page-cta {
  padding-bottom: 8vh;
}

.cta-btn {
  display: inline-block;
  margin-top: 3vh;
  padding: 16px 44px;
  border-radius: 999px;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d1d1f;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
}

.contact-card {
  display: block;
  padding: clamp(22px, 2vw, 32px) clamp(16px, 1.6vw, 26px);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.contact-icon {
  display: block;
  font-size: clamp(26px, 2vw, 34px);
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-value {
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.contact-note {
  font-size: clamp(13px, 0.85vw, 15px);
  line-height: 1.5;
  color: rgba(29, 29, 31, 0.55);
}

/* Social row */
.contact-subhead {
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 700;
  margin: 6vh 0 10px;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-subnote {
  font-size: clamp(14px, 0.95vw, 17px);
  color: rgba(29, 29, 31, 0.6);
  margin-bottom: 3vh;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
  margin-bottom: 3vh;
}

/* Contact form */
.form-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 2.6vw, 44px);
  border-radius: 26px;
  text-align: left;
}

.form-title {
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  text-align: center;
}

.form-sub {
  font-size: clamp(14px, 0.95vw, 17px);
  color: rgba(29, 29, 31, 0.6);
  text-align: center;
  margin-bottom: 3vh;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(15, 124, 196, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  color: #1d1d1f;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #0f7cc4;
  box-shadow: 0 0 0 3px rgba(15, 124, 196, 0.15);
}

#contactForm textarea {
  resize: vertical;
}

#contactForm .cta-btn {
  display: block;
  margin: 6px auto 0;
}

/* Subpage mobile */
@media (max-width: 900px) {
  /* nav: shrink logo + links so the bar never overflows small screens */
  .nav-bar {
    width: min(96vw, 1400px);
    padding: 12px 16px;
  }
  .nav-bar.scrolled {
    padding: 8px 16px;
  }
  .nav-logo {
    width: clamp(140px, 42vw, 300px);
  }
  .nav-bar.scrolled .nav-logo {
    width: clamp(110px, 32vw, 200px);
  }
  .nav-link {
    font-size: clamp(11px, 2.8vw, 16px);
  }
  .page-hero {
    padding-top: 20vh;
  }
  .stat-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

body.debug .page-hero,
body.debug .page-section,
body.debug .stat-card,
body.debug .tl-item,
body.debug .about-card,
body.debug .contact-card,
body.debug .form-card,
body.debug .cta-btn {
  outline: 2px solid #a020f0;
  outline-offset: -2px;
}

/* ===== News & Catalogue pages + grouped nav ===== */
.nav-side {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 40px);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  text-align: left;
}

.news-card {
  padding: clamp(22px, 2vw, 32px) clamp(20px, 2vw, 30px);
  border-radius: 22px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-tag {
  display: inline-block;
  font-size: clamp(11px, 0.75vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f7cc4;
  border: 1px solid rgba(15, 124, 196, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.news-card h4 {
  font-size: clamp(19px, 1.4vw, 25px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-card p {
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.6;
  color: rgba(29, 29, 31, 0.62);
}

/* Catalogue */
.flagship {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(26px, 3vw, 52px);
  border-radius: 28px;
  text-align: left;
}

.flagship-media img {
  width: 100%;
  height: auto;
  display: block;
}

.flagship-copy h2 {
  font-size: clamp(26px, 2.4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 10px 0 16px;
}

.flagship-copy > p {
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.65;
  color: rgba(29, 29, 31, 0.62);
  margin-bottom: 22px;
}

.flagship-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.spec-chip {
  font-size: clamp(12px, 0.85vw, 15px);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 124, 196, 0.3);
  background: rgba(255, 255, 255, 0.45);
  color: #1d1d1f;
}

.flagship .cta-btn {
  margin-top: 2vh;
}

.cat-note {
  margin-top: 3vh;
  font-size: clamp(14px, 0.95vw, 17px);
  color: rgba(29, 29, 31, 0.62);
}

.cat-heading {
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  margin: 5vh 0 2.5vh;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
  text-align: left;
}

.cat-card {
  padding: clamp(20px, 1.8vw, 28px) clamp(18px, 1.8vw, 26px);
  border-radius: 22px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-4px);
}

.cat-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #ffffff;
  margin-bottom: 16px;
}

.cat-card h4 {
  font-size: clamp(18px, 1.3vw, 23px);
  font-weight: 700;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-chips .spec-chip {
  font-size: clamp(11px, 0.8vw, 13px);
  padding: 6px 12px;
}

.cat-card p {
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.6;
  color: rgba(29, 29, 31, 0.62);
  margin-bottom: 14px;
}

.cat-link {
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 700;
  color: #0f7cc4;
  text-decoration: none;
}

.cat-link:hover {
  text-decoration: underline;
}

/* iOS-style pill buttons on catalogue cards */
.cat-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: auto; /* glued to the bottom of the card */
  padding-top: 14px;
}

/* plain links on the other cards sit at the bottom too, for consistency */
.cat-card > .cat-link {
  margin-top: auto;
  padding-top: 4px;
}

.cat-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cat-btn:active {
  transform: scale(0.96);
}

.cat-btn-primary {
  background: #0f7cc4;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 124, 196, 0.3);
}

.cat-btn-primary:hover {
  background: #0d6daa;
}

.cat-btn-ghost {
  background: rgba(15, 124, 196, 0.12);
  color: #0f7cc4;
}

.cat-btn-ghost:hover {
  background: rgba(15, 124, 196, 0.2);
}

@media (max-width: 900px) {
  .nav-bar {
    padding: 10px 12px;
  }
  .nav-side {
    gap: clamp(6px, 1.8vw, 14px);
  }
  .nav-link {
    font-size: clamp(9px, 2.4vw, 14px);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .nav-logo {
    width: clamp(90px, 26vw, 300px);
  }
  .nav-bar.scrolled .nav-logo {
    width: clamp(80px, 22vw, 200px);
  }
  .news-grid,
  .cat-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }
  .flagship {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .flagship-copy .sec-eyebrow {
    text-align: center;
  }
  .flagship-chips {
    justify-content: center;
  }
  .cat-heading {
    text-align: center;
  }
}

body.debug .nav-side,
body.debug .news-card,
body.debug .flagship,
body.debug .cat-card,
body.debug .spec-chip {
  outline: 2px solid #a020f0;
  outline-offset: -2px;
}

/* ===== Specs section (index) ===== */
.spec-section {
  position: relative;
  z-index: 2;
  padding: 8vh 5vw;
}

.spec-inner {
  width: min(1300px, 100%);
  margin: 0 auto;
  text-align: center;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.6vw, 28px);
  text-align: left;
}

.spec-card {
  padding: clamp(22px, 2vw, 34px) clamp(20px, 2vw, 32px);
  border-radius: 22px;
}

.spec-card h4 {
  font-size: clamp(19px, 1.4vw, 25px);
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #0f7cc4, #57c785);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid rgba(15, 124, 196, 0.14);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table th {
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 600;
  color: rgba(29, 29, 31, 0.55);
  text-align: left;
  padding: 10px 14px 10px 0;
  vertical-align: top;
  white-space: nowrap;
}

.spec-table td {
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.5;
  color: #1d1d1f;
  padding: 10px 0;
}

.spec-note {
  margin-top: 3.5vh;
  font-size: clamp(14px, 0.95vw, 17px);
  color: rgba(29, 29, 31, 0.6);
}

.spec-note a {
  color: #0f7cc4;
  font-weight: 600;
}

@media (max-width: 900px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .spec-table th {
    white-space: normal;
    width: 38%;
  }
}

body.debug .spec-section,
body.debug .spec-grid,
body.debug .spec-card,
body.debug .spec-table {
  outline: 2px solid #a020f0;
  outline-offset: -2px;
}

/* ===== Product detail page (JBSF-600A) ===== */
.pd-hero {
  position: relative;
  z-index: 2;
  width: min(1300px, 94vw);
  margin: 0 auto;
  padding: 24vh 0 4vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}

.pd-breadcrumb {
  font-size: clamp(13px, 0.85vw, 15px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.5);
  margin-bottom: 14px;
}

.pd-breadcrumb a {
  color: #0f7cc4;
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  text-decoration: underline;
}

.pd-hero .sec-title {
  margin-bottom: 3vh;
  text-align: left;
}

.pd-hero .page-lead {
  margin: 0;
  text-align: left;
}

.pd-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 1vh;
}

.pd-actions .cta-btn {
  margin-top: 0;
}

.pd-datasheet {
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 700;
  color: #0f7cc4;
  text-decoration: none;
}

.pd-datasheet:hover {
  text-decoration: underline;
}

.pd-hero-media {
  padding: clamp(16px, 1.6vw, 28px);
  border-radius: 26px;
}

.pd-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.pd-strip-section {
  padding-top: 2vh;
}

.pd-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
}

.pd-strip-item {
  padding: clamp(18px, 1.6vw, 26px) clamp(12px, 1.2vw, 20px);
  border-radius: 20px;
}

.pd-unit {
  font-size: 0.45em;
  font-weight: 600;
  margin-left: 4px;
}

.pd-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.6vw, 28px);
  text-align: left;
}

@media (max-width: 900px) {
  .pd-hero {
    grid-template-columns: 1fr;
    padding-top: 20vh;
    text-align: center;
  }
  .pd-hero .sec-title,
  .pd-hero .page-lead {
    text-align: center;
  }
  .pd-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .pd-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-tables {
    grid-template-columns: 1fr;
  }
}

body.debug .pd-hero,
body.debug .pd-hero-media,
body.debug .pd-strip-item,
body.debug .pd-tables {
  outline: 2px solid #a020f0;
  outline-offset: -2px;
}
