/* ==================================================================
   GRW STRATEGY — STYLES
   Organized in sections: variables, reset, type, nav, hero,
   transition, statement, capabilities, work, showreel, process,
   about, break, final-cta, footer, motion & reduced-motion.
   ================================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  --black: #0a0a0a;
  --near-black: #111111;
  --white: #f7f7f5;
  --off-white: #e9e8e3;
  --gray: #8a8a86;
  --gray-dim: #46453f;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 14vw;

  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-slow: 900ms;
  --dur-med: 500ms;
  --dur-fast: 220ms;

  --max-width: 1600px;
}

/* ---------- 2. RESET ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
button { font-family: inherit; }

::selection { background: var(--white); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ---------- 3. NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  transition: background var(--dur-med) ease, backdrop-filter var(--dur-med) ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav__mark { display: flex; align-items: center; }
.nav__mark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  font-size: 0.98rem;
  font-weight: 500;
}
.nav__links a {
  opacity: 0.75;
  transition: opacity var(--dur-fast) ease;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  border: 1px solid var(--white);
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav__cta:hover { background: var(--white); color: var(--black); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 28px; height: 20px;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--white);
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.nav__toggle span:first-child { top: 6px; }
.nav__toggle span:last-child { bottom: 6px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--dur-med) var(--ease-cinematic), transform var(--dur-med) var(--ease-cinematic);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 600;
}
.mobile-menu__cta {
  margin-top: 1rem;
  border: 1px solid var(--white);
  padding: 0.75rem 2rem;
  font-size: 1rem !important;
}

/* ---------- 4. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md) 1.25rem;
  overflow: hidden;
}
.hero__stage {
  will-change: transform;
}
.hero__mark {
  font-size: clamp(4.5rem, 20vw, 15rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.hero__sub {
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--off-white);
}
.hero__body {
  max-width: 640px;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic);
}
.hero__body.is-visible { opacity: 1; transform: translateY(0); }
.hero__copy {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--off-white);
  font-weight: 300;
}
.hero__ctas {
  margin-top: var(--space-md);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--white);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn--primary { background: var(--white); color: var(--black); }
.btn--primary:hover { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--invert { background: var(--white); color: var(--black); }
.btn--invert:hover { background: transparent; color: var(--white); }

.hero__scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 42px;
  background: var(--gray-dim);
  overflow: hidden;
}
.hero__scroll-cue span {
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 100%;
  background: var(--white);
  animation: scrollCue 2.2s var(--ease-cinematic) infinite;
}
@keyframes scrollCue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- 5. HERO → CONTENT TRANSITION ---------- */
.transition {
  padding: var(--space-lg) clamp(1.25rem, 4vw, 3rem);
}
.transition__row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}
.reveal-frame {
  position: relative;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: linear-gradient(155deg, var(--near-black), #1b1b1a 60%, var(--near-black));
  border: 1px solid rgba(247,247,245,0.08);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic);
}
.reveal-frame.is-visible { opacity: 1; transform: scale(1); }

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

.reveal-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.reveal-frame__label {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--white);
}

/* ---------- 6. SHARED: section label / reveal text ---------- */
.section-label {
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.reveal-text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic);
}
.reveal-text.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 7. BRAND STATEMENT ---------- */
.statement {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
}
.statement__lines {
  display: block;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.statement__lines .line { display: block; }
.statement__support {
  margin-top: var(--space-lg);
  max-width: 42ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--off-white);
}

/* ---------- 8. CAPABILITIES ---------- */
.capabilities {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
}
.cap {
  display: grid;
  grid-template-columns: minmax(120px, 20%) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(247,247,245,0.12);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic);
}
.cap.is-visible { opacity: 1; transform: translateY(0); }
.cap:last-child { border-bottom: 1px solid rgba(247,247,245,0.12); }
.cap__index {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gray-dim);
  line-height: 1;
}
.cap__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.cap__desc {
  max-width: 46ch;
  color: var(--off-white);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  margin-bottom: var(--space-md);
}
.cap__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem 1.5rem;
  max-width: 640px;
}
.cap__list li {
  font-size: 0.9rem;
  color: var(--gray);
  padding-left: 1rem;
  position: relative;
}
.cap__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 1px;
  background: var(--gray);
}

