/* VAULT — award-site remake */
:root {
  --bg: #0a0a0a;
  --fg: #dfdff0;
  --accent: #edff66;
  --muted: rgba(223, 223, 240, 0.62);
  --line: rgba(223, 223, 240, 0.12);
  --card: #121214;
  --card-hover: #17171b;
  --nav-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(220px, 70vw);
}

.loader__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.loader__bar {
  width: 100%;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.loader__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
}

.loader__text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.nav__icon {
  color: var(--accent);
}

.nav__links {
  display: none;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--fg);
}

.nav__cta {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(237, 255, 102, 0.25);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn--primary:hover {
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  border-color: rgba(223, 223, 240, 0.35);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  will-change: clip-path;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.88) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(237, 255, 102, 0.12), transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1100px, 92vw);
  padding: calc(var(--nav-h) + 1rem) 0 2rem;
  text-align: left;
}

.hero__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero__line {
  display: block;
}

.hero__lede {
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.hero__spacer {
  height: 180vh;
}

/* ---------- ABOUT (pin expand) ---------- */
.about {
  position: relative;
  background: var(--bg);
}

.about__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.about__copy {
  position: relative;
  z-index: 3;
  width: min(720px, 88vw);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

.about__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.about__text {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
  margin: 0 auto;
}

.about__mask {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(280px, 42vw);
  height: min(360px, 48vh);
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 1.25rem;
  z-index: 1;
  will-change: width, height, border-radius;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__spacer {
  height: 220vh;
}

/* ---------- FEATURES ---------- */
.features {
  position: relative;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--bg);
}

.features__head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.features__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--lg {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .features__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .card {
    grid-column: span 2;
  }

  .card--lg {
    grid-column: span 3;
    grid-row: span 2;
  }

  .card--wide {
    grid-column: span 4;
  }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  min-height: 220px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.card:hover {
  background: var(--card-hover);
  border-color: rgba(237, 255, 102, 0.28);
}

.card--lg {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card__glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 255, 102, 0.18), transparent 70%);
  top: -80px;
  right: -60px;
  pointer-events: none;
  opacity: 0.7;
}

.card__icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

/* ---------- STORY ---------- */
.story {
  position: relative;
  background: #070707;
}

.story__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
  overflow: hidden;
}

.story__label {
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.story__track {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.story__line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--fg);
  opacity: 0.18;
  transform: translateX(4vw);
  will-change: opacity, transform, color;
}

.story__aside {
  margin-top: 2.5rem;
  max-width: 28rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 1.02rem;
}

.story__spacer {
  height: 160vh;
}

/* ---------- CONTACT ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 90vh;
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact__panel {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.contact__text {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.contact__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 520px;
}

.contact__form input {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #111113;
  color: var(--fg);
  outline: none;
  transition: border-color 0.25s ease;
}

.contact__form input:focus {
  border-color: rgba(237, 255, 102, 0.55);
}

.contact__form input::placeholder {
  color: rgba(223, 223, 240, 0.4);
}

.contact__note {
  margin-top: 1rem;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--accent);
}

.contact__visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.contact__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.contact__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.35), rgba(237, 255, 102, 0.08));
  pointer-events: none;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 2rem;
  background: #050505;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 320px;
}

.footer__brand svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.footer__brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  min-width: min(420px, 100%);
}

.footer__cols h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.footer__cols a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer__cols a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__accent {
  color: var(--accent);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__frame,
  .about__mask,
  .story__line,
  .card {
    transition: none !important;
  }
}
