:root {
  --navy: #051129;
  --navy-deep: #020a1d;
  --blue: #1a45da;
  --signal-blue: #004ee5;
  --light-blue: #8babc9;
  --ice: #d3e6f7;
  --lime: #b8e243;
  --red: #e94c43;
  --text: #d3e6f7;
  --muted: #8babc9;
  --line: rgba(26, 69, 218, .72);
  --surface: rgba(4, 17, 48, .82);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy-deep); }
body { margin: 0; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 300; color: var(--text); background: var(--navy); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { position: relative; padding: clamp(88px, 10vw, 150px) 0; overflow: hidden; }
.section:nth-of-type(even) { background: rgba(2,10,29,.45); }
.eyebrow { margin: 0 0 14px; color: var(--light-blue); font-weight: 700; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; }
h1,h2,h3 { margin: 0; font-weight: 700; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 8vw, 7.5rem); letter-spacing: -.045em; }
h2 { max-width: 920px; font-size: clamp(2.25rem, 5vw, 4.65rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.lead { max-width: 860px; font-size: clamp(1.18rem, 2vw, 1.55rem); color: var(--ice); }
.copy { color: var(--muted); font-size: 1.03rem; }
.signal { color: var(--lime); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: linear-gradient(to bottom, rgba(2,10,29,.92), rgba(2,10,29,.35), transparent); }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 190px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 400; font-size: .92rem; }
.nav-links a { color: var(--ice); opacity: .82; }
.nav-links a:hover { opacity: 1; color: white; }
.nav-toggle { display:none; border: 1px solid var(--line); background: transparent; color: white; padding: 10px 14px; border-radius: 2px; }

.hero { min-height: 100svh; display: grid; align-items: center; padding-top: 120px; background: radial-gradient(circle at 80% 50%, rgba(26,69,218,.16), transparent 34%), linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 1120px; }
.hero .lead { margin: 34px 0 0; max-width: 820px; }
.hero-support { max-width: 760px; margin: 20px 0 0; font-size: 1.05rem; color: var(--light-blue); }
.hero-meta { margin-top: 34px; font-size: .84rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding: 0 22px; border: 1px solid var(--signal-blue); font-weight: 600; transition: .2s ease; }
.btn-primary { background: var(--signal-blue); color:white; }
.btn-primary:hover { background: #2760ef; }
.btn-secondary { color:var(--ice); background: rgba(5,17,41,.45); }
.btn-secondary:hover { border-color: var(--light-blue); }

.symbol-shadow { position:absolute; color: var(--blue); opacity:.09; pointer-events:none; }
.hero .symbol-shadow { width:min(72vw, 980px); right:-12vw; top:8vh; transform: rotate(-2deg); }
.section .symbol-shadow { width: min(55vw, 700px); right:-18vw; top: 10%; opacity:.045; }

.section-head { display:grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 50px; align-items:end; margin-bottom: 60px; }
.section-head .copy { margin:0; }

.system-grid, .outcome-grid, .application-grid, .collab-grid { display:grid; gap:18px; }
.system-grid { grid-template-columns: 1fr 1fr; }
.panel { border:1px solid var(--line); padding: clamp(24px, 3vw, 42px); background: var(--surface); backdrop-filter: blur(5px); }
.module-label { color: var(--ice); font-weight:700; letter-spacing:.04em; }
.module-title { margin-top:8px; color: var(--light-blue); font-size:1.1rem; text-transform:uppercase; }
.feature-list { list-style:none; padding:0; margin:24px 0; color:var(--text); }
.feature-list li { margin: 7px 0; }
.text-link { color: var(--lime); font-weight:600; }
.principles { margin-top:30px; border-top:1px solid rgba(139,171,201,.25); padding-top:22px; color:var(--light-blue); }
.principles strong { color:var(--signal-blue); display:block; margin-bottom:8px; }

.outcome-grid { grid-template-columns: repeat(3, 1fr); border-top:1px solid rgba(139,171,201,.25); }
.outcome { padding:34px 32px 10px 0; border-right:1px solid rgba(139,171,201,.25); }
.outcome:last-child { border-right:0; padding-right:0; padding-left:32px; }
.outcome:nth-child(2) { padding-left:32px; }
.outcome h3 { color:var(--ice); text-transform:uppercase; font-size:1rem; letter-spacing:.06em; }
.outcome .copy { margin-top:18px; }
.balance-note { margin-top:45px; max-width:900px; font-size:1.2rem; color:var(--ice); }

.application-grid { grid-template-columns: repeat(4, 1fr); }
.app-card { position:relative; min-height:340px; padding:28px; border:1px solid var(--line); background: linear-gradient(180deg, rgba(5,17,41,.6), rgba(2,10,29,.95)); overflow:hidden; }
.app-card::before { content:''; position:absolute; inset:0; opacity:.25; background: radial-gradient(circle at 80% 20%, rgba(0,78,229,.45), transparent 30%); }
.app-card > * { position:relative; }
.app-index { color:var(--signal-blue); font-weight:700; font-size:.8rem; }
.app-card h3 { margin-top:70px; text-transform:uppercase; font-size:1.18rem; }
.app-card p { color:var(--muted); }
.role-note { margin-top:24px; padding:24px 28px; border-left:3px solid var(--lime); background:rgba(184,226,67,.04); }

.progress-layout { display:grid; grid-template-columns: 1.1fr .9fr; gap:38px; align-items:start; }
.product-shot { border:1px solid var(--line); background:#090c20; padding:12px; }
.product-shot img { width:100%; aspect-ratio: 4/3; object-fit:cover; object-position:center; }
.caption { margin-top:15px; color:var(--muted); font-size:.9rem; }
.proof-list { display:grid; gap:14px; }
.proof { border-bottom:1px solid rgba(139,171,201,.25); padding:0 0 20px; }
.proof h3 { color:var(--ice); font-size:1rem; text-transform:uppercase; letter-spacing:.06em; }
.proof p { margin:8px 0 0; color:var(--muted); }

.logistics { background: radial-gradient(circle at 15% 50%, rgba(0,78,229,.14), transparent 30%), rgba(2,10,29,.7); }
.logistics-layout { display:grid; grid-template-columns: 1fr 1fr; gap:55px; align-items:center; }
.hub-diagram { position:relative; min-height:470px; border:1px solid var(--line); background: linear-gradient(145deg, rgba(0,78,229,.12), rgba(5,17,41,.9)); display:grid; place-items:center; overflow:hidden; }
.hub-diagram .symbol-shadow { position:relative; inset:auto; width:62%; opacity:.12; }
.hub-nodes { position:absolute; inset:0; }
.hub-node { position:absolute; color:var(--ice); font-size:.78rem; letter-spacing:.04em; text-transform:uppercase; padding:8px 10px; border:1px solid rgba(139,171,201,.34); background:rgba(2,10,29,.72); }
.hub-node:nth-child(1){top:12%;left:8%}.hub-node:nth-child(2){top:12%;right:8%}.hub-node:nth-child(3){bottom:12%;left:8%}.hub-node:nth-child(4){bottom:12%;right:8%}.hub-node:nth-child(5){top:46%;left:39%;color:var(--lime)}
.component-list { display:grid; grid-template-columns:1fr 1fr; gap:12px 24px; margin-top:32px; }
.component-list span { border-top:1px solid rgba(139,171,201,.25); padding-top:10px; color:var(--ice); }
.outcomes-line { margin-top:25px; color:var(--light-blue); }

.expertise-grid { display:grid; grid-template-columns: repeat(5, 1fr); border-top:1px solid rgba(139,171,201,.25); }
.expertise { padding:25px 20px 0 0; }
.expertise h3 { font-size:.95rem; text-transform:uppercase; letter-spacing:.05em; }
.expertise p { color:var(--muted); font-size:.92rem; }
.credibility { max-width:900px; font-size:clamp(1.5rem, 3vw, 2.4rem); color:var(--ice); margin:38px 0 48px; }
.operating-model { margin-top:50px; padding:24px 28px; border-left:3px solid var(--signal-blue); background:rgba(0,78,229,.05); }
.founder { margin-top:44px; display:flex; gap:24px; align-items:center; }
.founder-mark { width:64px; height:64px; display:grid; place-items:center; border:1px solid var(--line); color:var(--signal-blue); font-weight:700; font-size:1.2rem; }

.collaboration { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.collab-layout { display:grid; grid-template-columns: .8fr 1.2fr; gap:70px; align-items:start; }
.collab-grid { grid-template-columns: repeat(3, 1fr); }
.collab-item { border-top:1px solid var(--line); padding-top:20px; }
.collab-item h3 { text-transform:uppercase; font-size:1rem; letter-spacing:.04em; }
.collab-item p { color:var(--muted); }
.collab-item a { color:var(--lime); font-weight:600; }

.footer { padding:44px 0; background:#010716; border-top:1px solid rgba(139,171,201,.18); }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:30px; }
.footer img { width:180px; }
.footer p,.footer a { color:var(--muted); font-size:.9rem; }
.footer-links { display:grid; gap:8px; }

@media (max-width: 960px) {
  .nav-links { display:none; position:absolute; top:78px; left:20px; right:20px; padding:20px; background:var(--navy-deep); border:1px solid var(--line); flex-direction:column; align-items:flex-start; }
  .nav-links.open { display:flex; }
  .nav-toggle { display:block; }
  .section-head, .progress-layout, .logistics-layout, .collab-layout { grid-template-columns:1fr; }
  .application-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns:1fr 1fr; gap:15px; }
  .collab-grid { grid-template-columns:1fr; }
}

@media (max-width: 680px) {
  .container { width:min(calc(100% - 28px), var(--max)); }
  .section { padding:78px 0; }
  .brand img { width:150px; }
  .system-grid, .outcome-grid, .application-grid { grid-template-columns:1fr; }
  .outcome-grid { border-top:0; }
  .outcome,.outcome:nth-child(2),.outcome:last-child { padding:24px 0; border-right:0; border-top:1px solid rgba(139,171,201,.25); }
  .application-grid { gap:12px; }
  .app-card { min-height:260px; }
  .app-card h3 { margin-top:42px; }
  .component-list { grid-template-columns:1fr; }
  .expertise-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .actions .btn { width:100%; }
  .hero-meta { line-height:1.8; }
}

/* V4.0 — bilingual navigation */
.site-header .brand { order: 1; }
.site-header .nav-links { order: 2; margin-left: auto; }
.site-header .lang-switch { order: 3; }
.site-header .nav-toggle { order: 4; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--light-blue);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}

.lang-switch a {
  color: var(--light-blue);
  opacity: .78;
}

.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a[aria-current="page"] {
  color: var(--lime);
  opacity: 1;
}

.legal-topbar,
.error-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.error-lang { margin-bottom: 36px; }

@media (max-width: 960px) {
  .site-header .nav { gap: 16px; }
  .site-header .nav-links { margin-left: 0; }
  .site-header .lang-switch { margin-left: auto; }
}

@media (max-width: 420px) {
  .site-header .nav { gap: 10px; }
  .site-header .brand img { width: 132px; }
  .site-header .lang-switch { gap: 5px; font-size: .72rem; }
  .site-header .nav-toggle { padding-inline: 10px; }
}

/* V2 — first visual scale and proportion pass */
:root {
  --max: 1180px;
}

body {
  font-size: 16px;
  line-height: 1.52;
}

.container {
  width: min(calc(100% - 48px), var(--max));
}

.section {
  padding: clamp(76px, 8vw, 118px) 0;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: .74rem;
  letter-spacing: .09em;
}

h1 {
  font-size: clamp(3rem, 6.6vw, 6.15rem);
  line-height: 1.01;
  letter-spacing: -.04em;
}

h2 {
  max-width: 850px;
  font-size: clamp(2.05rem, 4.15vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}

h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
  line-height: 1.15;
}

.lead {
  max-width: 780px;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.48;
}

.copy {
  font-size: 1rem;
  line-height: 1.58;
}

.site-header {
  background: linear-gradient(to bottom, rgba(2,10,29,.96), rgba(2,10,29,.46), transparent);
}

.nav {
  height: 96px;
}

.brand img {
  width: 232px;
}

.nav-links {
  gap: 30px;
  font-size: .94rem;
}

.hero {
  padding-top: 126px;
}

.hero h1 {
  max-width: 980px;
}

.hero .lead {
  margin-top: 28px;
  max-width: 760px;
}

.hero-support {
  max-width: 700px;
  margin-top: 16px;
  font-size: 1rem;
}

.hero-meta {
  margin-top: 26px;
}

.actions {
  margin-top: 28px;
}

.hero .symbol-shadow {
  width: min(68vw, 900px);
  right: -10vw;
  top: 10vh;
  opacity: .075;
}

.section-head {
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr);
  gap: 42px;
  margin-bottom: 46px;
}

.panel {
  padding: clamp(24px, 2.5vw, 34px);
}

.module-title {
  font-size: 1.02rem;
}

.feature-list {
  margin: 20px 0;
}

.principles {
  margin-top: 24px;
  padding-top: 18px;
}

.outcome {
  padding-top: 28px;
}

.balance-note {
  margin-top: 34px;
  font-size: 1.12rem;
}

.app-card {
  min-height: 292px;
  padding: 24px;
}

.app-card h3 {
  margin-top: 54px;
  font-size: 1.08rem;
}

.app-card p {
  font-size: .95rem;
  line-height: 1.52;
}

.role-note {
  padding: 20px 24px;
}

.progress-layout {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 54px;
  align-items: start;
}

.progress-layout figure {
  width: 100%;
  max-width: 470px;
}

.product-shot {
  padding: 9px;
}

.product-shot img {
  aspect-ratio: auto;
  object-fit: contain;
}

.caption {
  margin-top: 12px;
  font-size: .84rem;
  line-height: 1.45;
}

.proof-list {
  gap: 11px;
}

.proof {
  padding-bottom: 16px;
}

.proof p {
  font-size: .98rem;
  line-height: 1.5;
}

.logistics-layout {
  gap: 46px;
}

.hub-diagram {
  min-height: 410px;
}

.component-list {
  margin-top: 26px;
}

.credibility {
  max-width: 820px;
  font-size: clamp(1.42rem, 2.5vw, 2.05rem);
  margin: 30px 0 40px;
  line-height: 1.28;
}

.expertise p {
  font-size: .9rem;
  line-height: 1.5;
}

.operating-model {
  margin-top: 40px;
}

.founder {
  margin-top: 36px;
}

.collab-layout {
  gap: 58px;
}

.footer {
  padding: 38px 0;
}

.footer img {
  width: 196px;
}

@media (max-width: 960px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .nav { height: 86px; }
  .brand img { width: 205px; }
  .nav-links { top: 76px; }
  .progress-layout figure { max-width: 560px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 68px 0; }
  .nav { height: 76px; }
  .brand img { width: 184px; }
  .hero { padding-top: 104px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.3rem); }
  h2 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .hero .lead { margin-top: 22px; }
  .app-card { min-height: 230px; }
  .app-card h3 { margin-top: 34px; }
  .hub-diagram { min-height: 340px; }
}


/* V2b — decisive typography, spacing and asset correction */
:root { --max: 1160px; }

body { font-size: 15.5px; line-height: 1.5; }
.section { padding: clamp(68px, 7vw, 96px) 0; }

h1 {
  font-size: clamp(2.85rem, 5.35vw, 5.25rem);
  line-height: 1.015;
  letter-spacing: -.036em;
}

h2 {
  max-width: 790px;
  font-size: clamp(1.95rem, 3.35vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.026em;
}

h3 { font-size: clamp(1.08rem, 1.35vw, 1.34rem); }
.lead { max-width: 720px; font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.5; }
.copy { font-size: .97rem; }

.nav { height: 92px; }
.brand { display: block; line-height: 0; }
.brand img { width: 248px; height: auto; }

.hero { padding-top: 112px; }
.hero h1 { max-width: 900px; }
.hero .lead { margin-top: 24px; max-width: 710px; }
.hero-support { max-width: 660px; margin-top: 14px; font-size: .96rem; }
.hero-meta { margin-top: 22px; font-size: .78rem; }
.actions { margin-top: 24px; }

.section-head { gap: 36px; margin-bottom: 38px; }
.panel { padding: clamp(22px, 2.2vw, 30px); }

.app-card { min-height: 252px; padding: 22px; }
.app-card h3 { margin-top: 38px; font-size: 1.02rem; }
.app-card p { font-size: .91rem; }

.progress-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 62px;
}
.progress-layout figure { max-width: 360px; }
.product-shot { padding: 7px; }
.caption { font-size: .8rem; }

.hub-diagram { min-height: 375px; }
.credibility { font-size: clamp(1.28rem, 2vw, 1.8rem); }
.footer img { width: 220px; }

@media (max-width: 960px) {
  .brand img { width: 224px; }
  .progress-layout { grid-template-columns: 1fr; gap: 34px; }
  .progress-layout figure { max-width: 430px; }
}

@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .brand img { width: 198px; }
  h1 { font-size: clamp(2.55rem, 12vw, 3.75rem); }
  h2 { font-size: clamp(1.85rem, 8.7vw, 2.65rem); }
  .app-card { min-height: 215px; }
}

