@font-face {
  font-family: 'Aeonik';
  src: url('fonts/aeonik-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

h1, h2, h3 {
  text-wrap: balance;
}

html {
  overflow-x: clip;
  background-color: #060606;
}

body {
  background-color: #060606;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #f0f0f0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.08;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

#dots {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Hero */

.hero,
.video-section {
  position: relative;
}

.video-section {
  z-index: 1;
}

.hero {
  z-index: 2;
}

.hero {
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem max(2rem, 6vw);
  padding-top: 12rem;
}

@media (max-width: 767px) {
  .hero {
    min-height: 65vh;
    height: auto;
    padding-top: 8rem;
  }
  .hero + .video-section {
    margin-top: -20vh;
  }
}

.hero-content {
  width: min(100%, 1400px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero logo — centered, larger */
.logo-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.logo-hero .logo-icon {
  height: 2rem;
}

.logo-hero .logo-wordmark {
  height: 1.25rem;
}

@media (max-width: 767px) {
  .logo-hero .logo-icon {
    height: 1.4rem;
  }
  .logo-hero .logo-wordmark {
    height: 0.875rem;
  }
  .logo-hero {
    gap: 0.85rem;
  }
}

/* Top nav — fixed, slides in from above */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  padding-bottom: 3rem;
  background-color: transparent;
  background-image: none;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .top-nav {
    padding: 1.5rem 2rem;
    padding-top: calc(1.5rem + env(safe-area-inset-top));
    background-image:
      linear-gradient(rgba(6,6,6,0.7), rgba(6,6,6,0.7)),
      linear-gradient(to bottom, rgba(6,6,6,0.7) 0%, rgba(6,6,6,0.55) 30%, rgba(6,6,6,0.35) 50%, rgba(6,6,6,0.15) 70%, rgba(6,6,6,0.04) 85%, transparent 100%);
    background-size:
      100% env(safe-area-inset-top, 0px),
      100% calc(100% - env(safe-area-inset-top, 0px));
    background-position:
      top,
      bottom;
    background-repeat: no-repeat;
  }
}

.top-nav.visible {
  transform: translateY(0);
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-nav .logo-icon {
  height: 1.3rem;
}

.logo-nav .logo-wordmark {
  height: 0.8125rem;
}

.hero h1 {
  font-family: 'Aeonik', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  white-space: normal;
  text-wrap: balance;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  margin-inline: auto;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

@media (min-width: 1350px) {
  .hero h1 {
    max-width: 24ch;
  }
}

.subtitle {
  font-size: 1.125rem;
  color: #999;
  text-wrap: balance;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  margin-inline: auto;
  max-width: 60ch;
}

.subtitle-link,
.subtitle-link:visited {
  color: #f0f0f0;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.subtitle-link:hover {
  opacity: 0.82;
}

.subtitle-link:focus-visible {
  outline: 1px solid rgba(240, 240, 240, 0.5);
  outline-offset: 0.18em;
  border-radius: 0.2em;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.cta-wrap {
  position: relative;
  display: inline-block;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.34, 1.8, 0.64, 1);
}

.cta-wrap:hover {
  transform: scale(1.08);
}

.cta-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: conic-gradient(from var(--angle), #f0a060, #e84393, #b06ae8, #60a5fa, #5ac8e0, #e84393, #f0a060);
  animation: rotate-gradient 4s linear infinite;
  z-index: 0;
}

.cta-wrap::after {
  content: '';
  position: absolute;
  inset: var(--glow-inset, 0px);
  border-radius: 100px;
  background: conic-gradient(from var(--angle), #f0a060, #e84393, #b06ae8, #60a5fa, #5ac8e0, #e84393, #f0a060);
  filter: blur(var(--glow-blur, 10px));
  opacity: var(--glow-opacity, 0);
  z-index: -1;
  animation: rotate-gradient 4s linear infinite;
  pointer-events: none;
}

.cta {
  position: relative;
  display: block;
  padding: 0.875rem 2rem;
  background: #0a0a0a;
  color: #f0f0f0;
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  z-index: 1;
  cursor: pointer;
}

/* Nav button — smaller, subtler */
.cta-wrap--nav::before {
  inset: -1.5px;
}

.cta--nav {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
}

@keyframes rotate-gradient {
  to {
    --angle: 360deg;
  }
}

/* Touch devices: permanent subtle glow instead of proximity hover */
@media (hover: none) {
  .cta-wrap::after {
    --glow-blur: 14px;
    --glow-inset: -4px;
    --glow-opacity: 0.35;
  }
  .cta-wrap--nav::after {
    --glow-blur: 10px;
    --glow-inset: -3px;
    --glow-opacity: 0.25;
  }
}

/* Legal page nav */
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

@media (max-width: 767px) {
  .legal-nav {
    padding: 1rem 1.25rem;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .site-footer {
    padding: 3rem 2rem 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-links a:last-child {
  font-size: 1.4rem;
  line-height: 1;
}

.footer-links a:hover {
  color: #f0f0f0;
}

.footer-copy {
  color: #444;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Video Sections */

.video-section {
  height: 160vh;
  padding: 0 4vw;
}

.hero + .video-section {
  height: 160vh;
  margin-top: -15vh;
}

@media (max-height: 500px) {
  .hero + .video-section {
    margin-top: 0;
  }
}

.video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  pointer-events: none;
}

.video-wrap {
  position: relative;
  will-change: transform;
  transform-origin: center center;
  pointer-events: auto;
}

.video-media {
  position: relative;
}

.video-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(clamp(40px, 10vw, 120px));
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.video-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: center center;
  max-height: 60vh;
}

.video-container video {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.video-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10, 10, 10, 1) 100%);
  pointer-events: none;
}

/* Project info below video */
.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 1.75rem 0.25rem 0;
}

.project-meta {
  flex-shrink: 0;
}

.project-title {
  font-family: 'Aeonik', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.project-detail {
  font-size: 0.8125rem;
  color: #777;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.project-desc {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.65;
  max-width: 480px;
  padding-top: 0;
}

@media (max-width: 767px) {
  .project-info {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 0 0;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-desc {
    padding-top: 0;
  }
}

/* ── Legal Back Button ── */

.legal-back,
.legal-back:hover,
.legal-back:visited {
  display: inline-block;
  background: #f0f0f0;
  color: #0a0a0a !important;
  border: 1.5px solid #f0f0f0;
  padding: 0.625rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-family: inherit;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 2rem;
}

.legal-back:hover {
  background: #ddd;
  border-color: #ddd;
}

/* ── Questionnaire Overlay ── */

.q-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: #0a0a0a;
  display: flex;
  flex-direction: column;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
  transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.q-overlay.q-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

/* Progress bar */
.q-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}

.q-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f0a060, #e84393, #b06ae8, #60a5fa);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Close button */
.q-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  background: none;
  border: none;
  color: #666;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.q-close:hover {
  color: #f0f0f0;
}

/* Slides container */
.q-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Individual slide */
.q-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px) scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.q-slide--active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.q-open .q-slide--active {
  pointer-events: auto;
}

.q-slide--exit-up {
  opacity: 0;
  transform: translateY(-120px) scale(0.96);
}

.q-slide--exit-down {
  opacity: 0;
  transform: translateY(120px) scale(0.96);
}

.q-slide--enter-below {
  opacity: 0;
  transform: translateY(120px) scale(0.96);
  transition: none;
}

.q-slide--enter-above {
  opacity: 0;
  transform: translateY(-120px) scale(0.96);
  transition: none;
}

.q-slide-inner {
  width: 100%;
  max-width: 560px;
}

/* Label */
.q-label {
  display: block;
  font-family: 'Aeonik', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  text-wrap: balance;
  margin-bottom: 2rem;
  line-height: 1.25;
}

/* Text input */
.q-input,
.q-textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #333;
  color: #f0f0f0;
  padding: 0.75rem 0;
  outline: none;
  font-family: inherit;
  position: relative;
}

.q-input {
  font-size: 1.25rem;
}

/* Textarea */
.q-textarea {
  font-size: 1.125rem;
  resize: vertical;
}

/* Gradient underline wrapper — needs a parent with position:relative */
.q-field {
  position: relative;
}

.q-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f0a060, #e84393, #b06ae8, #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.q-field:focus-within::after {
  transform: scaleX(1);
}

.q-textarea--small {
  margin-top: 1.5rem;
  font-size: 1rem;
}

/* Hint text */
.q-hint {
  display: block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #555;
}

.q-hint kbd {
  display: inline-block;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-family: inherit;
  font-size: 0.75rem;
  color: #888;
}

/* Service cards */
.q-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.q-card {
  position: relative;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  color: #f0f0f0;
  font-size: 1rem;
  padding: 1.25rem 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.4s cubic-bezier(0.34, 1.8, 0.64, 1), background 0.15s;
}

.q-card:hover {
  background: #111;
}

.q-card:active {
  transform: scale(0.95);
  transition: transform 0.08s ease-out;
}

.q-card.selected {
  border-color: transparent;
  background: rgba(232, 67, 147, 0.06);
}

/* Gradient border for selected cards via pseudo-element */
.q-card.selected::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f0a060, #e84393, #b06ae8, #60a5fa);
  z-index: -1;
}

.q-card.selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #0a0a0a;
  z-index: -1;
}

/* Navigation */
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  z-index: 2;
}

