/* ── Site header / nav ────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  padding: 0 20px;
  pointer-events: none;
}

.site-nav {
  position: relative;
  width: 100%;
  max-width: var(--container);
  padding: 6px 10px;
  border-radius: 4px;
  pointer-events: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  column-gap: 16px;
}

.nav-toggle {
  display: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  font: 400 12px / 1.2 var(--font-mono);
  color: #d5d5d5;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  animation: glitch-hover 0.3s linear;
}


.nav-link .corner-accent {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover .corner-accent {
  opacity: 1;
}

.nav-link-inner {
  position: relative;
  display: flex;
  overflow: hidden;
}

.nav-link-inner > span:first-child {
  display: block;
  transition: transform 0.4s ease;
}

.nav-link:hover .nav-link-inner > span:first-child {
  transform: translateY(-100%);
}

.nav-link-inner > span:last-child {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.nav-link:hover .nav-link-inner > span:last-child {
  transform: translateY(0);
}


/* ── ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  isolation: isolate;
  background: var(--bg);
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Layout grid ──────────────────────────────────────────── */

.hero-grid {
  min-height: max(550px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding-top: var(--header-height);
}

.hero-top-space {
  display: none;
  flex: 1 1 0;
}

.hero-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Slogan ───────────────────────────────────────────────── */

.hero-slogan {
  margin: 0 0 72px;
  font: 500 16px/1 var(--font-mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-soft);
  /* color: var(--accent); */
  text-align: center;
  will-change: transform, opacity;
}

/* ── Title ────────────────────────────────────────────────── */

.title {
  margin: 0;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 6.5vw, 96px);
  color: var(--fg);
}

.title .line {
  display: block;
  white-space: nowrap;
}

.title .word {
  display: inline-block;
  will-change: transform, clip-path;
}

.title .gap-top {
  margin-top: 48px;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-bottom: 0.08em;
}

.title-icon svg {
  height: 0.5em;
  width: auto;
  color: var(--fg-soft);
  /* color: var(--accent); */
}

.title-arrow {
  will-change: transform, clip-path;
  margin-left: 0.5em;
}

.title-plus {
  will-change: transform;
  margin-left: 0.2em;
}



/* ── Hero description ───────────────────────────────────────────────── */

.hero-description {
  margin: 72px 0 0;
  font: 500 16px/1 var(--font-mono);
  /* text-transform: uppercase; */
  color: var(--fg-soft);
  text-align: center;
  will-change: transform, opacity;
  line-height: 162%;
  max-width: 50ch;
}


/* ── Bottom bar ───────────────────────────────────────────── */

.hero-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding-bottom: 24px;
  color: var(--fg-soft);
  position: relative;
  z-index: 2;
}

.hero-bottom-inner {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
}

.hero-actions,
.hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-actions { width: 100%; }
.hero-copy    { width: 100%; }

/* ── CTA button ───────────────────────────────────────────── */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  font: 500 14px/1 var(--font-mono);
  letter-spacing: 0.08em;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ── Mark / logo ──────────────────────────────────────────── */

.mark {
  width: 65px;
  height: 65px;
  color: var(--fg);
  flex: 0 0 auto;
}

/* ── Copy paragraph ───────────────────────────────────────── */

.hero-copy p {
  margin: 0;
  max-width: 490px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ── CTA Button ───────────────────────────────────────────── */

@keyframes glitch-hover {
  0%   { opacity: 1;    }
  8%   { opacity: 0.7;  }
  12%  { opacity: 0.2;  }
  18%  { opacity: 0.9;  }
  25%  { opacity: 1;    }
  32%  { opacity: 0.4;  }
  38%  { opacity: 0.8;  }
  42%  { opacity: 0.3;  }
  48%  { opacity: 1;    }
  65%  { opacity: 0.85; }
  72%  { opacity: 0.15; }
  78%  { opacity: 0.6;  }
  85%  { opacity: 1;    }
  92%  { opacity: 0.5;  }
  100% { opacity: 1;    }
}

.cta-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  margin-top: 96px;
  color: var(--fg);
  text-decoration: none;
}