/* V2c — header and hero refinement */
.site-header {
  background: rgba(5, 17, 41, .98);
  border-bottom: 1px solid rgba(139, 171, 201, .18);
  box-shadow: 0 10px 30px rgba(2, 10, 29, .16);
  backdrop-filter: blur(10px);
}

.nav {
  height: 78px;
  align-items: center;
}

.brand img {
  width: 162px;
}

.nav-links {
  gap: 28px;
  font-size: .9rem;
  line-height: 1;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 78px;
}

.hero {
  padding-top: 102px;
}

.hero .symbol-shadow {
  width: min(70vw, 920px);
  right: -9vw;
  top: 7vh;
  opacity: .145;
  filter: contrast(1.08);
}

@media (max-width: 960px) {
  .nav { height: 74px; }
  .brand img { width: 154px; }
  .nav-links { top: 73px; }
  .nav-links a { min-height: auto; }
  .hero { padding-top: 96px; }
}

@media (max-width: 680px) {
  .nav { height: 70px; }
  .brand img { width: 145px; }
  .hero { padding-top: 90px; }
  .hero .symbol-shadow {
    width: 108vw;
    right: -44vw;
    top: 12vh;
    opacity: .12;
  }
}

@media (max-width: 420px) {
  .site-header .brand img { width: 132px; }
}

