:root {
  --ink: #071a3a;
  --ink-soft: #40536f;
  --blue: #1f4ed8;
  --blue-deep: #0c2d78;
  --blue-light: #e9f2ff;
  --gold: #ffca28;
  --gold-soft: #fff4c7;
  --paper: #fbfcff;
  --white: #ffffff;
  --line: #c8d4e6;
  --green: #16724a;
  --shadow: 0 22px 60px rgba(17, 40, 74, 0.12);
  --radius: 22px;
}

/* Presentation-led HEBS homepage */
.home-page { background: #071a3a; }
.home-page .site-header { border-bottom-color: rgba(255,255,255,.1); background: rgba(5, 18, 45, .86); }
.home-page .site-header .brand, .home-page .site-header .nav-links a { color: white; }
.home-page .site-header .button-primary { color: #071a3a; background: var(--gold); }
.home-page .brand-mark { color: #071a3a; background: var(--gold); box-shadow: 0 0 28px rgba(255,202,40,.24); }

.home-hero {
  min-height: calc(100vh - 76px);
  padding: clamp(4rem, 7vw, 6.2rem) 0 0;
  color: white;
  background:
    linear-gradient(90deg, rgba(2,12,31,.97) 0%, rgba(4,19,48,.93) 32%, rgba(4,20,49,.58) 58%, rgba(2,12,31,.16) 100%),
    linear-gradient(0deg, rgba(3,14,35,.82) 0%, transparent 48%),
    url("images/hebs-energy-hero-v2.png") center right / cover no-repeat;
}
.home-hero::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(135deg, transparent 0 58%, rgba(255,202,40,.09) 58% 58.3%, transparent 58.3%); }
.home-hero .hero-grid { grid-template-columns: minmax(330px,.78fr) minmax(470px,1.22fr); min-height: 680px; }
.home-hero h1 { max-width: 12ch; margin-bottom: 1.5rem; font-size: clamp(3.5rem, 6.8vw, 6.6rem); letter-spacing: -.065em; }
.home-hero h1 em { color: var(--gold); font-style: normal; text-shadow: 0 0 34px rgba(255,202,40,.18); }
.home-hero .hero-copy > p:not(.hero-kicker) { color: #d6e2ff; max-width: 56ch; font-size: 1.15rem; }
.hero-kicker { display:flex; align-items:center; gap:.65rem; margin:0 0 1.25rem; color:#a9c5ff; font-size:.77rem; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.hero-kicker span { width:32px; height:3px; background:var(--gold); box-shadow:0 0 14px var(--gold); }
.hero-primary { color:#071a3a; background:var(--gold); box-shadow:0 12px 34px rgba(255,202,40,.2); }
.hero-primary:hover, .hero-primary:focus-visible { background:#ffdc67; transform:translateY(-2px); }
.hero-secondary { color:white; background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.35); }
.hero-secondary:hover, .hero-secondary:focus-visible { background:rgba(255,255,255,.14); }
.hero-proof { display:flex; flex-wrap:wrap; gap:.55rem 1.3rem; margin-top:2rem; color:#91abd7; font-size:.76rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.hero-proof span { position:relative; padding-left:.85rem; }
.hero-proof span::before { content:""; position:absolute; left:0; top:.37rem; width:5px; height:5px; border-radius:50%; background:var(--gold); }

.hero-stage { position:relative; min-height:610px; display:grid; place-items:center; }
.stage-glow { position:absolute; inset:15% 0 8% 3%; border-radius:50%; background:rgba(30,88,255,.36); filter:blur(65px); }
.home-hero .hero-preview { position:relative; z-index:2; width:min(108%,720px); margin-right:-7%; padding:.65rem; border-color:rgba(255,255,255,.38); border-radius:22px; background:#f9fbff; box-shadow:0 48px 120px rgba(0,0,0,.64), 0 0 0 1px rgba(255,202,40,.2); transform:perspective(1300px) rotateY(-7deg) rotateX(2deg) rotateZ(-.5deg); }
.home-hero .hero-preview::before { display:none; }
.window-dots { display:flex; gap:6px; padding:.15rem .2rem .65rem; }
.window-dots i { width:7px; height:7px; border-radius:50%; background:#b9c4d8; }
.window-dots i:first-child { background:#ff6a63; }.window-dots i:nth-child(2){background:#ffca28}.window-dots i:last-child{background:#2cc96b}
.home-hero .hero-preview-window { height:545px; border-radius:13px; }
.home-hero .hero-preview img { object-position:top center; }
.stage-tag { position:absolute; z-index:3; min-width:155px; padding:.75rem .9rem; border:1px solid rgba(255,255,255,.3); border-radius:12px; color:white; background:rgba(3,17,43,.9); box-shadow:0 16px 40px rgba(0,0,0,.42); backdrop-filter:blur(12px); animation:float 5s ease-in-out infinite; }
.stage-tag b, .stage-tag span { display:block; }.stage-tag b{color:var(--gold);font-size:.67rem;letter-spacing:.12em}.stage-tag span{margin-top:.15rem;font-size:.8rem}.stage-tag-one{top:8%;left:-1%}.stage-tag-two{top:45%;right:-4%;animation-delay:-1.8s}.stage-tag-three{bottom:4%;left:2%;animation-delay:-3.1s}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.decision-ribbon { position:relative; z-index:4; margin-top:2rem; overflow:hidden; border-top:1px solid rgba(255,255,255,.12); border-bottom:1px solid rgba(255,255,255,.12); color:#0b204d; background:var(--gold); font-size:.78rem; font-weight:950; letter-spacing:.16em; white-space:nowrap; }
.decision-ribbon div { width:max-content; padding:.75rem 0; animation:ribbon 24s linear infinite; }.decision-ribbon span{padding:0 1.2rem;color:white}
@keyframes ribbon { to { transform:translateX(-28%); } }

.home-context { color:white; background:#0a1f49; }
.home-context .section-heading { display:grid; grid-template-columns:.45fr 1.1fr .9fr; align-items:end; max-width:none; gap:2rem; }
.home-context .section-heading .eyebrow { align-self:start; color:var(--gold); }
.home-context .section-heading h2 { margin:0; font-size:clamp(2.4rem,4.5vw,4.2rem); }
.home-context .section-heading > p:last-child { color:#b9c9e7; }
.decision-path { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:3.5rem; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.14); }
.decision-path article { position:relative; min-height:320px; display:flex; flex-direction:column; justify-content:space-between; padding:2rem; overflow:hidden; background:#0e2a60; }
.decision-path article:nth-child(2) { background:#12377d; }.decision-path article:nth-child(3){background:#1747a1}
.path-number { color:rgba(255,255,255,.14); font-size:5rem; font-weight:950; line-height:1; letter-spacing:-.06em; }
.path-label { margin:0 0 .6rem; color:var(--gold); font-size:.72rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.decision-path h3 { font-size:1.65rem; }.decision-path p:last-child{color:#cbd8f1;}

.alignment-section { color:#071a3a; background:#f7c90f; }
.alignment-grid { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:clamp(3rem,7vw,7rem); }
.alignment-visual { position:relative; min-height:500px; display:grid; place-items:center; }
.alignment-line { position:absolute; inset:11%; border:2px solid rgba(7,26,58,.28); border-radius:50%; animation:spin 30s linear infinite; }
.alignment-line::before,.alignment-line::after{content:"";position:absolute;inset:18%;border:1px dashed rgba(7,26,58,.35);border-radius:50%}.alignment-line::after{inset:38%;border-style:solid}
@keyframes spin{to{transform:rotate(360deg)}}
.alignment-core { position:relative; width:150px;height:150px;display:grid;place-items:center;border-radius:50%;color:white;background:#071a3a;font-size:2.4rem;font-weight:950;box-shadow:0 20px 50px rgba(7,26,58,.25); }
.alignment-word { position:absolute;padding:.65rem 1rem;border:2px solid #071a3a;border-radius:999px;background:#ffdc4f;font-size:.8rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.word-one{top:5%;left:38%}.word-two{top:45%;right:0}.word-three{bottom:6%;left:38%}.word-four{top:45%;left:0}
.alignment-copy .eyebrow{color:#071a3a}.alignment-copy h2{font-size:clamp(2.6rem,5vw,4.7rem)}.alignment-copy>p:not(.eyebrow){font-size:1.1rem;max-width:56ch}.alignment-list{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-top:1.7rem}.alignment-list span{padding:.65rem .8rem;border-top:2px solid rgba(7,26,58,.35);font-size:.85rem;font-weight:800}
.interface-section { background:linear-gradient(145deg,#06142f,#0c2e73); }
.interface-section .gallery-card { border-color:rgba(255,255,255,.18); box-shadow:0 20px 55px rgba(0,0,0,.28); }
.home-page .quote-band { color:#071a3a; background:var(--gold); }.home-page .quote-band p{color:#31405a}.home-page .quote-band .button{color:white;background:#071a3a}

/* Shared visual system for public subpages */
.subpage-page { color:white; background:#071a3a; }
.subpage-page .site-header { border-bottom-color:rgba(255,255,255,.1); background:rgba(5,18,45,.9); }
.subpage-page .site-header .brand,.subpage-page .site-header .nav-links a{color:white}
.subpage-page .site-header .button-primary{color:#071a3a;background:var(--gold)}
.subpage-page .brand-mark{color:#071a3a;background:var(--gold)}
.subpage-page .page-hero{
  position:relative; min-height:500px; display:grid; align-items:center; padding:clamp(5rem,9vw,8rem) 0;
  background:
    linear-gradient(90deg,rgba(3,14,36,.98),rgba(4,22,55,.86) 46%,rgba(4,22,55,.35)),
    linear-gradient(0deg,rgba(3,14,36,.8),transparent 55%),
    url("images/hebs-energy-hero-v2.png") center right/cover no-repeat;
}
.subpage-page .page-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,var(--gold) 0 18%,#2d64ef 18% 70%,transparent 70%)}
.subpage-page .page-hero .page-shell{position:relative;z-index:1}
.subpage-page .page-hero h1{max-width:14ch;margin:.5rem 0 1.4rem;font-size:clamp(3rem,6vw,6rem);line-height:.94;letter-spacing:-.055em}
.subpage-page .page-hero p:not(.eyebrow){max-width:60ch;color:#d5e2fb;font-size:1.12rem}
.subpage-page .page-hero .eyebrow{color:var(--gold)}
.page-hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:2rem}
.subpage-page .section-tint{color:white;background:#0a1f49}
.subpage-page .section:not(.section-tint){color:white;background:#071a3a}
.subpage-page .section-heading>p,.subpage-page .prose>p{color:#c5d3ee}
.subpage-page .card{color:white;border-color:rgba(255,255,255,.16);background:linear-gradient(145deg,#0d2a62,#0a214e);box-shadow:0 24px 60px rgba(0,0,0,.25)}
.subpage-page .card p,.subpage-page .card li{color:#c8d5ed}
.subpage-page .quote-band{color:#071a3a;background:var(--gold)}
.subpage-page .quote-band p{color:#35435e}.subpage-page .quote-band .button{color:white;background:#071a3a}
.subpage-page .site-footer{border-top-color:rgba(255,255,255,.12);color:#aebfdd;background:#040f26}
.subpage-page .site-footer .brand,.subpage-page .site-footer a{color:white}

.how-page .flow{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;counter-reset:quarter-flow}
.how-page .flow-step{position:relative;min-height:240px;padding:2rem 2rem 2rem 6.6rem;border:1px solid rgba(255,255,255,.15);border-radius:18px;background:linear-gradient(135deg,#0d2a62,#0a214e);overflow:hidden}
.how-page .flow-step::before{content:attr(data-step);position:absolute;left:1.4rem;top:1.2rem;color:rgba(255,202,40,.95);font-size:4.2rem;font-weight:950;line-height:1;letter-spacing:-.08em}
.how-page .flow-step::after{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--gold)}
.how-page .flow-step h3{font-size:1.45rem}.how-page .flow-step p{color:#c8d5ed}
.how-page .feature-list li::before{color:var(--gold)}

.gallery-page .gallery-grid{gap:1.4rem}
.gallery-page .gallery-card{border-color:rgba(255,255,255,.18);background:#0b2455;box-shadow:0 24px 60px rgba(0,0,0,.34)}
.gallery-page .gallery-image{height:290px;background:#071a3a}
.gallery-page .gallery-image::after{content:"PREVIEW";position:absolute;left:1rem;bottom:1rem;padding:.45rem .65rem;color:#071a3a;background:var(--gold);font-size:.68rem;font-weight:950;letter-spacing:.12em}
.gallery-page .gallery-copy{color:white;background:linear-gradient(180deg,#0e2e6b,#0a214e)}
.gallery-page .gallery-copy p{color:#c5d3ee}
.gallery-page .notice{border-color:rgba(255,202,40,.45);background:rgba(255,202,40,.1)}

.support-page .page-hero{min-height:610px}
.support-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.72fr);align-items:center;gap:clamp(3rem,7vw,7rem)}
.support-entry-card{position:relative;padding:2.2rem;border:1px solid rgba(255,255,255,.28);border-radius:22px;background:rgba(6,24,60,.9);box-shadow:0 35px 90px rgba(0,0,0,.5);backdrop-filter:blur(18px)}
.support-entry-card .entry-number{display:block;color:var(--gold);font-size:4.5rem;font-weight:950;line-height:1;letter-spacing:-.08em}
.support-entry-card h2{margin:.6rem 0 1rem;font-size:2rem}.support-entry-card p{color:#cbd8ef!important}
.support-entry-card .button{width:100%;margin-top:.8rem;font-size:1rem}
.access-status{max-width:860px}.access-status .eyebrow{color:var(--gold)}.access-status h2{font-size:clamp(2.3rem,5vw,4.4rem)}.access-status>p:last-child{max-width:60ch;color:#c6d4ed;font-size:1.08rem}

@media(max-width:900px){
  .how-page .flow,.support-hero-grid{grid-template-columns:1fr}
  .subpage-page .page-hero{min-height:430px}
}
@media(max-width:620px){
  .subpage-page .page-hero h1{font-size:3.15rem}
  .how-page .flow-step{padding:5.8rem 1.35rem 1.5rem}.how-page .flow-step::before{left:1.2rem}
  .gallery-page .gallery-image{height:220px}
}

@media (max-width: 900px) {
  .home-hero .hero-grid { grid-template-columns:1fr; }
  .home-hero h1 { max-width:11ch; }
  .home-context .section-heading { grid-template-columns:1fr; }
  .decision-path { grid-template-columns:1fr; }
  .decision-path article { min-height:220px; }
  .alignment-grid { grid-template-columns:1fr; }
}
@media (max-width:620px){
  .home-hero{padding-top:2.8rem}.home-hero .hero-grid{min-height:auto}.home-hero h1{font-size:3.15rem}.hero-stage{min-height:430px;margin-top:1rem}.home-hero .hero-preview-window{height:390px}.stage-tag{display:none}.hero-proof{display:grid}.home-context .section-heading h2{font-size:2.5rem}.alignment-visual{min-height:340px}.alignment-core{width:110px;height:110px;font-size:1.8rem}.alignment-word{font-size:.65rem}.alignment-list{grid-template-columns:1fr}
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 8%, rgba(247, 198, 66, 0.18), transparent 26rem),
    linear-gradient(180deg, #f7faff 0, #fff 32rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: .75rem 1rem;
  color: white;
  background: var(--blue-deep);
  border-radius: .5rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(200, 212, 230, .8);
  background: rgba(251, 252, 255, .92);
  backdrop-filter: blur(16px);
}

.nav-shell,
.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .08);
}

.brand-mark svg { width: 27px; height: 27px; }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  text-decoration: none;
  font-size: .94rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--blue); }

.menu-button {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: .55rem .7rem;
  color: var(--ink);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 820;
  cursor: pointer;
}

.button-primary { color: white; background: var(--blue); }
.button-primary:hover, .button-primary:focus-visible { background: var(--blue-deep); }
.button-secondary { color: var(--ink); background: white; border-color: var(--line); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--blue); color: var(--blue); }
.button-muted { color: #66758b; background: #edf1f6; cursor: not-allowed; }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 4.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(360px, .93fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.035em; }
h1 { margin-bottom: 1.2rem; font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 13ch; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { margin-bottom: .55rem; font-size: 1.25rem; }

.hero-copy > p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-preview {
  position: relative;
  padding: .7rem;
  border: 1px solid rgba(35, 69, 160, .28);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-preview::before {
  content: "Actual HEBS participant interface";
  display: block;
  padding: .2rem .25rem .65rem;
  color: var(--blue-deep);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-preview-window {
  height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #edf2fa;
}

.hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tint { background: var(--blue-light); }
.section-dark { color: white; background: var(--ink); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark p { color: #d7e1ef; }

.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-heading p { color: #d7e1ef; }

.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.four-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.two-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: white;
  box-shadow: 0 12px 34px rgba(17, 40, 74, .07);
}

.card-number {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--gold);
  font-weight: 900;
}

.card p { margin-bottom: 0; color: var(--ink-soft); }

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.feature-list li { position: relative; padding-left: 1.8rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .42rem; width: .75rem; height: .75rem; border-radius: 3px; background: var(--gold); box-shadow: 4px 4px 0 var(--blue); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.gallery-card { overflow: hidden; padding: 0; }
.gallery-button { width: 100%; padding: 0; border: 0; text-align: left; background: white; cursor: zoom-in; color: inherit; }
.gallery-image { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: #edf2fa; border-bottom: 1px solid var(--line); }
.gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery-copy { display: block; padding: 1.25rem 1.35rem 1.45rem; }
.gallery-copy p { margin: 0; color: var(--ink-soft); }

.quote-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  color: white;
  background: linear-gradient(115deg, var(--blue-deep), var(--blue));
  box-shadow: var(--shadow);
}
.quote-band h2 { margin-bottom: .55rem; }
.quote-band p { margin: 0; color: #dce7ff; max-width: 64ch; }

.page-hero { padding: 4.5rem 0 3rem; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero p { max-width: 68ch; color: var(--ink-soft); font-size: 1.14rem; }

.flow { position: relative; display: grid; gap: 1.2rem; }
.flow::before { content: ""; position: absolute; left: 1.35rem; top: 2rem; bottom: 2rem; width: 3px; background: linear-gradient(var(--blue), var(--gold)); }
.flow-step { position: relative; margin-left: 3.3rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.flow-step::before { content: attr(data-step); position: absolute; left: -3.35rem; top: 1.25rem; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 900; }
.flow-step p { margin: 0; color: var(--ink-soft); }

.notice { padding: 1.25rem 1.4rem; border-left: 5px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--gold-soft); }
.notice p { margin: 0; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 2.7rem; font-size: 1.75rem; }
.prose p, .prose li { color: var(--ink-soft); }

.site-footer { border-top: 1px solid var(--line); background: #f3f6fb; }
.footer-grid { padding: 2.7rem 0 1.4rem; display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.footer-grid p { max-width: 45ch; color: var(--ink-soft); }
.footer-links { display: grid; align-content: start; gap: .6rem; }
.footer-links strong { margin-bottom: .25rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--blue); text-decoration: underline; }
.copyright { padding: 1rem 0 1.7rem; border-top: 1px solid var(--line); color: #66758b; font-size: .83rem; }

dialog {
  width: min(1200px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
}
dialog::backdrop { background: rgba(10, 24, 48, .78); backdrop-filter: blur(5px); }
.dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; color: white; background: var(--ink); }
.dialog-bar strong { line-height: 1.25; }
.dialog-close { border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: .45rem .7rem; color: white; background: transparent; font-weight: 850; cursor: pointer; }
.dialog-body { max-height: calc(100vh - 5rem); overflow: auto; background: white; }
.dialog-body img { width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-grid, .two-grid, .footer-grid { grid-template-columns: 1fr; }
  .three-grid { grid-template-columns: 1fr 1fr; }
  .four-grid { grid-template-columns: 1fr 1fr; }
  .hero-preview-window { height: 420px; }
  .quote-band { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; inset: 76px 1rem auto; padding: 1rem; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .menu-button { display: inline-flex; }
}

@media (max-width: 620px) {
  .nav-shell, .page-shell { width: min(100% - 1.2rem, 1180px); }
  .hero { padding-top: 3rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-preview { transform: none; }
  .hero-preview-window { height: 360px; }
  .three-grid, .four-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Homepage gallery uses the same introductory hero, with four clickable previews beside it. */
.home-gallery-panel[hidden]{display:none}
[data-home-hero]{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:4rem;align-items:start}
.home-gallery-panel h2{color:white;font-size:1.7rem;margin:0 0 1rem}
.home-gallery-panel .gallery-grid{gap:1rem}
.home-gallery-panel .gallery-image{height:155px;aspect-ratio:auto}
.home-gallery-panel .gallery-copy{padding:.8rem}
.home-gallery-panel .gallery-copy h3{font-size:1rem;margin:0 0 .4rem;color:white}
.subpage-page .home-gallery-panel .gallery-copy p{font-size:.85rem;line-height:1.4;color:#c5d3ee}
.home-gallery-panel .gallery-image::after{font-size:.55rem;padding:.3rem .4rem;left:.6rem;bottom:.6rem}
@media(max-width:800px){[data-home-hero]{grid-template-columns:1fr;gap:2rem}.home-gallery-panel .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.home-gallery-panel .gallery-grid{grid-template-columns:1fr}.home-gallery-panel .gallery-image{height:220px}}

@media(min-width:801px){[data-home-hero]{min-height:700px}}


.sign-in-card{width:min(480px,100%);padding:2rem;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--ink)}.sign-in-card h2{font-size:2.3rem;letter-spacing:-.04em;margin:0 0 .8rem}.sign-in-card p{color:var(--ink-soft)}#public-sign-in{display:grid;gap:1rem;margin-top:1.5rem}#public-sign-in label{display:grid;gap:.5rem;font-weight:700}#public-sign-in input{width:100%;padding:.85rem;border:1px solid var(--line);border-radius:8px;font:inherit}#public-sign-in button{color:white;font-size:1.3rem;cursor:pointer}#public-sign-in button:disabled{opacity:.65;cursor:wait}#account-choices{display:grid;gap:.8rem;margin-top:1rem}#sign-in-message{margin-top:1.2rem}#sign-in-message[hidden]{display:none}


[data-home-sign-in][hidden]{display:none}.subpage-page .sign-in-card h2{max-width:none;font-size:2.3rem;line-height:1.1;letter-spacing:-.04em}.subpage-page .sign-in-card p:not(.eyebrow){color:var(--ink-soft);font-size:1rem}

.home-gallery-panel>h2{text-align:center}.gallery-view-group{min-width:0;display:flex;flex-direction:column;gap:1rem;border:1px solid rgba(255,202,40,.6);border-radius:14px;padding:.6rem}.gallery-view-label{color:white;text-align:center;font-size:1rem;line-height:1.2;margin:.2rem 0}.gallery-view-group .gallery-card{margin:0}

@media(min-width:481px){.gallery-grid:has(>.gallery-view-group){grid-template-rows:auto auto auto}.gallery-view-group{display:grid;grid-template-rows:subgrid;grid-row:span 3}.gallery-view-label{align-self:center}.gallery-view-group .gallery-card{height:100%}}

/* The homepage image has its own fixed canvas; foreground panels cannot resize it. */
html{scrollbar-gutter:stable}
.subpage-page .page-hero:has([data-home-hero]){background:#071a3a;isolation:isolate}
.subpage-page .page-hero:has([data-home-hero])::before{content:"";position:absolute;top:0;left:0;right:0;height:calc(700px + 2 * clamp(5rem,9vw,8rem));pointer-events:none;z-index:0;background:linear-gradient(90deg,rgba(3,14,36,.98),rgba(4,22,55,.86) 46%,rgba(4,22,55,.35)),linear-gradient(0deg,rgba(3,14,36,.8),transparent 55%),url("images/hebs-energy-hero-v2.png") center right/cover no-repeat}
@media(max-width:800px){.subpage-page .page-hero:has([data-home-hero])::before{height:max(700px,calc(100vh - 77px))}}

[data-home-hero]>.home-introduction{grid-column:1;grid-row:1}[data-home-hero]>.home-gallery-panel,[data-home-hero]>[data-home-sign-in]{grid-column:2;grid-row:1;align-self:start}[data-home-hero]>.home-gallery-panel[hidden],[data-home-hero]>[data-home-sign-in][hidden]{display:block;visibility:hidden;pointer-events:none}@media(max-width:800px){[data-home-hero]>.home-gallery-panel,[data-home-hero]>[data-home-sign-in]{grid-column:1;grid-row:2}}

@media(min-width:801px){
 [data-home-hero]>.home-gallery-panel{margin-top:-3rem}
 .home-gallery-panel>h2{margin-bottom:.7rem}
 .home-gallery-panel .gallery-image{height:115px}
 .home-gallery-panel .gallery-copy{padding:.6rem}
 .home-gallery-panel .gallery-copy h3{font-size:.92rem;line-height:1.15}
 .subpage-page .home-gallery-panel .gallery-copy p{font-size:.78rem;line-height:1.3;margin:.4rem 0 0}
 .home-gallery-panel .gallery-view-group{gap:.7rem;padding:.5rem}
 .home-gallery-panel .gallery-grid{gap:.7rem}
 .home-gallery-panel .gallery-view-label{font-size:.92rem}
}

[data-home-hero]>.home-how-panel{grid-column:2;grid-row:1;align-self:start;margin-top:-3rem}
[data-home-hero]>.home-how-panel[hidden]{display:block;visibility:hidden;pointer-events:none}
.home-how-panel>h2{text-align:center;color:white;font-size:1.7rem;margin:0 0 .7rem}
.home-how-steps{display:grid;gap:.65rem}
.home-how-panel .flow-step{margin:0;padding:.8rem .8rem .8rem 3rem;border:1px solid rgba(255,202,40,.5);border-radius:12px;background:rgba(7,26,58,.86);position:relative}
.home-how-panel .flow-step::before{left:.6rem;top:.8rem;width:1.8rem;height:1.8rem;background:var(--gold);color:#071a3a;font-size:.9rem}
.home-how-panel .flow-step h3{font-size:.95rem;color:white;margin:0 0 .3rem}
.subpage-page .home-how-panel .flow-step p{color:#c5d3ee;font-size:.82rem;line-height:1.35;margin:0}
@media(max-width:800px){[data-home-hero]>.home-how-panel{grid-column:1;grid-row:2;margin-top:0}}

.home-how-panel .flow-step{min-height:0;height:auto}.home-how-panel .flow-step::after{display:none}

.home-how-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.home-how-panel .flow-step{padding:2.8rem .7rem .8rem}.home-how-panel .flow-step h3{font-size:1rem;line-height:1.2}.subpage-page .home-how-panel .flow-step p{font-size:.95rem;line-height:1.35}@media(max-width:480px){.home-how-steps{grid-template-columns:1fr}}

.home-how-steps{grid-template-columns:1fr}.home-how-panel .flow-step{padding:.8rem .8rem .8rem 3rem}.home-how-panel .flow-step h3{font-size:18px;line-height:1.2}.subpage-page .home-how-panel .flow-step p{font-size:18px;line-height:1.35}

@media(min-width:801px){[data-home-hero]>.home-how-panel{margin-top:-4.25rem}}

@media(min-width:801px){[data-home-hero]>.home-how-panel{margin-top:-4.875rem}}

@media(min-width:801px){[data-home-hero]>.home-how-panel{margin-top:-5.8125rem}}

@media(min-width:801px){[data-home-hero]>.home-how-panel{width:calc(100% + 40px);margin-left:-40px}}

@media(min-width:801px){
 [data-home-hero]>.home-how-panel{margin-top:-4.875rem}
 .home-how-panel>h2{margin-bottom:.3rem}
 .home-how-steps{gap:.35rem}
 .home-how-panel .flow-step{padding:.4rem .65rem .4rem 2.8rem}
 .home-how-panel .flow-step::before{top:.4rem;left:.5rem}
 .home-how-panel .flow-step h3{line-height:1.1;margin-bottom:.2rem}
 .subpage-page .home-how-panel .flow-step p{line-height:1.2}
}

.preview-image-choices{display:flex;flex-wrap:wrap;gap:.6rem}.preview-image-choices[hidden]{display:none}.preview-image-choices button{font-size:.95rem;padding:.6rem .9rem}.preview-image-choices button[aria-pressed="true"]{outline:2px solid white;outline-offset:2px}.dialog-bar{flex-wrap:wrap}

[data-home-hero]>.home-why-panel{grid-column:2;grid-row:1;align-self:start;margin-top:-3rem}
[data-home-hero]>.home-why-panel[hidden]{display:block;visibility:hidden;pointer-events:none}
.home-why-panel>h2{text-align:center;color:white;font-size:1.7rem;margin:0 0 1rem}
.home-why-card{padding:1.5rem;border:1px solid rgba(255,202,40,.6);border-radius:14px;background:rgba(7,26,58,.88)}
.home-why-card h3{color:white;font-size:1.25rem;margin:0 0 1rem}
.home-why-card .feature-list{color:#d5e2fb;font-size:18px;line-height:1.45}
.site-header .nav-links{gap:1.1rem}
@media(max-width:800px){[data-home-hero]>.home-why-panel{grid-column:1;grid-row:2;margin-top:0}}


.site-header .nav-disabled{color:#8c98ad;cursor:default}

/* Shared public navigation, including legal pages. */
.site-header{background:rgba(5,18,45,.9);border-bottom-color:rgba(255,255,255,.1)}.site-header .brand,.site-header .nav-links a{color:white}.site-header .button-primary{color:#071a3a;background:var(--gold)}
