/* Shared visual layer: optical relay / instrument panel. */
:root {
  --bg: #061215;
  --bg-soft: #0b1d20;
  --panel: rgba(11, 28, 31, 0.88);
  --panel-strong: rgba(6, 18, 21, 0.96);
  --panel-border: rgba(143, 230, 211, 0.2);
  --border: rgba(143, 230, 211, 0.2);
  --text: #f2f8f4;
  --muted: #9cb3af;
  --accent: #79e7d0;
  --accent-2: #c4f4bd;
  --accent-3: #f4b96f;
  --accent-4: #78b6ff;
  --grad: linear-gradient(128deg, #79e7d0 0%, #c4f4bd 100%);
  --grad-soft: linear-gradient(135deg, rgba(121, 231, 208, 0.16), rgba(244, 185, 111, 0.1));
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.34);
  --glow: 0 16px 44px rgba(69, 210, 184, 0.22);
  --radius: 22px;
  --radius-sm: 14px;
  --content: 1240px;
  --font-display: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  color: var(--text);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(121, 231, 208, 0.14), transparent 32%),
    radial-gradient(ellipse at 92% 10%, rgba(244, 185, 111, 0.1), transparent 28%),
    linear-gradient(180deg, #0a1b1e 0%, #061215 58%, #04090b 100%);
  font-family: var(--font-body);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 244, 189, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 244, 189, 0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(30% 38% at 19% 25%, rgba(121, 231, 208, 0.14), transparent 70%),
    radial-gradient(28% 34% at 84% 18%, rgba(244, 185, 111, 0.1), transparent 70%);
  filter: blur(18px);
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

main,
.shell,
.page {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
  position: relative;
  z-index: 1;
}

main {
  display: grid;
  gap: 22px;
}

.topbar {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(8, 24, 27, 0.84);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.brand,
.brand-lockup {
  color: var(--text);
}

.brand-badge,
header .brand img {
  border-radius: 12px;
  border-color: rgba(196, 244, 189, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-copy strong,
.brand strong,
h1,
h2,
h3,
.hero h1,
.hero-copy h1,
.section h2,
.banner h2,
.workspace h2,
.metric strong,
.proof-value,
.step-index,
.timeline-step strong {
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}

.brand-copy span,
.brand > span > span,
.eyebrow,
.kicker,
.label,
.meta,
.metric span,
.module span,
.timeline-step span,
.section-intro > span,
.proof-label,
.signal > span,
.segment > span,
.tech > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
}

.eyebrow,
.hero-copy .eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  line-height: 1.25;
}

.topnav,
.top-actions,
#primary-menu,
.footer-links,
.button-row,
.hero-actions,
.actions,
.viewer-links,
.banner-actions {
  gap: 8px;
}

.button,
.nav-link,
.menu-toggle,
.sample-button,
.home-link {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(143, 230, 211, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.button:hover,
.nav-link:hover,
.sample-button:hover,
.home-link:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 231, 208, 0.62);
  background: rgba(121, 231, 208, 0.1);
  box-shadow: 0 10px 26px rgba(69, 210, 184, 0.12);
}

.button.primary,
.nav-link.primary,
.sample-button.active,
.controls .primary {
  border-color: transparent;
  background: var(--grad);
  color: #06201b;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button.primary:hover,
.nav-link.primary:hover,
.sample-button.active:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 42px rgba(69, 210, 184, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.button:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible,
.sample-button:focus-visible,
.home-link:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(244, 185, 111, 0.72);
  outline-offset: 3px;
}

.hero,
.section,
.banner,
.card,
.preview,
.workspace {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(121, 231, 208, 0.045), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero,
.section,
.banner,
.card,
.preview,
.workspace {
  padding: 26px;
}

.hero {
  overflow: hidden;
}

.hero::after {
  background: radial-gradient(circle, rgba(121, 231, 208, 0.17), transparent 70%);
}

.hero-layout,
.layout,
.workspace,
.workspace-grid,
.main {
  gap: 22px;
}

.hero h1,
.hero-copy h1,
.card h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.96;
}

.hero p,
.section p,
.banner p,
.card p,
.preview p,
.workspace p,
.hero-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.section h2,
.banner h2,
.workspace h2 {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.04;
}

.panel-card,
.summary-box,
.metric,
.signal,
.proof,
.step,
.segment,
.tech,
.timeline-step,
.fit-card,
.benefit,
.story,
.note,
.policy-card,
.mini-card,
.callout,
.control,
.progress-card,
.controls,
.log-card,
.result,
.fact,
.preview-frame,
.viewer-shell {
  border: 1px solid rgba(143, 230, 211, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(5, 18, 21, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.panel-card,
.summary-box,
.metric,
.signal,
.proof,
.step,
.segment,
.tech,
.timeline-step,
.fit-card,
.benefit,
.story,
.note,
.policy-card,
.mini-card,
.callout,
.control,
.progress-card,
.controls,
.log-card,
.result {
  padding: 18px;
}

.metric strong,
.proof-value,
.signal strong,
.step-index {
  color: var(--text);
}

.metric strong,
.proof-value {
  font-size: clamp(1.22rem, 2vw, 1.75rem);
}

.step-index {
  color: var(--accent-3);
}

select,
input[type="text"],
input[type="number"],
input[type="file"] {
  border: 1px solid rgba(143, 230, 211, 0.2);
  border-radius: 9px;
  background: rgba(3, 13, 15, 0.72);
  color: var(--text);
  font: inherit;
}

select,
input[type="text"],
input[type="number"] {
  min-height: 42px;
  padding: 9px 11px;
}

input[type="range"] {
  accent-color: var(--accent);
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

.progress-track,
.bar {
  border: 1px solid rgba(143, 230, 211, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.progress-fill,
.bar span,
#fill,
#progressFill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px rgba(121, 231, 208, 0.34);
}

.viewer,
#sample-image,
#fullscreen-image,
video {
  border-radius: 12px;
}

footer,
.footer {
  color: var(--muted);
  font-size: 0.84rem;
}

footer a,
.footer a {
  color: var(--muted);
}

footer a:hover,
.footer a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
}

@media (max-width: 920px) {
  .hero-layout,
  .layout,
  .workspace,
  .workspace-grid,
  .main {
    grid-template-columns: 1fr;
  }

  .control-column {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 860px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    min-width: 76px;
    justify-self: end;
  }

  .topbar .topnav,
  .topbar #primary-menu,
  .topbar .top-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar.menu-open .topnav,
  .topbar.menu-open #primary-menu,
  .topbar.menu-open .top-actions,
  .topbar nav.open {
    display: flex;
  }
}

@media (max-width: 720px) {
  main,
  .shell,
  .page {
    width: min(var(--content), calc(100% - 20px));
    padding-top: 10px;
    padding-bottom: 30px;
    gap: 14px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
    position: static;
  }

  .menu-toggle {
    display: inline-flex;
    min-width: 76px;
    justify-self: end;
  }

  .topbar .topnav,
  .topbar #primary-menu,
  .topbar .top-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar.menu-open .topnav,
  .topbar.menu-open #primary-menu,
  .topbar.menu-open .top-actions,
  .topbar nav.open {
    display: flex;
  }

  .nav-link,
  .button,
  .sample-button,
  .home-link {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .section,
  .banner,
  .card,
  .preview,
  .workspace {
    padding: 20px;
    border-radius: 18px;
  }

  .hero h1,
  .hero-copy h1,
  .card h1 {
    max-width: none;
    font-size: clamp(2.35rem, 13vw, 3.9rem);
  }

  .hero-actions,
  .button-row,
  .actions,
  .viewer-links,
  .banner-actions,
  footer,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar .brand-copy span,
  .brand > span > span {
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .viewer-shell,
  .preview-frame {
    min-height: 280px;
  }

  .zoom-control {
    width: 62px;
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Light editorial theme: calm, bright, and deliberately restrained. */
:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --bg-soft: #edf2ef;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --panel-border: rgba(25, 55, 50, 0.12);
  --border: rgba(25, 55, 50, 0.14);
  --text: #172522;
  --muted: #62716d;
  --accent: #176d65;
  --accent-2: #d5ae70;
  --accent-3: #b27b3c;
  --accent-4: #4c7890;
  --grad: linear-gradient(135deg, #176d65 0%, #2c887b 100%);
  --grad-soft: linear-gradient(135deg, rgba(23, 109, 101, 0.08), rgba(213, 174, 112, 0.10));
  --shadow: 0 18px 42px rgba(35, 58, 51, 0.09);
  --glow: 0 12px 28px rgba(23, 109, 101, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
}

html {
  background: var(--bg) !important;
}

body {
  color: var(--text) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 109, 101, 0.06), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(213, 174, 112, 0.09), transparent 24%),
    linear-gradient(180deg, #fcfdfc 0%, #f4f7f5 100%) !important;
}

body.fullscreen-viewer-page {
  background: #ffffff !important;
}

body::before {
  display: none !important;
}

body::after {
  inset: -20%;
  background:
    radial-gradient(26% 30% at 15% 18%, rgba(23, 109, 101, 0.06), transparent 70%),
    radial-gradient(24% 28% at 84% 12%, rgba(213, 174, 112, 0.07), transparent 70%) !important;
  filter: blur(24px) !important;
  opacity: 0.85;
  animation: none !important;
}

a {
  color: var(--accent);
}

.topbar,
.hero,
.section,
.banner,
.card,
.preview,
.workspace {
  border-color: var(--panel-border) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
}

.topbar {
  border-radius: 14px !important;
}

.brand,
.brand-lockup,
.brand-copy strong,
.brand strong {
  color: var(--text) !important;
}

.brand-copy span,
.brand > span > span,
.eyebrow,
.kicker,
.label,
.meta,
.metric span,
.module span,
.timeline-step span,
.section-intro > span,
.proof-label,
.signal > span,
.segment > span,
.tech > span {
  color: var(--muted) !important;
}

h1,
h2,
h3,
h4,
.hero h1,
.hero-copy h1,
.card h1,
.section h2,
.banner h2,
.workspace h2,
.metric strong,
.proof-value,
.step-index,
.timeline-step strong {
  color: var(--text) !important;
}

.hero h1,
.hero-copy h1,
.card h1,
h1 {
  background: none !important;
  -webkit-text-fill-color: var(--text) !important;
}

.hero::after {
  background: radial-gradient(circle, rgba(23, 109, 101, 0.07), transparent 70%) !important;
}

.panel-card,
.summary-box,
.metric,
.signal,
.proof,
.step,
.segment,
.tech,
.timeline-step,
.fit-card,
.benefit,
.story,
.note,
.policy-card,
.mini-card,
.callout,
.control,
.progress-card,
.controls,
.log-card,
.result,
.fact,
.preview-frame,
.viewer-shell {
  border-color: rgba(25, 55, 50, 0.11) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 8px 24px rgba(35, 58, 51, 0.045) !important;
}

.hero p,
.section p,
.banner p,
.card p,
.preview p,
.workspace p,
.hero-copy p,
p,
li,
.details,
.status,
footer,
.footer {
  color: var(--muted) !important;
}

.button,
.nav-link,
.menu-toggle,
.sample-button,
.home-link {
  border-color: rgba(25, 55, 50, 0.16) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--text) !important;
  box-shadow: 0 3px 10px rgba(35, 58, 51, 0.04) !important;
}

.button:hover,
.nav-link:hover,
.sample-button:hover,
.home-link:hover {
  border-color: rgba(23, 109, 101, 0.42) !important;
  background: #f3f9f7 !important;
  box-shadow: 0 8px 20px rgba(23, 109, 101, 0.10) !important;
}

.button.primary,
.nav-link.primary,
.sample-button.active,
.controls .primary {
  border-color: transparent !important;
  background: var(--grad) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(23, 109, 101, 0.18) !important;
}

.button.primary:hover,
.nav-link.primary:hover,
.sample-button.active:hover {
  background: #125e58 !important;
  filter: none !important;
}

.pill {
  border-color: rgba(23, 109, 101, 0.16) !important;
  background: #f0f7f4 !important;
  color: var(--accent) !important;
}

.button:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible,
.sample-button:focus-visible,
.home-link:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline-color: rgba(178, 123, 60, 0.62) !important;
}

select,
input[type="text"],
input[type="number"],
input[type="file"] {
  border-color: rgba(25, 55, 50, 0.18) !important;
  background: #ffffff !important;
  color: var(--text) !important;
}

input[type="range"],
input[type="checkbox"] {
  accent-color: var(--accent) !important;
}

.progress-track,
.bar {
  border-color: rgba(25, 55, 50, 0.10) !important;
  background: #e7eeeb !important;
}

.progress-fill,
.bar span,
#fill,
#progressFill {
  background: linear-gradient(90deg, var(--accent), #73b99d) !important;
  box-shadow: none !important;
}

button.danger,
.button.danger {
  border-color: rgba(166, 67, 67, 0.28) !important;
  background: #fff1f0 !important;
  color: #8d3030 !important;
}

.viewer .camera-placeholder strong {
  color: #f5faf8 !important;
}

.viewer .camera-placeholder span,
.viewer .badge {
  color: rgba(239, 248, 245, 0.76) !important;
}

.viewer .badge {
  border-color: rgba(239, 248, 245, 0.18) !important;
  background: rgba(7, 25, 28, 0.62) !important;
}

.viewer .badge strong {
  color: #f5faf8 !important;
}

code,
pre {
  color: #24443d;
  background: #eef4f1;
  border-color: rgba(25, 55, 50, 0.10);
}

footer a,
.footer a {
  color: var(--muted) !important;
}

footer a:hover,
.footer a:hover {
  color: var(--accent) !important;
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--muted) !important;
  font-size: 0.84rem;
  line-height: 1.55;
}
