/*
  ENERGYDOJO V1
  Boutique energy asset development and transaction platform.
*/

:root {
  --bg: #e7e7e7;
  --bg-soft: #f1f1ee;
  --ink: #20272b;
  --ink-soft: #485257;
  --muted: #667176;
  --line: rgba(32, 39, 43, 0.14);
  --line-strong: rgba(32, 39, 43, 0.28);
  --panel: #f7f7f2;
  --dark: #20272b;
  --dark-2: #151a1d;
  --light: #f7f7f2;
  --brand: #006f92;
  --brand-2: #00a6d6;
  --accent-2: #d9f5fb;
  --shadow: 0 22px 60px rgba(32, 39, 43, 0.15);
  --radius: 8px;
  --container: 1180px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--accent-2);
  color: var(--dark);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

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

.section {
  padding: clamp(76px, 8vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 86px);
  align-items: end;
  max-width: none;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 860px;
  color: var(--light);
  font-size: clamp(50px, 5.2vw, 82px);
  font-weight: 820;
}

h2 {
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 780;
}

h3 {
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 760;
}

p {
  color: var(--ink-soft);
  font-size: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 780;
  cursor: pointer;
}

.button-primary {
  color: var(--light);
  background: var(--brand);
  box-shadow: 0 16px 38px rgba(0, 166, 214, 0.22);
}

.button-ghost {
  color: var(--light);
  background: rgba(247, 247, 242, 0.1);
  border-color: rgba(247, 247, 242, 0.38);
}

.button-full {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 247, 242, 0.9);
  border-bottom: 1px solid rgba(32, 39, 43, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-elevated {
  box-shadow: 0 10px 26px rgba(32, 39, 43, 0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-logo {
  width: 226px;
  max-height: 60px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--brand-2);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

.nav-toggle em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 16, 0.9) 0%, rgba(10, 14, 16, 0.76) 42%, rgba(10, 14, 16, 0.5) 70%, rgba(10, 14, 16, 0.62) 100%),
    linear-gradient(180deg, rgba(10, 14, 16, 0.18), rgba(10, 14, 16, 0.7)),
    url("hero-energy-infrastructure.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(62px, 6.4vw, 98px) 0;
}

.hero-eyebrow {
  color: var(--accent-2);
}

.hero-subhead {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(247, 247, 242, 0.92);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 650;
  line-height: 1.24;
}

.hero-lead {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(247, 247, 242, 0.76);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.intro-section {
  background: var(--panel);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 100px);
}

.intro-grid h2 {
  max-width: 980px;
}

.intro-grid p {
  max-width: 780px;
  margin-top: 28px;
}

.focus-section,
.model-section {
  background: var(--bg);
}

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

.focus-panel {
  min-height: 430px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 247, 242, 0.72);
  box-shadow: var(--shadow);
}

.focus-panel-dark {
  color: var(--light);
  background:
    linear-gradient(145deg, rgba(32, 39, 43, 0.94), rgba(21, 26, 29, 0.94)),
    url("background-perspective-grid.png") center / cover no-repeat;
  border-color: rgba(247, 247, 242, 0.12);
}

.focus-panel span,
.business-row span,
.model-list span,
.platform-list span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.focus-panel-dark span {
  color: var(--accent-2);
}

.focus-panel h3 {
  max-width: 520px;
  margin-top: 92px;
}

.focus-panel p {
  max-width: 600px;
  margin-top: 26px;
}

.focus-panel-dark p {
  color: rgba(247, 247, 242, 0.74);
}

.business-section {
  background: var(--panel);
}

.business-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.business-row {
  display: grid;
  grid-template-columns: 64px minmax(240px, 0.52fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.business-row > * {
  position: relative;
  z-index: 2;
}

.business-row::before,
.business-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.business-row::before {
  z-index: 0;
  left: 28%;
  background: var(--business-image) right center / cover no-repeat;
  filter: blur(5px) saturate(0.86) brightness(1.02);
  opacity: 0.56;
  transform: scale(1.04);
}

.business-row::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 247, 242, 1) 0%, rgba(247, 247, 242, 0.95) 40%, rgba(247, 247, 242, 0.84) 72%, rgba(247, 247, 242, 0.58) 100%),
    linear-gradient(180deg, rgba(247, 247, 242, 0.18), rgba(247, 247, 242, 0.34));
}

