/* renewablehc.com — site.css
   Tokens adapted from open-design linear-app system. */

:root {
  --bg: #08090a;
  --bg-panel: #0f1011;
  --bg-card: #191a1b;
  --bg-hover: #28282c;
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --text-3: #8a8f98;
  --text-4: #62666d;
  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --border: #23252a;
  --border-2: #34343a;

  --font-sans: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, "Cascadia Mono", Consolas, monospace;

  --r: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 9999px;

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 510; letter-spacing: -0.005em;
}
.brand__mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #5e6ad2 0%, #a3aaff 100%);
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 18px rgba(94,106,210,0.35);
}
.brand__mark svg { display: block; }
.brand__name { font-size: 15px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-2); font-size: 14px; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2);
  padding: 8px 12px; border-radius: var(--r);
  font-size: 14px; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 22px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 4px; font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r);
  font-weight: 510; font-size: 14px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn--lg { padding: 14px 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 80%;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(94,106,210,0.32), transparent 70%),
    radial-gradient(40% 60% at 18% 35%, rgba(113,112,255,0.16), transparent 70%),
    radial-gradient(40% 60% at 85% 28%, rgba(94,106,210,0.16), transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -1px; left: 50%;
  width: 70%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.55; z-index: -1;
}
.hero h1 {
  margin: 0 auto 22px; max-width: 880px;
  font-size: clamp(36px, 6.5vw, 64px);
  line-height: 1.04; letter-spacing: -0.025em; font-weight: 510;
}
.hero p.lede {
  margin: 0 auto 32px; max-width: 640px;
  font-size: clamp(16px, 2.2vw, 19px); line-height: 1.55;
  color: var(--text-2);
}
.hero__cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin-bottom: 24px;
  border-radius: var(--r-pill);
  background: rgba(94,106,210,0.10);
  border: 1px solid rgba(94,106,210,0.30);
  font-size: 13px; color: var(--text-2);
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 4px var(--accent); opacity: 0.85; }
  50%      { box-shadow: 0 0 14px var(--accent); opacity: 1; }
}

/* Subtle grid texture in hero — Linear-style ambient layer */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* Hero load-in fade-up */
.hero h1, .hero p.lede, .hero__cta, .hero__eyebrow {
  opacity: 0; transform: translateY(8px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
body.is-loaded .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0ms; }
body.is-loaded .hero h1       { opacity: 1; transform: none; transition-delay: 90ms; }
body.is-loaded .hero p.lede   { opacity: 1; transform: none; transition-delay: 200ms; }
body.is-loaded .hero__cta     { opacity: 1; transform: none; transition-delay: 320ms; }

/* Scroll-reveal — applied via IntersectionObserver */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* Card lift gets a touch more depth on hover (kept subtle) */
.card { position: relative; }
.card:hover { box-shadow: 0 12px 30px -18px rgba(94,106,210,0.45); }
.card__icon { transition: transform 220ms cubic-bezier(.2,.7,.2,1), border-color 220ms ease, background 220ms ease; }
.card:hover .card__icon { transform: translateY(-1px) rotate(-2deg); border-color: rgba(94,106,210,0.55); }

/* ---------- Page Hero (subpages) ---------- */
.page-hero { padding: 72px 0 32px; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 14px;
  line-height: 1.08; letter-spacing: -0.02em; font-weight: 510;
}
.page-hero .lede { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 680px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 510;
}
.section .lede {
  margin: 0 0 40px; max-width: 660px;
  color: var(--text-2); font-size: 18px; line-height: 1.55;
}
.section--center { text-align: center; }
.section--center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.card__icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(94,106,210,0.22), rgba(113,112,255,0.05));
  border: 1px solid rgba(94,106,210,0.30);
  border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-hover); font-size: 16px; font-weight: 510;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 510; }