/* V2d — header depth and hero mark positioning */
.site-header {
  background: #051129;
}

.nav {
  height: 92px;
}

.brand img {
  width: 162px;
}

.nav-links a {
  min-height: 92px;
}

.hero {
  padding-top: 116px;
}

.hero .symbol-shadow {
  width: min(68vw, 900px);
  right: 2vw;
  top: 8vh;
  opacity: .24;
  filter: brightness(1.28) contrast(1.12);
}

@media (max-width: 960px) {
  .nav { height: 84px; }
  .brand img { width: 154px; }
  .nav-links { top: 83px; }
  .nav-links a { min-height: auto; }
  .hero { padding-top: 106px; }
  .hero .symbol-shadow {
    right: -4vw;
    opacity: .21;
  }
}

@media (max-width: 680px) {
  .nav { height: 76px; }
  .brand img { width: 145px; }
  .hero { padding-top: 96px; }
  .hero .symbol-shadow {
    width: 106vw;
    right: -31vw;
    top: 13vh;
    opacity: .17;
  }
}

/* V2e — AMPERYN System section introduction */
#apex .section-head {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr);
  gap: 44px;
  align-items: start;
}

#apex .section-head > div,
#apex .section-head h2 {
  width: 100%;
  max-width: none;
}

#apex .section-head > .copy {
  margin: 34px 0 0;
  max-width: 430px;
  justify-self: start;
  text-align: left;
  color: var(--ice);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.5;
}

