/* ---------------------------------------------------------
   Spectrum Sync — stylesheet
   Palette: near-black / off-white base, spectrum-gradient accent
--------------------------------------------------------- */

:root {
  --night: #0a0a0a;
  --night-2: #141414;
  --surface: #f4f4f4;
  --white: #ffffff;
  --ink: #0a0a0a;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(10, 10, 10, 0.12);

  --spectrum: linear-gradient(
    90deg,
    #ff3b3b 0%,
    #ff9d3b 16%,
    #ffe63b 33%,
    #3bff6e 50%,
    #3bcaff 66%,
    #6a5bff 83%,
    #ff3bd6 100%
  );

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--spectrum);
  flex-shrink: 0;
}

.section {
  padding: clamp(64px, 10vw, 128px) 0;
}

.section--tight {
  padding: clamp(48px, 7vw, 88px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head h2 {
  margin-top: 14px;
}

.bg-night {
  background: var(--night);
  color: var(--white);
}

.bg-surface {
  background: var(--surface);
  color: var(--ink);
}

.bg-white {
  background: var(--white);
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.h-display {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 700;
}

.h-xl {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

.h-lg {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.78;
  max-width: 54ch;
}

.text-gradient {
  background: var(--spectrum);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s linear infinite;
}

@keyframes gradient-shift {
  to { background-position: 200% center; }
}

/* Buttons */

.btn {
  --bx: 50%;
  --by: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(90px circle at var(--bx) var(--by), rgba(255, 255, 255, 0.45), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.btn:hover::after {
  opacity: 1;
}

.btn--outline::after,
.btn--dark::after {
  mix-blend-mode: soft-light;
  background: radial-gradient(90px circle at var(--bx) var(--by), rgba(255, 255, 255, 0.65), transparent 70%);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--white);
  color: var(--night);
}

.btn--primary:hover {
  background: var(--spectrum);
  color: var(--night);
}

.btn--outline {
  border-color: var(--line);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--dark {
  background: var(--night);
  color: var(--white);
}

.btn--dark:hover {
  opacity: 0.82;
}

.btn--block {
  width: 100%;
}

/* ---------------- CTA magnet (proximity rays) ---------------- */

.cta-magnet {
  --proximity: 0;
  position: relative;
  display: inline-flex;
}

.cta-magnet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%) scale(calc(1 + var(--proximity) * 6));
  background: conic-gradient(
    from 0deg,
    #ff3b3b,
    #ff9d3b,
    #ffe63b,
    #3bff6e,
    #3bcaff,
    #6a5bff,
    #ff3bd6,
    #ff3b3b
  );
  filter: blur(22px);
  opacity: calc(var(--proximity) * 0.85);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 36px;
}

.nav-desktop a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--spectrum);
  transition: width 0.3s var(--ease);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--white);
  opacity: 0.85;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav panel */

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--night);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px var(--gutter);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 40px;
}

.nav-mobile a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
}

.nav-mobile .header-phone {
  display: block;
  margin-bottom: 18px;
  opacity: 0.7;
}

/* ---------------- Hero ---------------- */

.hero {
  --mx: 50%;
  --my: 42%;
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  padding-top: 120px;
  padding-bottom: 80px;
}

#cursorGlow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.hero-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translate(calc((var(--mx) - 50%) * -0.12), calc((var(--my) - 50%) * -0.08));
  transition: transform 0.2s ease-out;
}

.beam {
  position: absolute;
  top: -20%;
  height: 160%;
  width: 2px;
  background: var(--spectrum);
  opacity: 0.55;
  filter: blur(0.5px);
  transform: rotate(28deg);
  animation: beam-sweep 7s var(--ease) infinite;
}

.beam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(14px);
  opacity: 0.6;
}

.beam:nth-child(1) { left: 8%; animation-delay: 0s; }
.beam:nth-child(2) { left: 22%; animation-delay: 1.1s; }
.beam:nth-child(3) { left: 41%; animation-delay: 2.3s; }
.beam:nth-child(4) { left: 63%; animation-delay: 0.6s; }
.beam:nth-child(5) { left: 79%; animation-delay: 1.8s; }
.beam:nth-child(6) { left: 92%; animation-delay: 3s; }

