:root {
  --bg-dark:      #070707;
  --bg-light:     #e9e4db;
  --bg-light-alt: #f0ece4;
  --text-dark:    #f4efe8;
  --text-light:   #141414;
  --muted-dark:   rgba(244, 239, 232, 0.50);
  --muted-light:  rgba(20, 20, 20, 0.44);
  --line-light:   rgba(20, 20, 20, 0.10);
  --line-dark:    rgba(255, 255, 255, 0.09);
  --shadow:       0 20px 64px rgba(0, 0, 0, 0.14);
  --ease:         cubic-bezier(.16, 1, .3, 1);
  --font-sans:    'Manrope', Arial, Helvetica, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', Courier, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
  overflow-x: hidden;
}

a, button, video, .project-tile, .project-media {
  cursor: none !important;
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
  body,
  a, button, video, .project-tile, .project-media {
    cursor: auto !important;
  }
}

a { color: inherit; text-decoration: none; }
img, video { display: block; }

/* ── Custom cursor ────────────────────────────────── */

.cursor-logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 34px;
  height: 34px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cursor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cursor-logo.is-burst {
  animation: cursorBurst 460ms var(--ease);
}

@media (pointer: coarse) {
  .cursor-logo { display: none; }
}

/* ── Site header ──────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  pointer-events: none;
}

.brand img {
  width: 44px;
  height: auto;
}

.brand,
.hero-date {
  pointer-events: auto;
}


/* ── Hero ─────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100dvh; /* dvh avoids iOS address-bar gap */
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-dark);
}

.hero-montage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: none; /* hard cuts only — JS controls opacity directly */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0) 15%, rgba(0,0,0,0.12) 48%, rgba(0,0,0,0.66) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.10) 38%, rgba(0,0,0,0.52) 100%);
}

.hero-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  flex-direction: column;
  max-width: min(92vw, 820px);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: rgba(244, 239, 232, 0.96);
}

.hero-tagline em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-attr {
  align-self: flex-end;
  margin: 8px 0 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.0rem, 1.4vw, 1.3rem);
  letter-spacing: -0.01em;
  color: rgba(244, 239, 232, 0.88);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(244, 239, 232, 0.82);
}

.scroll-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 48px;
  background: rgba(244, 239, 232, 0.20);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(244, 239, 232, 0.82);
  border-bottom: 1px solid rgba(244, 239, 232, 0.82);
  transform: translateX(-50%) rotate(45deg);
}

.scroll-arrow::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 55%;
  background: linear-gradient(180deg, rgba(244,239,232,0) 0%, rgba(244,239,232,0.88) 100%);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* ── Work section ─────────────────────────────────── */

.work-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-light-alt) 100%);
  color: var(--text-light);
}

/* ── Editorial grid ───────────────────────────────── */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  padding: 0 24px 60px;
  max-width: 1500px;
  margin: 0 auto;
}

/* ── Intro band ───────────────────────────────────── */

.intro-band {
  grid-column: 1 / -1;
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--line-light);
}

.intro-statement h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.8vw, 5.0rem);
  line-height: 0.94;
  letter-spacing: -0.060em;
  color: var(--text-light);
}

.intro-statement h2 em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}


.cta-btn {
  display: inline-block;
  justify-self: start;
  align-self: start;
  margin-top: 6px;
  padding: 13px 22px;
  background: var(--text-light);
  color: var(--bg-light);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  transition: opacity 180ms ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  opacity: 0.75;
}

/* ── About strip ──────────────────────────────────── */

.about-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px 48px;
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--line-light);
}

.about-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.about-col--services {
  gap: 12px;
}

.about-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.about-services li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: rgba(20, 20, 20, 0.62);
}

.about-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.about-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  font-weight: 400;
  line-height: 1.64;
  letter-spacing: -0.02em;
  color: var(--text-light);
  max-width: 44ch;
}

/* ── Project tiles ────────────────────────────────── */

.project-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: #0d0d0d;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: box-shadow 380ms var(--ease);
}

.project-tile:hover,
.project-tile:focus-visible {
  box-shadow: 0 28px 80px rgba(0,0,0,0.22);
}

