/* demo-solar-1 — "From first light to last light" */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/big-shoulders-display-100_900-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-100_900-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  --ground: #0c1014;
  --panel: #131a21;
  --panel-2: #0f151b;
  --ink: #ede8df;
  --muted: #9ba4ac;
  --line: rgba(237, 232, 223, 0.16);
  --line-soft: rgba(237, 232, 223, 0.09);
  --accent: #ffb13b;
  --accent-ink: #171004;
  --f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --t-mega: clamp(3.4rem, 1.4rem + 11vw, 11.5rem);
  --t-xl: clamp(2.4rem, 1.5rem + 4.6vw, 6rem);
  --t-l: clamp(1.9rem, 1.4rem + 2.2vw, 3.2rem);
  --t-m: clamp(1.2rem, 1.08rem + 0.6vw, 1.55rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-s: 0.875rem;
  --t-xs: 0.75rem;
  --margin: clamp(1.1rem, 4vw, 4rem);
  --max: 1440px;
  --radius: 2px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip {
  position: fixed; left: var(--margin); top: -4rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  font-size: var(--t-s); font-weight: 600; text-decoration: none;
  transition: top 0.3s;
}
.skip:focus-visible { top: 1rem; }

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

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}
h1.display { font-size: var(--t-mega); font-weight: 750; }
.t-xl { font-size: var(--t-xl); }
.t-l { font-size: var(--t-l); }
.lede { font-size: var(--t-m); line-height: 1.45; max-width: 34ch; text-wrap: balance; }
.body-copy { color: var(--muted); max-width: 58ch; }
.body-copy strong { color: var(--ink); font-weight: 600; }
.meta {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- reveals (JS adds .is-in; without JS everything is visible) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 36px; }
.js [data-reveal].is-in, .no-motion [data-reveal] { opacity: 1; translate: 0 0; }
.js [data-split] .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js [data-split] .w > span { display: inline-block; translate: 0 115%; }
.no-motion [data-split] .w > span { translate: 0 0 !important; }

.mask-img { overflow: clip; border-radius: var(--radius); position: relative; }
.js .mask-img { clip-path: inset(100% 0 0 0); }
.js .mask-img.is-in, .no-motion .mask-img { clip-path: inset(0 0 0 0); }
.mask-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: translate 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.header.is-hidden { translate: 0 -100%; }
.header.is-solid {
  background: rgba(12, 16, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}
.header__in {
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.brand b {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.15rem; letter-spacing: 0.05em; white-space: nowrap;
}
.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none; font-size: var(--t-s); font-weight: 500; color: var(--muted);
  background: linear-gradient(currentColor 0 0) left bottom / 0% 1px no-repeat;
  transition: background-size 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.3s;
  padding-block: 0.4rem;
}
@media (hover: hover) { .nav a:hover { color: var(--ink); background-size: 100% 1px; } }
.nav a:focus-visible { color: var(--ink); background-size: 100% 1px; }
.call {
  text-decoration: none; font-size: var(--t-s); font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink);
  padding: 0.55rem 0.4rem;
}
.call svg { width: 15px; height: 15px; color: var(--accent); }
@media (hover: hover) { .call:hover { color: var(--accent); } }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: clip;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: var(--radius);
  font-size: var(--t-s); font-weight: 650; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  transition: color 0.3s;
}
.btn .arr { transition: translate 0.35s cubic-bezier(0.165, 0.84, 0.44, 1); width: 14px; height: 14px; }
@media (hover: hover) { .btn:hover .arr { translate: 5px 0; } }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid .btn__fill { position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: circle(0% at 50% 50%); }
.btn--solid.is-filled, .btn--solid:active { color: var(--ground); }
.btn--solid:active .btn__fill { clip-path: circle(150% at 50% 50%); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(12, 16, 20, 0.35); }
.btn--ghost .btn__fill { position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: circle(0% at 50% 50%); }
.btn--ghost.is-filled, .btn--ghost:active { color: var(--ground); }
.btn--ghost:active .btn__fill { clip-path: circle(150% at 50% 50%); }
@media (prefers-reduced-motion: reduce) {
  .btn:focus-visible .btn__fill, .btn:hover .btn__fill { clip-path: none; }
  .btn--solid:focus-visible, .btn--solid:hover { color: var(--ground); }
  .btn--ghost:focus-visible, .btn--ghost:hover { color: var(--ground); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: clip; }
.hero__media { position: absolute; inset: -12% 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0.62) 0%, rgba(12, 16, 20, 0.12) 34%, rgba(12, 16, 20, 0.08) 55%, rgba(12, 16, 20, 0.88) 92%),
    radial-gradient(130% 70% at 50% 108%, rgba(12, 16, 20, 0.75) 0%, transparent 60%);
}
.hero__in {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) var(--margin) clamp(2rem, 6vh, 4.5rem);
  display: grid; gap: 2.2rem;
}
.hero h1 { max-width: 11ch; }
.hero__sub { display: flex; flex-wrap: wrap; gap: 2.2rem; align-items: flex-end; justify-content: space-between; }
.hero__sub .lede { color: #d9d4ca; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--line-soft); padding-top: 1.1rem;
}
.hero__meta a { text-decoration: none; }
@media (hover: hover) { .hero__meta a:hover { color: var(--ink); } }
.dial { position: absolute; right: var(--margin); top: calc(var(--header-h) + 2.5rem); z-index: 2; width: clamp(84px, 10vw, 140px); }
.dial svg { width: 100%; height: auto; display: block; }
.scroll-cue { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.scroll-cue svg { width: 12px; height: 16px; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line-soft); padding-block: 1.05rem; overflow: clip; background: var(--panel-2); }
.marquee__track { display: flex; gap: 3.2rem; width: max-content; will-change: transform; }
.marquee__track span { display: inline-flex; align-items: center; gap: 3.2rem; white-space: nowrap; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.06em; color: var(--muted); }
.marquee__track svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(4.5rem, 11vh, 8.5rem); position: relative; }
.section__head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.2rem, 6vh, 4rem); }
.section__head .kicker { display: flex; align-items: center; gap: 0.8rem; }
.kicker .idx { font-variant-numeric: tabular-nums; color: var(--accent); }
.kicker .rule { width: 42px; height: 1px; background: var(--accent); display: inline-block; }

