/* ─── Design tokens ────────────────────────────────── */
:root {
  --bg: #060008;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.92);
  --ink-dim:  rgba(255, 255, 255, 0.55);
  --ink-faint:rgba(255, 255, 255, 0.14);

  --purple: #b14dff;
  --blue:   #2db8ff;
  --green:  #22ff9e;
  --red:    #ff2d6d;

  --display: 'Allura', 'Brush Script MT', cursive;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.6rem 5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 4;
}

.bigname {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  padding: 1.4rem 2.4rem 1.6rem;
  border-radius: 12px;
  color: #1a0114;
  background: linear-gradient(
    90deg,
    var(--purple) 0%,
    var(--blue)   25%,
    var(--green)  50%,
    var(--red)    75%,
    var(--purple) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  animation: holo-sweep 6s linear infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 10px 40px rgba(177, 77, 255, 0.35),
    0 0 60px rgba(45, 184, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  margin-bottom: 1.8rem;
}

.bigname-line {
  display: block;
}

.bigname-line:nth-child(2) { margin-top: -0.1em; }

@keyframes holo-sweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-tag {
  margin-top: 0.5rem;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ─── Sparkle particles ───────────────────────────── */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, transparent 65%);
  animation: twinkle 2.6s ease-in-out infinite;
  opacity: 0;
}

.sparkle.purple { background: radial-gradient(circle, #fff 0%, var(--purple) 40%, transparent 70%); }
.sparkle.blue   { background: radial-gradient(circle, #fff 0%, var(--blue)   40%, transparent 70%); }
.sparkle.green  { background: radial-gradient(circle, #fff 0%, var(--green)  40%, transparent 70%); }
.sparkle.red    { background: radial-gradient(circle, #fff 0%, var(--red)    40%, transparent 70%); }

@keyframes twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.4); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* ─── Hero entry animation ────────────────────────── */
.bigname-line .letters { display: inline-block; }

.bigname-line .letters > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: letter-rise 1.0s cubic-bezier(0.2, 0.6, 0.1, 1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 200ms);
}

@keyframes letter-rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  opacity: 0;
  animation: fade-up 1.0s cubic-bezier(0.2, 0.6, 0.1, 1) forwards;
  animation-delay: 1.4s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(0.6em); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── About ────────────────────────────────────────── */
.about {
  position: relative;
  min-height: 100vh;
  padding: 8rem 1.6rem 8rem;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.about-photo {
  position: absolute;
  inset: 0;
  background-image: url('../images/gq-portrait.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 1;
}

.about-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* Horizontal: smooth dark-to-clear sweep for text legibility */
    linear-gradient(90deg,
      rgba(6, 0, 8, 0.96) 0%,
      rgba(6, 0, 8, 0.86) 15%,
      rgba(6, 0, 8, 0.68) 32%,
      rgba(6, 0, 8, 0.45) 50%,
      rgba(6, 0, 8, 0.24) 70%,
      rgba(6, 0, 8, 0.08) 88%,
      rgba(6, 0, 8, 0.00) 100%
    ),
    /* Vertical: fade in from the hero, fade out into the contact */
    linear-gradient(180deg,
      rgba(6, 0, 8, 1.00) 0%,
      rgba(6, 0, 8, 0.55) 7%,
      rgba(6, 0, 8, 0.20) 18%,
      rgba(6, 0, 8, 0.12) 50%,
      rgba(6, 0, 8, 0.30) 82%,
      rgba(6, 0, 8, 0.75) 94%,
      rgba(6, 0, 8, 1.00) 100%
    );
}

.grain {
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain-drift 7s steps(6) infinite;
}

@keyframes grain-drift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 1%); }
  40%  { transform: translate(2%, -2%); }
  60%  { transform: translate(-1%, 3%); }
  80%  { transform: translate(3%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ─── About: text overlay ─────────────────────────── */
.about-inner {
  position: relative;
  z-index: 5;
  max-width: 36rem;
  width: 100%;
  margin: 0 0 0 0;
}

.about-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 2.4rem;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.5));
}

.about-prose p {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.4em;
}

.about-prose p:last-child { margin-bottom: 0; }

.about-prose em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

/* ─── About: pullquote ────────────────────────────── */
.pullquote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-align: center;
  margin: 2.6rem 0;
  padding: 2rem 0;
  position: relative;
  background: linear-gradient(
    90deg,
    var(--purple) 0%,
    var(--blue)   25%,
    var(--green)  50%,
    var(--red)    75%,
    var(--purple) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(177, 77, 255, 0.4))
    drop-shadow(0 0 26px rgba(45, 184, 255, 0.22));
  animation: holo-sweep 6s linear infinite;
}

.pullquote::before,
.pullquote::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 120px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--purple),
    var(--blue),
    var(--green),
    var(--red),
    transparent
  );
  transform: translateX(-50%);
}

.pullquote::before { top: 0; }
.pullquote::after  { bottom: 0; }

/* ─── Contact ──────────────────────────────────────── */
.contact {
  position: relative;
  padding: 6rem 1.6rem 5rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.contact-inner {
  position: relative;
  z-index: 4;
  max-width: 32rem;
  margin: 0 auto;
}

.contact-header {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.1;
  margin-bottom: 2.6rem;
  background: linear-gradient(
    90deg,
    var(--purple) 0%,
    var(--blue)   25%,
    var(--green)  50%,
    var(--red)    75%,
    var(--purple) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(177, 77, 255, 0.4))
    drop-shadow(0 0 26px rgba(45, 184, 255, 0.22));
  animation: holo-sweep 6s linear infinite;
}

/* ─── Contact: foil buttons ───────────────────────── */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 2.6rem;
}

.cbutton {
  position: relative;
  display: inline-block;
  padding: 1rem 2.4rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: 0.01em;
  color: #1a0114;
  text-decoration: none;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--purple) 0%,
    var(--blue)   25%,
    var(--green)  50%,
    var(--red)    75%,
    var(--purple) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  animation: holo-sweep 6s linear infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 6px 20px rgba(177, 77, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
  isolation: isolate;
  transition: transform 280ms cubic-bezier(0.2, 0.6, 0.1, 1),
              box-shadow 280ms;
}

.cbutton:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 36px rgba(177, 77, 255, 0.45),
    0 0 50px rgba(45, 184, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cbutton-label {
  position: relative;
  z-index: 2;
}

/* ─── Contact: button shine sweep on hover ────────── */
.cbutton-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 70%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
}

.cbutton:hover .cbutton-shine {
  animation: shine-sweep 900ms ease-out forwards;
}

@keyframes shine-sweep {
  0%   { left: -120%; }
  100% { left: 140%; }
}

/* ─── Contact: sign-off ───────────────────────────── */
.contact-signoff {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  background: linear-gradient(
    90deg,
    var(--purple) 0%,
    var(--blue)   25%,
    var(--green)  50%,
    var(--red)    75%,
    var(--purple) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(177, 77, 255, 0.35));
  animation: holo-sweep 6s linear infinite;
}

/* ─── Scroll reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.6, 0.1, 1),
    transform 900ms cubic-bezier(0.2, 0.6, 0.1, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .bigname,
  .pullquote,
  .contact-header,
  .contact-signoff,
  .cbutton {
    animation: none;
    background-position: 50% 50%;
  }

  .sparkle,
  .grain {
    animation: none;
  }

  .bigname-line .letters > span {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-tag {
    animation: none;
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cbutton:hover {
    transform: none;
  }
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 820px) {
  .hero { padding: 5rem 1.2rem 4rem; }
  .bigname {
    font-size: clamp(2rem, 8vw, 3rem);
    padding: 1rem 1.6rem 1.2rem;
    border-radius: 10px;
  }
  .hero-tag { letter-spacing: 0.3em; font-size: 0.62rem; }

  .about {
    padding: 6rem 1.2rem 5rem;
    align-items: flex-start;
  }
  .about-overlay {
    background:
      linear-gradient(180deg,
        rgba(6, 0, 8, 1.00) 0%,
        rgba(6, 0, 8, 0.45) 6%,
        rgba(6, 0, 8, 0.15) 22%,
        rgba(6, 0, 8, 0.10) 38%,
        rgba(6, 0, 8, 0.35) 58%,
        rgba(6, 0, 8, 0.75) 80%,
        rgba(6, 0, 8, 1.00) 100%
      );
  }
  .about-inner { margin-top: 40vh; max-width: 100%; }
  .about-headline { font-size: clamp(2rem, 9vw, 3.2rem); margin-bottom: 1.6rem; }
  .about-prose p { font-size: 1.02rem; line-height: 1.75; }
  .pullquote { font-size: clamp(1.6rem, 6vw, 2.2rem); padding: 1.4rem 0; margin: 2rem 0; }
  .pullquote::before, .pullquote::after { width: 80px; }

  .contact { padding: 5rem 1.2rem 4rem; }
  .contact-header { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 2rem; }
  .cbutton { padding: 0.85rem 1.8rem; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .bigname {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    padding: 0.85rem 1.4rem 1rem;
  }
  .contact-buttons { gap: 1rem; }
}

/* ─── Accessibility: visually-hidden image for the bg portrait ── */
.sr-only-image,
.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;
}

