/* ============================================================
   OPTIV LED — design tokens
   Palette is drawn from the device's four real treatment
   wavelengths. The spectrum bar (a literal 420→850nm readout)
   is the signature element and repeats as hero, divider, and
   per-channel marker.
   ============================================================ */

:root {
  --bg: #0a0d13;
  --surface: #10141d;
  --surface-2: #171d29;
  --surface-3: #1e2634;
  --line: rgba(240, 237, 230, 0.10);
  --line-strong: rgba(240, 237, 230, 0.20);
  --text: #f0ede6;
  --text-dim: #9aa1af;
  --text-faint: #626a79;

  --blue-420: #2f6fed;
  --yellow-590: #f2b705;
  --red-650: #e0323d;
  --ir-850: #cfc8b8;
  --ir-850-glow: #f2ede1;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--yellow-590);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.25rem; }

p { margin: 0; color: var(--text-dim); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-590);
  flex: none;
}

/* ---------- Nav ---------- */

.site-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 19, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: none;
  padding-left: clamp(24px, 4vw, 80px);
  padding-right: clamp(24px, 4vw, 80px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand .mark {
  display: inline-flex;
  gap: 3px;
}

.brand .mark span {
  width: 4px;
  height: 16px;
}
.brand .mark span:nth-child(1) { background: var(--blue-420); }
.brand .mark span:nth-child(2) { background: var(--yellow-590); }
.brand .mark span:nth-child(3) { background: var(--red-650); }
.brand .mark span:nth-child(4) { background: var(--ir-850-glow); }

.brand small {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.15s ease;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--yellow-590);
}

.nav-cta {
  display: none;
}
@media (min-width: 760px) {
  .nav-cta { display: block; }
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); background: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text); }

.mobile-toggle {
  display: block;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}
@media (min-width: 760px) { .mobile-toggle { display: none; } }

@media (max-width: 759px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 20px 32px 28px;
    gap: 18px;
  }
}

/* ---------- Spectrum bar — signature element ---------- */

.spectrum-bar {
  display: flex;
  height: 10px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.spectrum-bar span { flex: 1; }
.spectrum-bar .b { background: var(--blue-420); }
.spectrum-bar .y { background: var(--yellow-590); }
.spectrum-bar .r { background: var(--red-650); }
.spectrum-bar .i {
  background: linear-gradient(90deg, var(--ir-850), var(--ir-850-glow));
}

.spectrum-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.spectrum-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--blue-420) 0%,
    var(--yellow-590) 33%,
    var(--red-650) 66%,
    var(--ir-850) 100%
  );
  opacity: 0.55;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 900px) {
  .hero-grid.two-col {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.hero h1 { margin-bottom: 22px; }
.hero .lede {
  font-size: 1.08rem;
  max-width: 58ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-spectrum {
  max-width: 560px;
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
.section-tight { padding: 64px 0; }
.border-t { border-top: 1px solid var(--line); }
.surface { background: var(--surface); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head p { max-width: none; width: 100%; }

/* ---------- Specialty strip ---------- */

.specialty-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) {
  .specialty-strip { grid-template-columns: repeat(5, 1fr); }
}
.specialty-strip div {
  background: var(--bg);
  padding: 22px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---------- Cards / grid ---------- */

.grid-3 {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg);
  padding: 36px 32px;
}

.card .icon-bar {
  width: 28px;
  height: 4px;
  margin-bottom: 24px;
}

.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }

/* ---------- Channel rows (product page) ---------- */

.channel {
  display: grid;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .channel { grid-template-columns: 140px 1fr 1.2fr; align-items: start; }
}
.channel:last-child { border-bottom: none; }

.channel-nm {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.channel-nm small { font-size: 0.8rem; color: var(--text-faint); }

.channel-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.channel-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.channel-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Package / pricing band ---------- */

.pricing-band {
  background: var(--surface);
  border: 1px solid var(--line);
}

.pricing-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}
@media (min-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.price-card {
  background: var(--surface-2);
  padding: 44px 40px;
}

.price-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-590);
  margin-bottom: 18px;
  display: block;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  margin-bottom: 8px;
}
.price-card .amount small {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-faint);
  font-weight: 400;
}
.price-card .headline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--text-faint);
}

/* ---------- Stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (min-width: 700px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.stat-row .stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 6px;
}
.stat-row .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 88px 0;
  text-align: center;
  position: relative;
}
.cta-band h2 { max-width: none; margin: 0 auto 28px; }
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- Forms (contact page) ---------- */

