/* ── RESET & BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #080808;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* ── 3D ZONE ── */
#zone-3d {
  position: relative;
  height: 600vh;
}

#c {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

/* Vignette */
#vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,.6) 100%);
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .025;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── NAVBAR ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(8,8,8,.96);
  backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,.07);
}

#nav-logo {
  font-size: .9rem;
  font-weight: 100;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #ffffffe9;
  cursor: pointer;
  text-decoration: none;
}

#nav-logo b {
  font-weight: 700;
}

#nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: .58rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  cursor: pointer;
  transition: color .25s;
  background: none;
  border: none;
}

.nav-link:hover,
.nav-link.active {
  color: rgba(255,255,255,.85);
}

#nav-cta {
  font-size: .55rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #080808;
  background: #fff;
  padding: .55rem 1.3rem;
  cursor: pointer;
  border: 1px solid #fff;
  transition: background .25s, color .25s;
  white-space: nowrap;
  font-family: inherit;
}

#nav-cta:hover {
  background: transparent;
  color: #fff;
}

#nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.ham-line {
  width: 22px;
  height: 1px;
  background: #fff;
  transition: all .3s;
}

/* Mobile menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8,8,8,.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}

#mobile-menu.open {
  transform: translateY(0);
}

.mobile-link {
  font-size: 1.8rem;
  font-weight: 100;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  text-decoration: none;
  transition: color .2s;
}

.mobile-link:hover {
  color: #fff;
}

/* ── 3D HUD ── */
#hud3d {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}

#hud3d.vis {
  opacity: 1;
}

#room-hud {
  position: absolute;
  bottom: 52px;
  left: 40px;
}

#room-hud-sub {
  font-size: .5rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 7px;
}

#room-hud-name {
  font-size: 2rem;
  font-weight: 100;
  color: rgba(255,255,255,.88);
  letter-spacing: .04em;
  line-height: 1;
}

#room-hud-desc {
  font-size: .6rem;
  color: rgba(255,255,255,.28);
  letter-spacing: .12em;
  margin-top: 9px;
  max-width: 200px;
  line-height: 1.7;
}

#prog-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}

.pdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.pdot.on {
  background: rgba(255,255,255,.82);
  transform: scale(1.4);
}

#title-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}

#title-card h1 {
  font-size: clamp(2rem, 6vw, 5.5rem);
  font-weight: 100;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255,255,255,.9);
}

#title-card p {
  font-size: .55rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-top: 14px;
}

#scroll-hint-3d {
  position: absolute;
  bottom: 52px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

#scroll-hint-3d span {
  font-size: .48rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  writing-mode: vertical-lr;
}

.sh-line {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}

.sh-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.45);
  animation: drip 1.7s ease-in-out infinite;
}

@keyframes drip {
  0%   { top: -100%; }
  100% { top: 200%; }
}

#scroll-hint-3d.gone {
  opacity: 0;
  transition: opacity .5s;
}

/* ── SECTIONS BELOW 3D ── */
.section {
  position: relative;
  z-index: 10;
}

/* ── ABOUT ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.about-img {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter .6s;
}

.about-img:hover img {
  filter: grayscale(0%);
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,8,8,.4) 0%, transparent 60%);
}

.about-content {
  background: #0f0f0d;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-tag {
  font-size: .5rem;
  letter-spacing: .55em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 16px;
}

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 100;
  line-height: 1.15;
  margin-bottom: 28px;
}

.about-content h2 em {
  font-style: italic;
  font-weight: 300;
}

.about-body {
  font-size: .82rem;
  color: rgba(255,255,255,.42);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.stat-box {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 100;
  color: rgba(255,255,255,.88);
  line-height: 1;
}

.stat-lbl {
  font-size: .5rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: 6px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .55rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: .75rem 1.8rem;
  cursor: pointer;
  text-decoration: none;
  background: none;
  transition: background .3s, color .3s;
  margin-top: 8px;
  font-family: inherit;
}

.btn-ghost:hover {
  background: #fff;
  color: #080808;
}

.btn-ghost .arr {
  transition: transform .3s;
}

.btn-ghost:hover .arr {
  transform: translateX(6px);
}

/* Team strip */
.team-strip {
  background: #0a0a08;
  padding: 64px;
}