.card p { margin: 0 0 12px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.card ul li { padding: 4px 0; }
.card ul li::before { content: "→"; color: var(--accent); margin-right: 8px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-pill);
  background: rgba(94,106,210,0.15);
  border: 1px solid rgba(94,106,210,0.40);
  font-size: 13px; font-weight: 510; color: var(--accent-hover);
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 510; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* ---------- Founder card ---------- */
.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px; align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.founder__photo {
  width: 220px; height: 220px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid var(--border-2);
  background: var(--bg-panel);
}
.founder h3 { margin: 0; font-size: 22px; font-weight: 510; }
.founder__title { color: var(--text-3); font-size: 14px; margin: 4px 0 16px; }
.founder p { color: var(--text-2); font-size: 15px; line-height: 1.62; }
.founder .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.founder .tag {
  font-size: 12px; padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
}
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder__photo { margin: 0 auto; width: 200px; height: 200px; }
  .founder .tags { justify-content: center; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 56px 0;
  padding: 56px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 100% at 30% 0%, rgba(94,106,210,0.32), transparent 65%),
    radial-gradient(60% 100% at 70% 100%, rgba(113,112,255,0.20), transparent 65%);
  background-size: 200% 200%;
  animation: ctaDrift 28s ease-in-out infinite;
}
@keyframes ctaDrift {
  0%, 100% { background-position: 0% 50%, 100% 50%; }
  50%      { background-position: 100% 50%, 0% 50%; }
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(24px, 3.2vw, 32px); }
.cta-band p { margin: 0 0 24px; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  color: var(--text-3); font-size: 14px;
}
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; font-size: 20px; font-weight: 510; }
.prose p { color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 720px; }
.prose ul { color: var(--text-2); padding-left: 20px; max-width: 720px; }
.prose ul li { margin-bottom: 8px; }

/* ---------- Founder strip (homepage condensed variant) ---------- */
.founder--strip {
  grid-template-columns: 160px 1fr;
  gap: 28px; padding: 28px;
  align-items: center;
}
.founder--strip .founder__photo { width: 160px; height: 160px; border-radius: 50%; }
.founder--strip h2 { margin: 4px 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 510; }
.founder--strip .eyebrow {
  display: inline-block; margin: 0 0 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-hover);
}
.founder--strip .link-arrow { display: inline-block; margin-top: 10px; font-weight: 510; font-size: 14px; }
.founder--strip .link-arrow:hover { color: var(--accent-hover); }
@media (max-width: 760px) {
  .founder--strip { grid-template-columns: 1fr; text-align: center; }
  .founder--strip .founder__photo { margin: 0 auto; }
}

/* ---------- Contact: founder strip + form ---------- */
.contact-founder {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.contact-founder img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(94,106,210,0.40);
}
.contact-founder p { margin: 0; color: var(--text-2); font-size: 15px; }
.contact-founder strong { color: var(--text); font-weight: 510; }

.alert {
  padding: 14px 18px; margin-bottom: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-2);
  background: var(--bg-card);
  color: var(--text-2); font-size: 15px;
}
.alert--success { border-color: rgba(94,106,210,0.45); background: linear-gradient(180deg, rgba(94,106,210,0.10), rgba(94,106,210,0.02)); color: var(--text); }
.alert--error   { border-color: rgba(255,113,113,0.45); background: rgba(255,113,113,0.06); color: var(--text); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 6px; }
.form__row--two { grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row--two > .form__row { gap: 6px; }
@media (max-width: 620px) { .form__row--two { grid-template-columns: 1fr; } }
.form label { font-size: 13px; color: var(--text-2); font-weight: 510; }
.form label .req { color: var(--accent-hover); margin-left: 2px; }
.form input[type="text"],
.form input[type="email"],
.form textarea,
.form select {
  width: 100%;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 11px 14px;
  font: inherit; font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8f98' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
}
.form textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.form input:hover:not(:focus),
.form textarea:hover:not(:focus),
.form select:hover:not(:focus) {
  border-color: #4a4d55;
  background: rgba(255,255,255,0.02);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: rgba(94,106,210,0.65);
  box-shadow: 0 0 0 3px rgba(94,106,210,0.18);
  background: var(--bg-card);
}
.form input:user-invalid:not(:placeholder-shown),
.form textarea:user-invalid:not(:placeholder-shown) {
  border-color: rgba(255,100,100,0.55);
  box-shadow: 0 0 0 3px rgba(255,100,100,0.10);
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-4); }
.form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.form__actions .btn--primary { flex: 1; justify-content: center; }
.form__hint { color: var(--text-3); font-size: 13px; }
@media (max-width: 620px) {
  .form__actions { flex-direction: column; align-items: stretch; }
  .form__actions .btn { width: 100%; justify-content: center; }
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top-color: rgba(94,106,210,0.45);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 1px 0 0 rgba(94,106,210,0.06) inset;
}
.form-card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 510; }
.form-card .form-card__sub { color: var(--text-3); font-size: 14px; margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

/* ---------- A11y / motion ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1, .hero p.lede, .hero__cta, .hero__eyebrow { opacity: 1 !important; transform: none !important; }
}
