/* ==========================================================================
   Helix Hydrogen — styles.css
   Modern minimalist static site. Mobile-first, no frameworks.
   ========================================================================== */

/* ---------- Custom properties ---------- */
:root {
  --navy: #0a1a2e;
  --accent: #00b4d8;
  --accent-dark: #0090ad;
  --light-accent: #e0f7fa;
  --text: #1a1a2e;
  --muted: #6c757d;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e6e9ee;
  --white: #ffffff;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(10, 26, 46, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 26, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 26, 46, 0.16);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
  color: var(--text);
}

ul {
  list-style: none;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section__head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
  margin-top: 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 180, 216, 0.45);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--navy);
  background: var(--white);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--navy);
}

.brand__logo {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand strong {
  font-weight: 700;
}

.brand span {
  color: var(--accent-dark);
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--accent-dark);
  background: var(--light-accent);
}

.nav__links a[aria-current='page'] {
  color: var(--accent-dark);
  font-weight: 600;
}

.nav__links .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  margin-left: 0.5rem;
}

.nav__links .btn:hover {
  color: var(--navy);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-sm);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav__toggle span::before {
  top: -7px;
}

.nav__toggle span::after {
  top: 7px;
}

.nav__toggle[aria-expanded='true'] span {
  background: transparent;
}

.nav__toggle[aria-expanded='true'] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded='true'] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: radial-gradient(
      120% 120% at 15% 10%,
      #123456 0%,
      var(--navy) 45%,
      #06101f 100%
    );
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 85% 20%, rgba(0, 180, 216, 0.35), transparent 70%),
    radial-gradient(35% 45% at 10% 90%, rgba(0, 180, 216, 0.22), transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 100%);
}

.hero__inner {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  max-width: 820px;
}

.hero--page .hero__inner {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: var(--light-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 180, 216, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* ---------- Generic content ---------- */
.prose p + p {
  margin-top: 1.15rem;
}

.prose p {
  font-size: 1.08rem;
  color: #34404f;
}

.quote {
  border-left: 4px solid var(--accent);
  background: var(--light-accent);
  padding: 1.75rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}

.section--navy .quote {
  background: rgba(0, 180, 216, 0.08);
  color: var(--white);
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 216, 0.4);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--light-accent);
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Status cards (highlight) */
.status-card {
  background: linear-gradient(160deg, var(--navy), #13294a);
  color: var(--white);
  border: none;
}

.status-card .status-card__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.status-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-top: 0.4rem;
}

.status-card p {
  color: rgba(255, 255, 255, 0.78);
}

.trl-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}

/* ---------- Feature / check lists ---------- */
.checklist {
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  position: relative;
  padding-left: 2.1rem;
  color: #34404f;
  font-size: 1.02rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--light-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230090ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.section--navy .checklist li {
  color: rgba(255, 255, 255, 0.82);
}

.section--navy .checklist li::before {
  background-color: rgba(0, 180, 216, 0.15);
}

/* Two-column split */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .split--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Engagement / pill list ---------- */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Momentum badges ---------- */
.momentum-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.momentum {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.momentum:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.momentum__mark {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.momentum h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.momentum p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.momentum a {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Timeline note ---------- */
.note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--light-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--navy);
  font-weight: 500;
  margin-top: 1.75rem;
}

.note svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent-dark);
  margin-top: 0.15rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
}

.cta-band .container {
  max-width: 720px;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
}

/* ---------- Founder ---------- */
.founder {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 760px) {
  .founder {
    grid-template-columns: 260px 1fr;
  }
}

.founder__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #13294a, var(--navy));
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.founder__photo svg {
  width: 40%;
  opacity: 0.9;
}

.founder__photo span {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-wrap {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info .lead {
  margin-top: 1rem;
}

.contact-info ul {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.contact-info li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: #34404f;
}

.contact-info svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
  flex: none;
}

.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  width: 100%;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.2rem;
}

.form__status.is-success {
  color: #1b8a5a;
}

.form__status.is-error {
  color: #c0392b;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3.5rem 2rem;
}

