/* =========================================================
   J.W. SPEAKER — "Engineered Lighting Solutions" demo
   Brand palette pulled from live site: red #E30613, black, white
   Font: Montserrat (their real body face) + IBM Plex Mono for spec labels
   ========================================================= */

:root {
  --carbon:   #0B0E12;   /* page base */
  --graphite: #151A21;   /* panels / cards */
  --graphite-2:#1C222B;  /* raised panels */
  --red:      #E30613;   /* JW Speaker signature red — custom-branch accent */
  --red-bright:#ff2233;
  --white:    #F5F7FA;
  --steel:    #8A93A3;   /* secondary text */
  --steel-dim:#6a7280;
  --hairline: #232B36;
  --light-bg: #EEF1F5;   /* Ready-to-Ship inversion */
  --light-panel:#ffffff;
  --light-ink:#141920;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--carbon);
  color: var(--white);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Type ---------- */
h1,h2,h3 { font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p  { color: var(--steel); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #c4ccd6; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); display: inline-block; margin-bottom: 18px;
}
.eyebrow.muted { color: var(--steel); }
.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .98rem;
  padding: 15px 26px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .2s var(--ease);
  min-height: 48px; line-height: 1;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 30px -8px rgba(227,6,19,.55); }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(227,6,19,.7); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--steel); background: rgba(255,255,255,.03); }
.btn-text { color: var(--steel); font-weight: 600; padding: 12px 4px; }
.btn-text:hover { color: var(--white); }
.btn-text .arrow { transition: transform .2s var(--ease); }
.btn-text:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.cta-short { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,18,.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 26px; width: auto; }
.brand .tagline {
  font-family: 'IBM Plex Mono', monospace; font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--steel); padding-left: 14px;
  border-left: 1px solid var(--hairline); line-height: 1.3; max-width: 130px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: .92rem; font-weight: 600; color: var(--steel); transition: color .2s; }
.nav-links a.link:hover { color: var(--white); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 42%, rgba(227,6,19,.22), transparent 55%),
    radial-gradient(90% 70% at 85% 50%, rgba(120,150,200,.10), transparent 60%),
    linear-gradient(90deg, var(--carbon) 30%, rgba(11,14,18,.35) 75%, rgba(11,14,18,.7));
  z-index: 2;
}
/* z-index 3: above the hero tint overlay so the lamp renders crisp and unveiled */
.headlight { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: 58%; max-width: 720px; aspect-ratio: 1; z-index: 3; }
.headlight img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); animation: lampFlash 9s var(--ease) 1.2s infinite; }

/* Flash bloom: the LED "fires" — a burst of light from the lens center */
.lens-bloom {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(26% 26% at 50% 50%, rgba(255,255,255,.95), rgba(255,244,214,.4) 45%, transparent 72%),
    radial-gradient(55% 55% at 50% 50%, rgba(255,220,170,.22), transparent 70%);
  opacity: 0; mix-blend-mode: screen;
  animation: lampBloom 9s var(--ease) 1.2s infinite;
}

/* Specular glint: a reflection streak sweeping across the round lens glass */
.lens-glint {
  /* matched to the lens circle in prod-8600.png (68% dia, centered) */
  position: absolute; inset: 16.5%; border-radius: 50%; overflow: hidden;
  pointer-events: none; z-index: 3;
}
.lens-glint::before {
  content: ''; position: absolute; top: -30%; bottom: -30%; left: -55%; width: 52%;
  /* crisp double reflection bar: thin leading streak + hard bright core */
  background: linear-gradient(100deg,
    transparent 0%,
    transparent 22%,
    rgba(255,255,255,.5) 26%,
    rgba(255,255,255,.5) 28%,
    transparent 32%,
    transparent 42%,
    rgba(255,255,255,.35) 46%,
    rgba(255,255,255,.98) 50%,
    rgba(255,255,255,.98) 54%,
    rgba(255,255,255,.35) 58%,
    transparent 62%,
    transparent 100%);
  transform: rotate(18deg) translateX(0);
  mix-blend-mode: screen;
  animation: lensSweep 9s linear 1.2s infinite;
}

/* Timeline (9s loop): idle -> ignite flash (~18%) -> glint sweep -> settle */
@keyframes lampFlash {
  0%, 13%  { filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) brightness(1); }
  16%      { filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 46px rgba(255,235,190,.55)) brightness(1.55); }
  19%      { filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(255,235,190,.3)) brightness(1.18); }
  30%, 100%{ filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) brightness(1); }
}
@keyframes lampBloom {
  0%, 13%  { opacity: 0; }
  16%      { opacity: 1; }
  22%      { opacity: .25; }
  30%, 100%{ opacity: 0; }
}
@keyframes lensSweep {
  0%, 16%  { transform: rotate(18deg) translateX(0); opacity: 0; }
  16.5%    { opacity: 1; }
  24%      { transform: rotate(18deg) translateX(330%); opacity: 1; }
  25%, 100%{ transform: rotate(18deg) translateX(330%); opacity: 0; }
}
.hero-beam { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
  transform: translateX(-30%); animation: sweep 3.2s var(--ease) .3s 1 forwards; }
