
/* ============================================================
   STMGraph — Design System
   Dark Theme · Poppins · Glassmorphism
   ============================================================ */

:root {
  --bg: #16181A;
  --surface: #1F2123;
  --line: #2B2E30;
  --text: #ECECEA;
  --text-muted: #9A9E98;
  --accent: #98C99C;
  --accent-text: #12160F;
  --radius: 10px;
  --sans: 'Poppins', sans-serif;
  --display: 'Poppins', sans-serif;
}

[data-theme="light"] {
  /* Locked dark — no light mode */
  --bg: #16181A;
  --surface: #1F2123;
  --line: #2B2E30;
  --text: #ECECEA;
  --text-muted: #9A9E98;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}

.wrap {
  width: min(1120px, 100%);
  margin: auto;
  padding: 0 20px;
}
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 24, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
nav {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.navlinks {
  display: flex;
  gap: 20px;
  list-style: none;
}
.navlinks a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.navlinks a.active {
  color: var(--accent);
}
.navlinks a:visited {
  color: var(--text-muted);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.contact-btn:hover {
  transform: scale(1.05);
  opacity: 0.85;
}
.contact-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== MENU PILL ===== */
.menu-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.menu-pill:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.menu-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ===== MOBILE MENU PILLS ===== */
.mobile-menu {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: rgba(22, 24, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  z-index: 60;
}
.mobile-menu.open {
  max-height: 340px;
  padding: 14px 20px 18px;
  opacity: 1;
}
.menu-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-pill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.menu-pill-item:hover {
  background: var(--accent);
  color: var(--accent-text);
}
.menu-pill-item.cta {
  background: var(--accent);
  color: var(--accent-text);
  padding: 20px 5px;
  font-size: 12px;
}
.menu-pill-item.cta:hover {
  background: var(--accent);
  opacity: 0.85;
}

.quicknav-backdrop {
  position: fixed;
  inset: 58px 0 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
  z-index: 40;
}
.quicknav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.view {
  display: none;
  animation: fadeUp .3s ease;
}
.view.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

#view-frontdesk.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 58px);
}

.frontdesk-wrap {
  padding: 24px 20px 12px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.frontdesk-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -.03em;
  margin-top: 0;
}
.frontdesk-sub {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 320px;
  margin: 8px auto 0;
  line-height: 1.6;
}

.fd-console {
  width: 100%;
  max-width: 460px;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.fd-console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.fd-console-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.fd-console-bar .fd-console-label {
  margin-left: 6px;
  font-family: var(--display);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.fd-log {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.fd-msg {
  font-size: 13px;
  line-height: 1.55;
  padding: 9px 12px;
  border-radius: 10px;
  max-width: 88%;
}
.fd-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}
.fd-msg.bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
}

.fd-msg.bot.typing-indicator {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 16px;
  min-width: 60px;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.fd-msg.bot.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}
.fd-msg.bot.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}
.fd-msg.bot.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}
.fd-msg.bot.typing-indicator span:nth-child(3) {
  animation-delay: 0s;
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.fd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
  min-height: 40px;
}
.fd-chip {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fd-chip:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.fd-hint {
  padding: 0 14px 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.fd-input-row {
  display: flex;
  gap: 4px;
  padding: 9px 5px;
  border-top: 1px solid var(--line);
}
.fd-input {
  flex: ;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 5px;
  border-radius: 999px;
  outline: none;
}
.fd-send {
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
}
.fd-summary-box {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.7;
  width: 100%;
  word-break: break-word;
}
.fd-summary-box strong {
  color: var(--text);
}
.fd-summary-box .label {
  color: var(--text-muted);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.contact-chip:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  transform: scale(1.05);
}

footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 12px 0;
  padding-bottom: calc(58px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  width: 100%;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.hero {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px 80px;
}
.hero-inner {
  width: min(700px, 100%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 29px;
}
.eyebrow span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.logo {
  font-family: var(--display);
  font-size: clamp(3rem, 14vw, 6.5rem);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.06em;
  margin-bottom: 20px;
  color: var(--text);
}
.tagline {
  font-family: var(--display);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 18px;
}
.lead {
  max-width: 470px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn-secondary:visited {
  color: var(--text);
}
.scroll-hint {
  margin-top: 55px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.arrow {
  font-size: 22px;
}
.scroll-hint a {
  color: var(--text-muted);
  text-decoration: none;
}
.scroll-hint a:visited {
  color: var(--text-muted);
}
.scroll-hint .arrow {
  display: inline-block;
  animation: bounceUpDown 1s ease-in-out infinite;
}

@keyframes bounceUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.scroll-hint:hover .arrow {
  animation-duration: 1s;
}
.section {
  border-top: 1px solid var(--line);
  padding: 75px 0;
}
.section-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 15px;
}
.section-intro {
  max-width: 430px;
  margin: 0 auto 35px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.signal {
  padding: 24px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.signal:last-child {
  border-right: 0;
}
.signal-number {
  font-family: var(--display);
  color: var(--accent);
  font-size: 11px;
  margin-bottom: 22px;
}
.signal h3 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.signal p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.work-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 10px;
  text-align: left;
}
.work-card {
  min-height: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.work-card.small {
  min-height: 110px;
}
.work-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.work-type {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.work-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--display);
  font-size: 13px;
}
.work-card h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 7px;
}
.work-card p {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 360px;
}
.work-link {
  margin-top: 20px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.work-link:visited {
  color: var(--text);
}
.work-side {
  display: grid;
  gap: 10px;
}
.frontdesk-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
}
.frontdesk-orbit {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
  position: relative;
}
.frontdesk-orbit:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  top: -3px;
  right: 8px;
}
.frontdesk-preview h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 9px;
}
.frontdesk-preview p {
  color: var(--text-muted);
  max-width: 370px;
  margin: 0 auto 20px;
  font-size: 12px;
  line-height: 1.7;
}
.frontdesk-link {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.frontdesk-link:visited {
  color: var(--text);
}
.cta {
  border-top: 1px solid var(--line);
  padding: 80px 20px;
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 14px;
}
.cta p {
  max-width: 360px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 700px) {
  .navlinks {
    display: none;
  }
  .hero {
    min-height: calc(100vh - 58px);
    padding-top: 55px;
  }
  .signals {
    grid-template-columns: 1fr;
  }
  .signal {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .signal:last-child {
    border-bottom: 0;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-side {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 450px) {
  .work-side {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}