.cta-btn:hover {
  animation: glitch-hover 0.3s linear;
}

.cta-inner {
  position: relative;
  display: flex;
  overflow: hidden;
  font: 500 16px / 1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-inner > span:first-child {
  display: block;
  transition: transform 0.4s ease;
}

.cta-btn:hover .cta-inner > span:first-child {
  transform: translateY(-100%);
}

.cta-inner > span:last-child {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cta-btn:hover .cta-inner > span:last-child {
  transform: translateY(0);
}

/* ── Corner accents ───────────────────────────────────────── */

.corner-accent {
  position: absolute;
  width: 9px;
  height: 9px;
  color: var(--fg);
}

.corner-accent:first-of-type {
  left: 0;
  top: 0;
}

.corner-accent:nth-of-type(2) {
  right: 0;
  top: 0;
  transform: rotate(90deg);
}

.corner-accent:nth-of-type(3) {
  bottom: 0;
  left: 0;
  transform: rotate(270deg);
}

.corner-accent:nth-of-type(4) {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

/* ── hero content ───────────────────────────────────────── */

.hero_content {
  position: relative;
  z-index: 9;
}

/* ── hero overlay ───────────────────────────────────────── */

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle,rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  opacity: 0.5;
}

/* ── Canvas overlay ───────────────────────────────────────── */

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* ── Responsive: desktop refinement (1024px–1600px) ─────── */

@media (min-width: 1024px) and (max-width: 1600px) {
  .title {
    font-size: clamp(72px, 6.5vw, 96px);
  }
}

/* ── Responsive: tablet (768px–1023px) ───────────────────── */

@media (min-width: 768px) {
  .title .gap-top {
    margin-top: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .title {
    font-size: clamp(52px, 8.5vw, 100px);
  }

  .hero-slogan {
    margin-bottom: 52px;
  }

  .hero-description {
    margin-top: 52px;
    font-size: 14px;
  }

  .cta-btn {
    margin-top: 64px;
  }
}

/* ── Responsive: mobile (<768px) ─────────────────────────── */

@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  /* Nav */
  .site-header {
    padding: 0 12px;
  }

  .site-nav {
    padding: 4px 8px;
    overflow: visible;
  }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 101;
    position: relative;
  }

  .nav-toggle__bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--fg);
    border-radius: 2px;
    transition:
      transform 0.35s var(--pv-easing),
      opacity 0.25s ease;
  }

  .site-nav.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .site-nav.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .site-nav.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Mobile nav drawer */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    margin-left: 0;
    border-radius: 4px;
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition:
      opacity 0.3s ease,
      transform 0.35s var(--pv-easing),
      visibility 0s linear 0.35s;
  }

  .site-nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.3s ease,
      transform 0.35s var(--pv-easing),
      visibility 0s linear 0s;
  }

  .nav-links li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li:first-child {
    border-top: none;
  }

  .nav-link {
    display: flex;
    justify-content: flex-start;
    height: 56px;
    padding: 0 18px;
    font-size: 13px;
    letter-spacing: 0.1em;
    width: 100%;
    color: rgba(231, 231, 231, 0.84);
  }

  .nav-link .corner-accent {
    display: none;
  }

  /* Grid */
  .hero-grid {
    gap: 24px;
    min-height: max(480px, 100svh);
  }

  /* Slogan */
  .hero-slogan {
    margin-bottom: 36px;
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  /* Title */
  .title {
    font-size: clamp(36px, 11.5vw, 68px);
  }

  .title .line {
    white-space: normal;
  }

  .title .break-mobile {
    display: block;
  }

  .title-icon svg {
    height: 0.38em;
  }

  .title-arrow {
    margin-left: 0.25em;
  }

  .title-plus {
    margin-left: 0.15em;
  }

  /* Description */
  .hero-description {
    margin-top: 36px;
    font-size: 13px;
    max-width: none;
    letter-spacing: 0.04em;
  }

  /* CTA */
  .cta-btn {
    margin-top: 44px;
  }

  .cta-inner {
    font-size: 13px;
  }

  /* Bottom */
  .hero-copy p {
    max-width: none;
  }
}
