/* ============================================================
   SOLYX SYSTEMS — Website Stylesheet
   Brand palette source: SOLYX_BRAND_PALETTE.md (v2.0, April 2026)
   ============================================================ */

:root {
  /* Warm spectrum */
  --ignite-red:    #E84E2F;
  --solyx-orange:  #F27522;
  --solar-gold:    #F9A825;
  /* Renewable accents */
  --emerald:       #10B981;
  --teal:          #14B8A6;
  /* Neutrals */
  --jet-black:     #0B0B0D;
  --graphite:      #2C2C2E;
  --mid-gray:      #6A6A74;
  --soft-gray:     #F5F5F7;
  --off-white:     #FAFAFB;
  --white:         #FFFFFF;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1800px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(11,11,13,.06), 0 1px 1px rgba(11,11,13,.04);
  --shadow-md: 0 4px 16px rgba(11,11,13,.08), 0 2px 6px rgba(11,11,13,.04);
  --transition: 180ms cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--jet-black);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; color: var(--solyx-orange); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--solyx-orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ignite-red); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--solyx-orange);
  color: var(--white);
}
.btn-primary:hover { background: #D9601A; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--jet-black);
  border-color: var(--jet-black);
}
.btn-secondary:hover { background: var(--jet-black); color: var(--white); }
.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-ghost-dark:hover { background: var(--white); color: var(--jet-black); border-color: var(--white); }