@media (max-width: 960px) {
  #apex .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #apex .section-head > .copy {
    margin-top: 0;
    max-width: 720px;
  }
}


/* V2e-b — decisive AMPERYN System headline and subline correction */
#apex .section-head {
  grid-template-columns: minmax(0, 1.68fr) minmax(330px, .82fr);
  gap: 54px;
  align-items: start;
  margin-bottom: 40px;
}

#apex .section-head > div {
  min-width: 0;
}

#apex .section-head h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.05vw, 3.02rem);
  line-height: 1.08;
  letter-spacing: -.026em;
}

#apex .section-head > .copy {
  align-self: start;
  justify-self: start;
  margin: 68px 0 0;
  max-width: 455px;
  text-align: left;
  color: var(--ice);
  font-size: clamp(1.12rem, 1.42vw, 1.34rem);
  line-height: 1.48;
  letter-spacing: -.012em;
  font-weight: 400;
}

@media (max-width: 1100px) {
  #apex .section-head {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    gap: 38px;
  }

  #apex .section-head h2 {
    font-size: clamp(1.95rem, 3.15vw, 2.75rem);
  }

  #apex .section-head > .copy {
    margin-top: 60px;
    font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  }
}

@media (max-width: 960px) {
  #apex .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #apex .section-head h2 {
    max-width: 760px;
  }

  #apex .section-head > .copy {
    margin-top: 0;
    max-width: 720px;
  }

  #apex .desktop-break {
    display: none;
  }
}

/* V2f — stack AMPERYN System introduction */
#apex .section-head {
  display: block;
  margin-bottom: 42px;
}

#apex .section-head > div {
  width: 100%;
}

#apex .section-head h2 {
  max-width: 980px;
  font-size: clamp(2rem, 3.05vw, 3.02rem);
  line-height: 1.08;
  letter-spacing: -.026em;
}

#apex .section-head > .copy {
  margin: 24px 0 0;
  max-width: 780px;
  text-align: left;
  color: var(--ice);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.52;
  letter-spacing: -.01em;
  font-weight: 400;
}

@media (max-width: 960px) {
  #apex .section-head {
    margin-bottom: 34px;
  }

  #apex .section-head h2 {
    max-width: 760px;
  }

  #apex .section-head > .copy {
    margin-top: 20px;
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  #apex .desktop-break {
    display: none;
  }
}


/* V2g — strengthen real-world constraints USP line */
#apex .principles {
  margin-top: 24px;
  padding-top: 22px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

#apex .principles strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ice);
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  font-weight: 700;
}

#apex .principles span {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

@media (max-width: 680px) {
  #apex .principles {
    margin-top: 20px;
    padding-top: 18px;
  }

  #apex .principles span {
    line-height: 1.75;
  }
}


