/* Solar Sphere Advance Materials — design clone (private draft)
   Tokens measured from the live site's Elementor kit (post-7.css) + page CSS (post-2333.css):
   primary/text #333333 · secondary #353535 · accent(white) #FFFFFF
   light #F7F7F7 · line #E8E8E8 · sand #BCB8A5 · highlight #FFFC88
   Type: Formular (400/500/700) + Formular Mono for labels.
   Hero H1 67px / 1.1 / -0.05em · H2 40px · H3 35px · body 17px / 24px.
   Gutters: 0.75rem outer, 2.5rem section padding. Radius: ~0 (sharp, industrial). */

@font-face {
  font-family: "Formular";
  src: url("assets/fonts/formular-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Formular";
  src: url("assets/fonts/formular-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Formular";
  src: url("assets/fonts/formular-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Formular Mono";
  src: url("assets/fonts/formular-mono.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ink: #333333;
  --charcoal: #353535;
  --paper: #f7f7f7;
  --line: #e8e8e8;
  --line-soft: #e8e8e6;
  --sand: #bcb8a5;
  --highlight: #fffc88;
  --white: #ffffff;
  --font: "Formular", "Helvetica Neue", Arial, sans-serif;
  --mono: "Formular Mono", ui-monospace, monospace;
  --gutter: 0.75rem;
  --pad: 2.5rem;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5rem;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.05em; line-height: 1.1em; margin: 0; }
h2 { font-size: 2.5em; }
h3 { font-size: 2.1875rem; line-height: 1.15em; letter-spacing: -0.03em; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { padding: 5rem 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
}

/* ---------- Header: transparent, overlaps hero by -80px ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 2.5rem;
  padding: 0.75rem 2.5rem;
  margin-bottom: -80px;
  transition: background 0.25s ease;
}
.site-header.scrolled { background: var(--charcoal); }
.logo { text-decoration: none; }
.logo-text {
  font-family: var(--font); font-weight: 500; color: var(--white);
  font-size: 15px; letter-spacing: -0.02em; white-space: nowrap;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--white); text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .has-sub { position: relative; }
.site-nav .sub {
  display: none; position: absolute; top: 100%; left: -1rem;
  flex-direction: column; gap: 0; min-width: 180px;
  background: var(--charcoal); padding: 0.5rem 0;
}
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: flex; }
.site-nav .sub a { display: block; padding: 0.5rem 1rem; }
.nav-cta { border: 1px solid var(--white); padding: 0.5rem 1rem; }
.nav-cta:hover { background: var(--white); color: var(--ink); text-decoration: none; }
.menu-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--white); color: var(--white);
  font-family: var(--mono); font-size: 12px; padding: 0.5rem 1rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10rem 2.5rem 2.5rem;
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* Lazy videos keep their poster visible until playable: with preload="none"
   and no src at parse time, nothing downloads before first paint, so the
   page never sits on a loading spinner waiting for the mp4s. */
.hero::after { /* legibility shade, like the original's dark video grade */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.15) 55%, rgba(20, 20, 20, 0.25));
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: 4.1875rem; max-width: 59%; }
.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: 2rem;
}
.hero-notes { width: 37%; font-size: 1.25rem; line-height: 1.4; }
.hero-notes p { margin: 0 0 0.5rem; }
.hero-notes p:last-child { margin: 0; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 2; color: var(--white); text-decoration: none;
  font-size: 1.75rem; line-height: 1; opacity: 0.85;
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em;
  padding: 0.9rem 1.75rem; border: 1px solid transparent; border-radius: 2px;
}
.btn-yellow { background: var(--highlight); color: var(--ink); }
.btn-yellow:hover { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--charcoal); }
.text-link { font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Intro / steps ---------- */
.intro { background: var(--white); }
.intro h2 { max-width: 22ch; margin-bottom: 2.5rem; }
.intro-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 3rem; align-items: start; margin-bottom: 4rem; }
.intro-copy p { max-width: 62ch; }
.intro-copy .text-link { display: inline-block; margin-top: 1rem; }
.intro-media img { width: 100%; height: 370px; object-fit: cover; border-radius: 6px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.steps li { background: var(--line); padding: 2rem; }
.step-icon { width: 28px; height: 28px; margin-bottom: 1.25rem; }
.step-no { font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em; color: var(--sand); margin: 0 0 0.75rem; }
.steps h3 { font-size: 1.625rem; margin-bottom: 0.75rem; }
.steps p:last-child { margin: 0; }

/* ---------- Video band ---------- */
.video-band {
  padding: 0; background: var(--charcoal);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.video-band video { width: 100%; height: auto; max-height: 80vh; object-fit: cover; }

/* ---------- Products ---------- */
.products { background: var(--paper); }
.products h2 { max-width: 22ch; margin-bottom: 1.5rem; }
.section-lede { max-width: 72ch; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.product-card {
  background: var(--line); border: none;
  padding: 2rem; display: flex; flex-direction: column;
}
.pill {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: -0.04em; border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.product-card h3 { margin-bottom: 0.5rem; }
.product-card h3 em { font-style: normal; font-size: 0.6em; letter-spacing: 0; }
.product-tag { color: var(--ink); margin-bottom: 1.5rem; }
.specs { margin: 0 0 1.5rem; }
.specs div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0; border-top: 1px solid var(--line);
}
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em; }
.specs dd { margin: 0; text-align: right; }
.apps { margin: 0 0 1.5rem; font-size: 0.95rem; }
.apps span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em; margin-bottom: 0.35rem; }
.product-card .text-link { margin-top: auto; }

/* ---------- Coming soon ---------- */
/* Clipped corner is the original's own .custom-clip-path-one: --cut: 10px, top-left only. */
.coming-soon {
  background: var(--charcoal); color: var(--white);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.coming-soon .eyebrow { color: var(--sand); }
.coming-soon h2 { margin-bottom: 1.25rem; }
.coming-soon p:last-child { max-width: 72ch; margin: 0; }

/* ---------- News ---------- */
.news { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.news-card { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.news-card h3 { font-size: 1.625rem; line-height: 1.33em; letter-spacing: 0; margin-bottom: 1rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-date { font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em; margin-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact {
  background: var(--line);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact h2 { margin-bottom: 1.5rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em; display: block; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 0.4rem;
  font-family: var(--font); font-size: 0.9rem; color: var(--ink);
  padding: 0.7rem 0.2rem; border: none; border-bottom: 1px solid var(--ink);
  border-radius: 0; background: transparent;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--ink); border-bottom-width: 2px; }
.form-note { grid-column: 1 / -1; font-size: 0.9rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--white); padding: 4rem 0 2rem;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem; padding-bottom: 3rem; }
.footer-brand a { text-decoration: none; }
.footer-brand .logo-text { font-size: 15px; white-space: normal; line-height: 1.35; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: -0.04em; margin: 0 0 1rem; color: var(--sand); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1.5rem;
  font-family: var(--mono); font-size: 12px; letter-spacing: -0.04em;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 1.5rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
.fade { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive (mirrors Elementor breakpoints) ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.72rem; max-width: 90%; }
  .hero-notes { width: 100%; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .wrap { padding: 0 1.25rem; }
  .site-header { padding: 0.75rem 1.25rem; }
  .logo-text { font-size: 13px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--charcoal); padding: 1rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; }
  .site-nav .sub { display: block; position: static; background: transparent; padding: 0.5rem 0 0 1rem; }
  .steps, .product-grid, .news-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom ul { margin: 0; }
}