/* ---------- Top nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--soft-gray);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--jet-black);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--jet-black); }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 0;
  background: url('../../brand-v3/logo/solyx-icon.svg?v=4') center / contain no-repeat;
  box-shadow: none;
  flex: 0 0 auto;
}
/* Icon-only brand: drop the gap and give the mark more presence */
.brand--icon-only { gap: 0; }
.brand--icon-only .brand-mark { width: 44px; height: 44px; }
/* Header lockup: icon + wordmark */
.brand--lockup { gap: 11px; }
.brand--lockup .brand-mark { width: 42px; height: 42px; }
.brand-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.16rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--jet-black); line-height: 1; white-space: nowrap;
}
/* "Beta" tag next to the footer wordmark (research-preview flag) */
.footer-brand .brand::after {
  content: "Beta";
  align-self: center;
  padding: 2px 7px;
  font-family: var(--font-sans);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--solyx-orange);
  border-radius: 999px;
}
.site-header--transparent .brand-word { color: #fff; }
.site-header--transparent.is-scrolled .brand-word { color: var(--jet-black); }
.nav-links {
  display: flex; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--graphite);
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--jet-black); border-bottom-color: var(--solyx-orange); }
.nav-links a.active { color: var(--jet-black); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 9px 18px; font-size: .9rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--jet-black);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--jet-black);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--soft-gray);
    padding: 16px 24px;
  }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(249,168,37,.22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(16,185,129,.18), transparent 55%),
    linear-gradient(160deg, #0b0b0d 0%, #1a1a20 60%, #0b0b0d 100%);
  overflow: hidden;
}
.hero::after {
  /* sunrise spectrum hairline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--ignite-red), var(--solyx-orange) 35%, var(--solar-gold) 70%, var(--emerald));
}
.hero-inner {
  padding: 110px 0 130px;
  position: relative; z-index: 1;
  max-width: 820px;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--solar-gold);
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--solar-gold), var(--solyx-orange));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,.78);
  max-width: 640px;
  margin: 18px 0 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.hero-stat .label {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .1em;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sub-page hero ---------- */
.subhero {
  background: var(--soft-gray);
  border-bottom: 1px solid #ececef;
  padding: 80px 0 60px;
}
.subhero .eyebrow { color: var(--solyx-orange); }
.subhero h1 { margin-bottom: 14px; }
.subhero .lede {
  font-size: 1.2rem;
  color: var(--graphite);
  max-width: 720px;
}

/* ---------- Generic sections ---------- */
section { padding: 80px 0; }
.section-soft { background: var(--soft-gray); }
.section-dark { background: var(--jet-black); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark h2 { color: var(--solar-gold); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--mid-gray); font-size: 1.1rem; }

/* ---------- Card grids ---------- */
.grid-3 {
  display: grid; gap: 36px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  display: grid; gap: 80px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid #ececef;
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dcdce0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 18px;
}
.icon-solar   { background: #F27522; }
.icon-battery { background: #1668E3; }
.icon-data    { background: linear-gradient(135deg, var(--graphite), var(--jet-black)); }
.icon-purpose { background: var(--emerald); }
.icon-people  { background: var(--solyx-orange); }
.card h3 { color: var(--jet-black); margin-bottom: 10px; }
.card p { color: var(--graphite); margin-bottom: 0; }

/* ---------- KPI strip ---------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--jet-black);
  border-radius: var(--radius);
  overflow: hidden;
}
.kpi {
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  text-align: center;
}
.kpi:last-child { border-right: 0; }
.kpi .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--solar-gold);
}
.kpi .label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-left: 2px solid var(--soft-gray);
}
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 24px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--solyx-orange);
  box-shadow: 0 0 0 4px rgba(242,117,34,.15);
}
.timeline li.milestone::before { background: var(--emerald); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.timeline .when {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mid-gray);
  margin-bottom: 4px;
}
.timeline .what { color: var(--jet-black); font-weight: 600; }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.person {
  background: var(--white);
  border: 1px solid #ececef;
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--solar-gold), var(--solyx-orange));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--mid-gray); font-size: .9rem; margin-bottom: 12px; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 20px; }
.post-card {
  display: block;
  background: var(--white);
  border: 1px solid #ececef;
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: all var(--transition);
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #dcdce0; }
.post-card .meta {
  font-size: .82rem; color: var(--mid-gray);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 6px;
}
.post-card h3 { color: var(--jet-black); margin-bottom: 6px; }
.post-card p { color: var(--graphite); margin: 0; }

.post-body {
  max-width: 720px; margin: 0 auto;
}
.post-body h2 { margin-top: 2em; }
.post-body blockquote {
  border-left: 4px solid var(--solar-gold);
  padding-left: 20px;
  font-size: 1.15rem;
  color: var(--graphite);
  margin: 1.5em 0;
}

/* ---------- Investor CTA panel ---------- */
.invest-panel {
  background: linear-gradient(180deg, #0E1320 0%, #1A2236 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.invest-panel h2 { color: var(--solar-gold); margin-bottom: 14px; }
.invest-panel p { color: rgba(255,255,255,.78); margin-bottom: 24px; }
.invest-panel .actions { display: flex; flex-direction: column; gap: 12px; }
.invest-panel .actions .btn { width: 100%; }
@media (max-width: 880px) {
  .invest-panel { grid-template-columns: 1fr; padding: 32px; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: block; font-weight: 600; color: var(--jet-black); margin-bottom: 6px; font-size: .92rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8df;
  border-radius: 8px;
  font: inherit;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--solyx-orange);
  box-shadow: 0 0 0 3px rgba(242,117,34,.18);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #0E1320 0%, #1A2236 100%);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--solar-gold); }
.footer-brand .brand { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.55); margin-top: 12px; max-width: 320px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  color: var(--mid-gray);
  font-size: .82rem;
}
.footer-bottom .gradient-bar {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--ignite-red), var(--solyx-orange), var(--solar-gold), var(--emerald));
  border-radius: 2px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.muted { color: var(--mid-gray); }
.pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--soft-gray);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--graphite);
  letter-spacing: .04em;
}
.pill-emerald { background: rgba(16,185,129,.12); color: #047857; }
.pill-gold    { background: rgba(249,168,37,.15); color: #92560a; }
.pill-orange  { background: rgba(242,117,34,.12); color: #b04a0e; }

/* ============================================================
   CRUX-STYLE PHOTOGRAPHIC HERO
   Full-bleed crossfading background images behind editorial type.
   The base brand gradient always shows; images sit on top with a
   dark gradient overlay for legibility. If an image fails to load,
   the gradient design carries the slide.
   ============================================================ */

.hero--photo {
  /* Override the simple hero — we want a taller, immersive header */
  min-height: 88vh;
  padding: 0;
  display: flex;
  align-items: flex-end;
}
.hero--photo .hero-inner {
  padding: 140px 0 110px;
  max-width: 980px;
  position: relative;
  z-index: 3;
}

/* Slide stack — absolutely positioned, cross-fade via opacity */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCycle 24s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero__slide.is-fallback {
  /* Pure-CSS fallback "scenes" that look intentional when images fail */
  background-size: cover, cover, cover;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroCycle {
  0%   { opacity: 0; transform: scale(1.05); }
  6%   { opacity: 1; transform: scale(1.02); }
  25%  { opacity: 1; transform: scale(1.00); }
  31%  { opacity: 0; transform: scale(1.00); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Dark gradient on top of slides — ensures text contrast */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,11,13,.65) 0%, rgba(11,11,13,.35) 35%, rgba(11,11,13,.85) 100%),
    linear-gradient(90deg, rgba(11,11,13,.55) 0%, rgba(11,11,13,0) 60%);
}

/* Tiny progress indicator pills (one per slide), bottom-left */
.hero__dots {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 4;
  display: flex; gap: 8px;
}
.hero__dot {
  width: 28px; height: 3px;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.hero__dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--solar-gold);
  transform: translateX(-100%);
  animation: dotFill 24s linear infinite;
}
.hero__dot:nth-child(1)::after { animation-delay: 0s; }
.hero__dot:nth-child(2)::after { animation-delay: 6s; }
.hero__dot:nth-child(3)::after { animation-delay: 12s; }
.hero__dot:nth-child(4)::after { animation-delay: 18s; }
@keyframes dotFill {
  0%   { transform: translateX(-100%); }
  25%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}

/* Crux-style headline scale — much bigger, tighter, editorial */
.hero--photo h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 14ch;
}
.hero--photo .lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
}

/* Hero stats reflowed underneath, lighter on photo bg */
.hero--photo .hero-stats {
  border-top-color: rgba(255,255,255,.2);
}

@media (max-width: 720px) {
  .hero--photo { min-height: 80vh; }
  .hero--photo .hero-inner { padding: 100px 0 80px; }
  .hero__dots { display: none; }
}

/* Respect users who prefer reduced motion — no cycling, just show slide 1 */
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide:nth-child(1) { opacity: 1; }
  .hero__dot::after { animation: none; transform: translateX(0); }
}