/* V2h — approved visual storytelling and founder statement */
.image-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.image-section::before,
.image-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.image-section > .container {
  position: relative;
  z-index: 2;
}

/* Saturn atmosphere behind The AMPERYN System */
.system-atmosphere::before {
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 12, 31, .96) 0%, rgba(2, 12, 31, .82) 48%, rgba(2, 12, 31, .68) 100%),
    url("/assets/saturn-rings-flipped.webp") center left / cover no-repeat;
  opacity: .30;
}

.system-atmosphere::after {
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle at 78% 42%, rgba(33, 93, 176, .12), transparent 42%);
}

/* Earth-at-night atmosphere behind Applications */
.applications-atmosphere::before {
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 12, 31, .84), rgba(2, 12, 31, .58)),
    url("/assets/earth-at-night.webp") center / cover no-repeat;
  opacity: .52;
}

.applications-atmosphere::after {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 12, 31, .18), rgba(2, 12, 31, .48)),
    radial-gradient(circle at 68% 38%, rgba(155, 190, 255, .10), transparent 34%);
}

/* Mountain atmosphere behind Collaboration */
.collaboration-atmosphere::before {
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 9, 25, .92) 0%, rgba(1, 9, 25, .74) 55%, rgba(1, 9, 25, .64) 100%),
    url("/assets/mountain-lake.webp") center / cover no-repeat;
  opacity: .42;
}

.collaboration-atmosphere::after {
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 14, 37, .20), rgba(3, 14, 37, .56));
}

/* Approved APEX energy-network visual */
.hub-visual {
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(37, 102, 255, .72);
  background: rgba(2, 11, 29, .74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  overflow: hidden;
}

.hub-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Founder statement rather than résumé block */
.founder-quote {
  align-items: flex-start;
  margin-top: 48px;
  padding: 30px 32px;
  border-top: 1px solid rgba(72, 128, 221, .34);
  border-bottom: 1px solid rgba(72, 128, 221, .18);
  background: linear-gradient(90deg, rgba(0, 78, 229, .07), rgba(0, 78, 229, .015));
}

.founder-quote .founder-mark {
  flex: 0 0 64px;
  margin-top: 3px;
}

.founder-statement {
  max-width: 940px;
}

.founder-statement .eyebrow {
  margin: 0 0 12px;
}

.founder-statement blockquote {
  margin: 0;
  color: var(--ice);
  font-size: clamp(1.35rem, 2.15vw, 2.05rem);
  line-height: 1.30;
  letter-spacing: -.018em;
  font-weight: 600;
}

.founder-name {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .96rem;
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .system-atmosphere::before {
    background-position: 70% center;
    opacity: .24;
  }

  .applications-atmosphere::before {
    opacity: .42;
  }

  .collaboration-atmosphere::before {
    opacity: .28;
  }

  .hub-visual {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .founder-quote {
    display: block;
    padding: 24px 20px;
  }

  .founder-quote .founder-mark {
    margin-bottom: 18px;
  }

  .founder-statement blockquote {
    font-size: 1.35rem;
  }

  .system-atmosphere::before,
  .collaboration-atmosphere::before {
    opacity: .20;
  }

  .applications-atmosphere::before {
    opacity: .30;
  }
}


/* V2i — mirrored Saturn and brighter Applications world map */


/* V2j — streamlined navigation and founder attribution */
.founder-name {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  align-items: baseline;
  margin-top: 18px;
  color: var(--ice);
  font-weight: 650;
}

.founder-name span {
  color: var(--muted);
  font-weight: 500;
}


/* V2k — founder portrait and stronger hero industry labels */
.hero-meta {
  margin-top: 28px;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--light-blue);
  line-height: 1.55;
}

.founder-photo {
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0, 78, 229, .55);
  box-shadow: 0 0 0 1px rgba(161, 190, 224, .08) inset;
  background: rgba(5, 15, 38, .9);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  filter: saturate(.92) contrast(1.02);
}

@media (max-width: 900px) {
  .hero-meta {
    font-size: 1rem;
    margin-top: 22px;
  }

  .founder-photo {
    width: 88px;
    height: 88px;
  }
}


/* V2l — consistent signal-blue application icons */
.app-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  color: var(--signal-blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .96;
  filter: drop-shadow(0 0 9px rgba(0, 78, 229, .24));
  z-index: 2;
  transition: transform .22s ease, filter .22s ease;
}

.app-card:hover .app-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 13px rgba(0, 78, 229, .38));
}

@media (max-width: 680px) {
  .app-icon {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
  }
}


/* V2m — compact navigation, mobile composition and legal pages */
.site-header .nav {
  height: 64px;
}

.site-header .brand img {
  width: 150px;
  height: auto;
}

.site-header .nav-links a {
  min-height: 64px;
}

/* Smaller hero calls to action */
.hero .actions {
  gap: 10px;
  margin-top: 20px;
}

.hero .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: .82rem;
}

/* AMPERYN System intro: full-width subline and tighter card transition */
#apex .section-head {
  margin-bottom: 24px;
}

#apex .section-head > .copy {
  max-width: 100%;
  width: 100%;
  margin-top: 20px;
}

#apex .system-grid {
  margin-top: 0;
}

/* Applications: stronger numbers, lighter and smaller icons */
.app-index {
  font-size: 1rem;
  letter-spacing: .03em;
}

.app-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.25;
  top: 22px;
  right: 22px;
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  background: var(--navy);
}

.legal-shell {
  width: min(calc(100% - 40px), 920px);
  margin-inline: auto;
  padding: 110px 0 90px;
}

.legal-shell h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  margin-top: 22px;
}

.legal-content {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(26, 69, 218, .55);
  background: rgba(4, 17, 48, .82);
}

