/* Shared navigation */
#main-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  width: 100%;
  padding: 16px 24px;
  color: #a1a1aa;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#main-nav.scrolled {
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#main-nav > div {
  position: relative;
  z-index: 90;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
#main-nav.scrolled > div {
  background: rgba(0,0,0,.6);
}
#main-nav > div > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: .025em;
}
#main-nav > div > a > span {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #d946ef);
  box-shadow: 0 10px 15px -3px rgba(99,102,241,.3), 0 4px 6px -4px rgba(99,102,241,.3);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}
#main-nav > div > div {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
#main-nav > div > div > a {
  display: block;
  padding: 0;
  color: #a1a1aa;
  transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1);
}
#main-nav > div > div > a:hover,
#main-nav > div > div > a[aria-current="page"] { color: white; }
#main-nav > div > div > a:last-child {
  padding: 10px 20px;
  border-radius: 8px;
  background: white;
  color: black;
  font-weight: 700;
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s cubic-bezier(.4, 0, .2, 1);
}
#main-nav > div > div > a:last-child:hover { background: #e4e4e7; color: black; }
#mobile-menu-btn {
  position: relative;
  z-index: 90;
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}
#mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: white;
  transition: transform .3s ease-out;
}
#mobile-menu-btn span:first-child { transform: translateY(-4px); }
#mobile-menu-btn span:last-child { transform: translateY(4px); }
#mobile-menu-btn.hamburger-active span:first-child { transform: translateY(1px) rotate(45deg); }
#mobile-menu-btn.hamburger-active span:last-child { transform: translateY(-1px) rotate(-45deg); }
#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 75;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(3,3,5,.98);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity .3s;
  font-family: "Inter", sans-serif;
  font-synthesis: none;
}
#mobile-menu-overlay.menu-active { opacity: 1; pointer-events: auto; }
.mobile-menu-links {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}
#mobile-menu-overlay .mobile-menu-item {
  opacity: 0;
  color: #a1a1aa;
  transform: translateY(20px);
  transition: opacity .4s cubic-bezier(.16, 1, .3, 1), transform .4s cubic-bezier(.16, 1, .3, 1), color .15s;
}
#mobile-menu-overlay.menu-active .mobile-menu-item { opacity: 1; transform: translateY(0); }
#mobile-menu-overlay .mobile-menu-item:hover,
#mobile-menu-overlay .mobile-menu-item[aria-current="page"] { color: white; }
#mobile-menu-overlay .mobile-menu-item:last-child {
  width: 100%;
  margin-top: 16px;
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: white;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 15px rgba(255,255,255,.05);
  text-align: center;
}
#mobile-menu-overlay .mobile-menu-item:last-child:hover { background: rgba(255,255,255,.1); }

@media (max-width: 767.98px) {
  #main-nav > div > div { display: none; }
  #mobile-menu-btn { display: flex; }
}