.team-strip h3 {
  font-size: 1.6rem;
  font-weight: 100;
  margin-bottom: 40px;
}

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

.team-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.team-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1a1a18;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .6s, transform .7s;
}

.team-card:hover .team-card-img img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.team-card-info {
  padding: 14px 0 0;
}

.team-card-name {
  font-size: .82rem;
  font-weight: 400;
}

.team-card-role {
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.32);
  margin-top: 4px;
}

/* ── BLOG ── */
#blog {
  background: #080808;
  padding: 96px 64px;
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 100;
}

.blog-header h2 em {
  font-style: italic;
  font-weight: 100;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.04);
}

.blog-card {
  background: #080808;
  overflow: hidden;
  cursor: pointer;
  transition: background .3s;
}

.blog-card:hover {
  background: #0f0f0d;
}

.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.07);
}

.blog-card-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: .48rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  padding: .35rem .8rem;
}

.blog-card-body {
  padding: 24px 20px;
}

.blog-card-date {
  font-size: .5rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  line-height: 1.7;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .52rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: 16px;
  text-decoration: none;
  transition: color .2s;
}

.blog-card:hover .blog-card-link {
  color: #fff;
}

/* ── CONTACT ── */
#contact {
  background: #0c0c0a;
  padding: 96px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 100;
  line-height: 1.15;
  margin-bottom: 28px;
}

.contact-info h2 em {
  font-style: italic;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-row {
  display: flex;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.contact-row:first-child {
  border-top: 1px solid rgba(255,255,255,.06);
}

.contact-row-label {
  font-size: .48rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
}

.contact-row-val {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

.contact-row-val a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}

.contact-row-val a:hover {
  border-color: rgba(255,255,255,.4);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}

.social-link {
  font-size: .5rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(255,255,255,.32);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  position: relative;
  margin-bottom: 2px;
}

.form-group label {
  display: block;
  font-size: .48rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 8px;
  margin-top: 24px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  color: #fff;
  font-family: inherit;
  font-size: .82rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color .25s, background .25s;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  color: rgba(255,255,255,.2);
}

.form-control:focus {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.07);
}

textarea.form-control {
  min-height: 130px;
}

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

.form-submit {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-submit {
  font-size: .55rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: #080808;
  background: #fff;
  padding: 1rem 2.4rem;
  border: 1px solid #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background .3s, color .3s;
}

.btn-submit:hover {
  background: transparent;
  color: #fff;
}

.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.form-note {
  font-size: .6rem;
  color: rgba(255,255,255,.2);
}

#form-success {
  display: none;
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  padding: 16px 0;
}

#form-error {
  display: none;
  font-size: .68rem;
  color: #c45858;
  padding: 12px 0;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #080808;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 10;
  position: relative;
}

.footer-logo {
  font-size: .75rem;
  font-weight: 100;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.footer-logo b {
  font-weight: 700;
}

.footer-copy {
  font-size: .52rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.2);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: .5rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
  font-family: inherit;
}

.footer-link:hover {
  color: rgba(255,255,255,.7);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #about {
    grid-template-columns: 1fr;
  }

  .about-img {
    min-height: 50vw;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #blog {
    padding: 64px 24px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  #contact {
    grid-template-columns: 1fr;
    padding: 64px 24px;
    gap: 48px;
  }

  .team-strip {
    padding: 48px 24px;
  }

  #nav-links {
    display: none;
  }

  #nav-hamburger {
    display: flex;
  }

  .about-content {
    padding: 52px 28px;
  }

  footer {
    padding: 24px 28px;
  }
}

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

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

  #room-hud-name {
    font-size: 1.4rem;
  }

  #room-hud {
    left: 20px;
    bottom: 36px;
  }

  #prog-dots {
    right: 16px;
  }
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

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