.legal-content h2 {
  margin-top: 42px;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  max-width: none;
}

.legal-content h3 {
  margin-top: 30px;
  font-size: 1.18rem;
  color: var(--ice);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.72;
}

.legal-content a {
  color: var(--lime);
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-home {
  color: var(--lime);
  font-weight: 600;
}

/* Force stacked section introductions on mobile */
@media (max-width: 900px) {
  .site-header .nav {
    height: 62px;
  }

  .site-header .brand img {
    width: 142px;
  }

  .site-header .nav-links {
    top: 61px;
  }

  .site-header .nav-toggle {
    padding: 8px 12px;
    font-size: .86rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 78px;
    padding-bottom: 34px;
  }

  .hero .lead {
    margin-top: 16px;
  }

  .hero-support {
    margin-top: 10px;
  }

  .hero .actions {
    margin-top: 16px;
  }

  .hero-meta {
    margin-top: 16px;
  }

  #applications .section-head,
  #progress .section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  #applications .section-head > *,
  #progress .section-head > * {
    width: 100%;
    max-width: none;
  }

  #applications .section-head .copy,
  #progress .section-head .copy {
    margin: 0;
    max-width: none;
  }
}

@media (max-width: 680px) {
  .site-header .nav {
    height: 58px;
  }

  .site-header .brand img {
    width: 132px;
  }

  .site-header .nav-links {
    top: 57px;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.4vw, 3.45rem);
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.42;
  }

  .hero-support {
    font-size: .88rem;
    line-height: 1.42;
  }

  .hero .actions {
    flex-wrap: nowrap;
  }

  .hero .btn {
    width: auto;
    min-height: 36px;
    padding: 0 11px;
    font-size: .69rem;
    white-space: nowrap;
  }

  .hero-meta {
    font-size: .9rem;
    line-height: 1.5;
  }

  #apex .section-head {
    margin-bottom: 18px;
  }

  #apex .section-head > .copy {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.48;
  }

  .app-index {
    font-size: 1.05rem;
  }

  .app-icon {
    width: 30px;
    height: 30px;
    stroke-width: 1.15;
    top: 19px;
    right: 19px;
  }

  .legal-shell {
    width: min(calc(100% - 28px), 920px);
    padding: 82px 0 60px;
  }

  .legal-content {
    margin-top: 28px;
    padding: 22px 18px;
  }
}


/* V2n — updated Imprint structure and company data */
.legal-content > h1:first-child {
  margin: 0 0 34px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.02;
}

.legal-content > h2:first-of-type {
  margin-top: 0;
}

.legal-content p + h2 {
  margin-top: 46px;
}


/* V2o — concise privacy page without external font loading */
.legal-content > h1:first-child {
  margin: 0 0 34px;
}


/* V3 — under-the-hood subpages for PLAN and OPERATE */
.detail-page {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
}

.detail-hero {
  min-height: 68svh;
  display: grid;
  align-items: end;
  padding-top: 110px;
  padding-bottom: 44px;
}

