
/* =========================================================
   SUSTAINABLE OASIS ONLINE V2
   2026 DESIGN SYSTEM
   Dark premium interface • Orange / Red / Green accents
   ========================================================= */

:root {
  --bg: #070b10;
  --bg-deep: #05080c;
  --bg-soft: #0c1219;
  --bg-elevated: #111922;
  --bg-card: rgba(18, 26, 35, 0.82);
  --bg-card-strong: rgba(19, 29, 39, 0.96);

  --text: #f7f8f9;
  --text-soft: #c6cdd4;
  --text-muted: #8e99a5;

  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.15);

  --orange: #ff7a00;
  --orange-bright: #ff9500;
  --red: #ff3b30;
  --red-deep: #c81d11;
  --green: #42d66b;
  --green-deep: #1ca24a;
  --blue-deep: #071829;
  --silver: #c9d0d7;

  --accent-gradient: linear-gradient(135deg, var(--orange) 0%, var(--red) 52%, var(--green) 100%);
  --energy-gradient: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  --green-gradient: linear-gradient(135deg, #28b45c 0%, #72e596 100%);

  --shadow-sm: 0 8px 30px rgba(0,0,0,0.22);
  --shadow-md: 0 18px 60px rgba(0,0,0,0.34);
  --shadow-lg: 0 32px 90px rgba(0,0,0,0.48);
  --glow-orange: 0 0 0 1px rgba(255,122,0,0.18), 0 0 40px rgba(255,122,0,0.10);
  --glow-green: 0 0 0 1px rgba(66,214,107,0.18), 0 0 40px rgba(66,214,107,0.10);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;

  --container: 1240px;
  --header-height: 88px;

  --transition: 180ms ease;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(255,122,0,0.08), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(66,214,107,0.05), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(255,59,48,0.04), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.03em;
}

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

::selection {
  background: rgba(255,122,0,0.28);
  color: #fff;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(8,13,18,0.96), rgba(5,9,13,0.98)),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.callout-panel h2,
.final-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.5rem);
}

.section-heading p,
.split-copy p,
.callout-panel p {
  font-size: 1.05rem;
}