/* Shared footer */
.site-footer { position: relative; z-index: 2; width: 100%; margin-top: auto; padding: 32px 0; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.8); -webkit-backdrop-filter: none; backdrop-filter: none; }
.footer-main { width: min(100%, 1280px); margin: auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px; color: #71717a; font-size: .75rem; font-weight: 500; text-align: center; }
.footer-main p { margin: 0; }

@media (min-width: 768px) {
  .site-footer { padding: 48px 0; }
  .footer-main { flex-direction: row; font-size: .875rem; text-align: left; }
}


:root { --site-accent: #a5b4fc; --site-muted: #a1a1aa; }
body { margin: 0; background: #030305; color: #a1a1aa; font-family: "Inter", sans-serif; line-height: 1.5; }
a { text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
[disabled] { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 5px; }
#main-content:focus { outline: none; }
#main-nav .brand-name { font-size: .85rem; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
#main-nav > div > a { min-height: 44px; gap: 12px; }
#main-nav > div { min-height: 70px; background: rgba(12,12,18,.9); box-shadow: 0 8px 28px #0003; }
#main-nav > div > div > a:not(:last-child) { display: inline-flex; align-items: center; min-height: 44px; }
#main-nav > div > div > a[aria-current="page"]:not(:last-child) { color: #c7d2fe; box-shadow: inset 0 -2px #818cf8; }
#main-nav.scrolled > div { background: rgba(12,12,18,.96); border-color: #ffffff24; }
html.site-menu-open, body.site-menu-open { overflow: hidden; }
#mobile-menu-overlay { visibility: hidden; overflow-y: auto; overscroll-behavior: contain; padding-top: 110px; transition: opacity .2s; }
#mobile-menu-overlay.menu-active { visibility: visible; }
#mobile-menu-overlay .mobile-menu-item { min-height: 44px; display: flex; align-items: center; }
#mobile-menu-overlay .mobile-menu-item:last-child { justify-content: center; max-width: 420px; background: white; color: #030305; }
#mobile-menu-overlay .mobile-menu-item:last-child:hover { background: #e4e4e7; }
#mobile-menu-btn:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 3px; border-radius: 6px; }
.footer-main { align-items: flex-start; gap: 32px; color: #a1a1aa; text-align: left; }
.footer-brand { display: inline-block; color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.footer-main p { font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #d4d4d8; font-size: .875rem; }
.footer-links a:hover { color: #c7d2fe; }
.footer-bottom { max-width: 1280px; margin: 24px auto 0; padding: 24px 24px 0; border-top: 1px solid #ffffff0d; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #a1a1aa; font-size: .75rem; }
.footer-bottom p { margin: 0; }
.site-footer { background: #060608; }
main { scroll-margin-top: 112px; }
main section[id], main article[id], main h2[id], main h3[id] { scroll-margin-top: 112px; }
main, #main-content { will-change: auto; }
.reveal, .story-scene, .service-chapter { will-change: auto; }
.showcase-stage > img { animation: none; transform: none; }
.noise-overlay, .site-atmosphere::after { display: none; }
#fluid-orb, .atmosphere-orb { display: none; }
.not-found-page main { padding-top: 140px; padding-bottom: 80px; min-height: 80svh; }
.showcase-detail main > div:first-child { margin-bottom: 48px; }
.showcase-detail h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.showcase-detail h2 { scroll-margin-top: 112px; }
.showcase-next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; border-top: 1px solid #ffffff1a; padding-top: 28px; }
.showcase-next a { padding: 20px; border: 1px solid #ffffff1a; border-radius: 12px; background: #ffffff04; transition: border-color .2s, background .2s; }
.showcase-next a:hover { border-color: #818cf880; background: #818cf80a; }
.showcase-next small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #a5b4fc; margin-bottom: 10px; }
.showcase-next strong { color: white; font-size: 1rem; }
html:not(.site-js) .reveal, html:not(.site-js) .story-scene, html:not(.site-js) .service-chapter { opacity: 1; transform: none; }
html:not(.site-js) .timeline-stage { display: grid; opacity: 1; visibility: visible; position: relative; }
html:not(.site-js) .timeline-nav, html:not(.site-js) .filter-bar, html:not(.site-js) .belt-controls { display: none; }
@media (max-width: 767.98px) {
  #main-nav { padding: 12px 16px; }
  #main-nav > div { padding: 8px 14px; min-height: 62px; }
  #main-nav .brand-name { font-size: .8rem; }
  .mobile-menu-links { gap: 20px; }
  .footer-main { padding-inline: 24px; }
  .footer-links { justify-content: flex-start; }
  .showcase-next { grid-template-columns: 1fr; }
  html:not(.site-js) #main-nav { position: relative; }
  html:not(.site-js) #main-nav > div { flex-wrap: wrap; gap: 8px; }
  html:not(.site-js) #main-nav > div > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  html:not(.site-js) #mobile-menu-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .story-scene, .service-chapter { opacity: 1 !important; transform: none !important; }
}

*, *::before, *::after { cursor: auto; }
a[href], button, summary, label, select { cursor: pointer; }
input, textarea, [contenteditable="true"] { cursor: text; }
[disabled] { cursor: not-allowed; }
@media (max-width: 480px) {
  .showcase-detail main > header > div:first-child { flex-wrap: wrap; row-gap: 8px; }
}
