/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ============================
   GLASS CARD  (exact spec)
   ============================ */
.glass-card {
  width: 240px;
  height: 360px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(255,255,255,0.1), inset 0 0 2px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent, rgba(255,255,255,0.3));
}

/* ============================
   GLOBAL FIXED BACKGROUND VIDEO
   ============================ */
.bg-video-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bg-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.75) 100%
  );
  pointer-events: none;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-nav {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.btn-nav:hover {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.btn-hero {
  padding: 1rem 2.2rem;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 30px rgba(255,255,255,0.25);
}

.btn-hero:hover { box-shadow: 0 8px 40px rgba(255,255,255,0.4); }

.btn-footer {
  padding: 1.1rem 2.6rem;
  background: #fff;
  color: #000;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 30px rgba(255,255,255,0.2);
}

.btn-footer:hover { box-shadow: 0 8px 50px rgba(255,255,255,0.35); }

/* ============================
   NAVBAR – slim ~56px
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}

.navbar.scrolled { background: rgba(0,0,0,0.7); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  height: 100%;
}

.nav-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-wordmark {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 56px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.2rem;
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  max-width: 14ch;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 48ch;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s both;
}

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

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 0.5; transform: translateX(-50%) translateY(0); }
}

/* ============================
   SECTIONS COMMON
   ============================ */
.section {
  padding: 7rem 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.section-dark {
  background: rgba(0,0,0,0.55);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

/* ============================
   CARD GRIDS  (fixed-aligned)
   ============================ */
.cards-grid {
  display: grid;
  gap: 1.75rem;
  justify-content: center;
  align-items: stretch;
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* override fixed glass-card dims for grid cards so they fill the cell */
.cards-grid .glass-card {
  width: 100%;
  height: auto;
  min-height: 360px;
  will-change: transform;
  transform-style: preserve-3d;
}

/* tilt-card variant: padded inner so transforms don't clip content */
.card-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ============================
   PROJECT CARDS
   ============================ */
.project-card .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  width: fit-content;
}

.card-body { flex: 1; }

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.65;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-tag-small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
}

/* ============================
   ABOUT
   ============================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-text .section-title { text-align: center; }

.about-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  margin-bottom: 1.2rem;
  line-height: 1.75;
}

.about-stats {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.about-stats li { display: flex; flex-direction: column; gap: 0.1rem; }

.about-stats strong {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.about-stats span {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================
   TEAM CARDS
   ============================ */
.team-inner {
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  margin: 0 auto 0.8rem;
  display: block;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.team-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.team-bio {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.65;
  margin-top: auto;
}

/* ============================
   FOOTER CTA
   ============================ */
.footer-cta {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-cta-inner {
  padding: 8rem 2rem 6rem;
  text-align: center;
}

.footer-cta-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
}

.footer-cta-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.footer-cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-bottom: 2.8rem;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}

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

.footer-brand { display: flex; align-items: center; }
.footer-brand .nav-wordmark { opacity: 0.75; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.cards-grid .tilt-card:nth-child(1) { transition-delay: 0s; }
.cards-grid .tilt-card:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .tilt-card:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .tilt-card:nth-child(4) { transition-delay: 0.3s; }

/* ============================
   MODAL
   ============================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  /* override glass-card fixed dimensions */
  height: auto;
  max-height: calc(100vh - 3rem);
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.35s cubic-bezier(.2,.8,.25,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Progress */
.modal-progress {
  margin-bottom: 1.8rem;
  transition: opacity 0.3s ease;
}

.modal-progress.hidden { display: none; }

.progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 50%;
  background: #fff;
  border-radius: 50px;
  transition: width 0.4s cubic-bezier(.2,.8,.25,1);
}

.progress-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.6rem;
}

/* Steps */
.modal-step {
  display: none;
  overflow-y: auto;
  flex: 1;
  padding-right: 0.5rem;
  animation: stepIn 0.35s ease both;
}

.modal-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.modal-step::-webkit-scrollbar { width: 6px; }
.modal-step::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 50px; }

.modal-header { margin-bottom: 1.5rem; }

.modal-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.modal-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

/* Form */
.modal-form { display: flex; flex-direction: column; gap: 1.1rem; }

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: none;
  padding: 0;
}

.form-field > span, .form-field > legend {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
}

.form-field em {
  font-style: normal;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-left: 0.3rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: rgba(255, 90, 90, 0.7);
}

.form-hint {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

/* checkbox pills */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.checkbox-pill {
  position: relative;
  cursor: pointer;
}

.checkbox-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-pill span {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: rgba(255,255,255,0.75);
}

.checkbox-pill input:checked + span {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* slots */
.slots-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.6rem 0.8rem;
  align-items: center;
  margin-top: 0.4rem;
}

.slot-day {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.slot-day span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

.slot-times {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.slot-btn {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.slot-btn:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
}

.slot-btn.selected {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* privacy check */
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #fff;
  flex-shrink: 0;
}

.checkbox-line a { color: #fff; text-decoration: underline; }

/* modal actions */
.modal-actions {
  margin-top: 1.4rem;
  display: flex;
  justify-content: flex-end;
}

.modal-actions.split {
  justify-content: space-between;
  gap: 1rem;
}

.btn-modal-primary {
  padding: 0.85rem 1.8rem;
  background: #fff;
  color: #000;
  font-weight: 700;
  border-radius: 50px;
}

.btn-modal-primary:hover { box-shadow: 0 6px 24px rgba(255,255,255,0.25); }

.btn-modal-secondary {
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-weight: 600;
}

.btn-modal-secondary:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

/* success */
.modal-success { text-align: center; padding-top: 1rem; }

.success-check {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
}

.success-check svg {
  width: 100%;
  height: 100%;
  stroke: #4ade80;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-check circle {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: drawCircle 0.6s ease forwards;
}

.success-check path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s ease 0.5s forwards;
}

@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }

.summary-list {
  list-style: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem auto;
  max-width: 420px;
  text-align: left;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

.summary-list li + li { border-top: 1px solid rgba(255,255,255,0.06); }

.summary-list li span:first-child {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.summary-list li span:last-child { font-weight: 500; text-align: right; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; max-width: 480px; }
  .team-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1.2rem; }
  .btn-nav { font-size: 0.75rem; padding: 0.45rem 0.9rem; }
  .nav-wordmark { display: none; }

  .about-stats { gap: 1.5rem; }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-brand { justify-content: center; }

  .modal-dialog { padding: 1.8rem 1.4rem 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: 1fr; gap: 0.4rem; }
  .slot-day { margin-top: 0.6rem; }
  .modal-actions.split { flex-direction: column-reverse; }
  .modal-actions.split .btn { width: 100%; }
}