/* ---------- 9. SELECTED WORK ---------- */
.work {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
}
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic);
}
.project.is-visible { opacity: 1; transform: translateY(0); }
.project--media-right { direction: rtl; }
.project--media-right > * { direction: ltr; }
.project--full { grid-template-columns: 1fr; }
.project__media {
  aspect-ratio: 16 / 9;
  min-height: 240px;
  max-height: 420px;
  overflow: hidden;
  background: linear-gradient(160deg, #1c1c1a, var(--near-black) 65%);
  border: 1px solid rgba(247,247,245,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 400ms ease;
}
.project__media--full { aspect-ratio: 16 / 7; }

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project__desc {
  max-width: 46ch;
  margin: 0 0 1.25rem;
  color: var(--off-white);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
}

.project__media-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gray-dim);
}
.project__info h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 1rem;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.project__tags li {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--gray);
  border-top: 1px solid rgba(247,247,245,0.25);
  padding-top: 0.4rem;
}

/* ---------- 10. SHOWREEL ---------- */
.showreel {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.showreel h2.section-label { text-align: left; }
.showreel__support {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  max-width: 24ch;
  margin: 0 auto var(--space-lg);
  text-align: left;
  color: var(--off-white);
}
.showreel__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(160deg, #1c1c1a, var(--near-black) 65%);
  border: 1px solid rgba(247,247,245,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic);
}
.showreel__frame.is-visible { opacity: 1; transform: scale(1); }
.showreel__frame video { width: 100%; height: 100%; object-fit: cover; }
.showreel__label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gray-dim);
}

/* ---------- 11. HOW WE WORK ---------- */
.process {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
}
.process__step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(90px, 15%) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid rgba(247,247,245,0.12);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic);
}
.process__step.is-visible { opacity: 1; transform: translateY(0); }
.process__step:last-child { border-bottom: 1px solid rgba(247,247,245,0.12); }
.process__index {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--gray-dim);
  line-height: 1;
}
.process__body h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.process__body p {
  max-width: 46ch;
  color: var(--off-white);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

/* ---------- 12. ABOUT ---------- */
.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.about__heading {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}
.about__copy p {
  color: var(--off-white);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  margin: 0 0 1.25rem;
  max-width: 46ch;
}
.about__approach {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

/* ---------- 13. VISUAL BREAK ---------- */
.break {
  overflow: hidden;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(247,247,245,0.12);
  border-bottom: 1px solid rgba(247,247,245,0.12);
}
.break__track {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 5rem);
  letter-spacing: -0.01em;
  color: var(--gray-dim);
  animation: breakScroll 26s linear infinite;
  width: max-content;
}

@keyframes breakScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

/* ---------- 14. FINAL CTA ---------- */
.final-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.final-cta__heading {
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
}
.final-cta__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--off-white);
  font-weight: 400;
}
.final-cta .btn { margin-top: var(--space-lg); }
.final-cta__meta {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--gray);
}
.final-cta__meta a { border-bottom: 1px solid var(--gray-dim); }

/* ---------- 15. FOOTER ---------- */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) clamp(1.25rem, 4vw, 3rem) var(--space-md);
  text-align: center;
  border-top: 1px solid rgba(247,247,245,0.12);
}
.footer__mark span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}
.footer__tagline {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gray);
}
.footer__location {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--gray);
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: var(--space-md);
  font-size: 0.8rem;
}
.footer__social a { opacity: 0.75; }
.footer__social a:hover { opacity: 1; }
.footer__contact {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.25rem;
  font-size: 0.9rem;
  color: var(--off-white);
}
.footer__email {
  display: inline-block;
  border-bottom: 1px solid var(--gray-dim);
}
.footer__copy {
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: var(--gray-dim);
}

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .cap, .process__step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .project, .project--media-right {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .about { grid-template-columns: 1fr; }
  .transition__row { grid-template-columns: 1fr 1fr; }
  .transition__row .reveal-frame:nth-child(3) { display: none; }
}

@media (max-width: 560px) {
  .transition__row { grid-template-columns: 1fr; }
  .project__media { min-height: 210px; }
  .transition__row .reveal-frame:nth-child(2) { display: none; }
}

/* ---------- 17. DESKTOP-ONLY 3D TILT ---------- */
@media (hover: hover) and (pointer: fine) {
  .project__media[data-tilt] { transition: transform 250ms ease-out; }
}

/* ---------- 18. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__body,
  .reveal-frame,
  .reveal-text,
  .cap,
  .project,
  .process__step,
  .showreel__frame {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__stage { transform: none !important; }
  .break__track { animation: none !important; }
  .hero__scroll-cue span { animation: none !important; }
  .project__media[data-tilt] { transform: none !important; }
}
