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

:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #1a1a1a;
  --text:      #f0f0f0;
  --text-muted:#888888;
  --accent:    #c9a84c;
  --accent-2:  #e8c97a;
  --border:    rgba(255,255,255,0.08);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, canvas { display: block; }

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.label--light { color: var(--accent-2); }

.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 2.5rem;
}
.section-title--light { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border: 1.5px solid;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
  background: transparent;
}
.btn--primary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(16px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__logo-main {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--text);
}
.nav__logo-sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { text-align: center; }
.mobile-menu a {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  display: block;
  padding: .5rem 0;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent); }

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

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  margin-bottom: 2rem;
}
.hero__title-line {
  opacity: 0;
  animation: fadeUp .8s forwards;
}
.hero__title-line:nth-child(1) { animation-delay: .4s; }
.hero__title-line:nth-child(2) { animation-delay: .55s; }
.hero__title-line:nth-child(3) { animation-delay: .7s; }

.hero__title-line--outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

.hero__sub {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp .8s .85s forwards;
}

.hero .btn {
  opacity: 0;
  animation: fadeUp .8s 1s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  z-index: 2;
  opacity: 0;
  animation: fadeUp .8s 1.3s forwards;
}
.hero__scroll span {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about__stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat__number em { font-style: normal; font-size: 1rem; }
.stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .4rem;
}

.about__canvas-wrap {
  position: absolute;
  right: -10rem;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: .15;
  pointer-events: none;
}
#aboutCanvas { width: 100%; height: 100%; }

/* ============================================================
   WORK
   ============================================================ */
.work {
  padding: 6rem 0;
}
.work .container { margin-bottom: 3rem; }

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

.work__card { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.work__card--tall { grid-row: span 2; aspect-ratio: unset; }
.work__card--wide { grid-column: span 2; aspect-ratio: 16/7; }

.work__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
}
.work__card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 55%);
  z-index: 1;
}
.work__card-inner:hover .work__card-img { transform: scale(1.06); filter: grayscale(0) brightness(1); }
.work__card-inner:hover .work__card-info { opacity: 1; transform: translateY(0); }

.work__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.25) brightness(.85);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.work__card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  opacity: .85;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.work__card-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .4rem;
}
.work__card-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.work__card-info p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  position: relative;
  padding: 8rem 0;
  background: #050505;
  overflow: hidden;
}

#processCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .3;
}

.process .container { position: relative; z-index: 2; }

.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 4rem;
}

.process__step { flex: 1; }
.process__line {
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-top: 1rem;
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: 1rem;
  margin-right: 1rem;
}

.process__num {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--accent);
  display: block;
  margin-bottom: .75rem;
}
.process__step h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}
.process__step p {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact__grid--single {
  grid-template-columns: 1fr;
  max-width: 640px;
}
.contact__cta {
  margin-top: 2.5rem;
  display: inline-flex;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact__info-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.contact__info-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact__info-value {
  font-size: 1.05rem;
  color: var(--text);
}
.contact__info-value--link:hover { color: var(--accent); transition: color .2s; }

.contact__form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__group { display: flex; flex-direction: column; gap: .5rem; }
.form__group label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form__group input,
.form__group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .85rem 1rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form__group input:focus,
.form__group textarea:focus { border-color: var(--accent); }
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer__brand-main {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.footer__brand-loc {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--text-muted);
  margin-top: .3rem;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-end;
}
.footer__ig {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  transition: color .2s;
}
.footer__ig:hover { color: var(--accent); }
.footer__ig svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  color: var(--text-muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: .4; transform: scaleY(.6); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__canvas-wrap { display: none; }
  .process__steps { flex-direction: column; gap: 2rem; }
  .process__line { display: none; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__title { font-size: clamp(3.5rem, 18vw, 6rem); }
  .hero__title-line--outline { -webkit-text-stroke-width: 1.5px; }

  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__stats { gap: 1.5rem; }

  .work__grid {
    grid-template-columns: 1fr;
  }
  .work__card--tall { grid-row: span 1; aspect-ratio: 4/5; }
  .work__card--wide { grid-column: span 1; aspect-ratio: 4/5; }

  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer__top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer__contact { align-items: flex-start; }
  .footer__bottom { flex-direction: column; gap: .75rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  .about__stats { flex-direction: column; gap: 1.5rem; }
  .nav { padding: 1.25rem 1.25rem; }
}
