* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bg: #0B0F14;
  --surface: #121A22;
  --card: #16212B;
  --card-transparent: rgba(22, 33, 43, 0.72);

  --text: #E6EDF3;
  --muted: #9AA7B2;

  --primary: #2DE2E6;
  --secondary: #3A86FF;

  --border: rgba(255, 255, 255, 0.08);
  --orbit-bg-opacity: 0.42;

  --font-size: 1rem;
}



/* :root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --card: #EEF3F8;

  --text: #0F172A;
  --muted: #52606D;

  --primary: #1D4ED8;
  --secondary: #0EA5E9;

  --border: rgba(15, 23, 42, 0.08);
} */

/* :root {
  --bg: #0E0C0A;
  --surface: #1A1512;
  --card: #241C18;

  --text: #F2E9E4;
  --muted: #B8A9A0;

  --primary: #1B998B;
  --secondary: #D95D39;

  --border: rgba(255,255,255,0.06);
} */

html,
body {
  height: 100%;
  font-size: var(--font-size);
}

body {
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.topbar {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--card-transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.page {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 88px;
  padding-top: 88px;
  padding-bottom: 96px;
  /* Firefox scrollbar colors: thumb then track */
  scrollbar-color: rgba(255, 255, 255, 0.06) #090b12;
  scrollbar-width: thin;
}

/* WebKit-based browsers */
.page::-webkit-scrollbar {
  width: 12px;
}

.page::-webkit-scrollbar-track {
  background: #090b12;
  /* match page background */
}

.page::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 999px;
  border: 3px solid #090b12;
  /* creates padded thumb look */
}

.page::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Make the final contact section size to its content so footer sits directly after it */
#contact {
  height: auto;
  min-height: calc(100vh - 88px);
  align-items: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(92, 148, 255, 0.12), transparent 20%),
    radial-gradient(circle at bottom right, rgba(93, 255, 184, 0.12), transparent 25%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.08), transparent 12%),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.06), transparent 10%);
  pointer-events: none;
  z-index: -3;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: var(--orbit-bg-opacity);
  background-image: url('orbit_v2.svg');
  background-position: right calc(-1 * min(46vmax, 490px)) center;
  background-size: min(92vmax, 980px) auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.bg-grid {
  position: fixed;
  inset: 0;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 100px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 100px);
  background-size: 100px 100px;
}

.page {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

.bg-figures {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.figure {
  position: absolute;
  opacity: 0.12;
}

.figure.square {
  width: clamp(220px, 25vw, 420px);
  height: clamp(220px, 25vw, 420px);
  background: linear-gradient(135deg, var(--primary), var(--surface));
  bottom: 0%;
  right: 24%;
  left: auto;
  opacity: 0.08;
  transform: rotate(18deg);
}

.figure.triangle {
  width: clamp(180px, 28vw, 430px);
  height: clamp(180px, 28vw, 430px);
  background: linear-gradient(135deg, var(--bg), var(--primary));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  top: 10%;
  left: 0;
  left: auto;
  opacity: 0.08;
  transform: rotate(15deg) translateX(0) translateY(0);
}

section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 8vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero {
  text-align: left;
}

.hero-inner {
  max-width: 900px;
  position: relative;
}

.tiny-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 3px solid var(--border);
  color: var(--text);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

h1 {
  font-size: clamp(4rem, 14vw, 9.375rem);
  line-height: 0.88;
  letter-spacing: -5px;
  margin-bottom: 30px;
}

.primary {
  color: var(--primary);
}

.scewed {
  transform: skewY(-6deg);
  display: inline-block;
}

.muted {
  color: var(--muted);
}

.text-center {
  text-align: center !important;
}

.full-width {
  width: 100%;
  max-width: 100%;
}

.subtitle {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.6;
  max-width: 760px;
  color: var(--text);
}

.subtitle strong {
  color: var(--primary);
}

.section-card {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card-transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 2px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

#contact .section-card {
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: clamp(2.375rem, 5vw, 4rem);
  margin-bottom: 18px;
  letter-spacing: -2px;
}

.section-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 780px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.tag {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9375rem;
}

.quote {
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.contact-btn {
  display: inline-block;
  margin-top: 32px;
  text-decoration: none;
  background: var(--secondary);
  color: var(--text);
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(116, 180, 255, 0.22);
  transition: transform 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 360ms cubic-bezier(.2, .9, .2, 1), opacity 280ms ease;
}

.site-footer.visible {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

@keyframes float {
  from {
    transform: translateY(0px) rotate(-3deg);
  }

  to {
    transform: translateY(-25px) rotate(3deg);
  }
}

@keyframes bounce {
  from {
    transform: translateY(0px) rotate(360deg);
  }

  to {
    transform: translateY(200px) rotate(15deg);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size: 0.8rem;
  }

  .topbar-inner {
    padding: 14px 20px;
    gap: 14px;
  }

  .brand {
    letter-spacing: 0.1em;
  }

  .nav-links {
    gap: 18px;
    justify-content: flex-end;
  }

  .nav-links a {
    letter-spacing: 0.08em;
  }

  .tiny-note {
    max-width: 100%;
    gap: 6px;
    padding: 8px 10px;
    font-size: clamp(0.625rem, 2.6vw, 0.8125rem); 
    letter-spacing: 0;
  }

  section {
    height: auto;
    min-height: 100vh;
    padding: 0 20px;
  }

  .section-card {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px;
  }

  .subtitle,
  .section-text {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 100%;
    text-align: left;
  }

  .tags {
    gap: 8px;
    margin-top: 22px;
  }

  .tag {
    padding: 8px 11px;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }

  h1 {
    letter-spacing: -2px;
  }

  body::after {
    background-position: right calc(-1 * min(75vw, 380px)) center;
    background-size: min(150vw, 760px) auto;
  }

  .figure.triangle {
    top: 10%;
    opacity: 0.06;
    transform: rotate(-10deg) translateX(0) translateY(0) scale(1.6);
  }

   .figure.square {
    bottom: -10%;
    right: 10%;
    opacity: 0.06;
    transform: rotate(18deg) scale(1.3);
  }
}