.detail-hero-plan {
  background: radial-gradient(circle at 74% 34%, rgba(184,226,67,.12), transparent 28%), linear-gradient(180deg, #020a1d 0%, #061637 52%, #051129 100%);
}

.detail-hero-operate {
  background: radial-gradient(circle at 76% 36%, rgba(0,78,229,.14), transparent 32%), linear-gradient(180deg, #020a1d 0%, #061637 52%, #051129 100%);
}

.under-hood .symbol-shadow {
  width: min(58vw, 760px);
  right: -12vw;
  top: 8vh;
  opacity: .07;
}

.detail-section.alt-surface {
  background: rgba(2,10,29,.42);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.tech-copy h2 {
  max-width: 780px;
}

.tech-frame {
  border: 1px solid rgba(26,69,218,.55);
  background: linear-gradient(180deg, rgba(4,17,48,.78), rgba(2,10,29,.92));
  box-shadow: 0 24px 70px rgba(0,0,0,.20);
}

.tech-svg {
  display: block;
  width: 100%;
  height: auto;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.check-grid div,
.capability-card,
.output-card {
  padding: 18px 18px 16px;
  border: 1px solid rgba(26,69,218,.5);
  background: rgba(4,17,48,.62);
}

.check-grid strong,
.capability-card h3,
.output-card h3 {
  display: block;
  color: var(--ice);
  margin-bottom: 6px;
}

.check-grid span,
.capability-card p,
.output-card p,
.capability-card li {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.58;
}

.capability-grid,
.output-grid {
  display: grid;
  gap: 16px;
}

.capability-grid.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.capability-grid.four-up,
.output-grid {
  grid-template-columns: repeat(4, 1fr);
}

.capability-card ul {
  margin: 14px 0 0;
  padding-left: 1.1rem;
}

.response-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.response-steps li {
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: rgba(233,76,67,.05);
}

.response-steps strong {
  display: block;
  color: var(--ice);
  margin-bottom: 4px;
}

.response-steps span {
  color: var(--muted);
}

.detail-footer-cta {
  margin-top: 26px;
  padding: 24px 26px;
  border-left: 3px solid var(--lime);
  background: rgba(184,226,67,.045);
}

.detail-footer-cta strong {
  display: block;
  color: var(--ice);
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.role-note strong {
  color: var(--ice);
  letter-spacing: .04em;
}

@media (max-width: 980px) {
  .detail-layout,
  .capability-grid.three-up,
  .capability-grid.four-up,
  .output-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .detail-hero {
    min-height: auto;
    padding-top: 84px;
  }

  .detail-layout,
  .check-grid,
  .capability-grid.three-up,
  .capability-grid.four-up,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .detail-footer-cta {
    padding: 20px 18px;
  }

  .under-hood .symbol-shadow {
    width: 96vw;
    right: -36vw;
    top: 10vh;
  }
}


/* V3.1 navigation */
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-parent {
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ice);
  cursor: pointer;
  opacity: .82;
}

.nav-parent:hover,
.nav-parent:focus-visible,
.nav-group:focus-within .nav-parent {
  color: #fff;
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  width: 270px;
  padding: 10px;
  border: 1px solid rgba(26,69,218,.58);
  border-radius: 10px;
  background: rgba(2,10,29,.98);
  box-shadow: 0 18px 42px rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  min-height: auto !important;
  padding: 11px 12px;
  border-radius: 7px;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(0,78,229,.12);
}

.nav-dropdown strong,
.nav-dropdown span {
  display: block;
}

.nav-dropdown strong {
  color: var(--ice);
  font-size: .9rem;
}

.nav-dropdown span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
}

.module-breadcrumb {
  position: relative;
  z-index: 4;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto -10px;
  padding-top: 82px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--light-blue);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-breadcrumb a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .nav-group {
    width: 100%;
    display: block;
  }

  .nav-parent {
    display: none;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown a {
    padding: 9px 0;
  }

  .nav-dropdown span {
    display: inline;
    margin-left: 7px;
  }

  .module-breadcrumb {
    width: min(calc(100% - 36px), var(--max));
    padding-top: 76px;
  }
}

@media (max-width: 680px) {
  .module-breadcrumb {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 70px;
  }
}


/* V3.1 operate graphic refinement */
.rounded-frame {
  overflow: hidden;
  border-radius: 18px;
}

.rounded-frame .tech-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.operate-diagram text {
  paint-order: stroke;
  stroke: rgba(2,10,29,0.18);
  stroke-width: .3px;
}

@media (max-width: 760px) {
  .rounded-frame {
    border-radius: 16px;
  }

  .rounded-frame .tech-svg {
    border-radius: 16px;
  }
}


/* V3.2 — PLAN product story */
.plan-story-section {
  background: rgba(2,10,29,.28);
}

.plan-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-story-card {
  position: relative;
  min-height: 390px;
  padding: 30px 28px;
  border: 1px solid rgba(26,69,218,.55);
  background: rgba(4,17,48,.64);
}

.plan-story-card .story-index {
  display: block;
  margin-bottom: 42px;
  color: var(--signal-blue);
  font-size: 1.15rem;
  font-weight: 700;
}

.plan-story-card h2 {
  margin-bottom: 22px;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
}

.plan-story-card .copy + .copy {
  margin-top: 10px;
}

.plan-illustration-section .tech-copy {
  padding-top: 10px;
}

.plan-output-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
}

.plan-closing-statement {
  margin-top: 28px;
  padding: 30px 32px;
  border-left: 3px solid var(--lime);
  background: rgba(184,226,67,.045);
}

.plan-closing-statement strong {
  display: block;
  color: var(--ice);
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  line-height: 1.2;
}

.plan-closing-statement p {
  margin: 9px 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 980px) {
  .plan-story-grid,
  .plan-output-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .plan-story-grid,
  .plan-output-grid {
    grid-template-columns: 1fr;
  }

  .plan-story-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .plan-story-card .story-index {
    margin-bottom: 24px;
  }

  .plan-closing-statement {
    padding: 24px 20px;
  }
}


/* V3.3 — zoomable PLAN, OPERATE and Digital Twin illustrations */
.zoomable-figure {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(26,69,218,.68);
  border-radius: 18px;
  background: #020a1d;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.zoomable-figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .22s ease, opacity .22s ease;
}

.zoomable-figure:hover img,
.zoomable-figure:focus-visible img {
  transform: scale(1.012);
  opacity: .94;
}

.zoomable-figure:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.module-illustration {
  align-self: start;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(139,171,201,.45);
  border-radius: 999px;
  background: rgba(2,10,29,.88);
  color: var(--ice);
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .035em;
  backdrop-filter: blur(8px);
}

.zoomable-product-figure {
  margin: 0;
}

.zoomable-product-figure .product-shot {
  border-radius: 10px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  grid-template-rows: auto 1fr;
  background: rgba(1,5,16,.96);
}

.image-lightbox.open {
  display: grid;
}

.image-lightbox__toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(139,171,201,.22);
  background: rgba(2,10,29,.96);
}

.image-lightbox__toolbar button {
  min-width: 42px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid rgba(26,69,218,.65);
  border-radius: 7px;
  background: rgba(4,17,48,.92);
  color: var(--ice);
  cursor: pointer;
  font: inherit;
}

.image-lightbox__toolbar button:hover,
.image-lightbox__toolbar button:focus-visible {
  border-color: var(--lime);
  color: #fff;
}

.image-lightbox__viewport {
  overflow: auto;
  padding: 18px;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}

.image-lightbox__image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  transform-origin: top center;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .zoom-hint {
    right: 8px;
    bottom: 8px;
    padding: 6px 8px;
    font-size: .66rem;
  }

  .module-illustration {
    max-height: 370px;
  }

  .module-illustration img {
    min-height: 260px;
    object-fit: cover;
    object-position: center;
  }

  .image-lightbox__viewport {
    padding: 10px;
  }

  .image-lightbox__image {
    width: 150%;
  }
}


/* V3.4 — mobile OPERATE layout and consistent section subtitles */
.section-subtitle {
  max-width: 920px;
  margin-top: 26px;
  color: var(--light-blue);
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.55;
  font-weight: 400;
}

#apex .section-head > .section-subtitle {
  width: 100%;
  max-width: 100%;
}

#company .section-subtitle {
  margin-bottom: 48px;
}