.form-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 14px;
  border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--yellow-590);
  outline-offset: 1px;
  border-color: transparent;
}
textarea { resize: vertical; min-height: 120px; }
.field-full { grid-column: 1 / -1; }

/* ---------- Ambient motion on hero spectrum bar ---------- */

@keyframes spectrum-pulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.18) saturate(1.15); }
}
.hero-spectrum .spectrum-bar {
  animation: spectrum-pulse 5s ease-in-out infinite;
}
.hero-spectrum .spectrum-bar span {
  transition: flex-grow 0.3s ease;
}

/* ---------- Press / as-seen-in strip ---------- */

.press-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.press-strip .press-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.press-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) {
  .press-logos { grid-template-columns: repeat(4, 1fr); }
}
.press-logos div {
  background: var(--bg);
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
  border: 1px dashed var(--line-strong);
}

/* ---------- Before / after gallery (placeholder) ---------- */

.gallery-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-card {
  border: 1px solid var(--line);
  background: var(--surface);
}
.ba-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 4 / 3;
}
.ba-frame .ba-half {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px dashed var(--line-strong);
  position: relative;
}
.ba-frame .ba-half.before { background: repeating-linear-gradient(135deg, var(--surface-2) 0, var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px); }
.ba-frame .ba-half.after { background: repeating-linear-gradient(45deg, var(--surface-2) 0, var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px); }
.gallery-caption {
  padding: 18px 20px;
}
.gallery-caption .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-590);
  display: block;
  margin-bottom: 6px;
}
.gallery-caption p { font-size: 0.88rem; }
.gallery-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 20px;
}

/* ---------- Testimonial wall ---------- */

.testimonial-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.testimonial-card blockquote {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text-dim);
  font-style: normal;
}
.testimonial-card .attribution {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  flex: none;
}
.testimonial-card .attribution-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ---------- Photo hero ---------- */

.photo-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.photo-hero img,
.photo-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10,13,19,0.88) 28%, rgba(10,13,19,0.35) 55%, rgba(10,13,19,0.05) 75%);
}
.photo-hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 72px;
  width: 100%;
}
.photo-hero .wrap {
  max-width: none;
  padding-left: clamp(24px, 4vw, 80px);
  padding-right: 32px;
}
.photo-hero h1 { max-width: 14ch; }
.photo-hero .lede { max-width: 54ch; }

/* ---------- Photo feature blocks ---------- */

.photo-feature {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .photo-feature { grid-template-columns: 1fr 1fr; }
  .photo-feature.reverse .photo-feature-media { order: 2; }
}
.photo-feature-media {
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.photo-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Channel photo strip (product page) ---------- */

.channel-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
}
.channel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Real gallery photo card ---------- */

.photo-card {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.photo-card .frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Studio product cards (light card on dark page) ---------- */

.studio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 760px) {
  .studio-grid { grid-template-columns: 1.3fr 1fr; }
}
.studio-grid.thirds {
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .studio-grid.thirds { grid-template-columns: repeat(3, 1fr); }
}

.studio-card {
  background: #f4f2ee;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.studio-card .studio-frame {
  background: #f4f2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.studio-card.tall .studio-frame { height: 460px; }
.studio-card.short .studio-frame { height: 260px; }
.studio-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.studio-card .studio-caption {
  background: var(--bg);
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.studio-card .studio-caption .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-590);
  display: block;
  margin-bottom: 4px;
}
.studio-card .studio-caption p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ---------- Research citation cards (document preview style) ---------- */

.research-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .research-grid { grid-template-columns: repeat(4, 1fr); }
}
.research-card {
  display: flex;
  flex-direction: column;
}
.research-card .doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.research-card .doc-tag .dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.doc-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  transition: border-color 0.15s ease, transform 0.15s ease;
  background: #f4f2ee;
}
.doc-thumb:hover {
  transform: translateY(-2px);
}
.doc-thumb svg, .doc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.research-card .doc-citation {
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.45;
  margin-top: 10px;
}
.research-card .doc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--yellow-590);
  margin-top: 8px;
}
.research-disclaimer {
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: none;
  margin-top: 28px;
  line-height: 1.6;
}

/* ---------- Simple page-level utility ---------- */

.mt-56 { margin-top: 56px; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.max-60 { max-width: 60ch; }
