/* =========================================================
   General Luminaire — 2026 redesign
   Color: black / white / red
   Typography: Montserrat (Light bundled, others via Google)
   ========================================================= */

@font-face {
  font-family: "Montserrat Local";
  src: url("../fonts/Montserrat-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --black: #0a0a0a;
  --black-2: #131313;
  --black-3: #1b1b1b;
  --black-4: #242424;
  --white: #ffffff;
  --off-white: #f4f4f4;
  --gray-1: #d6d6d6;
  --gray-2: #8a8a8a;
  --gray-3: #3a3a3a;
  --red: #e30613;
  --red-hover: #b30410;

  /* Type */
  --font-sans: "Montserrat", "Montserrat Local", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 1320px;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(80px, 12vw, 160px);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ----- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ----- Type tokens ------------------------------------------ */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--red);
}
h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
}
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

p { margin: 0 0 18px; color: var(--gray-1); max-width: 60ch; }
.section.light p { color: #2a2a2a; }
.section.light h2, .section.light h3 { color: var(--black); }

strong { font-weight: 600; }
.red { color: var(--red); }

/* ----- Container -------------------------------------------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ----- Nav -------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  background: rgba(10,10,10,0);
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.06);
  padding: 14px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.nav__logo b { font-weight: 700; color: var(--red); }
.nav__logo sup { font-size: 9px; vertical-align: super; margin-left: 2px; color: var(--gray-2); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray-1);
  position: relative;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--red);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn__arrow { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.nav__toggle { display: none; }

/* ----- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.05);
  animation: heroFade 1.4s var(--ease) both;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.15) 100%),
    linear-gradient(0deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0) 50%);
}
.hero__content { position: relative; z-index: 2; }
@keyframes heroFade {
  from { opacity: 0; transform: scale(1.12); }
  to   { opacity: 1; transform: scale(1.05); }
}

.hero__content {
  padding: 180px 0 120px;
  max-width: 920px;
}
.hero h1 {
  font-weight: 200;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--red); font-weight: 700; }
.hero h1 .small {
  display: block;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.hero__lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--gray-1);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--red), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----- Section base ----------------------------------------- */
.section {
  padding: var(--pad-y) 0;
  position: relative;
}
.section.light { background: var(--off-white); color: var(--black); }
.section.dark { background: var(--black); }
.section.darker { background: var(--black-2); }

.section__head {
  max-width: 820px;
  margin-bottom: 72px;
}
.section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ----- About ------------------------------------------------ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__copy h2 { color: var(--black); }
.about__copy p { color: #333; font-size: 18px; line-height: 1.7; max-width: 56ch; }
.about__years {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0 0;
  margin-top: 36px;
  border-top: 1px solid #d4d4d4;
  max-width: 380px;
}
.about__years strong {
  font-size: 64px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
  flex-shrink: 0;
}
.about__years span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
  line-height: 1.5;
}
.about__image {
  position: relative;
  overflow: hidden;
}
.about__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
}
.about__image::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 35%; height: 35%;
  border-right: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  pointer-events: none;
}