@keyframes sweep { to { transform: translateX(30%); } }
.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero-content { max-width: 680px; }
.hero h1 { margin: 8px 0 22px; }
.hero h1 .accent { color: var(--red); }
.hero .lead { max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; font-family: 'IBM Plex Mono', monospace; font-size: .74rem;
  letter-spacing: .06em; color: var(--steel-dim); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-trust b { color: var(--steel); font-weight: 500; }

/* ---------- Section rhythm ---------- */
section { position: relative; }
.section-pad { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head p { margin-top: 18px; }

/* ---------- The Fork ---------- */
.fork { background: linear-gradient(180deg, var(--carbon), #0e1218); border-top: 1px solid var(--hairline); }
.fork-q { text-align: center; margin-bottom: 40px; }
.fork-q h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.fork-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: 22px; }
.fork-card { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; border: 1px solid var(--hairline); transition: transform .3s var(--ease), border-color .3s; }
.fork-card:hover { transform: translateY(-4px); }
.fork-card .kicker { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.fork-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.fork-card p { margin-bottom: 26px; max-width: 44ch; }
/* custom (dominant) */
.fork-custom { background: linear-gradient(180deg, rgba(20,25,32,.4), rgba(11,14,18,.85)); border-color: rgba(227,6,19,.4); box-shadow: inset 0 0 0 1px rgba(227,6,19,.18), 0 0 60px -20px rgba(227,6,19,.4); }
.fork-custom::before { content:''; position:absolute; inset:0; z-index:-1; background-size: cover; background-position: center; opacity: .28; }
.fork-custom:hover { border-color: var(--red); }
.fork-custom .kicker { color: var(--red); }
/* ready to ship (subordinate) */
.fork-std { background: var(--graphite); }
.fork-std .kicker { color: var(--steel); }
.fork-std h3 { color: #cdd4dd; }
.fork-media { position: absolute; inset: 0; z-index: -1; }
.fork-media img { width: 100%; height: 100%; object-fit: cover; }
.fork-custom .fork-media::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,14,18,.5) 0%, rgba(11,14,18,.72) 55%, rgba(11,14,18,.94) 100%); }

/* ---------- Custom pitch ---------- */
.custom-sec { border-top: 1px solid var(--hairline); }
.tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 20px; }
.tile { background: var(--graphite); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px 28px; }
.tile .ic { width: 42px; height: 42px; border-radius: 9px; background: rgba(227,6,19,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--red); }
.tile h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tile p { font-size: .95rem; }

/* ---------- Process ---------- */
.process { background: #0e1218; border-top: 1px solid var(--hairline); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.step { position: relative; padding-top: 30px; }
.step .num { font-family: 'IBM Plex Mono', monospace; font-size: 1.5rem; font-weight: 500; color: var(--red); letter-spacing: .04em; margin-bottom: 12px; line-height: 1; }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { font-size: .93rem; }
.step::before { content:''; position:absolute; top: 8px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,.18); }
.step-line { height: 1px; background: var(--hairline); position: absolute; top: 13px; left: 5%; right: 5%; z-index: 0; }
.process-close { margin-top: 50px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.process-close p { font-size: 1.2rem; color: var(--white); font-weight: 600; max-width: 46ch; }

/* ---------- Proof ---------- */
.proof { border-top: 1px solid var(--hairline); }
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.quote-card { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; padding: 44px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; border: 1px solid var(--hairline); }
.quote-card .qmedia { position: absolute; inset: 0; z-index: -1; }
.quote-card .qmedia img { width: 100%; height: 100%; object-fit: cover; }
.quote-card .qmedia::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,14,18,.35), rgba(11,14,18,.92)); }
.quote-card blockquote { font-size: clamp(1.3rem,2vw,1.7rem); font-weight: 700; line-height: 1.3; color: var(--white); letter-spacing: -.01em; }
.quote-card .mark { color: var(--red); font-size: 3rem; line-height: 0; font-weight: 800; display:block; height: 20px; }
.quote-card cite { display: block; margin-top: 22px; font-style: normal; font-size: .9rem; color: var(--steel); font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; }
.tech-stack { display: flex; flex-direction: column; gap: 16px; }
.tech-card { background: var(--graphite); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px 28px; flex: 1; }
.tech-card .label { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.tech-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.tech-card p { font-size: .93rem; }

/* ---------- Heritage strip ---------- */
.heritage { background: var(--graphite); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 40px 0; }
.heritage .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.heritage .h-txt { font-weight: 700; font-size: 1.05rem; color: var(--white); max-width: 40ch; }
.heritage .h-txt span { color: var(--steel); font-weight: 500; display: block; font-size: .9rem; margin-top: 4px; }
.badges { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.badges img { height: 62px; width: auto; opacity: .92; filter: grayscale(.15); }
.cert-line { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .08em; color: var(--steel-dim); }

/* ---------- Ready to Ship (inverted / subordinate) ---------- */
.standard { background: var(--light-bg); color: var(--light-ink); border-top: 1px solid #d9dee6; }
.standard .eyebrow { color: var(--steel-dim); }
.standard h2 { color: var(--light-ink); }
.standard p { color: #4a5561; }
.std-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin: 44px 0 34px; }
.std-tile { background: var(--light-panel); border: 1px solid #e0e5ec; border-radius: 12px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.std-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -14px rgba(20,25,32,.3); }
.std-tile .thumb { aspect-ratio: 4/3; background: #f4f6f9; display:flex; align-items:center; justify-content:center; padding: 18px; }
.std-tile .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.std-tile .cap { padding: 14px 18px; font-weight: 700; font-size: .98rem; display:flex; align-items:center; justify-content: space-between; }
.std-tile .cap .arrow { color: var(--steel); }
.std-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid #dde2e9; }
.std-foot .bridge { font-size: .95rem; color: #4a5561; max-width: 52ch; }
.std-foot .bridge a { color: var(--red); font-weight: 700; }
.btn-dark { background: transparent; color: var(--light-ink); border-color: #c3cad4; }
.btn-dark:hover { border-color: var(--light-ink); }

/* ---------- Start / Contact ---------- */
.start { background: var(--carbon); border-top: 1px solid var(--hairline); }
.start-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.form-card { background: var(--graphite); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 40px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .8rem; font-family:'IBM Plex Mono',monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--carbon); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 14px 16px; color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 1rem; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,.15); }
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--steel-dim); margin-top: 14px; }
.form-success { display:none; text-align:center; padding: 30px 10px; }
.form-success.show { display:block; }
.form-success .check { width: 56px; height:56px; border-radius: 50%; background: rgba(227,6,19,.14); color: var(--red); display:flex; align-items:center; justify-content:center; margin: 0 auto 18px; font-size: 1.6rem; }
.contact-side h3 { margin-bottom: 10px; }
.contact-side .phone { font-family:'IBM Plex Mono',monospace; font-size: 1.5rem; color: var(--white); font-weight: 500; margin: 14px 0 6px; letter-spacing: .02em; }
.contact-side .meta { font-size: .9rem; color: var(--steel); }
.contact-side hr { border: 0; border-top: 1px solid var(--hairline); margin: 28px 0; }

/* ---------- Footer ---------- */
.site-footer { background: #080a0d; border-top: 1px solid var(--hairline); padding: 46px 0 40px; }
.site-footer .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .f-brand img { height: 24px; margin-bottom: 14px; }
.site-footer .f-brand .tagline { font-family:'IBM Plex Mono',monospace; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color: var(--steel-dim); }
.site-footer .f-meta { font-size: .85rem; color: var(--steel-dim); line-height: 1.8; }
.f-links { display: flex; gap: 26px; flex-wrap: wrap; }
.f-links a { font-size: .88rem; color: var(--steel); font-weight: 600; }
.f-links a:hover { color: var(--white); }
.f-cert { font-family:'IBM Plex Mono',monospace; font-size:.68rem; letter-spacing:.06em; color:#4a515e; margin-top: 22px; width: 100%; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11,14,18,.9); backdrop-filter: blur(12px); border-top: 1px solid var(--hairline); transform: translateY(120%); transition: transform .3s var(--ease); display: none; }
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ========================================================= */
/* Responsive                                                */
/* ========================================================= */
@media (max-width: 940px) {
  .fork-grid { grid-template-columns: 1fr; }
  .fork-custom { min-height: 440px; }
  .fork-std { min-height: 240px; }
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-line { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .std-grid { grid-template-columns: 1fr 1fr; }
  .start-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,14,18,.98); border-bottom: 1px solid var(--hairline); padding: 8px 0;
    transform: translateY(-140%); transition: transform .3s var(--ease); z-index: 99; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.link { padding: 16px var(--pad); border-bottom: 1px solid var(--hairline); }
  .nav-links .btn { display: none; } /* header keeps its own persistent button */
  .hamburger { display: block; }
  .brand .tagline { display: none; }
  .brand img { height: 23px; }
  .header-cta { display: inline-flex !important; padding: 11px 16px; min-height: 42px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .mobile-cta { display: block; }
  .hero { min-height: 88vh; }
  .headlight { width: 90%; right: -20%; opacity: .5; }
  .form-row { grid-template-columns: 1fr; }
  .heritage .wrap { flex-direction: column; align-items: flex-start; }
  .process-close { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .std-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .hero-beam { animation: none; }
  .headlight img, .lens-bloom, .lens-glint::before { animation: none; }
  .lens-bloom { opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