.site-footer .container {
  display: grid;
  gap: 2rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer__brand svg {
  width: 32px;
  height: 32px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay='1'] {
  transition-delay: 0.08s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.16s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.24s;
}
.reveal[data-delay='4'] {
  transition-delay: 0.32s;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--white);
    padding: 1.25rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
    opacity: 0;
    pointer-events: none;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    padding: 0.85rem 0.75rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--bg-alt);
  }

  .nav__links .btn {
    margin: 0.75rem 0 0;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===========================================================================
   Warehouse commercial experience
   ========================================================================== */
.warehouse-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.warehouse-hero__media,
.warehouse-hero__media img,
.warehouse-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.warehouse-hero__media { z-index: -2; }
.warehouse-hero__media img { object-fit: cover; object-position: center; }
.warehouse-hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 15, 29, 0.97) 0%, rgba(7, 24, 43, 0.88) 35%, rgba(7, 24, 43, 0.34) 66%, rgba(7, 24, 43, 0.12) 100%), linear-gradient(0deg, rgba(4, 15, 29, 0.42), transparent 45%);
}

.warehouse-hero__content {
  padding-block: clamp(5rem, 11vw, 8.5rem);
  margin-inline: 0;
  max-width: min(720px, 58vw);
}

.warehouse-hero h1 { color: var(--white); font-size: clamp(2.8rem, 6vw, 5.4rem); max-width: 760px; }
.warehouse-hero .lead { color: rgba(255, 255, 255, 0.86); max-width: 650px; font-size: clamp(1.08rem, 1.65vw, 1.3rem); }
.hero__note { margin-top: 1.25rem; color: rgba(255, 255, 255, 0.66); font-size: 0.86rem; }

.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.audience-card:hover { color: var(--text); transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(0, 180, 216, .55); }
.audience-card--primary { grid-row: span 2; min-height: 645px; justify-content: flex-end; color: var(--white); background: linear-gradient(150deg, #102c4d 0%, var(--navy) 65%); border-color: transparent; }
.audience-card--primary::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; top: -220px; right: -170px; border: 82px solid rgba(0, 180, 216, .12); }
.audience-card--primary:hover { color: var(--white); }
.audience-card h3 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); margin: 1.1rem 0 .75rem; }
.audience-card--primary h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.7rem); }
.audience-card p { color: var(--muted); max-width: 540px; }
.audience-card--primary p { color: rgba(255, 255, 255, .76); font-size: 1.05rem; }
.audience-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--light-accent); color: var(--accent-dark); }
.audience-card--primary .audience-card__icon { width: 66px; height: 66px; background: rgba(0, 180, 216, .14); color: var(--accent); }
.audience-card__icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.audience-card__tag { position: absolute; top: 1.6rem; left: 1.6rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: 1.5rem; font-weight: 700; color: var(--accent-dark); }
.audience-card--primary .text-link, .text-link--light { color: var(--accent); }

