/* Font:
   If you have La Nord Light as a file, add @font-face here.
   Otherwise it will fallback.
*/
@font-face {
  font-family: "La Nord";
  src: url("./fonts/LaNord-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
:root {
  --text: #ffffff;
  --ease: cubic-bezier(0.22, 0.03, 0.26, 1);
  --t: 700ms;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; } /* backup; JS also uses smooth */
body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  overflow-x: hidden;
  font-family: "La Nord", "La_Nord", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Background layer */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-rect {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  will-change: top, opacity, background-color;
  transition: top 2.5s var(--ease), opacity 2.5s var(--ease), background-color 2.5s var(--ease);
}
.rect1 {
  width: 1400px;
  height: 900px;
  filter: blur(150px);
  top: 25%;
  opacity: 0.9;
  background: rgba(30, 41, 59, 0.95);
}
.rect2 {
  width: 1300px;
  height: 800px;
  filter: blur(140px);
  top: 30%;
  opacity: 0.85;
  background: rgba(51, 65, 85, 0.9);
}
.rect3 {
  width: 1200px;
  height: 700px;
  filter: blur(130px);
  top: 35%;
  opacity: 0.8;
  background: rgba(71, 85, 105, 0.85);
}

/* Foreground app */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Navigation */
.nav {
  position: fixed;
  left: 50%;
  top: 35px;
  transform: translateX(-50%);
  z-index: 50;

  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 60px;
  align-items: start;
}

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;

  color: var(--text);
  font-size: 20px;
  font-family: "La Nord", "La_Nord", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 300;
  line-height: normal;
  cursor: pointer;

  transition: opacity var(--t) var(--ease);
}
.nav-link:hover { opacity: 0.7; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.icon-link { display: inline-flex; transition: opacity var(--t) var(--ease); }
.icon-link img { display: block; width: 24px; height: 24px; }
.icon-link:hover { opacity: 0.7; }

/* Scroll Arrow */
.scroll-arrow {
  position: fixed;
  left: 50%;
  top: 625px;
  transform: translateX(-50%);
  z-index: 40;

  width: 100px;
  height: 45px;
  padding: 0 20px;
  border-radius: 50px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "La Nord", "La_Nord", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 300;
  cursor: pointer;

  transition: transform var(--t) var(--ease);
  will-change: transform;
}
.scroll-arrow:hover { transform: translateX(-50%) scale(1.1); }

.scroll-arrow-border {
  position: absolute;
  inset: -1px;
  border: 2px solid #fff;
  border-radius: 51px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  animation: arrow-reveal 0.9s ease-out 0.15s forwards;
}

.scroll-arrow-text {
  display: inline-block;
  font-size: 39px;
  line-height: 45px;
  width: 31px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: arrow-reveal 0.9s ease-out 0.2s forwards;
}

/* Page sizing (matches your absolute layout feeling) */
.page { position: relative; }
.spacer {
  position: relative;
  width: 100%;
  min-height: 2800px;
}

/* Sections mimic your top offsets */
.section { position: relative; width: 100%; }

.section-1 { min-height: 600px; }
.hero {
  position: absolute;
  top: 250px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 808px;

  font-size: 39px;
  text-align: center;
  line-height: normal;
}

.section-2 {
  min-height: 700px;
  top: 600px;
}
.list-wrap {
  position: absolute;
  top: 200px;
  left: 300px;
  --fade-translate-x: -30px;
  width: 532px;
}

.ul { display: flex; flex-direction: column; gap: 0px; }
.li-title {
  height: 32px;
  font-size: 20px;
  line-height: normal;
}
.li {
  display: flex;
  gap: 0px;
  font-size: 20px;
  line-height: normal;
}
.dash { width: 36px; flex: 0 0 36px; }
.li-empty { height: 32px; }
.li-spacer { height: 24px; }

.section-3 {
  min-height: 800px;
  top: 1300px;
}

.tagline {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 1084px;

  font-size: 70px;
  text-align: center;
  line-height: 1.05;
}

.contact {
  position: absolute;
  top: 350px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 457px;

  font-size: 20px;
  text-align: center;
  line-height: 1.4;
}
.contact-text { margin: 0; }
.contact-link {
  display: block;
  color: #fff;
  text-decoration: none;
  line-height: inherit;
  transition: opacity var(--t) var(--ease);
}
.contact-link:hover { opacity: 0.7; }

/* Fade-in like whileInView */
.fade-in {
  --fade-translate-x: 0px;
  opacity: 0;
  transform: translateX(var(--fade-translate-x)) translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: 0ms;
  will-change: opacity, transform;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateX(var(--fade-translate-x)) translateY(0);
}

@keyframes arrow-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-rect { transition: none; }
  .fade-in { transition: none; opacity: 1; transform: translateX(var(--fade-translate-x)) translateY(0); }
  .scroll-arrow { transition: none; }
  .scroll-arrow-border, .scroll-arrow-text {
    animation: none;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-link, .contact-link, .icon-link { transition: none; }
}