@keyframes beam-sweep {
  0%, 100% { opacity: 0.15; transform: rotate(28deg) translateX(0); }
  50% { opacity: 0.65; transform: rotate(28deg) translateX(18px); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 255, 255, 0.08), transparent 70%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  margin-top: 22px;
  max-width: 16ch;
}

.hero .lede {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-meta {
  margin-top: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}

.hero-meta-item .num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-meta-item .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-top: 4px;
}

/* ---------------- Marquee ---------------- */

.marquee {
  background: var(--night);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
  padding: 0 28px;
  white-space: nowrap;
  opacity: 0.85;
}

.marquee-track span.dot {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0;
  opacity: 1;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Capabilities (numbered list) ---------------- */

.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-dark);
}

.cap-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.cap-item.in-view {
  opacity: 1;
  transform: none;
}

.cap-item .index {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.4;
  width: 34px;
  flex-shrink: 0;
}

.cap-item .name {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
}

@media (min-width: 760px) {
  .cap-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cap-item {
    padding: 26px 28px 26px 0;
  }
  .cap-grid > .cap-item:nth-child(odd) {
    border-right: 1px solid var(--line-dark);
    padding-right: 28px;
  }
  .cap-grid > .cap-item:nth-child(even) {
    padding-left: 28px;
  }
}

/* ---------------- Event types grid ---------------- */

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.event-card {
  background: var(--night);
  padding: 34px 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s var(--ease);
}

.event-card:hover {
  background: var(--night-2);
}

.event-card .tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

.event-card h3 {
  font-size: 1.35rem;
  margin-top: 40px;
}

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

@media (min-width: 980px) {
  .event-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------- Gallery ---------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.gallery-item.in-view {
  opacity: 1;
  transform: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 0.75) 100%);
  pointer-events: none;
}

.gallery-item .cap {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--lead {
  grid-column: span 2;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .gallery-item--tall {
    grid-row: span 2;
  }
  .gallery-item--lead {
    grid-column: span 4;
    grid-row: span 2;
  }
}

/* ---------------- FAQ ---------------- */

.faq-list {
  border-top: 1px solid var(--line-dark);
}

.faq-item {
  border-bottom: 1px solid var(--line-dark);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  position: relative;
}

.faq-item .plus::before,
.faq-item .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.faq-item .plus::before {
  left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%);
}

.faq-item .plus::after {
  top: 0; left: 50%; height: 100%; width: 2px; transform: translateX(-50%);
}

.faq-item[open] .plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item .faq-a {
  padding-bottom: 24px;
  max-width: 62ch;
  opacity: 0.72;
  line-height: 1.65;
}

/* ---------------- About / owner ---------------- */

.about-wrap {
  display: grid;
  gap: 48px;
  align-items: start;
}

.owner-card {
  background: var(--night);
  color: var(--white);
  border-radius: 20px;
  padding: 36px;
}

.owner-card .mark {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
}

.owner-card .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.owner-card h3 {
  font-size: 1.4rem;
}

.owner-card p {
  margin-top: 14px;
  opacity: 0.72;
  line-height: 1.65;
}

@media (min-width: 900px) {
  .about-wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
  }
}

/* ---------------- CTA band ---------------- */

.cta-band {
  position: relative;
  background: var(--night);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}


.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectrum);
}

.cta-band .h-xl {
  max-width: 18ch;
  margin: 0 auto;
}

.cta-band .lede {
  margin: 22px auto 0;
  text-align: center;
}

.cta-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  gap: 48px;
}

.contact-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 30px;
}

.contact-card + .contact-card {
  margin-top: 20px;
}

.contact-card .label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.contact-card .value {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 8px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.82rem;
  opacity: 0.55;
  margin-top: 14px;
}

.form-status {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 23px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 34ch;
  opacity: 0.6;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.5;
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

/* ---------------- Reveal utility ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------------- Skip link ---------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}