/* ============================================================
   SALIENT-STYLE SIGNAL STATEMENT
   Editorial paragraph with highlighted phrases. Each phrase has
   an inline image card that fades/slides in beside it when the
   section enters the viewport. Designed to scroll through as
   one composed scene.
   ============================================================ */

.signal {
  padding: 140px 0;
  background: var(--off-white);
  overflow: hidden;
}
.signal__eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 28px;
  text-align: center;
}
.signal__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--jet-black);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* The highlighted phrase: subtle underline + color shift on reveal */
.signal__highlight {
  position: relative;
  display: inline-block;
  color: var(--mid-gray);
  transition: color 600ms ease, transform 600ms cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.signal__highlight::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(.2,.7,.3,1);
}

/* Inline image marker — width grows from 0 to measured natural width on reveal.
   The <img> inside is absolutely positioned at full height so it stays sharp
   while the marker is clipped. This is the Salient nectar-text-inline-images pattern. */
.signal__thumb {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  min-width: 0;
  width: 0;                                    /* JS measures natural width, then resets to 0; reveal expands to measured */
  height: clamp(56px, 6vw, 92px);
  margin: 0 .15em -0.18em;
  overflow: hidden;
  clip-path: inset(6% round 6px);
  box-shadow: 0 12px 32px rgba(11,11,13,.18);
  transition: width 0.85s cubic-bezier(.2,.7,.3,1);
}
.signal__thumb.no-transition { transition: none; }
.signal__thumb img {
  /* In-flow (NOT absolute) so the script can measure the natural width and
     expand the marker from 0 → measured. Absolute positioning made the
     measured width 0, which collapsed the thumbnails. */
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: cover;
}

/* Salient mask-sweep word reveal.
   Each word starts mostly-masked (only the leftmost 33% visible at low opacity),
   then on .is-revealed the mask slides to the other side and the whole word is solid.
   Combined with the per-word scroll threshold, words wipe in left-to-right as you scroll. */
