/* Next Horizon — The AI Core (OLED Dark Mode) */
:root {
  --bg: #050505;          /* OLED Black */
  --bg-2: #0B0B0F;        /* Slightly elevated slate/black */
  --ink: #FFFFFF;         /* Pure white text */
  --ink-2: #E2E8F0;       /* Off-white text */
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --mute: rgba(255, 255, 255, 0.55);
  --mute-2: rgba(255, 255, 255, 0.4);
  --accent: #06B6D4;      /* Electric Cyan */
  --accent-purple: #8B5CF6; /* Aurora Purple */
  --accent-pink: #EC4899;   /* Aurora Pink */

  --dark-bg: #0A0A0A;
  --dark-text: #FFFFFF;
  --dark-mute: rgba(255, 255, 255, 0.55);
  --dark-line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

.serif {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* layout */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }
}

/* section tag like /OUR VISION/ */
.tag {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  display: inline-block;
}

.tag.on-dark {
  color: var(--dark-mute);
}

/* H scale — big and editorial */
.h-mega {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
}

.h-section {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.h-card {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.h-sm {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0;
}

.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--mute);
  max-width: 56ch;
  text-wrap: pretty;
}

.lede.on-dark {
  color: var(--dark-mute);
}

/* italic flourish for headlines (Opus uses italic serif inside the heading) */
.italic {
  font-style: italic;
}

/* button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  font: 500 15px/1 'Geist', system-ui, sans-serif;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: default;
  transition: transform 220ms ease, background 220ms, border-color 220ms, color 220ms, box-shadow 220ms;
  white-space: nowrap;
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover {
  background: var(--ink-2);
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.btn-ghost {
  border-color: transparent;
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn .arr {
  display: inline-flex;
  transition: transform 220ms;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: currentColor;
  align-items: center;
  justify-content: center;
}

.btn .arr svg {
  color: var(--bg);
}

.btn-light .arr svg,
.btn-ghost .arr svg {
  color: var(--bg);
}

.btn-light:hover .arr svg {
  color: var(--ink);
}

.btn:hover .arr {
  transform: translateX(2px);
}

/* simple sections */
.sec {
  padding: 140px 0;
}

@media (max-width: 720px) {
  .sec {
    padding: 80px 0;
  }
}

.sec-tight {
  padding: 100px 0;
}

.sec-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

/* divider */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.divider-dark {
  background: var(--dark-line);
}

/* services */
@media (max-width: 720px) {
  .services-list:hover .service-row:not(:hover) {
    opacity: 1 !important;
    filter: none !important;
  }

  .service-row {
    padding: 24px 0 !important;
  }

  .service-row-inner {
    grid-template-columns: 34px minmax(0, 1fr) 40px !important;
    gap: 14px 12px !important;
    align-items: start !important;
  }

  .service-row-number {
    padding-top: 5px;
    font-size: 12px !important;
    line-height: 1;
  }

  .service-row-title {
    grid-column: 2;
    font-size: clamp(23px, 7vw, 28px) !important;
    line-height: 1.08 !important;
    transform: none !important;
  }

  .service-row-description {
    grid-column: 2 / -1;
    max-width: none !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .service-row-action {
    grid-column: 3;
    grid-row: 1;
  }

  .service-row-action span {
    width: 40px !important;
    height: 40px !important;
  }
}

/* reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.r-d-1 {
  transition-delay: 80ms;
}

.r-d-2 {
  transition-delay: 160ms;
}

.r-d-3 {
  transition-delay: 240ms;
}

.r-d-4 {
  transition-delay: 320ms;
}

/* word-by-word headline */
.sw-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 0.92;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  padding-right: 0.05em;
  margin-right: -0.04em;
}

.sw-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.2, 0.85, 0.25, 1), opacity 700ms ease;
  will-change: transform;
}

.sw-root.in .sw-inner {
  transform: translateY(0);
  opacity: 1;
}

/* marquee */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .marquee {
    padding: 16px 0;
  }
}

.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}

.marquee-track>span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* nav */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 30;
  padding: 14px 24px;
  border-radius: 999px;
  transition: background 300ms, backdrop-filter 300ms, border-color 300ms, box-shadow 300ms;
  border: 1px solid transparent;
  animation: navAppear 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand>span {
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.nav-brand>span>span {
  color: var(--mute);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background 200ms, color 200ms;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  padding: 12px 16px 12px 20px;
  font-size: 14px;
}

.nav-menu-button {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.nav-menu-button span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 220ms ease, top 220ms ease;
}

.nav-menu-button span:first-child {
  top: 17px;
}

.nav-menu-button span:last-child {
  top: 25px;
}

.nav.menu-open .nav-menu-button span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav.menu-open .nav-menu-button span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

@keyframes navAppear {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 980px) {
  .nav {
    padding: 10px 14px;
  }

  .nav-inner {
    gap: 10px;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .nav-cta {
    padding: 11px 14px 11px 16px;
  }
}

@media (max-width: 767px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 10px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-radius: 28px;
  }

  .nav.menu-open {
    bottom: 12px;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
  }

  .nav.menu-open .nav-inner {
    height: 100%;
    align-content: start;
    grid-template-rows: 44px auto auto;
  }

  .nav-brand {
    min-width: 0;
  }

  .nav-brand>span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links,
  .nav-cta {
    grid-column: 1 / -1;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: max-height 260ms ease, margin-top 220ms ease, opacity 180ms ease;
  }

  .nav-links a {
    min-height: 48px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 18px;
  }

  .nav-cta {
    display: none;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    padding: 15px 18px;
  }

  .nav-menu-button {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .nav.menu-open .nav-links {
    max-height: none;
    margin-top: 28px;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav.menu-open .nav-cta {
    display: inline-flex;
  }
}

/* Aurora Glow */
.aurora-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite alternate;
}

.aurora-1 {
  background: var(--accent-purple);
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
}

.aurora-2 {
  background: var(--accent);
  width: 500px;
  height: 500px;
  top: 20%;
  right: -100px;
  animation-delay: -5s;
}

.aurora-3 {
  background: var(--accent-pink);
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}



/* tweaks */
.twk-panel {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif !important;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .sw-inner {
    transform: none !important;
    opacity: 1 !important;
  }

  .marquee-track {
    animation: none !important;
  }
}
