@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500&display=swap');

:root{
  --ink: #EDEAE0;
  --ink-dim: #9A9CAE;
  --base: #0B0C13;
  --panel: #14151F;
  --panel-2: #191B28;
  --line: #2B2D3D;
  --gold: #6FA0D6;
  --gold-soft: #A9BBD1;
  --gold-glow: rgba(111, 160, 214, 0.35);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0;
}

a{ color: var(--gold); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap{
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

#field{
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}

.grain{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header.site{
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  backdrop-filter: blur(6px);
}

header.site .wrap{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.brand{
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand span{ color: var(--gold); }

nav.site a{
  color: var(--ink-dim);
  margin-left: 22px;
  font-size: 15px;
  transition: color .2s ease;
}
nav.site a:first-child{ margin-left: 0; }
nav.site a:hover{ color: var(--gold); text-decoration: none; }

main{ position: relative; z-index: 2; padding: 0 0 40px; }

/* ---------- intro letter reveal ---------- */
.intro-hero{
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  perspective: 1400px;
}

.brand-reveal{
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
  will-change: transform;
}

.brand-reveal .line{
  display: block;
  white-space: nowrap;
  line-height: 1.02;
}

.brand-reveal .letter{
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(46px, 12vw, 128px);
  letter-spacing: 0.01em;
  background: linear-gradient(160deg, #F4F7FA 0%, #C7D3DE 18%, #6D8AAE 42%, #22334A 58%, #C7D3DE 80%, #F4F7FA 100%);
  background-size: 260% 260%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(60, 96, 150, 0.35));
  opacity: 0;
  transform: perspective(900px) rotateY(75deg) translateZ(-80px) translateY(24px);
  animation:
    letterIn .75s cubic-bezier(.16,.9,.3,1) forwards,
    letterShine 5s ease-in-out 2.6s infinite;
  animation-delay: calc(var(--i) * 85ms), calc(2.6s + var(--i) * 85ms);
}

@keyframes letterIn{
  0%{
    opacity: 0;
    transform: perspective(900px) rotateY(75deg) translateZ(-80px) translateY(24px);
  }
  55%{ opacity: 1; }
  100%{
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) translateZ(0) translateY(0);
    background-position: 0% 50%;
  }
}

@keyframes letterShine{
  0%, 100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

@media (max-width: 640px){
  .brand-reveal .letter{ font-size: clamp(34px, 13vw, 64px); }
}

.hero{ position: relative; }

/* ---------- scroll showcase lines ---------- */
.about-scroll{
  margin-top: 40px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.showcase-line{
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 600;
  color: var(--ink-dim);
  max-width: 20ch;
  opacity: 0;
  transform: translateY(20px);
}
.showcase-line.in-view{
  animation: rise .7s ease forwards;
}
.showcase-line:nth-child(odd){ align-self: flex-start; }
.showcase-line:nth-child(even){ align-self: flex-end; text-align: right; color: var(--ink); }

.kicker{
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-glow);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
  opacity: 0;
  animation: rise .7s ease forwards;
}

.hero h1{
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.1;
  max-width: 15ch;
  background: linear-gradient(100deg, #EDEAE0 30%, var(--gold) 55%, #EDEAE0 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out infinite, rise .8s ease .1s both;
}

.hero p.lede{
  color: var(--ink-dim);
  max-width: 46ch;
  font-size: 18px;
  margin-top: 20px;
  opacity: 0;
  animation: rise .8s ease .25s forwards;
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes sheen{
  0%, 100%{ background-position: 0% center; }
  50%{ background-position: 100% center; }
}

.strata{ margin-top: 90px; }

.strata h2{
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
  font-family: 'IBM Plex Sans', sans-serif;
  margin-bottom: 22px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  perspective: 900px;
}

.card{
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  transform-style: preserve-3d;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  opacity: 0;
  transform: translateY(24px);
}

.card.in-view{
  animation: cardIn .6s cubic-bezier(.2,.7,.3,1) forwards;
}
.card:nth-child(1){ animation-delay: .05s; }
.card:nth-child(2){ animation-delay: .12s; }
.card:nth-child(3){ animation-delay: .19s; }
.card:nth-child(4){ animation-delay: .26s; }
.card:nth-child(5){ animation-delay: .33s; }

@keyframes cardIn{
  from{ opacity: 0; transform: translateY(24px); }
  to{ opacity: 1; transform: translateY(0); }
}

.card:hover{
  border-color: var(--gold-glow);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--gold-glow);
}

.card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), var(--gold-glow), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover::before{ opacity: 1; }

.card .ticker{
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.app-icon{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--base);
  background: linear-gradient(150deg, #F4F7FA, var(--gold-soft) 45%, var(--gold) 100%);
  box-shadow: 0 8px 18px -6px rgba(111, 160, 214, 0.5);
  margin-bottom: 16px;
  transform: translateZ(24px);
}

.card .name{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  transform: translateZ(20px);
}

.card .blurb{
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.55;
  transform: translateZ(14px);
}

.contact{
  margin-top: 90px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  opacity: 0;
}
.contact.in-view{ animation: rise .6s ease forwards; }

.contact h2{
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}
.contact-lede{
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: 16px;
}
.contact-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.contact-row:last-child{ border-bottom: none; }
.contact-row .label{
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact a{ position: relative; }
.contact a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.contact a:hover::after{ transform: scaleX(1); }
.contact a:hover{ text-decoration: none; }

footer.site{
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-dim);
  font-size: 14px;
}
footer.site a{ color: var(--ink-dim); }
footer.site a:hover{ color: var(--gold); }

.legal h1{ font-size: 32px; }
.legal .updated{ color: var(--ink-dim); font-size: 14px; margin-top: 10px; }
.legal section{ margin-top: 40px; opacity: 0; animation: rise .5s ease forwards; }
.legal section:nth-child(1){ animation-delay: .03s; }
.legal section:nth-child(2){ animation-delay: .06s; }
.legal section:nth-child(3){ animation-delay: .09s; }
.legal section:nth-child(4){ animation-delay: .12s; }
.legal section:nth-child(5){ animation-delay: .15s; }
.legal section:nth-child(6){ animation-delay: .18s; }
.legal section:nth-child(7){ animation-delay: .21s; }
.legal section:nth-child(8){ animation-delay: .24s; }
.legal section:nth-child(9){ animation-delay: .27s; }
.legal section:nth-child(10){ animation-delay: .3s; }
.legal h2{ font-size: 20px; color: var(--gold); margin-bottom: 12px; }
.legal p, .legal li{ color: var(--ink); }
.legal ul{ padding-left: 20px; }
.legal li{ margin-bottom: 8px; }

@media (max-width: 560px){
  header.site .wrap{ flex-direction: column; align-items: flex-start; }
  nav.site a{ margin-left: 0; margin-right: 18px; }
  main{ padding-top: 60px; }
  .strata{ margin-top: 60px; }
  .contact{ margin-top: 60px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important; }
}