.signal--uppercase .word {
  display: inline-block;
  transition: all 0.85s cubic-bezier(.2,.7,.3,1);
  -webkit-mask-image: linear-gradient(90deg, #fff 33.3%, rgba(255,255,255,.1) 66.6%);
          mask-image: linear-gradient(90deg, #fff 33.3%, rgba(255,255,255,.1) 66.6%);
  -webkit-mask-position: 100% 100%;
          mask-position: 100% 100%;
  -webkit-mask-size: 300% 100%;
          mask-size: 300% 100%;
}
.signal--uppercase .word.is-revealed {
  -webkit-mask-position: 0 100%;
          mask-position: 0 100%;
}

/* Markers reveal by width grow when JS adds .is-revealed */
.signal__thumb.is-revealed {
  /* width is set inline by JS to the measured natural width */
}

/* Below-the-statement CTA row */
.signal__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .signal__thumb { opacity: 1; transform: none; }
  .signal__highlight { color: var(--jet-black); }
  .signal__highlight::after { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .signal { padding: 80px 0; }
  .signal__thumb { display: none; } /* keep mobile readable; text alone reads cleanly */
}

/* ============================================================
   HARBOR-STYLE HERO  (replaces .hero--photo on the home page)
   Transparent header sits over a cycling 4-image background.
   Huge editorial headline in a light weight overlays the photo.
   Two dark glass cards sit at the bottom — What We Build +
   Investor Inquiry. A scroll arrow drops to row 2.
   ============================================================ */

/* Transparent header overlay on the home page */
.site-header--transparent {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  z-index: 60;
}
.site-header--transparent .brand          { color: #fff; }
.site-header--transparent .brand:hover    { color: #fff; }
.site-header--transparent .brand-mark     { box-shadow: none; }
.site-header--transparent .nav-links a    { color: rgba(255,255,255,.92); }
.site-header--transparent .nav-links a:hover { color: #fff; border-bottom-color: var(--solar-gold); }
.site-header--transparent .nav-links a.active { color: #fff; }
.site-header--transparent .nav-toggle span,
.site-header--transparent .nav-toggle span::before,
.site-header--transparent .nav-toggle span::after { background: #fff; }

/* Once user scrolls past the hero, JS adds .is-scrolled — header becomes the standard white sticky */
.site-header--transparent.is-scrolled {
  position: fixed;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--soft-gray);
  animation: headerDrop 240ms cubic-bezier(.2,.7,.3,1);
}
.site-header--transparent.is-scrolled .brand,
.site-header--transparent.is-scrolled .brand:hover { color: var(--jet-black); }
.site-header--transparent.is-scrolled .nav-links a { color: var(--graphite); }
.site-header--transparent.is-scrolled .nav-links a:hover { color: var(--jet-black); border-bottom-color: var(--solyx-orange); }
.site-header--transparent.is-scrolled .nav-links a.active { color: var(--jet-black); }
.site-header--transparent.is-scrolled .nav-toggle span,
.site-header--transparent.is-scrolled .nav-toggle span::before,
.site-header--transparent.is-scrolled .nav-toggle span::after { background: var(--jet-black); }
@keyframes headerDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* The hero itself — full-viewport, cycling images, dark veil */
.hero--harbor {
  position: relative;
  min-height: 100vh;
  padding: 0;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero--harbor::after { display: none; }

/* Cycling slides reuse the heroCycle keyframe declared earlier */
.hero--harbor .hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero--harbor .hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroCycle 24s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero--harbor .hero__slide:nth-child(1) { animation-delay: 0s; }
.hero--harbor .hero__slide:nth-child(2) { animation-delay: 6s; }
.hero--harbor .hero__slide:nth-child(3) { animation-delay: 12s; }
.hero--harbor .hero__slide:nth-child(4) { animation-delay: 18s; }
.hero--harbor .hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,11,13,.45) 0%, rgba(11,11,13,.18) 30%, rgba(11,11,13,.78) 100%);
}

/* Top eyebrow + small lede strip just below the header */
.hero__topbar {
  position: relative; z-index: 3;
  padding: 110px 0 0;
}
.hero__topbar .container {
  display: flex; justify-content: space-between; gap: 24px;
  align-items: flex-start; flex-wrap: wrap;
}
.hero__eyebrow {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255,255,255,.75);
}
.hero__lede {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  max-width: 460px;
  line-height: 1.5;
  text-align: right;
}

/* The gigantic Harbor-style headline — large, LIGHT weight, fills the width */
.hero__headline {
  position: relative; z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.hero__headline h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 13rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  text-align: left;
  width: 100%;
  text-shadow: 0 2px 32px rgba(0,0,0,.18);
}

/* Bottom dark cards row */
.hero__footer {
  position: relative; z-index: 3;
  padding: 0 0 80px;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* match the 4 stat boxes in row 3: each card = one column, centered in the middle two */
.hero-cards > .hero-card:nth-child(1) { grid-column: 2; }
.hero-cards > .hero-card:nth-child(2) { grid-column: 3; }
@media (max-width: 820px) {
  .hero-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-cards > .hero-card:nth-child(1),
  .hero-cards > .hero-card:nth-child(2) { grid-column: auto; }
}
@media (max-width: 520px) {
  .hero-cards { grid-template-columns: 1fr; }
}
.hero-card {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(11,11,13,.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.hero-card:hover {
  transform: translateY(-3px);
  background: rgba(11,11,13,.75);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.hero-card__thumb {
  flex: 0 0 84px;
  width: 84px; height: 84px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.hero-card__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px;
}
.hero-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.3;
}
.hero-card__sub {
  font-size: .82rem;
  color: rgba(255,255,255,.62);
  line-height: 1.45;
}
.hero-card__cta {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 16px;
  background: #fff;
  color: var(--jet-black);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  align-self: flex-start;
  transition: background var(--transition), color var(--transition);
}
.hero-card__cta .arrow {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--jet-black);
  color: #fff;
  align-items: center; justify-content: center;
  font-size: .82rem;
}
.hero-card:hover .hero-card__cta { background: var(--solar-gold); }
.hero-card:hover .hero-card__cta .arrow { background: var(--jet-black); }

/* Scroll-down indicator, bottom-right */
.hero__scroll {
  position: absolute;
  right: 28px; bottom: 28px;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.hero__scroll-line {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.45);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
.hero__scroll-arrow { font-size: .9rem; }
@keyframes scrollPulse {
  0%, 100% { opacity: .35; transform: scaleY(.7); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

@media (max-width: 720px) {
  .hero__topbar { padding-top: 96px; }
  .hero__topbar .container { flex-direction: column; }
  .hero__lede { text-align: left; }
  .hero__headline h1 { font-size: clamp(2.4rem, 14vw, 5rem); }
  .hero__footer { padding-bottom: 32px; }
  .hero__scroll { display: none; }
  .hero--harbor { min-height: 92vh; }
}

/* ============================================================
   SIGNAL — UPPERCASE VARIANT
   Matches the Salient screenshot: huge bold uppercase paragraph
   on a light gray field, with a final "fade" word that goes light
   gray for the closing beat.
   ============================================================ */

.signal--uppercase {
  background: var(--soft-gray);
  padding: 140px 0;          /* enough runway for the scroll-linked reveal to complete naturally */
  opacity: 0;                /* FOUC prevention — JS adds .is-calculated after measuring image widths */
  transition: opacity 0.2s ease;
}
.signal--uppercase.is-calculated { opacity: 1; }
.signal--uppercase .signal__text {
  font-weight: 900;
  font-size: clamp(2.5rem, 6.8vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  max-width: 1800px;
}

/* Larger landscape thumbnails — full photo shown (no inset crop), vertically centered on the line */
.signal--uppercase .signal__thumb {
  height: clamp(60px, 7.2vw, 107px);     /* width follows the ~1.85:1 ratio */
  margin: 0 .3em;
  vertical-align: middle;                /* baseline reference */
  position: relative;
  top: -0.12em;                          /* lift to the CAP-height center of the all-caps text */
  border-radius: 10px;
  clip-path: none;                        /* show the whole frame — don't trim faces at the edges */
  transform: translateY(14px) rotate(0deg) scale(.92);
  box-shadow: 0 14px 34px rgba(11,11,13,.22);
}
/* Per-element reveal target for the uppercase variant — no rotation */
.signal--uppercase .signal__thumb.is-revealed {
  transform: translateY(0) rotate(0deg) scale(1);
}

/* In the uppercase variant words start neutral gray and color-shift on reveal */
.signal--uppercase .signal__highlight::after { display: none; }
.signal--uppercase .signal__highlight { color: var(--mid-gray); white-space: nowrap; transition: color 450ms ease; }
.signal--uppercase .signal__highlight.is-revealed { color: var(--jet-black); }

/* The trailing faded word — light gray closing beat ("POWER.") */
.signal__fade {
  color: #d6d6dc;
  transition: color 700ms ease;
}

/* Reduced-motion guard for the scroll-linked uppercase variant — show everything */
@media (prefers-reduced-motion: reduce) {
  .signal--uppercase .signal__highlight { color: var(--jet-black); }
  .signal--uppercase .signal__thumb { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

@media (max-width: 720px) {
  .signal--uppercase { padding: 80px 0; min-height: 0; }
  .signal--uppercase .signal__text { font-size: clamp(1.6rem, 8vw, 2.4rem); }
}