.project-large   { grid-column: span 8;  min-height: 520px; }
.project-wide    { grid-column: span 6;  min-height: 420px; }
.project-compact { grid-column: span 4;  min-height: 420px; }
.project-ultra   { grid-column: span 8;  min-height: 440px; }

.project-tile:hover .project-media video,
.project-tile:focus-visible .project-media video {
  transform: scale(1.05);
}

.project-media {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.30), transparent 38%);
  pointer-events: none;
  z-index: 1;
}

.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 700ms var(--ease);
}

.project-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.055);
}

.project-label-name {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: rgba(244, 239, 232, 0.88);
}

.project-label-type {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.34);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  background: #050505;
  color: var(--text-dark);
  min-height: 72vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 -28px 72px rgba(0,0,0,0.22);
}

.footer-layout {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 72vh;
  padding: 36px 24px 20px;
  overflow: hidden;
}

.footer-email {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
  transition: opacity 160ms ease;
}

.footer-email:hover,
.footer-email:focus-visible {
  opacity: 0.52;
}

.footer-links {
  position: absolute;
  top: 36px;
  right: 24px;
  z-index: 2;
  display: grid;
  gap: 10px;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.footer-links a {
  transition: opacity 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 0.52;
}

.footer-wordmark {
  width: 100%;
  text-align: center;
  display: block;
}

.footer-wordmark span {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 31rem;
  line-height: 0.78;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

/* ── Reveal animation ─────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 1100px) {
  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band,
  .about-strip {
    grid-column: span 2;
  }

  .about-strip {
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
  }

  .about-col--services {
    grid-column: span 2;
    border-top: 1px solid var(--line-light);
    padding-top: 20px;
  }

  .project-large,
  .project-wide,
  .project-compact,
  .project-ultra {
    grid-column: span 2;
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  body { cursor: auto; }
  .cursor-logo { display: none; }

  .site-header { padding: 14px 16px; }
  .brand img { width: 34px; }

  .scroll-cue { bottom: 28px; }

  .hero-copy {
    max-width: min(88vw, 420px);
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Scale with viewport so it always fits on one line */
  .hero-tagline {
    font-size: 6vw;
    letter-spacing: -0.04em;
    white-space: nowrap;
  }

  .hero-attr {
    font-size: clamp(0.85rem, 3.6vw, 1.1rem);
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 14px 48px;
  }

  .intro-band,
  .about-strip {
    grid-column: span 1;
  }

  .intro-band {
    padding: 32px 0 24px;
  }

  .about-strip {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 0 26px;
  }

  .about-col--services {
    grid-column: span 1;
    border-top: 1px solid var(--line-light);
    padding-top: 18px;
  }

  .intro-statement h2 {
    font-size: clamp(2.4rem, 12.5vw, 4rem);
    line-height: 0.92;
  }

  .about-text {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  /* Taller touch target for CTA */
  .cta-btn {
    padding: 15px 24px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  .project-large,
  .project-wide,
  .project-compact,
  .project-ultra {
    grid-column: span 1;
    min-height: max(220px, 54vw);
  }

  .project-label {
    padding: 11px 14px;
  }

  .project-label-name {
    font-size: 0.8rem;
  }

  /* Footer */
  .site-footer {
    min-height: 52vh;
  }

  .footer-layout {
    min-height: 52vh;
    padding: 18px 16px 16px;
  }

  .footer-email {
    top: 18px;
    left: 16px;
    font-size: 13px;
  }

  .footer-links {
    top: 18px;
    right: 16px;
    font-size: 13px;
    gap: 8px;
  }

  .footer-wordmark span {
    font-size: clamp(5rem, 24vw, 9rem);
  }
}

/* ── Keyframes ────────────────────────────────────── */

@keyframes scrollPulse {
  0%   { transform: translateY(-120%); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(150%);  opacity: 0; }
}

@keyframes cursorBurst {
  0%   { transform: translate(-50%, -50%) scale(1); }
  45%  { transform: translate(-50%, -50%) scale(1.42); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