.heading-with-action {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.split-copy {
  max-width: 620px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--orange-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(7,11,16,0.86);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--orange-bright);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.primary-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.primary-nav a,
.header-link {
  color: var(--text-soft);
  font-size: 0.91rem;
  font-weight: 700;
  transition: color var(--transition);
}

.primary-nav a:hover,
.header-link:hover,
.primary-nav a:focus-visible,
.header-link:focus-visible {
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.language-switcher {
  display: flex;
  padding: 5px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
}

.language-switcher a {
  min-width: 30px;
  padding: 6px 7px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  background: rgba(255,122,0,0.14);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-online {
  background: var(--bg-deep);
}

.section-heading h1 {
  font-size: clamp(2.9rem, 6vw, 5.4rem);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.96) contrast(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5,8,12,0.88) 0%, rgba(5,8,12,0.70) 34%, rgba(5,8,12,0.38) 58%, rgba(5,8,12,0.16) 78%, rgba(5,8,12,0.10) 100%),
    linear-gradient(180deg, rgba(7,11,16,0.06) 0%, rgba(7,11,16,0.12) 62%, rgba(7,11,16,0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  padding-bottom: 84px;
}

.hero-content > * {
  max-width: 820px;
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 900px;
  font-size: clamp(3.9rem, 8.5vw, 8.6rem);
  letter-spacing: -0.065em;
}

.accent-text {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-weight: 750;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 34px;
  color: #d9dde1;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-actions,
.final-cta-actions,
.callout-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

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

.button-primary {
  background: var(--energy-gradient);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255,86,0,0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(255,86,0,0.30);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.035);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.24);
}

.hero-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.hero-principles span {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.hero-principles span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(66,214,107,0.45);
}

/* =========================================================
   ECOSYSTEM / PORTALS
   ========================================================= */

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

.portal-card {
  position: relative;
  min-height: 330px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.014)),
    var(--bg-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% auto;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.13;
}

.portal-life::after {
  background: var(--green);
}

.portal-store::after {
  background: var(--orange);
}

.portal-online::after {
  background: var(--red);
}

.portal-card.is-active {
  border-color: rgba(255,122,0,0.36);
  box-shadow: var(--glow-orange), var(--shadow-md);
}

.portal-number {
  margin-bottom: 46px;
  color: rgba(255,255,255,0.12);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.portal-label {
  margin-bottom: 6px;
  color: var(--orange-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.portal-card h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.portal-card p {
  max-width: 430px;
}

.text-link,
.feature-card a,
.project-card a {
  display: inline-flex;
  margin-top: 10px;
  color: #fff;
  font-weight: 800;
}

.text-link:hover,
.feature-card a:hover,
.project-card a:hover {
  color: var(--orange-bright);
}

.ecosystem-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 42px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

/* =========================================================
   CONTROL ROOM
   ========================================================= */

.control-room-preview {
  overflow: hidden;
}

.control-room-preview::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255,122,0,0.07);
  filter: blur(80px);
  pointer-events: none;
}

.dashboard-shell {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255,122,0,0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(18,28,38,0.96), rgba(8,14,20,0.98));
  box-shadow: var(--glow-orange), var(--shadow-lg);
}

.dashboard-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.dashboard-header {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px 22px;
}

.dashboard-header div {
  display: flex;
  flex-direction: column;
}

.dashboard-header strong {
  font-size: 1.05rem;
}

.dashboard-kicker {
  margin-bottom: 5px;
  color: var(--orange-bright);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.status-pill {
  padding: 8px 11px;
  border: 1px solid rgba(66,214,107,0.24);
  border-radius: 999px;
  background: rgba(66,214,107,0.08);
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
}

.metric-card:nth-child(1) {
  box-shadow: inset 0 2px 0 rgba(255,122,0,0.60);
}

.metric-card:nth-child(2) {
  box-shadow: inset 0 2px 0 rgba(88,175,255,0.55);
}

.metric-card:nth-child(3) {
  box-shadow: inset 0 2px 0 rgba(66,214,107,0.60);
}

.metric-card:nth-child(4) {
  box-shadow: inset 0 2px 0 rgba(255,59,48,0.55);
}

.metric-label {
  display: block;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.metric-value {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.06em;
}

.metric-unit {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.dashboard-note {
  position: relative;
  z-index: 1;
  margin: 16px 4px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,122,0,0.24);
  box-shadow: var(--shadow-md);
}

.feature-index {
  display: block;
  margin-bottom: 46px;
  color: var(--orange-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

/* =========================================================
   SO-EMS
   ========================================================= */

.soems-section {
  background:
    radial-gradient(circle at 22% 50%, rgba(66,214,107,0.07), transparent 28%),
    radial-gradient(circle at 78% 50%, rgba(255,122,0,0.07), transparent 28%);
}

.system-diagram {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at center, rgba(255,122,0,0.08), transparent 24%),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--bg-soft);
  background-size: auto, 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255,122,0,0.34);
  border-radius: 50%;
  background: rgba(9,14,20,0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 70px rgba(255,122,0,0.18);
  text-align: center;
}

.system-core span {
  margin-bottom: 8px;
  color: var(--orange-bright);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.system-core strong {
  font-size: 1rem;
}

.system-node {
  position: absolute;
  min-width: 106px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11,17,24,0.92);
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.node-input {
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
}

.node-storage {
  top: 50%;
  right: 34px;
  transform: translateY(-50%);
}

.node-output {
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
}

.node-recovery {
  top: 50%;
  left: 34px;
  transform: translateY(-50%);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 32px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

/* =========================================================
   RESEARCH PRINCIPLES
   ========================================================= */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.principle-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.022);
}

.principle-card span {
  display: block;
  margin-bottom: 48px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.principle-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

/* =========================================================
   PROJECTS
   ========================================================= */

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

.project-card {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
    var(--bg-soft);
}

.project-type {
  display: inline-flex;
  margin-bottom: 46px;
  padding: 7px 10px;
  border: 1px solid rgba(66,214,107,0.18);
  border-radius: 999px;
  background: rgba(66,214,107,0.07);
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
}

/* =========================================================
   KNOWLEDGE CALLOUT
   ========================================================= */

.callout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto;
  gap: 48px;
  align-items: end;
  padding: 48px;
  border: 1px solid rgba(255,122,0,0.20);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 15% 30%, rgba(255,122,0,0.08), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(66,214,107,0.06), transparent 24%),
    var(--bg-card-strong);
  box-shadow: var(--shadow-md);
}

.callout-panel h2 {
  max-width: 860px;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta {
  padding-top: 124px;
  padding-bottom: 124px;
  background:
    linear-gradient(180deg, rgba(7,11,16,0.76), rgba(7,11,16,0.96)),
    radial-gradient(circle at 50% 0%, rgba(255,122,0,0.12), transparent 36%);
}

.final-cta-inner {
  max-width: 980px;
  text-align: center;
}

.final-cta h2 {
  margin-inline: auto;
  max-width: 940px;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
}

.final-cta h2 span {
  display: block;
  margin-top: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.final-cta-actions {
  justify-content: center;
  margin-top: 34px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 72px 0 30px;
  border-top: 1px solid var(--line);
  background: #05080c;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 42px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .brand {
  margin-bottom: 22px;
}

.footer-brand p {
  font-size: 0.93rem;
}

.footer-motto {
  color: #fff;
  font-weight: 700;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* =========================================================
   FOCUS STATES
   ========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .primary-nav {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .feature-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1.5fr repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 76px;
  }

  .section {
    padding: 84px 0;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .header-actions .header-link {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8,13,18,0.97);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 10px 8px;
  }

  .split-layout,
  .callout-panel {
    grid-template-columns: 1fr;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heading-with-action {
    align-items: start;
    flex-direction: column;
  }

  .callout-actions {
    justify-content: flex-start;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    min-height: 70px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 0.82rem;
  }

  .brand-copy span {
    font-size: 0.58rem;
  }

  .language-switcher {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 88px;
    padding-bottom: 68px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .hero-actions,
  .final-cta-actions,
  .callout-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-principles {
    gap: 12px;
    flex-direction: column;
  }

  .portal-card,
  .project-card {
    padding: 24px;
  }

  .ecosystem-flow {
    border-radius: 22px;
    align-items: center;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    padding: 14px;
    border-radius: 26px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid-four,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .system-diagram {
    min-height: 440px;
  }

  .system-core {
    width: 150px;
  }

  .system-node {
    min-width: 92px;
    font-size: 0.6rem;
  }

  .node-storage {
    right: 14px;
  }

  .node-recovery {
    left: 14px;
  }

  .callout-panel {
    padding: 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

  .section-heading h2,
  .split-copy h2,
  .callout-panel h2,
  .final-cta h2 {
    font-size: 2.25rem;
  }

  .portal-card,
  .feature-card,
  .project-card {
    border-radius: 20px;
  }

  .dashboard-shell {
    padding: 10px;
  }

  .metric-card {
    min-height: 130px;
    padding: 16px;
  }

  .system-diagram {
    min-height: 380px;
  }

  .system-core {
    width: 128px;
  }

  .node-input {
    top: 24px;
  }

  .node-output {
    bottom: 24px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

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


/* =========================================================
   COMPLETION PATCH — CALCULATORS, DATA STATES & SHARED HELPERS
   ========================================================= */

.split-visual {
  min-width: 0;
}

.status-pill.is-demo {
  border-color: rgba(77, 180, 255, 0.28);
  background: rgba(77, 180, 255, 0.10);
  color: #8fd0ff;
}

.status-pill.is-estimated {
  border-color: rgba(255, 149, 0, 0.30);
  background: rgba(255, 149, 0, 0.10);
  color: #ffb25c;
}

.status-pill.is-measured {
  border-color: rgba(66, 214, 107, 0.30);
  background: rgba(66, 214, 107, 0.10);
  color: #82e89d;
}

form[data-calculator] {
  display: grid;
  gap: 18px;
}

.calculator-field {
  display: grid;
  gap: 8px;
}

.calculator-field label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.calculator-field small {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.calculator-input {
  min-height: 54px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.calculator-input:focus-within {
  border-color: rgba(255,149,0,0.62);
  background: rgba(255,255,255,0.045);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.10);
}

.calculator-input input,
.calculator-input select {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.calculator-input input::placeholder {
  color: #687582;
}

.calculator-input > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-left: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.calculator-equation {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255,122,0,0.18);
  border-radius: 14px;
  background: rgba(255,122,0,0.045);
  color: #c8d0d8;
  font-size: 0.78rem;
  line-height: 1.6;
}

.calculator-equation strong {
  color: var(--orange-bright);
}

.control-transfer-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.026);
}

#control-room-status {
  min-height: 1.2em;
  margin-top: 12px;
  color: #8fe8a8;
  font-size: 0.78rem;
}

.button:disabled,
.button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.solar-results-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.solar-summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.024);
}

.solar-summary-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.solar-summary-card strong {
  display: block;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.solar-summary-card small {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.66rem;
}

.solar-summary-card.is-daily strong,
.solar-result-value.is-daily strong {
  color: var(--orange-bright);
}

.solar-summary-card.is-monthly strong,
.solar-result-value.is-monthly strong {
  color: #ffb347;
}

.solar-summary-card.is-annual strong,
.solar-result-value.is-annual strong {
  color: var(--green);
}

.solar-results-table {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.018);
}

.solar-results-header,
.solar-result-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(95px, 1fr));
  align-items: center;
}

.solar-results-header {
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}

.solar-results-header span {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.solar-results-header span:not(:first-child) {
  text-align: right;
}

.solar-result-row {
  position: relative;
  min-height: 82px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}

.solar-result-row:last-child {
  border-bottom: 0;
}

.solar-result-row:hover {
  background: rgba(255,255,255,0.02);
}

.solar-result-row.is-primary {
  background: linear-gradient(90deg, rgba(255,122,0,0.055), rgba(66,214,107,0.02));
}

.solar-result-row.is-primary::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--accent-gradient);
}

.solar-result-row.is-raw {
  opacity: 0.82;
}

.solar-result-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.solar-result-label strong {
  color: #fff;
  font-size: 0.88rem;
}

.solar-result-label span {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.solar-result-value {
  text-align: right;
}

.solar-result-value strong {
  display: block;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.solar-result-value span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.solar-production-bar {
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
}

.solar-production-bar > span {
  display: block;
  width: var(--solar-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient);
  transition: width 400ms ease;
}

.solar-results-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.solar-results-status p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.solar-results-status strong {
  color: var(--orange-bright);
}

/* Explicit modifier hooks used throughout generated pages. */
.is-demo { }
.is-estimated { }
.is-measured { }
.is-daily { }
.is-monthly { }
.is-annual { }
.is-primary { }
.is-raw { }

/* Shared section hooks retained for page-specific extension. */
.ecosystem-intro,
.platform-areas,
.projects-preview,
.research-principles,
.knowledge-callout {
  isolation: isolate;
}

@media (max-width: 680px) {
  .solar-results-summary {
    grid-template-columns: 1fr;
  }

  .solar-results-table {
    overflow-x: auto;
  }

  .solar-results-header,
  .solar-result-row {
    min-width: 600px;
  }

  .calculator-input > span {
    padding-inline: 11px;
  }
}

/* =========================================================
   SUSTAINABLE OASIS — VISUAL BALANCE PATCH 2026-09-18
   Fixes:
   1. Main hero over-brightness caused by index override
   2. Missing header/footer logo if transparent asset fails
   3. Distorted split-section images caused by fixed HTML height
   ========================================================= */

/* Main index hero: balanced brightness and readable text */
.hero-online .hero-media img {
  opacity: 1 !important;
  filter: brightness(1.10) saturate(1.03) contrast(1.02) !important;
}

.hero-online .hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(5,8,12,0.70) 0%,
      rgba(5,8,12,0.58) 20%,
      rgba(5,8,12,0.42) 38%,
      rgba(5,8,12,0.26) 56%,
      rgba(5,8,12,0.14) 74%,
      rgba(5,8,12,0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7,11,16,0.04) 0%,
      rgba(7,11,16,0.08) 62%,
      rgba(7,11,16,0.36) 100%
    ) !important;
}

/* Preserve the original aspect ratio of section images site-wide. */
.split-visual img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Reliable compact brand icon.
   This uses the existing /assets/brand/logo.png asset and avoids the
   transparent logo load failure currently leaving a blank slot. */
.site-header .brand-logo,
.footer-brand .brand-logo {
  display: none !important;
}

.site-header .brand::before,
.footer-brand .brand::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background:
    url("/assets/brand/logo.png") center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 24px rgba(0,0,0,0.22);
}

.footer-brand .brand::before {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

@media (max-width: 680px) {
  .hero-online .hero-media img {
    filter: brightness(1.06) saturate(1.02) contrast(1.02) !important;
  }

  .hero-online .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(5,8,12,0.20) 0%,
        rgba(5,8,12,0.38) 46%,
        rgba(5,8,12,0.68) 100%
      ) !important;
  }

  .site-header .brand::before {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
}