.q-prev,
.q-next {
  background: none;
  border: 1.5px solid #333;
  color: #f0f0f0;
  padding: 0.625rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.q-prev:hover,
.q-next:hover {
  border-color: #888;
}

.q-next {
  margin-left: auto;
  background: #f0f0f0;
  color: #0a0a0a;
  border-color: #f0f0f0;
}

.q-next:hover {
  background: #ddd;
  border-color: #ddd;
}

.q-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Thank you slide */
.q-thankyou-title {
  font-family: 'Aeonik', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.q-thankyou-text {
  color: #999;
  font-size: 1.125rem;
  text-wrap: balance;
  margin-bottom: 2.5rem;
}

.q-thankyou-close {
  background: none;
  border: 1.5px solid #333;
  color: #f0f0f0;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}

.q-thankyou-close:hover {
  border-color: #888;
}

/* Shake animation */
@keyframes q-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.q-shake .q-slide-inner {
  animation: q-shake 0.5s ease;
}

/* Mobile */
@media (max-width: 600px) {
  .q-cards {
    grid-template-columns: 1fr;
  }

  .q-nav {
    padding: 1rem 1.5rem;
  }
}

/* web-haptics switch: must stay rendered for iOS Taptic Engine (display:none kills haptics) */
label[for^="web-haptics-"] {
  position: fixed !important;
  left: -9999px !important;
  pointer-events: none !important;
}
