/* ============================================================
   Get Up Lab — shared sub-page stylesheet
   Tokens + nav + panel + page chrome that every sub-page uses.
   ============================================================ */

:root {
  --bg: #F5F0E5;
  --bg-soft: #FFE8DC;
  --ink: #16181A;
  --ink-soft: #2A2C2E;
  --line: rgba(22,24,26,0.14);
  --muted: rgba(22,24,26,0.55);
  --card: #FFE8DC;
  --invert-bg: #16181A;
  --invert-ink: #F5F0E5;
  --red:       #FF2E1F;
  --yellow:    #F5C518;
  --cobalt:    #1B1BFF;
  --wasabi:    #A8FF1F;
  --persimmon: #FF2E1F;
  --sand:      #D9CFB8;
  --chrome:    #888780;
  --lavender:  #DCE0FF;
  --lilac:     #DCC9FA;
  --cyan:      #A8DBE8;
  --sage:      #9AB59A;
  --forest:    #0E2A12;
  --display: 'Special Gothic Condensed One', 'Arial Narrow', Arial, sans-serif;
  --sans: 'Inter Tight', Arial, Helvetica, sans-serif;
  --ease-out-elastic: linear(0,.5737 7.6%,.8382 11.87%,.9463 14.19%,1.0292 16.54%,1.0886 18.97%,1.1258 21.53%,1.137 22.97%,1.1424 24.48%,1.1423 26.1%,1.1366 27.86%,1.1165 31.01%,1.0507 38.62%,1.0219 42.57%,.9995 46.99%,.9872 51.63%,.9842 58.77%,1.0011 81.26%,1);
  --ease-out-expo: cubic-bezier(.19,1,.22,1);
}
[data-theme="dark"] {
  --bg: #16181A;
  --bg-soft: #1F2124;
  --ink: #F5F0E5;
  --ink-soft: #D9CFB8;
  --line: rgba(245,240,229,0.16);
  --muted: rgba(245,240,229,0.6);
  --card: #1F2124;
  --invert-bg: #0B0C0D;
  --invert-ink: #F5F0E5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  cursor: auto;
  transition: background-color 0.5s ease, color 0.5s ease;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* ============ Hide numbered eyebrows + serial numbers globally ============ */
.page-eyebrow,
.nav-panel-list .np-num,
.service-card .num,
.section-label { display: none !important; }
.nav-panel-list a { grid-template-columns: 1fr auto !important; }

a, button, .btn { cursor: pointer; }
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 10px 36px;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease-out-expo),
              backdrop-filter 0.5s var(--ease-out-expo),
              -webkit-backdrop-filter 0.5s var(--ease-out-expo),
              border-color 0.5s var(--ease-out-expo),
              padding 0.4s var(--ease-out-expo);
}
nav.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow: 0 4px 24px -12px rgba(0,0,0,0.12);
  padding-top: 8px; padding-bottom: 8px;
}
.logo {
  display: flex; align-items: center; text-decoration: none;
  transform-origin: center;
  transition: transform 0.5s var(--ease-out-expo);
}
.logo:hover { transform: scale(1.03); }
.logo img { height: 60px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-back {
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--ink); color: var(--ink);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: var(--display); font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: 0.8s scale var(--ease-out-elastic), background 0.4s, color 0.4s;
}
.nav-back:hover { scale: 1.04; background: var(--ink); color: var(--bg); }
.nav-back:active { scale: 0.96; }

