/* =========================================================
   Energy Management Partners II (empny.com)
   Ink / paper / logo lime · Archivo (wide) + Public Sans
   ========================================================= */

:root {
  --ink: #141515;
  --ink-2: #1D1F1C;
  --ink-line: rgba(255, 255, 255, 0.14);
  --paper: #F7F6F0;
  --paper-alt: #EEEDE3;
  --white: #FFFFFF;
  --text: #1A1B18;
  --muted: #5D5F57;
  --line: #DEDCCF;
  --lime: #93A02A;          /* from the logo */
  --lime-bright: #BFCE3E;   /* on dark */
  --lime-deep: #5A6413;     /* text on light */
  --on-dark: #F2F2EC;
  --on-dark-muted: #ABADA4;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --pad: clamp(16px, 5vw, 64px);
  --header-h: 76px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 19px; font-stretch: 105%; line-height: 1.25; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ---------- small type ---------- */
.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-bottom: 14px;
}
.kicker--light { color: var(--lime-bright); }
@media (max-width: 560px) {
  .kicker__sep { display: none; }
  .kicker__sep + .nowrap { display: block; margin-top: 4px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-stretch: 108%;
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  padding: 15px 26px; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lime { background: var(--lime-bright); color: var(--ink); }
.btn--lime:hover { background: #CFDD52; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #2E302B; }
.btn--block { width: 100%; }

.textlink { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.textlink i { font-style: normal; transition: transform .2s var(--ease); }
.textlink:hover i { transform: translateX(4px); }
.textlink--light { color: var(--on-dark); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-solid { border-color: var(--line); box-shadow: 0 6px 20px rgba(20, 21, 21, 0.06); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 52px; width: auto; }

.mainnav { display: flex; align-items: center; gap: 30px; }
.mainnav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); position: relative; }
.mainnav a:not(.mainnav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.mainnav a:hover::after, .mainnav a.is-active::after { transform: scaleX(1); }
.mainnav__cta {
  background: var(--ink); color: var(--white) !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 600 !important;
}
.mainnav__cta:hover { background: #2E302B; }

.burger { display: none; }

@media (max-width: 860px) {
  .brand img { height: 44px; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
  .burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .mainnav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    box-shadow: 0 16px 30px rgba(20, 21, 21, 0.1);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .mainnav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .mainnav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .mainnav a::after { display: none; }
  .mainnav .mainnav__cta { margin-top: 16px; text-align: center; border-bottom: 0; padding: 14px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 40%, rgba(191, 206, 62, 0.16), transparent 70%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 100% 48px;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px;
  padding-block: clamp(64px, 10vw, 120px);
}
.hero__title {
  font-size: clamp(40px, 6.4vw, 76px);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero__lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: #D2D4CB; max-width: 34em; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); }

.hero__art { color: rgba(191, 206, 62, 0.55); }
.atom { width: 100%; max-width: 420px; margin-inline: auto; overflow: visible; }
.atom__orbits { transform-origin: 200px 200px; }
.atom__core { fill: var(--lime-bright); }
.atom__node circle { fill: var(--ink); stroke: var(--lime-bright); stroke-width: 2.5; }
.atom__node text {
  fill: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 17px;
  text-anchor: middle; letter-spacing: 0.04em;
}
.atom__core { animation: pulse 3.2s var(--ease) infinite; transform-origin: 200px 200px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__art { order: -1; width: 100%; max-width: 230px; justify-self: center; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h2, .section--ink h3 { color: var(--white); }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head__lede { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* What we do */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px;
}
.card__icon { width: 40px; height: 40px; fill: var(--lime); stroke: var(--lime); margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

.states {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 18px; color: var(--muted);
}
.states strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; padding-top: 22px; border-top: 3px solid var(--ink); }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime-bright); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Why a broker */
.reasons {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-line); border-left: 1px solid var(--ink-line);
}
.reasons li {
  padding: 30px 28px 34px;
  border-right: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line);
  position: relative;
}
.reasons li::before {
  content: ""; display: block; width: 28px; height: 3px; background: var(--lime-bright); margin-bottom: 20px;
}
.reasons h3 { margin-bottom: 10px; }
.reasons p { color: var(--on-dark-muted); font-size: 16px; }

@media (max-width: 900px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } }

/* About + testimonial */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__body h2 { margin-bottom: 24px; }
.about__body p + p { margin-top: 16px; }
.about__body p { color: var(--muted); font-size: 18px; }

.quote {
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--lime);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
}
.quote__mark { width: 40px; fill: var(--lime); margin-bottom: 20px; }
.quote blockquote p {
  font-family: var(--font-display); font-stretch: 100%; font-weight: 500;
  font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--text);
}
.quote figcaption { margin-top: 24px; display: flex; flex-direction: column; font-size: 15px; }
.quote figcaption span { color: var(--muted); }

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Agents */
.agents {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px 56px; align-items: center;
}
.agents__body h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.agents__body p { color: var(--muted); }
.agents__list li {
  padding: 10px 0 10px 30px; position: relative; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.agents__list li:last-child { border-bottom: 0; }
.agents__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 9px; margin-top: -7px;
  border-left: 3px solid var(--lime-deep); border-bottom: 3px solid var(--lime-deep); transform: rotate(-45deg);
}
@media (max-width: 960px) { .agents { grid-template-columns: 1fr; } .agents .btn { justify-self: start; } }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__lead h2 { margin-bottom: 18px; }
.contact__lead > p { color: #C9CBC2; font-size: 18px; }

.contact__details { margin-top: 36px; display: grid; gap: 18px; }
.contact__details li { display: flex; flex-direction: column; }
.contact__details span {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600;
}
.contact__details a {
  font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: clamp(20px, 2.4vw, 26px);
  color: var(--white); text-decoration: none;
}
.contact__details a:hover { color: var(--lime-bright); }

.social { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--ink-line); color: var(--on-dark); text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.social a:hover { border-color: var(--lime-bright); color: var(--lime-bright); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social__text { padding-inline: 16px; font-size: 14px; font-weight: 600; }

/* Form */
.form {
  background: var(--white); color: var(--text);
  border-radius: 14px; padding: clamp(22px, 3.5vw, 40px);
  display: grid; gap: 18px;
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.field > span, .form__interest legend { font-size: 14px; font-weight: 600; }
.field em { color: var(--lime-deep); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; width: 100%;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: var(--white);
  box-shadow: 0 0 0 3px rgba(147, 160, 42, 0.35);
}
.field ::placeholder { color: #9A9C93; }

.form__interest { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__interest legend { margin-bottom: 8px; padding: 0; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 15px;
  border: 1px solid var(--line); background: var(--paper); transition: all .15s var(--ease);
}
.pill input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

.form__fine { font-size: 13px; color: var(--muted); text-align: center; }

@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 48px 36px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__brand img { height: 56px; width: auto; }
.footer__brand p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--lime-deep); }
.footer__legal {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); display: grid; gap: 8px;
}
.footer__legal p:first-child { max-width: 860px; }

/* Simple pages (thanks / 404) */
.simple { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 64px var(--pad); }
.simple h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.simple p { color: var(--muted); font-size: 18px; max-width: 32em; margin: 0 auto 28px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