.business-row-oilfield {
  --business-image: url("sector-oilfield-electrification.jpg");
}

.business-row-mining {
  --business-image: url("sector-mining-energy-systems.jpg");
}

.business-row-japan {
  --business-image: url("sector-japan-renewable-storage.jpg");
}

.business-row-australia {
  --business-image: url("sector-australia-renewable-storage.jpg");
}

.business-row-vpp {
  --business-image: url("sector-distributed-energy-vpp.jpg");
}

.business-copy {
  display: grid;
  gap: 14px;
}

.business-copy p {
  max-width: 620px;
}

.model-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: start;
}

.sticky-head {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.sticky-head p {
  margin-top: 24px;
}

.model-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.model-list article {
  display: grid;
  grid-template-columns: 56px minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.model-list p {
  max-width: 560px;
  font-size: 17px;
}

.platform-section {
  color: var(--light);
  background:
    linear-gradient(135deg, rgba(32, 39, 43, 0.97), rgba(21, 26, 29, 0.95)),
    url("background-perspective-grid.png") center / cover no-repeat,
    var(--dark);
}

.platform-section .eyebrow {
  color: var(--accent-2);
}

.platform-section h2 {
  max-width: 760px;
  color: var(--light);
}

.platform-section p {
  max-width: 650px;
  margin-top: 28px;
  color: rgba(247, 247, 242, 0.72);
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.platform-list {
  display: grid;
  border-top: 1px solid rgba(247, 247, 242, 0.28);
}

.platform-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(247, 247, 242, 0.16);
}

.platform-list span {
  color: var(--accent-2);
}

.platform-list b {
  color: var(--light);
  font-size: 24px;
  line-height: 1.15;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.58fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.contact-grid h2 {
  max-width: 800px;
}

.contact-grid p {
  max-width: 660px;
  margin-top: 24px;
}

.contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 820;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 166, 214, 0.72);
}

.form-note {
  margin-top: 14px !important;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  padding: 32px 0;
  color: var(--light);
  background: var(--dark);
  border-top: 1px solid rgba(247, 247, 242, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand-footer {
  width: max-content;
  padding: 0;
  background: transparent;
  border-radius: 0;
  gap: 10px;
}

.footer-mark {
  width: 44px;
  height: 36px;
  object-fit: contain;
}

.footer-wordmark {
  color: var(--light);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0;
}

.site-footer p,
.footer-links a {
  color: rgba(247, 247, 242, 0.62);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 760;
}

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

@media (max-width: 1080px) {
  :root {
    --header-h: 72px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  body.nav-open .site-nav {
    position: fixed;
    display: grid;
    top: var(--header-h);
    left: 20px;
    right: 20px;
    gap: 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(247, 247, 242, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .site-nav a:last-child {
    border-bottom: 0;
  }

  .platform-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .section-head-row,
  .intro-grid,
  .focus-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .sticky-head {
    position: static;
  }

  .business-row,
  .model-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .business-row::before {
    left: 0;
    opacity: 0.32;
    background-position: center;
  }

  .business-row::after {
    background: linear-gradient(180deg, rgba(247, 247, 242, 0.98), rgba(247, 247, 242, 0.74));
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

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

  .brand-logo {
    width: 164px;
  }

  .hero {
    min-height: calc(100svh - var(--header-h) - 32px);
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(10, 14, 16, 0.9) 0%, rgba(10, 14, 16, 0.76) 100%),
      linear-gradient(180deg, rgba(10, 14, 16, 0.18), rgba(10, 14, 16, 0.72)),
      url("hero-energy-infrastructure.jpg") 58% center / cover no-repeat;
  }

  .hero-content {
    padding: 54px 0 44px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-subhead {
    font-size: 22px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .focus-panel {
    min-height: auto;
  }

  .focus-panel h3 {
    margin-top: 66px;
  }

  .platform-list b {
    font-size: 21px;
  }
}