@media (max-width: 960px) {
  .under-hood .section-head {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 36px;
  }

  .under-hood .section-head > div,
  .under-hood .section-head > .copy {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
  }

  .under-hood .section-head h2 {
    max-width: none;
    overflow-wrap: normal;
    word-break: normal;
  }

  .under-hood .section-head > .copy {
    color: var(--light-blue);
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .under-hood .capability-grid.three-up,
  .under-hood .capability-grid.four-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .under-hood .detail-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .under-hood .section-head {
    gap: 18px;
    margin-bottom: 28px;
  }

  .under-hood .section-head h2 {
    font-size: clamp(2.15rem, 10.4vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -.025em;
  }

  .under-hood .section-head > .copy {
    font-size: 1rem;
    line-height: 1.52;
  }

  .under-hood .capability-card {
    padding: 24px 20px;
  }

  .under-hood .capability-card h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .under-hood .capability-card p,
  .under-hood .capability-card li {
    font-size: 1rem;
    line-height: 1.55;
  }

  .section-subtitle,
  #apex .section-head > .section-subtitle,
  #company .section-subtitle {
    width: 100%;
    max-width: none;
    margin-top: 20px;
    margin-bottom: 36px;
    color: var(--light-blue);
    font-size: 1rem;
    line-height: 1.52;
  }

  #apex .section-head > .section-subtitle {
    margin-bottom: 0;
  }
}


/* V3.5 — consistent stacked section introductions on desktop */
@media (min-width: 961px) {
  .section-head.section-head-stacked {
    display: block;
    margin-bottom: 50px;
  }

  .section-head.section-head-stacked > div {
    width: 100%;
    max-width: 920px;
  }

  .section-head.section-head-stacked h2 {
    max-width: 900px;
  }

  .section-head.section-head-stacked > .section-subtitle {
    width: 100%;
    max-width: 920px;
    margin: 26px 0 0;
    color: var(--light-blue);
    font-size: clamp(1.08rem, 1.55vw, 1.32rem);
    line-height: 1.55;
    text-align: left;
  }

  #apex .section-head.section-head-stacked > .section-subtitle {
    color: var(--light-blue);
  }

  #applications .section-head.section-head-stacked,
  #progress .section-head.section-head-stacked {
    align-items: initial;
  }

  .under-hood .section-head.section-head-stacked {
    display: block !important;
  }

  .under-hood .section-head.section-head-stacked > div,
  .under-hood .section-head.section-head-stacked > .section-subtitle {
    width: 100%;
    max-width: 920px;
  }
}


/* V3.6 — subpage hero mark, response process, navigation and PLAN refinements */

/* High-resolution horizontal logo in every header */
.site-header .brand img {
  width: 162px;
  height: auto;
  object-fit: contain;
}

/* APEX is a direct link while retaining hover/focus dropdown behaviour */
.nav-parent {
  display: inline-flex;
  align-items: center;
  min-height: 92px;
  text-decoration: none;
}

/* PLAN and OPERATE hero mark: same visibility and glow as the main hero, shifted left */
.under-hood .detail-hero .symbol-shadow {
  width: min(68vw, 900px);
  right: 2vw;
  left: auto;
  top: 8vh;
  opacity: .24;
  filter: brightness(1.28) contrast(1.12);
}

/* PLAN hero emphasis */
.detail-hero-plan h1 .signal {
  color: var(--lime);
}

/* Energy OS in Action: standard section introduction above aligned content */
.response-intro {
  margin-bottom: 42px;
}

.response-layout {
  grid-template-columns: minmax(330px, .82fr) minmax(440px, 1.18fr);
  align-items: start;
  gap: 42px;
}

.response-layout .module-illustration {
  align-self: start;
  margin-top: 0;
}

/* Four-step vertical response process with downward arrows */
.response-process {
  margin: 0;
  gap: 18px;
  counter-reset: response-step;
}

.response-process li {
  position: relative;
  min-height: 86px;
  padding: 18px 22px 18px 25px;
  border: 0;
  border-left: 3px solid var(--red);
  background: rgba(233,76,67,.055);
}

.response-process li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -19px;
  width: 3px;
  height: 19px;
  background: var(--red);
}

.response-process li:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -8px;
  bottom: -20px;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(45deg);
  background: transparent;
}

.response-process strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.response-process span {
  display: block;
  margin-top: 7px;
  font-size: .98rem;
  line-height: 1.48;
}

/* PLAN outcomes closing box now follows Core Operational Capabilities typography */
.plan-closing-statement {
  margin-top: 28px;
  padding: 24px 26px;
  border-left: 3px solid var(--lime);
  background: rgba(184,226,67,.045);
}

.plan-closing-statement strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ice);
  font-size: 1.06rem;
  line-height: 1.35;
}

.plan-closing-statement p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.58;
}

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

  .response-layout .module-illustration {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .site-header .brand img {
    width: 154px;
  }

  .nav-parent {
    min-height: auto;
  }

  .under-hood .detail-hero .symbol-shadow {
    right: -4vw;
    opacity: .21;
  }
}

@media (max-width: 680px) {
  .site-header .brand img {
    width: 145px;
  }

  .under-hood .detail-hero .symbol-shadow {
    width: 106vw;
    right: -31vw;
    top: 13vh;
    opacity: .17;
  }

  .response-intro {
    margin-bottom: 28px;
  }

  .response-process {
    gap: 16px;
  }

  .response-process li {
    min-height: 0;
    padding: 17px 18px 17px 21px;
  }

  .response-process li:not(:last-child)::after {
    bottom: -17px;
    height: 17px;
  }

  .response-process li:not(:last-child)::before {
    bottom: -18px;
  }

  .plan-closing-statement {
    padding: 20px 18px;
  }
}

/* V4.0 final mobile header fit */
@media (max-width: 420px) {
  .site-header .brand img { width: 132px; }
}
