/* JESSolve — styles */
:root {
  --orange: #FF6B00;
  --orange-hover: #ff8a33;
  --black: #000;
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --grey-light: #a1a1a6;
  --off-white: #f5f5f7;
  --white: #fff;
  --card-dark: #111113;
  --border-dark: #2a2a2d;
  --radius: 24px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background-color: #000;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #000; padding: 10px 16px; z-index: 200; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 0;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
  text-decoration: none; color: inherit;
}
.logo .jes { color: var(--orange); font-weight: 800; }
.logo .bar {
  width: 2px; height: 1.05em; background: currentColor; opacity: .35;
  margin: 0 .3em; border-radius: 2px;
}
.logo .solve { font-weight: 400; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; font-size: .875rem; color: rgba(255,255,255,.8); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links .btn { color: #000; }
.nav-toggle {
  display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 24px; border-radius: 980px;
  font: inherit; font-size: 1rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-sm { padding: 7px 16px; font-size: .8125rem; }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-ghost:hover { background: var(--orange); color: #000; }
.btn[disabled], .btn[aria-disabled="true"] { background: #e8e8ed; color: var(--grey); border-color: transparent; cursor: not-allowed; }
.section-dark .btn[disabled] { background: #232326; color: var(--grey-light); }
.link-arrow { color: var(--orange); text-decoration: none; font-weight: 500; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-light { background: var(--white); }
.section-grey { background: var(--off-white); }
.eyebrow {
  display: inline-block; font-size: .875rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
}
.section-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
.section-lead { font-size: clamp(1.125rem, 2vw, 1.5rem); color: var(--grey); max-width: 680px; margin-top: 20px; line-height: 1.4; }
.section-dark .section-lead { color: var(--grey-light); }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .section-lead { margin-inline: auto; }
.accent { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--white);
  min-height: calc(100vh - 56px); min-height: calc(100svh - 56px);
  display: flex; align-items: center; text-align: center;
  padding: 120px 0;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.hero-glow {
  position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,107,0,.22) 0%, rgba(255,107,0,0) 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; letter-spacing: -0.04em; }
.hero h1 .accent { display: block; }
.hero-sub { font-size: clamp(1.125rem, 2.2vw, 1.625rem); color: var(--grey-light); max-width: 720px; margin: 28px auto 0; line-height: 1.4; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.hero-ctas .btn { padding: 14px 30px; font-size: 1.0625rem; }
.hero-beam { margin: 80px auto 0; width: min(560px, 100%); color: var(--orange); }

/* ---------- Services ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--off-white); border-radius: var(--radius); padding: 40px 32px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--grey); font-size: 1.0625rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; background: rgba(255,107,0,.12);
  color: var(--orange); display: grid; place-items: center; margin-bottom: 28px;
}
.card-icon svg { width: 26px; height: 26px; }
.section-note { text-align: center; margin-top: 48px; color: var(--grey); }

/* ---------- Tools ---------- */
.tool-card {
  background: var(--card-dark); border: 1px solid var(--border-dark); border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s;
}
.tool-card:hover { transform: translateY(-4px); border-color: rgba(255,107,0,.5); }
.section-light .tool-card { background: var(--off-white); border-color: transparent; }
.tool-badges { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.badge {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 980px; border: 1px solid currentColor;
}
.badge-orange { color: var(--orange); }
.badge-muted { color: var(--grey-light); }
.section-light .badge-muted { color: var(--grey); }
.tool-visual {
  height: 140px; border-radius: 16px; margin-bottom: 28px;
  background: linear-gradient(135deg, #1a1a1d, #0a0a0b);
  display: grid; place-items: center; color: var(--orange);
  border: 1px solid var(--border-dark);
}
.section-light .tool-visual { background: linear-gradient(135deg, #fff, #ececf0); border-color: #e5e5ea; }
.tool-visual svg { width: 70%; height: 80%; }
.tool-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.tool-card p { color: var(--grey-light); font-size: 1rem; flex: 1; }
.section-light .tool-card p { color: var(--grey); }
.tool-features { list-style: none; padding: 0; margin: 20px 0 0; font-size: .9375rem; color: var(--grey-light); }
.section-light .tool-features { color: var(--grey); }
.tool-features li { padding: 6px 0; border-top: 1px solid var(--border-dark); }
.section-light .tool-features li { border-color: #e0e0e5; }
.tool-features li::before { content: "—"; color: var(--orange); margin-right: 8px; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 12px; }
.price { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: .8125rem; font-weight: 400; color: var(--grey-light); margin-left: 4px; }
.tools-cta { text-align: center; margin-top: 56px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, #f5f5f7, #e8e8ed);
  display: grid; place-items: center; text-align: center; color: var(--grey);
  font-size: .9375rem; position: relative; overflow: hidden;
}
.about-photo::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,.35), transparent 70%);
}
.about-photo .initials { font-size: 5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.about-photo .initials span { color: var(--orange); }
.about-text .section-title { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.about-text p { font-size: 1.1875rem; color: var(--grey); margin-top: 20px; }
.about-text p strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.fact { border-top: 2px solid var(--orange); padding-top: 14px; }
.fact b { display: block; font-size: 1rem; color: var(--ink); }
.fact span { font-size: .875rem; color: var(--grey); }

.ph { /* placeholder marker */
  background: rgba(255,107,0,.12); color: #c24f00; border-radius: 6px; padding: 0 6px;
  font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.badge .ph { text-transform: none; letter-spacing: 0; }
.about-grid > *, .contact-grid > *, .feature-card > * { min-width: 0; }
.section-dark .ph { color: #ff9a4d; background: rgba(255,107,0,.16); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.contact-info .section-title { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--border-dark); display: flex; justify-content: space-between; gap: 16px; }
.contact-list li:last-child { border-bottom: 1px solid var(--border-dark); }
.contact-list .k { color: var(--grey-light); }
.form { background: var(--card-dark); border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 8px; color: #d2d2d7; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white);
  background: #1c1c1f; border: 1px solid #333338; border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,107,0,.2); }
.form .btn { width: 100%; padding: 15px; font-size: 1.0625rem; }
.form-note { font-size: .8125rem; color: var(--grey-light); margin-top: 14px; text-align: center; }
.form-status { margin-top: 14px; font-size: .9375rem; color: var(--orange); text-align: center; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--off-white); color: var(--grey); font-size: .8125rem; padding: 48px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid #d2d2d7; flex-wrap: wrap; }
.footer .logo { color: var(--ink); }
.footer-tag { margin-top: 8px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { margin: 0 0 10px; color: var(--ink); font-size: .8125rem; font-weight: 600; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; flex-wrap: wrap; }

/* ---------- Tools page ---------- */
.page-hero { background: var(--black); color: var(--white); text-align: center; padding: 140px 0 100px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; letter-spacing: -0.04em; position: relative; }
.page-hero .hero-sub { position: relative; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.how-step { padding: 32px; border-radius: var(--radius); background: var(--off-white); }
.how-step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2.5rem; font-weight: 800; color: var(--orange); letter-spacing: -0.03em; margin-bottom: 12px; }
.how-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.how-step p { color: var(--grey); }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--border-dark); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border-dark); }
.faq summary { cursor: pointer; font-size: 1.1875rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--grey-light); margin-top: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .tool-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .how-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .grid-3, .how-grid { grid-template-columns: 1fr; }
  .container { width: min(var(--max), 100% - 40px); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #000;
    padding: 8px 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav:has(.nav-links.open) { background: #000; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links .btn { margin-top: 16px; width: 100%; padding: 12px; font-size: 1rem; }
  .hero { padding: 96px 0 80px; min-height: auto; }
  .hero-ctas .btn { flex: 1 1 100%; max-width: 320px; }
  .hero-beam { margin-top: 56px; }
  .card, .tool-card { padding: 32px 24px; }
  .form { padding: 28px 20px; }
  .facts { grid-template-columns: 1fr; }
  .page-hero { padding: 100px 0 72px; }
  .footer-links { gap: 32px; }
}

/* ---------- Featured service (solar PV) ---------- */
.feature-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
  background: var(--black); color: var(--white); border-radius: 32px; padding: 64px;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,.28), transparent 65%); pointer-events: none;
}
.feature-card > * { position: relative; }
.feature-card h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 18px; }
.feature-card p { color: var(--grey-light); font-size: 1.125rem; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 20px; color: #e8e8ed; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.feature-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.feature-visual { color: var(--orange); }
.feature-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.secondary-label { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin: 56px 0 20px; }
@media (max-width: 960px) {
  .feature-card { grid-template-columns: 1fr; padding: 48px 36px; gap: 36px; }
  .feature-visual { max-width: 420px; }
}
@media (max-width: 720px) {
  .feature-card { padding: 36px 24px; border-radius: 28px; }
  .feature-ctas .btn { flex: 1 1 100%; }
}
