/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }

:root {
  --black:    #000000;
  --near-black: #0a0a0a;
  --card-bg:  #0f0f0f;
  --border:   #1a1a1a;
  --border-bright: #2a2a2a;
  --white:    #ffffff;
  --muted:    #888888;
  --muted-dim: #555555;
  --accent:   #4F8EF7;
  --accent-dim: rgba(79, 142, 247, 0.15);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w:    1160px;
  --section-pad: 120px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.desktop-only { display: block; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-child { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-child.visible { opacity: 1; transform: translateY(0); }
.reveal-child:nth-child(2).visible { transition-delay: 0.1s; }
.reveal-child:nth-child(3).visible { transition-delay: 0.2s; }
.reveal-child:nth-child(4).visible { transition-delay: 0.3s; }

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.92) 100%
  );
  z-index: 1;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HERO POST-VIDEO REVEAL ─── */
.hero-reveal,
.hero-brand {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.hero-reveal.visible,
.hero-brand.visible { opacity: 1; }

.reveal-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.reveal-headline .accent { color: var(--accent); }

.reveal-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.6);
  max-width: 520px;
}

.hero-brand {
  flex-direction: column;
  gap: 36px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--white);
  text-transform: uppercase;
}

.brand-cta { pointer-events: auto; }

/* Video fade-out */
.hero-video.fade-out {
  transition: opacity 1.2s ease;
  opacity: 0;
}

/* ─── HERO TEXT SECTION ─── */
#hero-text {
  background: var(--black);
  padding: 80px 0 100px;
  text-align: center;
}

#hero-text .hero-headline {
  animation: heroFadeUp 0.9s ease forwards;
  opacity: 0;
}

#hero-text .hero-sub {
  animation: heroFadeUp 0.9s ease 0.15s forwards;
  opacity: 0;
}

#hero-text .cta-btn {
  animation: heroFadeUp 0.9s ease 0.3s forwards;
  opacity: 0;
}

#hero-text .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  white-space: nowrap;
  animation: heroFadeUp 1.5s ease 0.5s forwards;
  opacity: 0;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-headline .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  max-width: 520px;
  font-weight: 400;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 16px 32px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.cta-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--white);
}

.cta-btn .arrow { transition: transform 0.3s; }
.cta-btn:hover .arrow { transform: translateX(4px); }

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ─── PROBLEM ─── */
#problem {
  padding: var(--section-pad) 0;
  background: var(--near-black);
}

.problem-headline {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--white);
  margin-bottom: 72px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 72px;
}

.pain-point {
  background: var(--near-black);
  padding: 40px 36px;
}

.pain-point strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.pain-point p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.pivot {
  text-align: center;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-style: italic;
  max-width: 760px;
  margin: 0 auto;
}

/* ─── PROCESS ─── */
#process {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 48px 40px;
  position: relative;
  transition: border-color 0.3s;
}

.process-card:hover { border-color: var(--border-bright); }

.process-num {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 700;
  color: var(--border-bright);
  line-height: 1;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.process-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.process-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── WORK ─── */
#work {
  padding: var(--section-pad) 0;
  background: var(--near-black);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.work-card {
  background: var(--near-black);
  transition: background 0.3s;
}

.work-card:hover { background: #111111; }

.work-card-inner {
  padding: 48px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.work-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.work-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(79,142,247,0.2);
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ─── ABOUT ─── */
#about {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}

.photo-frame {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  color: var(--muted-dim);
  font-family: var(--font-head);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.05em;
  user-select: none;
}

.about-text .section-label { margin-bottom: 20px; }

.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.15;
}

.about-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

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

/* ─── CONTACT ─── */
#contact {
  padding: var(--section-pad) 0;
  background: var(--near-black);
  border-top: 1px solid var(--border);
}

.contact-container {
  max-width: 720px;
}

.contact-container h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 1.6;
}

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

.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }

input, textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border-bright);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 16px 20px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}

input::placeholder, textarea::placeholder { color: var(--muted-dim); }

input:focus, textarea:focus { border-color: var(--accent); }

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 18px 40px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.2s;
  min-width: 200px;
}

.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-loading { display: none; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loading { display: block; }

.form-success, .form-error { margin-top: 32px; text-align: center; }

.form-success {
  padding: 40px;
  border: 1px solid rgba(79,142,247,0.3);
  background: rgba(79,142,247,0.05);
  border-radius: 2px;
}

.success-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 12px;
}

.form-success p {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.form-error {
  font-size: 14px;
  color: var(--muted);
}

.form-error a { color: var(--accent); text-decoration: none; }
.form-error a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-logo {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--muted-dim);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted-dim);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .desktop-only { display: none; }

  .pain-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .photo-frame { aspect-ratio: 1/1; max-width: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  :root { --section-pad: 60px; }
  .container { padding: 0 20px; }
  .process-card { padding: 32px 24px; }
  .work-card-inner { padding: 32px 24px; }
  .pain-point { padding: 28px 24px; }
  .hero-headline { font-size: clamp(28px, 8vw, 48px); }
}
