/* Aloe Energy - site styles */
:root {
  --paper: #faf8f3;
  --sand: #efe7d6;
  --sand-deep: #e2d6bd;
  --ink: #1a2420;
  --muted: #56625c;
  --green-900: #173326;
  --green-700: #285a43;
  --leaf-dark: #2f6b4f;
  --leaf: #5f9468;
  --leaf-light: #9cc29a;
  --sun: #e3a93a;
  --line: #ddd5c4;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; font-weight: 500; }
a:hover { color: var(--green-900); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-900); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-dark); margin-bottom: .8em; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.sand { background: var(--sand); }
.section.dark { background: var(--green-900); color: #e9efe9; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lead, .section.dark p { color: #cfdcd2; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--green-900); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--ink); font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--green-700); }
.site-nav a[aria-current="page"] { color: var(--green-700); border-bottom-color: var(--sun); }
.nav-toggle { display: none; font: 600 .9rem var(--sans); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; color: var(--ink); cursor: pointer; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; background: var(--green-700); color: #fff; }
.btn:hover { background: var(--green-900); color: #fff; }
.btn.ghost { background: transparent; color: var(--green-900); border: 1.5px solid var(--green-700); }
.btn.ghost:hover { background: var(--green-700); color: #fff; }
.section.dark .btn { background: var(--sun); color: var(--green-900); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--leaf-dark); }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 22px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 20px 50px -24px rgba(23, 51, 38, .45); }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(250, 248, 243, .94); border-radius: 10px; padding: 10px 14px; font-size: .85rem; color: var(--muted); }
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.era { display: flex; flex-direction: column; }
.card.era .when { font-size: .85rem; font-weight: 600; color: var(--leaf-dark); }
.card.era p { color: var(--muted); }
.card.era .more { margin-top: auto; }
.card .icon { width: 44px; height: 44px; margin-bottom: 14px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.stat { border-top: 3px solid var(--sun); padding-top: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; line-height: 1; color: #fff; margin-bottom: 8px; }
.section:not(.dark) .stat b { color: var(--green-900); }
.stat span { font-size: .93rem; }

/* Partner list */
.partners { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.partners li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .92rem; font-weight: 500; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--sand-deep); }
.timeline li { position: relative; padding: 0 0 40px 48px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--leaf); }
.timeline li.now::before { background: var(--sun); border-color: var(--sun); }
.timeline .when { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf-dark); }
.timeline h3 { margin: 4px 0 8px; }
.timeline p { color: var(--muted); max-width: 44em; }
.era-label { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--muted); margin: 8px 0 28px; padding-left: 48px; }

/* Photo strip */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photos figure { margin: 0; }
.photos img { border-radius: 12px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.photos figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split.center { align-items: center; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 66px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .95rem; }
.steps b { display: block; color: var(--green-900); }
.steps span { color: var(--muted); font-size: .95rem; }

/* Options diagram */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.option { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.option svg { width: 100%; height: 110px; margin-bottom: 14px; }
.option p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Loop diagram */
.loop { width: 100%; max-width: 920px; margin: 8px auto 0; display: block; }
.loop text { font-family: var(--sans); }

/* Callout */
.callout { border-left: 4px solid var(--sun); background: #fff; border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 28px 0; }
.callout p:last-child { margin: 0; }
.quote { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--green-900); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--leaf-dark); border-bottom: 2.5px solid var(--leaf-dark); transform: rotate(-45deg); }

/* Footer */
.site-footer { background: var(--green-900); color: #cfdcd2; padding: 48px 0 32px; }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.footer-brand p { margin: 0; font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: #e9efe9; font-weight: 500; font-size: .95rem; }
.site-footer nav a:hover { color: var(--sun); }
.site-footer .fine { font-size: .82rem; color: #9fb3a5; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; }
  .grid-3, .options { grid-template-columns: 1fr; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--green-700); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid-2, .photos { grid-template-columns: 1fr; }
  .photos img { aspect-ratio: 4 / 3; }
  .card { padding: 22px; }
}

/* v2 additions */
.site-nav { gap: 22px; align-items: center; }
.site-nav a.nav-cta { background: var(--green-700); color: #fff; padding: 7px 16px; border-radius: 999px; border-bottom: 0; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current="page"] { background: var(--green-900); color: #fff; }
.site-footer .fine a { color: #e9efe9; }
.pillar-tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--sand); color: var(--green-700); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.note { background: var(--sand); border-radius: 12px; padding: 18px 22px; font-size: .95rem; color: var(--muted); }
.email-big { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 600; color: var(--green-900); word-break: break-word; }
.lifecycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: lc; }
.lifecycle li { counter-increment: lc; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.lifecycle li::before { content: counter(lc); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--green-900); font-weight: 700; margin-bottom: 12px; }
.lifecycle h3 { font-size: 1.15rem; }
.lifecycle p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1060px) { .site-nav { gap: 16px; } .site-nav a { font-size: .9rem; } }
@media (max-width: 900px) {
  .lifecycle { grid-template-columns: repeat(2, 1fr); }
  .site-nav a.nav-cta { background: none; color: var(--green-700); padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) { .lifecycle { grid-template-columns: 1fr; } }
.section.sand .note { background: #fff; }

/* v3: founder + career */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.founder-photo { margin: 0; }
.founder-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 50px -24px rgba(23, 51, 38, .45); }
.career { list-style: none; margin: 24px 0 0; padding: 0; border-left: 2px solid var(--sand-deep); }
.career li { position: relative; padding: 0 0 26px 26px; }
.career li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--leaf); }
.career li:first-child::before { background: var(--sun); border-color: var(--sun); }
.career .when { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf-dark); }
.career b { display: block; color: var(--green-900); margin: 2px 0 4px; }
.career p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 280px; } }

/* v4: planning map */
.map-card svg { width: 100%; height: auto; display: block; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; }
.map-legend i.dash { background: repeating-linear-gradient(90deg, var(--green-700) 0 4px, transparent 4px 7px); }
.section.dark .checks li::before { border-color: var(--sun); }