/* ─── Gate (front-of-site form) ───────────────────── */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.6rem;
  position: relative;
}

.gate-inner {
  max-width: 28rem;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 4;
}

.gate-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: 0.9rem;
  background: linear-gradient(
    90deg,
    var(--purple) 0%,
    var(--blue)   25%,
    var(--green)  50%,
    var(--red)    75%,
    var(--purple) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(177, 77, 255, 0.4))
    drop-shadow(0 0 26px rgba(45, 184, 255, 0.22));
  animation: holo-sweep 6s linear infinite;
}

.gate-sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 2.6rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gate-form input[type="text"] {
  width: 100%;
  padding: 1rem 1.2rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  outline: none;
  transition: border-color 240ms, background 240ms;
}

.gate-form input[type="text"]:focus {
  border-color: var(--purple);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(177, 77, 255, 0.15);
}

.gate-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.gate-submit {
  margin-top: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: #1a0114;
  background: linear-gradient(
    90deg,
    var(--purple) 0%,
    var(--blue)   25%,
    var(--green)  50%,
    var(--red)    75%,
    var(--purple) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  animation: holo-sweep 6s linear infinite;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 6px 20px rgba(177, 77, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 240ms cubic-bezier(0.2, 0.6, 0.1, 1),
              box-shadow 240ms;
}

.gate-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 36px rgba(177, 77, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gate-error {
  font-family: var(--body);
  font-size: 0.85rem;
  color: #ff8aa8;
  margin-bottom: 0.2rem;
  text-align: left;
}

/* Honeypot: keep it accessible to assistive tech but off-screen for users */
.gate-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