.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.story-section .lead { color: rgba(255, 255, 255, .7); margin-bottom: 2rem; }
.story-section .eyebrow, .explorer-context .eyebrow { color: var(--accent); }
.system-steps { display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .12); }
.system-steps > div { display: grid; grid-template-columns: 45px 105px 1fr; gap: 1rem; align-items: baseline; padding: 1.4rem; background: #102641; }
.system-steps span { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.system-steps strong { color: var(--white); }
.system-steps p { color: rgba(255, 255, 255, .66); font-size: .92rem; }

.expansion-map { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(380px, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: 1060px; margin: 2.5rem auto 0; }
.expansion-map svg { width: 100%; }
.ring { fill: none; stroke-width: 50; transform-origin: center; }
.ring--5 { stroke: #edf3f7; }.ring--4 { stroke: #e3f4f7; }.ring--3 { stroke: #cceef4; }.ring--2 { stroke: #79d8e8; }.ring--1 { fill: var(--navy); stroke: var(--accent); stroke-width: 7; }
.expansion-map text { fill: var(--accent); font: 700 13px var(--font); letter-spacing: .12em; }
.expansion-map .ring-main { fill: var(--white); font-size: 19px; letter-spacing: -.01em; }
.expansion-legend { counter-reset: none; display: grid; gap: .75rem; }
.expansion-legend li { display: grid; grid-template-columns: 38px 1fr; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.expansion-legend li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--accent); font-weight: 700; font-size: .82rem; }
.expansion-legend strong { display: block; color: var(--navy); }
.expansion-legend p { color: var(--muted); font-size: .88rem; }
.proof-strip .card h3 { margin-top: .25rem; }
.proof-strip .status-card__label { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; }

/* ===========================================================================
   Microgrid explorer
   ========================================================================== */
.explorer-page { background: #f3f7fa; }
.explorer-shell { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.explorer-heading { text-align: center; max-width: 900px; margin-bottom: 2.4rem; }
.explorer-heading h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); }
.explorer-heading p { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.22rem); margin-top: .75rem; }
.explorer-stage { max-width: 1480px; display: grid; grid-template-columns: minmax(360px, .8fr) minmax(550px, 1.45fr); gap: 1.5rem; align-items: start; }
.explorer-panel { min-height: 655px; padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--white); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-md); }
.explorer-panel h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.explorer-panel > div > p, .question-head p { color: var(--muted); }
.panel-kicker { color: var(--accent-dark) !important; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; margin-bottom: .5rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 2rem; }
.path-picker { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.path-picker h3 { font-size: 1rem; margin-bottom: .75rem; }
.path-picker button { width: 100%; display: flex; flex-direction: column; gap: .1rem; text-align: left; padding: .85rem 1rem; margin-top: .55rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--navy); font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.path-picker button:hover { border-color: var(--accent); background: var(--light-accent); transform: translateX(3px); }
.path-picker button span { color: var(--muted); font-size: .83rem; }

.visual-column { position: sticky; top: 92px; min-width: 0; }
.visual-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .35rem .65rem; }
.visual-status span { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .7rem; color: var(--accent-dark); }
.visual-status strong { color: var(--navy); font-size: .86rem; }
.microgrid-figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); }
.microgrid-scene { position: relative; aspect-ratio: 1672 / 941; overflow: hidden; background: #eaf3f8; }
.microgrid-scene > img { width: 100%; height: 100%; object-fit: contain; }
.flow-overlay, .hotspots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dim-regions ellipse { fill: rgba(10, 26, 46, 0); transition: fill .35s var(--ease); }
.dim-regions ellipse.is-dimmed { fill: rgba(10, 26, 46, .46); }
.flow { stroke-width: 4; stroke-dasharray: 10 10; opacity: .85; animation: flow-dash 2.2s linear infinite; filter: drop-shadow(0 1px 2px rgba(255,255,255,.7)); }
.flow.electricity { stroke: #f6c453; }.flow.hydrogen { stroke: #00b4d8; }.flow.water { stroke: #2786c7; }.flow.optional { stroke-dasharray: 4 10; opacity: .65; }
.microgrid-scene[data-mode='warehouse'] [data-flow='backup'] { opacity: .28; }
.microgrid-scene[data-mode='adjacent'] [data-flow='fleet'], .microgrid-scene[data-mode='adjacent'] [data-flow='water'] { opacity: .15; }
@keyframes flow-dash { to { stroke-dashoffset: -40; } }
.hotspot { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; transform: translate(-50%, -50%); pointer-events: auto; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 0 0 2px rgba(10,26,46,.68), 0 3px 10px rgba(10,26,46,.35); cursor: pointer; }
.hotspot span { position: absolute; inset: 9px; border-radius: 50%; background: var(--navy); transition: background .2s, transform .2s; }
.hotspot::after { content: ''; position: absolute; inset: -7px; border: 2px solid rgba(0,180,216,.7); border-radius: 50%; animation: hotspot-pulse 2.4s ease-out infinite; }
.hotspot:hover span, .hotspot:focus span, .hotspot.is-selected span, .hotspot.is-active span { background: var(--accent); transform: scale(1.25); }
@keyframes hotspot-pulse { 0% { transform: scale(.7); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.hotspot-detail { min-height: 74px; display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: .8rem 1rem; background: var(--navy); color: var(--white); }
.hotspot-detail strong { color: var(--accent); font-size: .9rem; }.hotspot-detail span { color: rgba(255,255,255,.75); font-size: .82rem; }
.visual-disclaimer { color: var(--muted); font-size: .74rem; line-height: 1.45; padding: .65rem .35rem 0; }

.progress-wrap { margin-bottom: 1.5rem; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 600; margin-bottom: .4rem; }
.progress-track { height: 5px; border-radius: 99px; background: #e6edf2; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .35s var(--ease); }
.question-head { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; margin-bottom: 1.4rem; }
.question-icon { width: 46px; height: 46px; padding: 10px; color: var(--accent-dark); background: var(--light-accent); border-radius: 12px; }
.question-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.question-head p:not(.panel-kicker) { margin-top: .35rem; font-size: .9rem; }
.choice-grid { border: 0; display: grid; gap: .65rem; }
.choice-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 58px; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 11px; color: var(--navy); background: var(--white); font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.choice-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.choice-card.is-selected { border-color: var(--accent); background: var(--light-accent); box-shadow: 0 0 0 1px var(--accent); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice-check { width: 20px; height: 20px; flex: none; border: 2px solid #9ba8b7; border-radius: 50%; position: relative; }
.choice-card:has(input[type='checkbox']) .choice-check { border-radius: 5px; }
.choice-card.is-selected .choice-check { border-color: var(--accent-dark); background: var(--accent-dark); }
.choice-card.is-selected .choice-check::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.selection-error { min-height: 1.4rem; margin-top: .55rem; color: #b32929; font-weight: 600; font-size: .85rem; }
.question-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.question-nav .btn:only-child { margin-right: auto; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.answer-review { display: grid; gap: .5rem; max-height: 405px; overflow: auto; padding-right: .35rem; }
.answer-review > div { position: relative; padding: .75rem 4rem .75rem .85rem; background: var(--bg-alt); border-radius: 9px; }
.answer-review dt { color: var(--muted); font-size: .72rem; font-weight: 600; }.answer-review dd { color: var(--navy); font-weight: 600; font-size: .88rem; }
.answer-review button { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: var(--accent-dark); border: 0; background: transparent; font: 600 .78rem var(--font); cursor: pointer; }
.result-card h2, .narrative-path h2 { margin: .75rem 0; font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.result-card > p, .narrative-path > p { color: var(--muted); }
.result-band { display: inline-flex; padding: .4rem .75rem; border-radius: 99px; background: var(--light-accent); color: var(--accent-dark); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .7rem; }
.result-card--strong .result-band { background: #dff5ea; color: #176843; }.result-card--worth .result-band { background: #fff1cf; color: #72510a; }
.reason-list { display: grid; gap: .55rem; margin: 1.25rem 0; }
.reason-list li { position: relative; padding-left: 1.35rem; color: #34404f; font-size: .9rem; }.reason-list li::before { content: ''; position: absolute; left: 0; top: .58rem; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.result-block { margin: 1.25rem 0; }.result-block h3 { font-size: 1rem; margin-bottom: .65rem; }.result-block p { color: var(--muted); font-size: .9rem; }
.result-block .pill { font-size: .78rem; padding: .4rem .7rem; }
.result-details { border: 1px solid var(--border); border-radius: 10px; margin: 1rem 0; }
.result-details summary { cursor: pointer; color: var(--navy); font-weight: 700; padding: .8rem 1rem; }
.result-answers { padding: 0 1rem 1rem; display: grid; gap: .6rem; }.result-answers div { border-top: 1px solid var(--border); padding-top: .55rem; }.result-answers dt { color: var(--muted); font-size: .7rem; }.result-answers dd { font-size: .84rem; color: var(--navy); font-weight: 600; }
.assumption-note { padding: 1rem; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 9px 9px 0; }
.assumption-note strong { color: var(--navy); font-size: .88rem; }.assumption-note p { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }.result-actions .btn { padding: .75rem 1rem; font-size: .84rem; white-space: normal; }
.text-button { margin-top: 1rem; border: 0; background: none; color: var(--accent-dark); text-decoration: underline; font: 600 .85rem var(--font); cursor: pointer; }
.concept-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1.2rem 0; }
.concept-flow li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .65rem; border: 1px solid var(--border); border-radius: 8px; color: var(--navy); font-size: .76rem; font-weight: 600; }.concept-flow li:not(:last-child)::after { content: '→'; color: var(--accent-dark); margin-left: .35rem; }
.strategy-list { display: grid; gap: .75rem; margin: 1.4rem 0; }.strategy-list li { display: grid; grid-template-columns: 34px 1fr; gap: .75rem; }.strategy-list li > span { color: var(--accent-dark); font-weight: 700; font-size: .75rem; }.strategy-list strong { color: var(--navy); }.strategy-list p { color: var(--muted); font-size: .84rem; }
.updates-form, .referral-form { margin-top: 1.3rem; padding: 1.1rem; background: var(--bg-alt); border-radius: 12px; }
.updates-form fieldset { border: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-bottom: 1rem; }.updates-form legend { color: var(--navy); font-weight: 700; margin-bottom: .65rem; }.updates-form fieldset label { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #34404f; }.updates-form input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--accent-dark); }
.form-note { color: var(--muted); font-size: .72rem; margin-top: .65rem; }.referral-form h3 { margin-bottom: .25rem; }.referral-form > p { color: var(--muted); font-size: .8rem; margin-bottom: .8rem; }.referral-form .field { margin-bottom: .75rem; }.referral-form textarea { min-height: 80px; }
.explorer-context p { color: rgba(255,255,255,.76); }.explorer-context .text-link { padding-top: 1rem; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1100px) {
  .explorer-stage { grid-template-columns: minmax(330px, .9fr) minmax(470px, 1.2fr); }
  .explorer-panel { min-height: 610px; }
  .choice-grid--compact { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .warehouse-hero__content { max-width: 75vw; }
  .audience-grid, .story-grid, .expansion-map { grid-template-columns: 1fr; }
  .audience-card--primary { grid-row: auto; min-height: 420px; }
  .expansion-map svg { max-width: 520px; margin: auto; }
  .explorer-stage { display: flex; flex-direction: column; }
  .visual-column { position: static; order: -1; width: 100%; }
  .explorer-panel { width: 100%; min-height: 0; }
}

@media (max-width: 600px) {
  .warehouse-hero { min-height: 720px; align-items: end; }
  .warehouse-hero__media img { object-position: center; }
  .warehouse-hero__shade { background: linear-gradient(0deg, rgba(4,15,29,.98) 0%, rgba(4,15,29,.88) 48%, rgba(4,15,29,.25) 85%); }
  .warehouse-hero__content { max-width: none; padding-block: 12rem 3.5rem; }
  .warehouse-hero h1 { font-size: clamp(2.45rem, 12vw, 3.6rem); }
  .warehouse-hero .hero__cta { flex-direction: column; align-items: stretch; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card, .audience-card--primary { min-height: 300px; }
  .system-steps > div { grid-template-columns: 35px 1fr; }.system-steps p { grid-column: 2; }
  .expansion-map { display: block; }.expansion-map svg { margin-bottom: 1.5rem; }.expansion-legend li { grid-template-columns: 34px 1fr; }
  .explorer-shell { padding-top: 1.6rem; }.explorer-heading { text-align: left; margin-bottom: 1.4rem; }.explorer-heading h1 { font-size: 2.3rem; }
  .explorer-stage { padding-inline: .75rem; }.explorer-panel { padding: 1.2rem; border-radius: 15px; }.visual-status { align-items: flex-start; }
  .microgrid-figure { border-radius: 12px; }.hotspot { width: 25px; height: 25px; }.hotspot span { inset: 7px; }
  .hotspot-detail { min-height: 86px; }.visual-disclaimer { font-size: .68rem; }
  .question-head { grid-template-columns: 40px 1fr; gap: .75rem; }.question-icon { width: 40px; height: 40px; padding: 8px; }
  .choice-grid--compact { grid-template-columns: 1fr; }.choice-card { min-height: 56px; }
  .question-nav .btn { padding-inline: 1.2rem; }.result-actions { flex-direction: column; }.result-actions .btn { width: 100%; }
  .updates-form fieldset { grid-template-columns: 1fr; }.concept-flow { display: grid; }.concept-flow li { justify-content: space-between; }
}

@media print {
  .site-header, .site-footer, .explorer-heading, .visual-status, .hotspots, .hotspot-detail, .visual-disclaimer, .question-nav, .result-actions, .text-button, .explorer-context { display: none !important; }
  body, .explorer-page, .explorer-shell { background: white !important; }
  .explorer-shell { padding: 0; }.explorer-stage { display: grid; grid-template-columns: 1fr; max-width: none; padding: 0; }
  .visual-column { position: static; order: -1; }.microgrid-figure { box-shadow: none; border: 1px solid #ccd5dd; }
  .explorer-panel { box-shadow: none; border: 0; min-height: 0; padding: 1rem 0; }
  .result-details { display: block; }.result-details > * { display: block; }
  .flow { animation: none; }
}
