:root {
  --black: #080808;
  --white: #f5f0eb;
  --grey: #888070;
  --grey-light: #c8c0b0;
  --border: rgba(245, 240, 235, 0.08);
  --border-h: rgba(245, 240, 235, 0.18)
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  transition: opacity 0.8s ease
}

#loader.hide {
  opacity: 0;
  pointer-events: none
}

.li {
  display: flex;
  align-items: flex-end;
  opacity: 0;
  animation: fup 0.5s ease 0.3s forwards
}

.la {
  width: 32px;
  height: 56px;
  background: var(--white);
  border-radius: 8px;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: sci 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards
}

.lb {
  width: 32px;
  height: 44px;
  background: var(--white);
  border-radius: 8px;
  margin-left: -14px;
  opacity: 0.28;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: sci 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards
}

.lw {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  animation: fup 0.7s ease 1s forwards
}

.lt {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0;
  animation: fup 0.6s ease 1.3s forwards
}

.lp {
  width: 130px;
  height: 1px;
  background: rgba(245, 240, 235, 0.1);
  overflow: hidden;
  opacity: 0;
  animation: fup 0.4s ease 1.5s forwards
}

.lpf {
  height: 100%;
  background: var(--white);
  width: 0;
  animation: pfill 1.1s ease 1.6s forwards
}

@keyframes fup {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes sci {
  to {
    transform: scaleY(1)
  }
}

@keyframes pfill {
  to {
    width: 100%
  }
}

/* SCROLL PROGRESS */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--white);
  z-index: 9998;
  transition: width 0.05s linear;
  transform-origin: left
}

/* CURSOR GLOW */
#cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 240, 235, 0.035) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0
}

/* BG CANVAS */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent
}

nav.sc {
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  padding: 16px 48px
}

.nl {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.ni {
  display: flex;
  align-items: flex-end
}

.nia {
  width: 12px;
  height: 20px;
  background: var(--white);
  border-radius: 3px
}

.nib {
  width: 12px;
  height: 15px;
  background: var(--white);
  border-radius: 3px;
  margin-left: -4px;
  opacity: 0.28
}

.nn {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--white)
}

.nls {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none
}

.nls a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--grey-light);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s
}

.nls a:hover {
  color: var(--white)
}

.ncta {
  background: var(--white) !important;
  color: var(--black) !important;
  padding: 10px 22px !important;
  border-radius: 2px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important
}

.ncta:hover {
  opacity: 0.85 !important
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
  opacity: 0
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg)
}

.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 499;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px
}

.mob-menu.open {
  display: flex
}

.mob-menu a {
  font-size: 32px;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block
}

.mob-menu a:hover {
  color: var(--grey-light);
  transform: translateX(6px)
}

.mob-cta {
  font-size: 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  background: var(--white) !important;
  color: var(--black) !important;
  padding: 14px 36px !important;
  border-radius: 2px !important
}

/* ALL CONTENT ABOVE BG */
nav,
#hero,
#stats,
#features,
#scn,
#about,
#demo,
#contact,
footer,
.mob-menu {
  position: relative;
  z-index: 1
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 80px;
  overflow: hidden
}

#hcanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0
}

.hgrid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 240, 235, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 240, 235, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none
}

.hvign {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 20% 50%, transparent 30%, rgba(8, 8, 8, 0.6) 80%);
  pointer-events: none
}

.hero-content {
  position: relative;
  z-index: 1
}

.hlbl {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fup 0.7s ease 2.9s forwards
}

.hh1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(54px, 8.5vw, 114px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -2.5px;
  color: var(--white);
  max-width: 860px;
  opacity: 0;
  transform: translateY(30px);
  animation: fup 0.9s ease 3s forwards
}

.hh1 em {
  font-style: italic;
  color: var(--grey-light)
}

.hbot {
  margin-top: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fup 0.7s ease 3.2s forwards
}

.hdesc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey-light);
  max-width: 380px
}

.hbtns {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0
}

.bp {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 16px 36px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s
}

.bp:hover {
  opacity: 0.85;
  transform: translateY(-1px)
}

.bg {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--grey-light);
  text-decoration: none;
  border-bottom: 1px solid var(--grey);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, letter-spacing 0.3s
}

.bg:hover {
  color: var(--white);
  border-color: var(--white);
  letter-spacing: 2.4px
}

/* STATS */
#stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.st {
  padding: 72px 52px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: default
}

.st::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 235, 0.0);
  transition: background 0.4s ease
}

.st:hover::before {
  background: rgba(245, 240, 235, 0.025)
}

.st:last-child {
  border-right: none
}

.stn {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1)
}

.st:hover .stn {
  transform: scale(1.04) translateY(-2px)
}

.stl {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grey-light)
}

/* FEATURES */
#features {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.fl {
  padding: 120px 48px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.fr {
  padding: 80px 48px
}

.slbl {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 22px
}

.sh {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--white)
}

.sh em {
  font-style: italic;
  color: var(--grey-light)
}

.fi {
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease, background 0.3s ease;
  border-radius: 2px;
  cursor: default
}

.fi:first-child {
  padding-top: 0
}

.fi:last-child {
  border-bottom: none
}

.fi:hover {
  padding-left: 12px
}

.fn {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--grey);
  margin-bottom: 16px;
  transition: color 0.2s
}

.fi:hover .fn {
  color: var(--grey-light)
}