/* services grid */
.services { display: grid; gap: 1.1rem; grid-template-columns: repeat(12, 1fr); }
.card {
  position: relative; isolation: isolate; overflow: clip;
  grid-column: span 6; min-height: 420px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel);
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none;
  --mx: 50%; --my: 50%;
}
.card--wide { grid-column: span 12; min-height: 460px; }
.card__img { position: absolute; inset: 0; z-index: 0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s cubic-bezier(0.165, 0.84, 0.44, 1); scale: 1.015; }
.card__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(12, 16, 20, 0.1) 30%, rgba(12, 16, 20, 0.9) 82%);
}
.card__glow {
  position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 0.45s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 177, 59, 0.16), transparent 65%);
  pointer-events: none;
}
@media (hover: hover) {
  .card:hover .card__img img { scale: 1.06; }
  .card:hover .card__glow { opacity: 1; }
  .card:hover .card__cta { color: var(--accent); }
  .card:hover .card__cta .arr { translate: 5px 0; }
}
.card:focus-visible .card__glow { opacity: 1; }
.card__body { position: relative; z-index: 2; padding: 1.6rem; display: grid; gap: 0.55rem; }
.card__body h3 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 0.95; }
.card__body p { color: #c9c4ba; max-width: 52ch; font-size: var(--t-s); }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.3rem; }
.card__tags span { font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 99px; padding: 0.28rem 0.7rem; background: rgba(12, 16, 20, 0.45); }
.card__cta { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--t-s); font-weight: 650; margin-top: 0.5rem; transition: color 0.3s; }
.card__cta .arr { width: 14px; height: 14px; transition: translate 0.35s cubic-bezier(0.165, 0.84, 0.44, 1); }

