/* ================================================
   WOW SUPER DESIGN — Main Stylesheet
   ================================================ */

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

:root {
  --black: #0a0a0a;
  --white: #f0ece4;
  --white-raw: 240,236,228;
  --dim: rgba(var(--white-raw), 0.4);
  --faint: rgba(var(--white-raw), 0.15);
  --accent: #d4622b;
  --teal: #1a9e73;
  --surface: #111;
  --gutter: clamp(20px, 4vw, 64px);
  --col-gap: clamp(12px, 2vw, 32px);
}

html {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

body {
  background: var(--black);
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; cursor: none; }
button, input, textarea, select { cursor: none; font-family: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== UTILITY ===== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  top: -5px; left: -5px;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: width .3s cubic-bezier(.25,.1,.25,1),
              height .3s cubic-bezier(.25,.1,.25,1),
              border-color .3s,
              background .3s,
              top .3s cubic-bezier(.25,.1,.25,1),
              left .3s cubic-bezier(.25,.1,.25,1);
}

.cursor.is-active {
  width: 64px; height: 64px;
  top: -32px; left: -32px;
  background: rgba(var(--white-raw), .06);
  border-color: var(--white);
}

.cursor.is-accent {
  border-color: var(--teal);
  width: 48px; height: 48px;
  top: -24px; left: -24px;
}

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}

.loader__logo {
  opacity: 0;
}

.loader__logo img {
  height: 20px;
  width: auto;
}

.loader__count {
  font-size: 48px; font-weight: 200;
  letter-spacing: -.02em; color: var(--white);
  font-variant-numeric: tabular-nums;
}

.loader__bar {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--accent);
  width: 0%;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  transition: background .4s, backdrop-filter .4s;
  mix-blend-mode: difference;
}

.nav.is-solid {
  mix-blend-mode: normal;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 20px;
}

.nav__logo img {
  height: 16px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: flex; gap: 40px; list-style: none;
}

.nav__links a {
  font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(var(--white-raw), .5);
  transition: color .25s;
  position: relative;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--white);
}

.nav__links a.is-active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__image {
  position: absolute; inset: 0;
  z-index: 0;
}

.hero__image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Showreel */
.hero__showreel {
  position: absolute; inset: 0; z-index: 0;
}

.hero__showreel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__showreel-slide.is-active {
  opacity: 1;
}

.hero__showreel-slide img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero__counter {
  position: absolute;
  bottom: 28px; left: var(--gutter);
  z-index: 3;
  font-size: 10px; letter-spacing: .15em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,.2) 0%,
    rgba(10,10,10,.1) 40%,
    rgba(10,10,10,.7) 85%,
    rgba(10,10,10,.95) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) 60px;
  max-width: 900px;
}

.hero__label {
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--white);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 14px; line-height: 1.7;
  color: var(--dim);
  max-width: 420px;
  margin-top: 24px;
  letter-spacing: .01em;
}

.hero__scroll {
  position: absolute;
  bottom: 24px; right: var(--gutter);
  z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  font-size: 9px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--faint);
}

.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--faint), transparent);
  animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  padding: 80px var(--gutter) 40px;
  display: flex; justify-content: space-between; align-items: baseline;
}

.section-header__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -.01em;
}

.section-header__meta {
  font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--teal);
}