.ft {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.2;
  transition: color 0.2s
}

.fi:hover .ft {
  color: var(--white)
}

.fd {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey-light)
}

/* SPLIT TEXT — word by word animation */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom
}

.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease
}

.split-ready .split-word-inner {
  transform: translateY(0);
  opacity: 1
}

/* CHAR ANIMATION */
.split-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom
}

.split-char-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease
}

.split-char-ready .split-char-inner {
  transform: translateY(0);
  opacity: 1
}

/* LINE DRAW */
.line-draw {
  position: relative;
  overflow: hidden
}

.line-draw::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grey-light);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1)
}

.line-draw.on::after {
  width: 100%
}

/* 3D SCENE */
#scn {
  height: 480px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center
}

#scanv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.scntxt {
  position: relative;
  z-index: 2;
  text-align: center
}

.scntxt h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--white)
}

.scntxt h2 em {
  font-style: italic;
  color: var(--grey-light)
}

.scntxt p {
  font-size: 13px;
  font-weight: 300;
  color: var(--grey-light);
  margin-top: 14px;
  letter-spacing: 0.5px
}

/* ABOUT */
#about {
  padding: 140px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center
}

.av {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 36px;
  transition: border-color 0.3s, box-shadow 0.3s
}

.av:hover {
  border-color: rgba(245, 240, 235, 0.4);
  box-shadow: 0 0 28px rgba(245, 240, 235, 0.06)
}

.aname {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 6px
}

.arole {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 36px
}

.abio {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--grey-light)
}

.abio p {
  margin-bottom: 18px
}

.abio p:last-child {
  margin-bottom: 0
}

.acard {
  background: rgba(245, 240, 235, 0.03);
  border: 1px solid var(--border);
  padding: 36px 40px;
  margin-bottom: 2px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1)
}

.acard:hover {
  background: rgba(245, 240, 235, 0.06);
  border-color: var(--border-h);
  transform: translateX(6px)
}

.aclbl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px
}

.acval {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3
}

/* DIV */
.div {
  height: 1px;
  background: var(--border)
}

/* DEMO + CONTACT */
#demo,
#contact {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start
}

.fstack {
  display: flex;
  flex-direction: column
}

.frow {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s
}

.frow:first-child {
  border-top: 1px solid var(--border)
}

.frow:focus-within {
  border-color: var(--border-h)
}

.flbl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s
}

.frow:focus-within .flbl {
  color: var(--grey-light)
}

.finp,
.fsel {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  width: 100%;
  padding: 4px 0;
  appearance: none
}

.finp::placeholder {
  color: rgba(245, 240, 235, 0.18)
}

.fsel option {
  background: #1a1a1a
}

.fsub {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: none;
  padding: 18px 40px;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  width: fit-content
}

.fsub:hover {
  opacity: 0.85;
  transform: translateY(-2px)
}

.fsub .ar {
  transition: transform 0.2s
}

.fsub:hover .ar {
  transform: translateX(6px)
}

.cdets {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 26px
}

.cdlbl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px
}

.cdval {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s, letter-spacing 0.3s;
  display: block
}

.cdval:hover {
  color: var(--grey-light);
  letter-spacing: 0.5px
}

/* FOOTER */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.fcopy {
  font-size: 12px;
  font-weight: 300;
  color: var(--grey)
}

.fls {
  display: flex;
  gap: 32px;
  list-style: none
}

.fls a {
  font-size: 12px;
  font-weight: 300;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s
}

.fls a:hover {
  color: var(--white)
}

/* REVEAL */
.rev {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1)
}

.rev.on {
  opacity: 1;
  transform: translateY(0)
}

/* PARALLAX LAYER */
.parallax-layer {
  will-change: transform
}

/* RESPONSIVE */
.hamburger {
  display: none
}

@media(max-width:900px) {
  nav {
    padding: 20px 24px
  }

  .nls {
    display: none
  }

  .hamburger {
    display: flex
  }

  #hero {
    padding: 56px 24px 48px;
    min-height: 100svh;
    justify-content: center
  }

  .hh1 {
    font-size: clamp(40px, 10vw, 56px);
    letter-spacing: -1.5px
  }

  .hbot {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px
  }

  .hbtns {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px
  }

  #stats {
    grid-template-columns: 1fr
  }

  .st {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 40px 24px
  }

  .stn {
    font-size: 60px
  }

  #features {
    grid-template-columns: 1fr
  }

  .fl {
    position: static;
    height: auto;
    padding: 64px 24px 36px;
    border-right: none;
    border-bottom: 1px solid var(--border)
  }

  .fr {
    padding: 32px 24px 64px
  }

  .fi {
    padding: 32px 0
  }

  .fi:hover {
    padding-left: 0
  }

  #scn {
    height: 300px
  }

  .scntxt h2 {
    font-size: clamp(30px, 8vw, 48px)
  }

  #about,
  #demo,
  #contact {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 24px
  }

  .aname {
    font-size: 32px
  }

  footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 36px 24px
  }

  .fls {
    flex-wrap: wrap;
    gap: 20px
  }

  #cursor-glow {
    display: none
  }
}

@media(max-width:480px) {
  .hh1 {
    font-size: 36px;
    letter-spacing: -1px
  }

  .stn {
    font-size: 52px
  }

  .sh {
    font-size: 28px
  }

  nav {
    padding: 16px 20px
  }
}