/* ---------- process (signature) ---------- */
.process { background: var(--panel-2); border-block: 1px solid var(--line-soft); overflow: clip; }
.process__stage { position: relative; }
.process__sky { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, rgba(47, 26, 10, 0.55), rgba(12, 16, 20, 0) 65%); pointer-events: none; }
.process__pin { position: relative; padding-block: clamp(3.5rem, 8vh, 6rem); }
.arc-wrap { position: relative; margin-bottom: clamp(2rem, 5vh, 3.4rem); }
.arc-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.arc-path { stroke: var(--line); stroke-width: 1.5; fill: none; }
.arc-prog { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.arc-sun { fill: var(--accent); filter: drop-shadow(0 0 14px rgba(255, 177, 59, 0.65)); }
.arc-ray { stroke: var(--accent); stroke-width: 1.5; opacity: 0.8; }
.arc-horizon { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 6; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.step { border-top: 1px solid var(--line-soft); padding-top: 1rem; display: grid; gap: 0.5rem; align-content: start; transition: opacity 0.5s; }
.step__idx { font-variant-numeric: tabular-nums; font-size: var(--t-xs); font-weight: 650; letter-spacing: 0.14em; color: var(--muted); transition: color 0.4s; }
.step h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 700; font-size: 1.45rem; line-height: 1; }
.step p { font-size: var(--t-s); color: var(--muted); }
.js-pin .step { opacity: 0.32; }
.js-pin .step.is-on { opacity: 1; }
.step.is-on .step__idx { color: var(--accent); }

/* ---------- why desert ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.2rem, 3vw, 3rem); align-items: center; }
.split__media { grid-column: 1 / 7; }
.split__copy { grid-column: 7 / 13; display: grid; gap: 1.2rem; }
.split--flip .split__media { grid-column: 7 / 13; order: 2; }
.split--flip .split__copy { grid-column: 1 / 7; order: 1; }
.split__media .mask-img { aspect-ratio: 4 / 3.3; }
.split__media--wide .mask-img { aspect-ratio: 16 / 10; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: clamp(2.4rem, 6vh, 4rem); }
.fact { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: 0.3rem; }
.fact b { font-family: var(--f-display); font-weight: 750; font-size: clamp(2.6rem, 2rem + 2.6vw, 4.6rem); line-height: 1; color: var(--ink); }
.fact b em { font-style: normal; color: var(--accent); }
.fact span { font-size: var(--t-s); color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--muted); }
.checklist li::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; translate: 0 -1px; }
.checklist li strong { color: var(--ink); font-weight: 600; }

/* flow diagram */
.flow { margin-top: 1.4rem; }
.flow svg { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.flow .f-line { stroke: var(--line); stroke-width: 1.5; fill: none; }
.flow .f-draw { stroke: var(--accent); stroke-width: 2; fill: none; }
.flow .f-node { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.flow .f-dot { fill: var(--accent); }
.flow text { fill: var(--muted); font-family: var(--f-text); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- placeholder blocks ---------- */
.ph {
  border: 1.5px dashed rgba(255, 177, 59, 0.45); border-radius: var(--radius);
  background: rgba(255, 177, 59, 0.045);
  padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 0.5rem; justify-items: start;
}
.ph .meta { color: var(--accent); }
.ph p { color: var(--muted); max-width: 60ch; }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 0.2rem; font-weight: 600; font-size: var(--t-m);
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .x { flex: none; margin-left: auto; width: 16px; height: 16px; position: relative; color: var(--accent); }
.faq summary .x::before, .faq summary .x::after { content: ''; position: absolute; inset: 50% auto auto 0; width: 100%; height: 2px; background: currentColor; translate: 0 -50%; transition: rotate 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.faq summary .x::after { rotate: 90deg; }
.faq details[open] summary .x::after { rotate: 0deg; }
@media (hover: hover) { .faq summary:hover { color: var(--accent); } }
.faq .a { overflow: clip; }
.faq .a p { color: var(--muted); padding: 0 0.2rem 1.4rem; max-width: 62ch; }

/* ---------- contact ---------- */
.contact { background: var(--panel-2); border-top: 1px solid var(--line-soft); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.6rem, 4vw, 4rem); }
.contact__info { grid-column: 1 / 6; display: grid; gap: 1.6rem; align-content: start; }
.contact__info .big-tel { font-family: var(--f-display); font-weight: 750; text-transform: uppercase; font-size: clamp(2rem, 1.4rem + 3vw, 3.8rem); line-height: 1; text-decoration: none; transition: color 0.3s; }
@media (hover: hover) { .contact__info .big-tel:hover { color: var(--accent); } }
.contact__form { grid-column: 6 / 13; position: relative; }
.form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-xs); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 0.95rem; width: 100%;
  transition: border-color 0.3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--muted); }
.thanks {
  position: absolute; inset: 0; display: none; place-content: center; text-align: center; gap: 1rem;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2rem;
}
.thanks.is-on { display: grid; }
.thanks svg { width: 54px; height: 54px; color: var(--accent); margin-inline: auto; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: clamp(3rem, 8vh, 5.5rem) 0 2rem; overflow: clip; }
.footer__name {
  font-family: var(--f-display); font-weight: 750; text-transform: uppercase;
  font-size: clamp(2.6rem, 1rem + 9.5vw, 10rem); line-height: 0.9; letter-spacing: 0.01em;
  margin-bottom: clamp(2rem, 6vh, 3.6rem); color: var(--ink);
}
.footer__name em { font-style: normal; color: var(--accent); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2rem 4rem; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 1.6rem; }
.footer__col { display: grid; gap: 0.5rem; align-content: start; }
.footer__col a { text-decoration: none; color: var(--muted); font-size: var(--t-s); padding-block: 0.15rem; }
@media (hover: hover) { .footer__col a:hover { color: var(--accent); } }
.footer__legal { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; color: var(--muted); font-size: var(--t-xs); }

/* ---------- 404 ---------- */
.err { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 1.4rem; padding: var(--margin); }
.err h1 { font-size: clamp(6rem, 24vw, 18rem); }
.err h1 em { font-style: normal; color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .split__media, .split__copy, .split--flip .split__media, .split--flip .split__copy { grid-column: 1 / -1; order: initial; }
  .split { gap: 1.6rem; }
  .card, .card--wide { grid-column: 1 / -1; min-height: 380px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .contact__info, .contact__form { grid-column: 1 / -1; }
  .dial { top: auto; bottom: 7.5rem; display: none; }
}
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .call b { display: none; }
  .brand b { font-size: 1rem; }
  .hero__in { gap: 1.6rem; }
  .header__in { gap: 0.8rem; }
  .header .btn { padding: 0.7rem 1rem; font-size: 0.8rem; }
  .header .btn .arr { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee__track { transform: none !important; }
}
