/* Syntheticist – design studio */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111;
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --accent: #eab308;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --container: min(92vw, 1200px);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ---- Reveal animation (triggered by JS) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.revealed .line {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.header-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  height: 22px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
}

/* ---- Floating astronaut (fixed, drifts & bounces) ---- */
.astronaut-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 45vw;
  height: 90vh;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  filter: none;
}

.astronaut {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

.astronaut::part(default-progress-bar),
.astronaut::part(default-ar-button),
.astronaut::part(default-progress-mask) {
  display: none !important;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) 1.5rem 4rem;
  position: relative;
}

.hero-inner {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.revealed,
  .hero-title .line {
    transition-duration: 0.01ms;
  }
  .works-track {
    animation: none;
  }
}

.hero-title .line:nth-child(1) { transition-delay: 0.1s; }

@media (min-width: 768px) {
  .hero-title {
    white-space: nowrap;
  }
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 2px solid var(--text);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ---- About ---- */
.about {
  padding: 6rem 0;
}

.about-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about-text {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.about-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.about-team {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1rem;
}

.about-cta-text {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 55ch;
}

/* ---- Process ---- */
.process {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.section-label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.step-hash {
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Works (horizontal scroll) ---- */
.works {
  padding: 6rem 0 4rem;
}

.works-header {
  margin-bottom: 2rem;
}

.works-cta-text {
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 55ch;
}

.works-title,
.works-title-alt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.works-title-alt {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.works-scroll {
  overflow: hidden;
  margin-left: 0;
  padding: 1rem 0 2rem;
}

.works-track {
  display: flex;
  gap: 1.5rem;
  animation: works-scroll 40s linear infinite;
  width: max-content;
}

.works-track:hover {
  animation-play-state: paused;
}

@keyframes works-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.work-card {
  flex-shrink: 0;
  width: 320px;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.work-card:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.15);
  background: #161616;
}

.work-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.work-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Why Framer (sticky horizontal scroll driven by vertical scroll) ---- */
.why-framer {
  /* tall section: vertical scroll space maps to horizontal movement */
  /* 5 panels × 100vh = 500vh total scroll runway */
  height: 500vh;
  position: relative;
  background: var(--bg-elevated);
}

.why-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.why-header {
  flex-shrink: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
}

.why-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}

.why-title-line {
  display: block;
}

.why-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.why-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.reason-panel {
  flex: 0 0 min(80vw, 560px);
  width: min(80vw, 560px);
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
  position: relative;
}

.reason-panel:first-child {
  border-left: none;
}

.reason-num {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.reason-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.reason-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.reason-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
}

.reason-tools {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Contact ---- */
.contact {
  padding: 6rem 0;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
  max-width: 16ch;
}

.contact-form {
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-full {
  margin-bottom: 1.5rem;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

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

.btn-submit {
  margin-top: 0.5rem;
}

/* ---- FAQ ---- */
.faq {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.faq-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}

.faq-title:last-of-type {
  margin-bottom: 1rem;
}

.faq-intro {
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 45ch;
}

.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.25rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 0;
}

/* ---- Footer ---- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 1rem 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 20px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--text);
}

.footer-company {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}
