/* Percho Solar — dark. One family (Archivo, variable width) does display, body and labels.
   Palette: deep navy-black, raised navy panels, one amber for the sun and the primary action. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo.woff2') format('woff2');
}

:root {
  --bg: #0A0F18;
  --bg-2: #111927;
  --bg-3: #182338;
  --ink: #EEF2F6;
  --ink-2: #B3BECD;
  --mute: #7E8CA2;
  --line: rgba(255, 255, 255, .11);
  --line-soft: rgba(255, 255, 255, .07);
  --sun: #F4A928;
  --sun-bright: #FFC24A;
  --sun-text: #F6B54A;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, dt, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display {
  font-weight: 780;
  font-stretch: 118%;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: .96;
  letter-spacing: -.025em;
  text-wrap: balance;
  color: #fff;
}
.display__accent { color: var(--sun); }
.h2 {
  font-weight: 760;
  font-stretch: 114%;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: #fff;
}
.h3 {
  font-weight: 700;
  font-stretch: 108%;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
}
.label, .eyebrow {
  font-weight: 560;
  font-stretch: 76%;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow { margin-bottom: 1.1rem; display: flex; align-items: center; gap: .75rem; color: var(--sun-text); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--sun); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34rem; margin-top: 1.6rem; }
.section__intro { color: var(--ink-2); max-width: 36rem; margin-top: 1.2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 620; font-stretch: 100%; font-size: .95rem; line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--sun { background: var(--sun); color: var(--bg); }
.btn--sun:hover { background: var(--sun-bright); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--wide { width: 100%; padding-block: 1rem; }
.textlink {
  display: inline-block; margin-top: 1.2rem;
  font-weight: 620; font-size: .95rem; color: #fff;
  text-decoration: none; border-bottom: 1.5px solid var(--sun);
  padding-bottom: 2px; transition: border-color .2s, color .2s;
}
.textlink:hover { color: var(--sun-text); border-color: var(--sun-bright); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 15, 24, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand img { width: auto; height: 34px; }
.topnav { display: flex; align-items: center; gap: 2rem; }
.topnav a { text-decoration: none; font-weight: 540; font-size: .95rem; color: var(--ink-2); }
.topnav a:hover { color: #fff; }
.topnav__cta { padding: .6rem 1.1rem; font-size: .88rem; }
.topnav a.topnav__cta { color: var(--bg); }
.menubtn { display: none; width: 44px; height: 44px; position: relative; }
.menubtn span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.menubtn span:first-child { top: 17px; }
.menubtn span:last-child { top: 25px; }
.menubtn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menubtn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero: the photograph is the page ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg-2); }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 24, .82) 0%, rgba(10, 15, 24, .45) 38%, rgba(10, 15, 24, 0) 62%),
    linear-gradient(180deg, rgba(10, 15, 24, .55) 0%, rgba(10, 15, 24, 0) 28%, rgba(10, 15, 24, 0) 70%, rgba(10, 15, 24, .92) 100%);
}
.hero__overlay { position: relative; z-index: 1; width: 100%; padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero__copy { max-width: 46%; }
.hero__copy .lead { text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero__copy .display { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }

/* ---------- sun-path row ---------- */
.sunrow { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.sunrow__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.instrument {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.instrument__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.instrument__head .label { color: var(--sun-text); }
.instrument__status { font-size: .82rem; color: var(--ink-2); font-stretch: 92%; text-align: right; }
.sunpath { width: 100%; height: auto; display: block; }
.sp-grid line { stroke: var(--line-soft); stroke-width: 1; }
.sp-axis text { font: 500 11px 'Archivo', sans-serif; font-stretch: 80%; fill: var(--mute); letter-spacing: .06em; }
.sp-axis__note { font-size: 10px; text-transform: uppercase; }
.sp-horizon { stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.sp-path { fill: none; stroke-linecap: round; }
.sp-path--season { stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; stroke-dasharray: 3 4; }
.sp-path--today { stroke: var(--sun); stroke-width: 2.2; }
.sp-season { font: 500 10px 'Archivo', sans-serif; font-stretch: 80%; fill: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
#sp-hours circle { fill: var(--bg-2); stroke: var(--sun); stroke-width: 1.5; }
#sp-hours text { font: 600 10px 'Archivo', sans-serif; font-stretch: 84%; fill: var(--ink-2); }
.sp-sun__glow { fill: var(--sun); opacity: .22; }
.sp-sun__disc { fill: var(--sun-bright); stroke: var(--bg-2); stroke-width: 2; }
.sp-night { font: 500 11px 'Archivo', sans-serif; font-stretch: 84%; fill: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .sp-path--today.is-drawing { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: sp-draw 1.6s var(--ease) forwards; }
  @keyframes sp-draw { to { stroke-dashoffset: 0; } }
  .sp-sun { transition: transform .9s var(--ease); }
}

.readout {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: .6rem;
}
.readout > div { padding: .6rem .2rem .55rem; border-left: 1px solid var(--line-soft); }
.readout > div:first-child { border-left: 0; }
.readout dt { font-weight: 560; font-stretch: 76%; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.readout dd { font-weight: 640; font-stretch: 100%; font-size: 1.05rem; margin-top: .1rem; font-variant-numeric: tabular-nums; color: #fff; }

.locrow { margin-top: .9rem; }
.locrow__where { font-weight: 640; font-size: .95rem; color: #fff; }
.locrow__note { color: var(--mute); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.chip {
  font-size: .8rem; font-weight: 560; font-stretch: 92%;
  padding: .38rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.chip.is-on { background: #fff; border-color: #fff; color: var(--bg); }
.chip--me { border-color: var(--sun); color: var(--sun-text); }
.chip--me.is-on { background: var(--sun); border-color: var(--sun); color: var(--bg); }
.locrow__hint { margin-top: .6rem; font-size: .82rem; color: var(--ink-2); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 1.1rem 1.2rem 1.1rem 0; border-left: 1px solid var(--line); padding-left: 1.2rem; }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-weight: 720; font-stretch: 108%; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; color: #fff; }
.facts span { display: block; font-size: .85rem; color: var(--mute); margin-top: .15rem; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section__head { max-width: 44rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section--paper { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--bg-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; transition: border-color .3s; }
.card:hover { border-color: rgba(255, 255, 255, .25); }
.card__media { margin: -1.4rem -1.4rem 1.2rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card .h3 { margin: .35rem 0 .6rem; }
.card > p:not(.label) { color: var(--ink-2); }
.specs { margin-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.specs > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.specs dt { color: var(--mute); }
.specs dd { font-weight: 620; text-align: right; color: #fff; }

/* savings */
.savings { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.roi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); }
.roi__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; }
.roi__bill { font-weight: 760; font-stretch: 112%; font-size: 2.2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.dial { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; margin: 1.4rem 0 .6rem; border-radius: 2px; outline: none;
  background: linear-gradient(90deg, var(--sun) var(--val, 50%), rgba(255, 255, 255, .18) var(--val, 50%)); }
.dial::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--sun), 0 0 18px rgba(244, 169, 40, .5); cursor: grab; }
.dial::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--sun), 0 0 18px rgba(244, 169, 40, .5); cursor: grab; }
.dial:focus-visible { outline: 2px solid var(--sun); outline-offset: 6px; }
.roi__scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--mute); font-stretch: 84%; letter-spacing: .06em; text-transform: uppercase; }
.roi__scale .is-free { color: var(--sun-text); }
.roi__stats { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); }
.roi__stat { background: var(--bg); padding: 1rem 1.1rem; }
.roi__stat dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-stretch: 80%; font-weight: 560; }
.roi__stat dd { font-weight: 700; font-stretch: 106%; font-size: 1.5rem; margin-top: .3rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #fff; }
.roi__stat--hero dd { color: var(--sun-text); font-size: 2rem; }
.meter { height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px; margin-top: 1.6rem; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--sun); transition: width .5s var(--ease); }
.roi__cta { margin-top: 1.6rem; width: 100%; }

/* projects */
.projects { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.project { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.project--flip .project__media { order: 2; }
.project__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__where { color: var(--ink-2); margin-top: .3rem; }
.project .h3 { font-size: 1.7rem; margin-top: .4rem; }
.project .specs dd { max-width: 60%; }

/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.studio__address { font-style: normal; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.principles { border-top: 1px solid var(--line); }
.principles li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.principles p { color: var(--ink-2); margin-top: .4rem; max-width: 30rem; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.pains { display: grid; gap: .5rem; margin: 1.8rem 0 1.4rem; }
.pain {
  text-align: left; padding: .9rem 1.1rem; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2);
  display: flex; align-items: center; gap: .9rem;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.pain::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--mute); flex: none; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.pain:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.pain.is-on { border-color: var(--sun); color: #fff; }
.pain.is-on::before { background: var(--sun); border-color: var(--sun); box-shadow: inset 0 0 0 3px var(--bg-2); }
.contact__alt { margin-top: 1rem; color: var(--ink-2); font-size: .95rem; }
.contact__alt a { color: #fff; }
.contact__details { border-top: 1px solid var(--line); margin-top: 3.4rem; }
.contact__details > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact__details dt { color: var(--mute); font-size: .85rem; padding-top: .15rem; }
.contact__details dd { color: var(--ink-2); }
.contact__details dd a { text-decoration: none; font-weight: 600; color: #fff; }
.contact__details dd a:hover { color: var(--sun-text); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2.2rem; font-size: .85rem; color: var(--mute); }
.footer__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer nav { display: flex; gap: 1.4rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__copy { max-width: 60%; }
  .sunrow__grid { grid-template-columns: 1fr; }
  .instrument { max-width: 640px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .savings, .studio, .contact { grid-template-columns: 1fr; }
  .contact__details { margin-top: 0; }
}
@media (max-width: 800px) {
  .topnav {
    position: fixed; inset: 68px 0 auto 0; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .4rem var(--gutter) 1rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .topnav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .topnav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .topnav__cta { margin-top: .8rem; border-bottom: 0 !important; }
  .menubtn { display: block; }

  /* phone: show the whole photograph, then the words under it */
  .hero { min-height: 0; display: block; }
  .hero__photo { position: relative; aspect-ratio: 16 / 10; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(10, 15, 24, .35) 0%, rgba(10, 15, 24, 0) 30%, rgba(10, 15, 24, 0) 75%, var(--bg-2) 100%); }
  .hero__overlay { padding-top: 1.2rem; padding-bottom: 2.6rem; background: var(--bg-2); }
  .hero__copy { max-width: none; }
  .hero__copy .display, .hero__copy .lead { text-shadow: none; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1.2rem; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .readout { grid-template-columns: repeat(3, 1fr); }
  .readout > div:nth-child(4) { border-left: 0; }
  .readout > div:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .project, .project--flip { grid-template-columns: 1fr; }
  .project--flip .project__media { order: 0; }
  .roi__stats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div:nth-child(even) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  .instrument { padding: .9rem .8rem 1rem; }
  .contact__details > div { grid-template-columns: 5rem 1fr; }
}