.nav-more {
  appearance: none; background: transparent;
  border: 1.5px solid var(--ink); color: var(--ink);
  border-radius: 100px; padding: 8px 14px 8px 12px;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: inherit;
  font-family: var(--display); font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: 0.8s scale var(--ease-out-elastic), background 0.4s, color 0.4s, border-color 0.4s;
}
.nav-more:hover { scale: 1.04; background: var(--ink); color: var(--bg); }
.nav-more:active { scale: 0.96; }
.nav-more-bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-more-bars i {
  display: block; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform 0.45s var(--ease-out-elastic), opacity 0.3s;
}
.nav-more.is-open .nav-more-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-more.is-open .nav-more-bars i:nth-child(2) { opacity: 0; }
.nav-more.is-open .nav-more-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center;
  background: var(--ink); border-radius: 100px; border: none;
  padding: 5px; position: relative; height: 46px;
  transition: background 0.5s;
}
.theme-toggle .seg {
  width: 46px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 100px;
  cursor: inherit; position: relative; z-index: 2; padding: 0;
  color: var(--bg); opacity: 0.55;
  transition: 0.8s scale var(--ease-out-elastic), opacity 0.3s, color 0.4s;
}
.theme-toggle .seg svg {
  width: 19px; height: 19px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .seg[aria-pressed="true"] { opacity: 1; color: var(--ink); }
.theme-toggle .knob {
  position: absolute; top: 5px; left: 5px;
  width: 46px; height: 36px;
  background: var(--bg); border-radius: 100px; z-index: 1;
  transition: left 0.4s cubic-bezier(0.65,0,0.35,1), background 0.5s;
}
.theme-toggle[data-active="system"] .knob { left: 51px; }
.theme-toggle[data-active="dark"] .knob { left: 97px; background: var(--wasabi); }
[data-theme="dark"] .theme-toggle[data-active="dark"] .seg[aria-pressed="true"] { color: var(--ink); }
.theme-toggle .seg:active { scale: 0.9 !important; }

/* ============ MORE PANEL ============ */
.nav-scrim {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 99; opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease-out-expo);
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.nav-panel {
  position: fixed; top: 0; right: 0;
  width: min(440px, 92vw); height: 100vh;
  background: var(--bg); z-index: 101;
  padding: 96px 44px 40px;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.7s var(--ease-out-expo);
  box-shadow: -30px 0 80px -20px rgba(0,0,0,0.18);
  border-left: 1px solid var(--line);
}
.nav-panel.is-open { transform: translateX(0); }
.nav-panel-close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: inherit;
  transition: 0.6s scale var(--ease-out-elastic), background 0.3s, color 0.3s;
}
.nav-panel-close:hover { scale: 1.06; background: var(--ink); color: var(--bg); }
.nav-panel-eyebrow {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
}
.nav-panel-list { list-style: none; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.nav-panel-list a {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: baseline; gap: 16px; padding: 18px 4px;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
  transform: none; opacity: 1;
  transition: color 0.3s;
}
.nav-panel.is-open .nav-panel-list a { transform: none; opacity: 1; }
.nav-panel-list li a,
.nav-panel.is-open .nav-panel-list li a { transition-delay: 0s !important; }
.np-num { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); align-self: center; }
.np-text { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); line-height: 1; text-transform: uppercase; }
.np-arrow { display: none; }
@media (any-hover: hover) {
  .nav-panel-list a:hover { transform: translateY(-4px) !important; color: var(--red); }
  .nav-panel-list a:hover .np-arrow { transform: translate(4px,-4px); color: var(--red); }
  .nav-panel-list a:hover .np-num { color: var(--red); }
}
.nav-panel-list a.is-pressed { animation: navItemBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes navItemBounce {
  0%   { transform: translateY(-4px) scale(1); }
  30%  { transform: translateY(2px) scale(0.96); }
  60%  { transform: translateY(-6px) scale(1.03); }
  100% { transform: translateY(-4px) scale(1); }
}
.nav-panel-foot {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
}
.nav-panel-foot a { color: var(--ink); text-decoration: none; }
.nav-panel-foot a:hover { color: var(--red); }
body.nav-open { overflow: hidden; }

@media (max-width: 600px) {
  nav.site-nav { padding: 10px 18px; }
  .logo img { height: 48px; }
  .nav-more-label { display: none; }
  .nav-more { padding: 8px 10px; }
  .nav-back { padding: 6px 14px; font-size: 12px; }
  .theme-toggle { display: none; }
}

/* ============ PAGE FRAME ============ */
main.page {
  padding-top: 120px;
  padding-bottom: 100px;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 36px; padding-right: 36px;
}

.page-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.9; letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 16ch;
}
.page-title .accent-red       { color: var(--red); }
.page-title .accent-cobalt    { color: var(--cobalt); }
.page-title .accent-persimmon { color: var(--persimmon); }
.page-title .accent-wasabi    { color: var(--wasabi); }
.page-title .accent-yellow    { color: var(--yellow); }

.page-lede {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 64px;
  color: var(--ink);
}
.page-lede em { font-style: italic; font-family: var(--sans); color: var(--red); font-weight: 400; }

.page-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border-radius: 100px;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  box-shadow: 0 14px 40px -16px rgba(238,61,42,0.45);
  transition: 0.8s scale var(--ease-out-elastic), background 0.3s, color 0.3s;
}
.page-cta:hover { scale: 1.05; background: var(--ink); color: var(--bg); }
.page-cta:active { scale: 0.95; }

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 36px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); flex-wrap: wrap; gap: 16px;
}
footer.site-footer a { color: var(--ink); text-decoration: none; }
footer.site-footer a:hover { color: var(--red); }
