/* ==========================================================================
   NOCTIS — Official Website
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --ink: #f4f2ee;
  --ink-muted: rgba(244, 242, 238, 0.62);
  --ink-faint: rgba(244, 242, 238, 0.38);
  --silver: #a8a29a;
  --silver-bright: #d6d3d1;
  --line: rgba(244, 242, 238, 0.12);
  --line-strong: rgba(244, 242, 238, 0.28);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-editorial: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.85rem, 1.5vw, 1.25rem);
  --space-md: clamp(1.5rem, 3vw, 2.5rem);
  --space-lg: clamp(2.5rem, 6vw, 5rem);
  --space-xl: clamp(4rem, 10vw, 8rem);
  --space-2xl: clamp(5rem, 14vw, 11rem);

  --content: min(68rem, calc(100% - 2.5rem));
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid var(--silver-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Atmosphere
   -------------------------------------------------------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.atmosphere__glow--a {
  width: min(70vw, 42rem);
  height: min(70vw, 42rem);
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(120, 115, 108, 0.28), transparent 68%);
}

.atmosphere__glow--b {
  width: min(55vw, 28rem);
  height: min(55vw, 28rem);
  bottom: 8%;
  right: -8%;
  background: radial-gradient(circle, rgba(90, 86, 80, 0.22), transparent 70%);
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.4) 70%, transparent);
  transition: background 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  width: var(--content);
  max-width: 100%;
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: 1.25rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.25s var(--ease-soft);
}

.wordmark:hover {
  color: var(--silver-bright);
}

.wordmark--footer {
  font-size: 0.95rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

.nav__list {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.25s var(--ease-soft);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link--store {
  color: var(--ink);
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}

.nav__link--store:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  z-index: 110;
}

.nav-toggle__bar {
  display: block;
  width: 1.35rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(0.22rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-0.22rem) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav__list {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav[hidden] {
  display: flex;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.25s;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: var(--ink);
}

.mobile-nav__link--store {
  color: var(--ink);
  margin-top: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--line-strong);
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.35s var(--ease-soft), color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft), transform 0.35s var(--ease-soft);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}

.btn--primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn--ghost {
  color: var(--ink-muted);
  border: none;
  padding-inline: 0.5rem;
  min-height: 2.75rem;
  letter-spacing: 0.16em;
  text-decoration: underline;
  text-underline-offset: 0.45em;
  text-decoration-color: rgba(244, 242, 238, 0.25);
}

.btn--ghost:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 5rem;
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(72vw, 34rem);
  height: min(72vw, 34rem);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(180, 175, 165, 0.16), transparent 45%),
    radial-gradient(circle at 60% 70%, rgba(40, 38, 36, 0.9), transparent 55%),
    radial-gradient(circle, rgba(18, 17, 16, 0.95), transparent 70%);
  animation: orbPulse 12s var(--ease-soft) infinite alternate;
}

.hero__ring {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(244, 242, 238, 0.08);
}

.hero__ring--outer {
  width: min(88vw, 42rem);
  height: min(88vw, 42rem);
  animation: ringDrift 28s linear infinite;
}

.hero__ring--inner {
  width: min(52vw, 24rem);
  height: min(52vw, 24rem);
  border-color: rgba(244, 242, 238, 0.12);
  animation: ringDrift 40s linear infinite reverse;
}

.hero__veil {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, var(--bg) 10%, transparent);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(48rem, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 12vw, 7.5rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 0 80px rgba(244, 242, 238, 0.08);
  animation: heroEnter 1.1s var(--ease-out) both;
}

.hero__title {
  margin-top: var(--space-md);
  font-family: var(--font-editorial);
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--ink);
  animation: heroEnter 1.1s var(--ease-out) 0.12s both;
}

.hero__lede {
  max-width: 28rem;
  margin-top: 0.35rem;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  animation: heroEnter 1.1s var(--ease-out) 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: var(--space-md);
  animation: heroEnter 1.1s var(--ease-out) 0.32s both;
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-faint);
  animation: heroEnter 1.1s var(--ease-out) 0.5s both;
}

.scroll-hint__label {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-hint__line {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--silver), transparent);
  transform-origin: top;
  animation: scrollLine 2.4s var(--ease-soft) infinite;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbPulse {
  from {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes ringDrift {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes scrollLine {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(0.45);
    opacity: 0.25;
  }
}

/* --------------------------------------------------------------------------
   Brand / About
   -------------------------------------------------------------------------- */

.brand {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 1.25rem;
  border-top: 1px solid var(--line);
}

.brand__inner {
  width: var(--content);
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 900px) {
  .brand__inner {
    grid-template-columns: 1fr 1.1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-xl);
    align-items: end;
  }

  .section-eyebrow {
    grid-column: 1;
  }

  .brand__headline {
    grid-column: 1 / -1;
  }

  .brand__copy {
    grid-column: 2;
    justify-self: end;
    max-width: 26rem;
  }
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
}

.brand__headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7.5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: var(--ink);
}

.brand__copy {
  font-family: var(--font-editorial);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 32rem;
}

/* --------------------------------------------------------------------------
   Store feature
   -------------------------------------------------------------------------- */

.store-feature {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 1.25rem;
  border-top: 1px solid var(--line);
}

.store-feature__inner {
  width: var(--content);
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--bg-elevated);
  border: 1px solid var(--line);
}

.store-feature__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.1;
}

.store-feature__copy {
  max-width: 28rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-editorial);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: var(--space-lg) 1.25rem var(--space-md);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  width: var(--content);
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s;
}

.site-footer__nav a:hover {
  color: var(--ink);
}

.site-footer__copy {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Reveals
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Pointer glow (desktop)
   -------------------------------------------------------------------------- */

.pointer-glow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .pointer-glow {
    display: block;
    position: fixed;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(180, 175, 165, 0.09), transparent 65%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    mix-blend-mode: screen;
  }

  .pointer-glow.is-active {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  .hero__title,
  .hero__lede,
  .hero__actions,
  .scroll-hint {
    animation: none;
  }

  .hero__orb,
  .hero__ring--outer,
  .hero__ring--inner,
  .scroll-hint__line {
    animation: none;
  }

  .pointer-glow {
    display: none !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