/* ===== PROJECT GRID ===== */
.projects {
  padding: 0 var(--gutter) 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.project-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.project-card__image {
  width: 100%;
  aspect-ratio: var(--aspect, 3/4);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

.project-card__image img {
  transition: transform .8s cubic-bezier(.25,.1,.25,1);
}

.project-card:hover .project-card__image img {
  transform: scale(1.04);
}

.project-card__info {
  padding: 16px 0 32px;
}

.project-card__category {
  font-size: 9px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 6px;
}

.project-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  color: var(--white);
  transition: color .25s;
  line-height: 1.25;
}

.project-card:hover .project-card__title {
  color: var(--accent);
}

.project-card__meta {
  font-size: 10px; letter-spacing: .06em;
  color: var(--faint);
  margin-top: 6px;
}

/* Grid layout variations */
.project-card--wide { grid-column: span 7; --aspect: 16/10; }
.project-card--narrow { grid-column: span 5; --aspect: 3/4; }
.project-card--half { grid-column: span 6; --aspect: 4/3; }
.project-card--full { grid-column: span 12; --aspect: 21/9; }
.project-card--third { grid-column: span 4; --aspect: 3/4; }

/* ===== STATEMENT / MANIFESTO ===== */
.statement {
  padding: 120px var(--gutter);
  display: flex;
  justify-content: center;
}

.statement__text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.3;
  text-align: center;
  max-width: 800px;
  color: var(--white);
  letter-spacing: -.01em;
}

.statement__text em {
  font-style: normal;
  color: var(--accent);
}

/* ===== INFO STRIP ===== */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(var(--white-raw), .08);
  border-bottom: 1px solid rgba(var(--white-raw), .08);
}

.info-strip__item {
  padding: 40px var(--gutter);
  text-align: center;
  border-right: 1px solid rgba(var(--white-raw), .08);
}

.info-strip__item:last-child { border-right: none; }

.info-strip__number {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3vw, 48px);
  color: var(--white);
  line-height: 1;
}

.info-strip__label {
  font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
}

/* ===== ABOUT SECTION ===== */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 70vh;
}

.about-row__image {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.about-row__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(40px, 5vw, 80px);
}

.about-row__label {
  font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 24px;
}

.about-row__heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-row__body {
  font-size: 14px; line-height: 1.8;
  color: var(--dim);
  max-width: 440px;
  letter-spacing: .01em;
}

.about-row__link {
  display: inline-block;
  margin-top: 32px;
  font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  padding-bottom: 4px;
}

.about-row__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s cubic-bezier(.25,.1,.25,1);
}

.about-row__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== CTA BAND ===== */
.cta-band {
  padding: 60px var(--gutter);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-band__text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(24px, 2.5vw, 36px);
  color: #fff;
}

.cta-band__btn {
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid #fff;
  padding: 14px 28px;
  color: #fff;
  background: none;
  transition: background .25s, color .25s;
  display: inline-block;
}

.cta-band__btn:hover {
  background: #fff;
  color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px var(--gutter) 0;
  border-top: 1px solid rgba(var(--white-raw), .08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer__brand {
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
}

.footer__sub {
  font-size: 11px; color: var(--dim);
  margin-top: 8px; line-height: 1.7;
}

.footer__heading {
  font-size: 9px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--faint);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 12px; color: var(--dim);
  line-height: 2;
  transition: color .2s;
}

.footer__link:hover { color: var(--white); }

.footer__link--teal { color: var(--teal); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(var(--white-raw), .06);
  font-size: 10px; color: var(--faint);
  letter-spacing: .06em;
}

.footer__bar {
  height: 2px; background: var(--teal);
}

/* ===== REVEAL ANIMATIONS ===== */
/* Initial states set by GSAP, not CSS, to avoid hiding content if JS fails */

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav__links { display: none; }

  .project-card--wide,
  .project-card--narrow,
  .project-card--half,
  .project-card--third { grid-column: span 12; }

  .project-card--half { grid-column: span 6; }

  .about-row { grid-template-columns: 1fr; }
  .about-row__image { aspect-ratio: 16/10; }

  .info-strip { grid-template-columns: 1fr; }
  .info-strip__item { border-right: none; border-bottom: 1px solid rgba(var(--white-raw),.08); }
  .info-strip__item:last-child { border-bottom: none; }

  .cta-band { flex-direction: column; gap: 24px; text-align: center; }

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

@media (max-width: 600px) {
  .hero__title { font-size: 36px; }
  .project-card--half { grid-column: span 12; }
  .section-header { flex-direction: column; gap: 8px; }
}