/* ----- Capabilities ---------------------------------------- */
.cap__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--gray-3);
  border: 1px solid var(--gray-3);
}
.cap__card {
  background: var(--black);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: background .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.cap__card:hover { background: var(--black-3); }
.cap__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.cap__card:hover::before { transform: scaleX(1); }
.cap__icon {
  width: 36px;
  height: 36px;
  color: var(--red);
}
.cap__card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.cap__card p {
  font-size: 14px;
  color: var(--gray-2);
  margin: 0;
  line-height: 1.6;
}

/* ----- Scale stats ------------------------------------------ */
.scale {
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.scale::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(227,6,19,0.10), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(227,6,19,0.08), transparent 45%);
  pointer-events: none;
}
.scale__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-3);
  border-top: 1px solid var(--gray-3);
  border-bottom: 1px solid var(--gray-3);
}
.stat {
  background: var(--black);
  padding: 56px 32px;
}
.stat__num {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat__num .unit {
  font-size: 0.35em;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat__num .plus { color: var(--red); margin-left: 2px; }
.stat__label {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-2);
}

/* ----- Quality ---------------------------------------------- */
.quality {
  background: var(--black-2);
}
.quality__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.quality__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.quality__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s var(--ease);
}
.quality__media:hover img { transform: scale(1.06); }
.quality__list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 20px;
}
.quality__list li {
  padding: 22px 0;
  border-top: 1px solid var(--gray-3);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
}
.quality__list li:last-child { border-bottom: 1px solid var(--gray-3); }
.quality__list .num {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 600;
}
.quality__list .label {
  font-size: 16px;
  color: var(--white);
  font-weight: 500;
}
.quality__list .detail {
  display: block;
  font-size: 13px;
  color: var(--gray-2);
  margin-top: 4px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

/* ----- Patents / IP ----------------------------------------- */
.ip {
  background: var(--black);
  border-top: 1px solid var(--gray-3);
}
.ip__layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.ip__big {
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 200;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--white);
}
.ip__big .plus {
  color: var(--red);
}
.ip__copy h2 { margin-bottom: 20px; }
.ip__jur {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.ip__jur span {
  border: 1px solid var(--gray-3);
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.ip__sub {
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-2);
}

/* ----- Partnership / CTA Strip ------------------------------ */
.cta-strip {
  background: var(--red);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-strip h2 {
  color: var(--white);
  font-weight: 200;
  margin: 0;
  max-width: 18ch;
}
.cta-strip .btn {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.cta-strip .btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ----- Contact ---------------------------------------------- */
.contact { background: var(--black); }
.contact__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
}
.contact__info h2 { font-weight: 200; }
.contact__info p { font-size: 18px; line-height: 1.6; }
.contact__regions {
  margin: 48px 0 32px;
  border-top: 1px solid var(--gray-3);
}
.contact__regions h4 { color: var(--gray-2); margin: 28px 0 16px; font-size: 11px; }
.contact__regions ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.contact__regions li {
  font-size: 16px;
  color: var(--white);
  position: relative;
  padding-left: 18px;
}
.contact__regions li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--red);
}
.contact__regions li.is-hq::after {
  content: "HQ";
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  background: var(--red);
  color: var(--white);
  vertical-align: middle;
}
.contact__address {
  font-size: 14px;
  color: var(--gray-2);
  line-height: 1.7;
  font-style: normal;
}
.contact__email {
  display: inline-block;
  margin-top: 12px;
  font-size: 18px;
  color: var(--white);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.contact__email:hover { color: var(--red); }
.contact__social {
  display: flex; gap: 16px;
  margin-top: 24px;
}
.contact__social a {
  width: 40px; height: 40px;
  border: 1px solid var(--gray-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.contact__social a:hover { background: var(--red); border-color: var(--red); }
.contact__social svg { width: 18px; height: 18px; }

/* ----- Form ------------------------------------------------- */
.form {
  background: var(--black-2);
  border: 1px solid var(--gray-3);
  padding: clamp(28px, 4vw, 48px);
}
.form h3 {
  margin: 0 0 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__field { margin-bottom: 20px; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 8px;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gray-3);
  color: var(--white);
  font-size: 16px;
  transition: border-color .25s var(--ease);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form__select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23e30613' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}
.form__select option { background: var(--black-2); color: var(--white); }
.form__textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--gray-3);
  padding: 14px;
}
.form__textarea:focus { border-color: var(--red); }
.form__hp { position: absolute; left: -5000px; }
.form__submit {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  padding: 18px 26px;
}

/* ----- Footer ----------------------------------------------- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--gray-3);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__logo {
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.footer__logo b { font-weight: 700; color: var(--red); }
.footer__meta { font-size: 12px; color: var(--gray-2); letter-spacing: 0.04em; }
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  transition: color .25s var(--ease);
}
.footer__links a:hover { color: var(--white); }

/* ----- Reveal animation ------------------------------------- */
/* Progressive enhancement: reveals only apply when JS is available.
   Without JS (or before the inline boot script runs) content stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1 { transition-delay: .05s; }
.reveal-2 { transition-delay: .15s; }
.reveal-3 { transition-delay: .25s; }
.reveal-4 { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ----- Responsive ------------------------------------------- */
@media (max-width: 920px) {
  .about__grid,
  .quality__layout,
  .contact__layout,
  .cta-strip__inner,
  .ip__layout {
    grid-template-columns: 1fr;
  }
  .ip__big { font-size: clamp(100px, 28vw, 180px); }
  .scale__grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 18px; }
  .nav__links .btn { padding: 16px 32px; }
  .nav__toggle {
    display: inline-flex;
    width: 32px; height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 60;
  }
  .nav__toggle span {
    display: block; width: 26px; height: 1px;
    background: var(--white);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .scale__grid { grid-template-columns: 1fr; }
  .hero__content { padding: 140px 0 100px; }
  .stat { padding: 40px 24px; }
}
