/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --bg:          #0c0c0c;
  --bg-surface:  #111111;
  --bg-elevated: #1a1a1a;
  --text:        #f0ebe3;
  --text-muted:  #6e6860;
  --accent:      #c9a96e;       /* warm gold */
  --accent-dim:  #7a6239;
  --border:      rgba(240, 235, 227, 0.07);

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h:       64px;
  --marquee-dur: 28s;
}

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

html {
  /* Smooth scroll handled by Lenis; native scroll-behavior can conflict */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

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

a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────
   GRAIN OVERLAY
───────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  animation: grainShift 0.4s steps(1) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -5%); }
  20%  { transform: translate(-10%, 5%); }
  30%  { transform: translate(5%, -10%); }
  40%  { transform: translate(-5%, 15%); }
  50%  { transform: translate(-10%, 5%); }
  60%  { transform: translate(15%, 0); }
  70%  { transform: translate(0, 10%); }
  80%  { transform: translate(-15%, 0); }
  90%  { transform: translate(10%, 5%); }
  100% { transform: translate(5%, 0); }
}

/* ─────────────────────────────────────────
   CUSTOM CURSOR
───────────────────────────────────────── */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 50%;
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              border-color 0.3s,
              background 0.3s;
}

.cursor.cursor--hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.07);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

@media (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}

/* ─────────────────────────────────────────
   UTILITY
───────────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.placeholder-img {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

/* Word reveal utility (JS splits into .word > .word-inner) */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.word-inner {
  display: inline-block;
}

/* ─────────────────────────────────────────
   CONTRIBUTION BANNER
───────────────────────────────────────── */
.contribution-banner {
  width: 100%;
  padding-top: var(--nav-h); /* clear fixed nav */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  line-height: 0; /* kill inline gap under canvas */
}

#contribCanvas {
  display: block;
  width: 100%;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s;
}

.nav--filled {
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  cursor: none;
  text-decoration: none;
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  height: auto;
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  background: radial-gradient(
    ellipse 90% 70% at 65% 35%,
    #201a0f 0%,
    #0c0c0c 65%
  );
}

.hero-bg .hero-img {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(12,12,12,0.15) 0%,
    rgba(12,12,12,0.72) 100%
  );
}

/* Decorative ambient orb */
.hero-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  right: -100px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(201, 169, 110, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 52px 0;
  max-width: 1400px;
  display: flex;
  align-items: flex-end;
  gap: 60px;
}

.hero-text {
  flex: 1;
  padding-bottom: 120px;
}

.hero-image {
  flex: 0 0 auto;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
}

.hero-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(76px, 11vw, 150px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2.4rem;
  overflow: visible;
}

.hero-line {
  display: inline-block;
}

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

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  max-width: 340px;
  line-height: 1.7;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 52px;
  right: 52px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50%       { opacity: 0.9; transform: scaleY(1); }
}

/* ─────────────────────────────────────────
   CONTRIBUTION BANNER
───────────────────────────────────────── */
.contribution-banner {
  width: 100%;
  padding-top: var(--nav-h); /* clear fixed nav */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  line-height: 0; /* kill inline gap under canvas */
}

#contribCanvas {
  display: block;
  width: 100%;
}

/* ─────────────────────────────────────────
   MARQUEE
───────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-surface);
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll var(--marquee-dur) linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  padding: 0 28px;
  letter-spacing: 0.01em;
}

.marquee-track .dot {
  color: var(--accent);
  padding: 0;
  font-style: normal;
  opacity: 0.6;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   INTRO STRIP
───────────────────────────────────────── */
.intro-strip {
  padding: 110px 52px;
  border-bottom: 1px solid var(--border);
}

.intro-text {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 940px;
}

/* ─────────────────────────────────────────
   WORK
───────────────────────────────────────── */
.work {
  padding: 130px 52px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: none;
}

.work-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.work-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
}

.work-card--wide .work-card-img {
  aspect-ratio: 16 / 9;
}

.work-card-img img {
  transition: transform 0.8s var(--ease-out);
}

.work-card:hover .work-card-img img {
  transform: scale(1.05);
}

/* Placeholder shimmer on hover */
.work-card:hover .placeholder-img {
  border-color: var(--accent-dim);
}

.work-card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.25s;
}

.work-card:hover .work-card-title {
  color: var(--accent);
}

.work-card-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about {
  padding: 130px 52px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1200px;
}

.about-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

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

.about-text p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 440px;
}

/* ─────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────── */
.testimonials {
  position: relative;
  padding: 170px 52px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#abyssCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  cursor: none;
}

.testimonials-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--text);
}

.testimonial-author {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact {
  padding: 170px 52px;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 100%;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-player {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  width: 100%;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--text);
}

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

.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  width: fit-content;
  transition: color 0.25s, border-color 0.25s;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.contact-white {
  color: #ffffff !important;
}

.contact-white:hover {
  color: var(--accent) !important;
}

.contact-links {
  display: flex;
  gap: 36px;
  margin-top: 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

.contact-icon {
  width: 20px;
  height: 20px;
  transition: filter 0.25s;
}

.contact-link:nth-child(1) .contact-icon {
  filter: none;
}

.contact-link:nth-child(2) .contact-icon {
  filter: brightness(0) saturate(100%) invert(100%);
}

.contact-link:nth-child(3) .contact-icon {
  filter: none;
}

.contact-link:hover:nth-child(2) .contact-icon {
  filter: brightness(0) saturate(100%) invert(100%);
}

.contact-links a span {
  position: relative;
}

.contact-links a span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.contact-link:hover span {
  color: var(--text);
}

.contact-link:hover span::after {
  width: 100%;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 52px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --nav-h: 60px; }

  .nav,
  .hero-content,
  .intro-strip,
  .work,
  .about,
  .contact,
  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-scroll-hint { right: 32px; }
  .about-inner { gap: 60px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { gap: 24px; }

  .hero-content { padding: 0 20px; flex-direction: column; align-items: center; }
  .hero-text { padding-bottom: 0; }
  .hero-image { height: 350px; }
  .hero-scroll-hint { right: 20px; bottom: 28px; }

  .intro-strip  { padding: 72px 20px; }
  .work         { padding: 80px 20px; }
  .about        { padding: 80px 20px; }
  .contact      { padding: 100px 20px; }
  .footer       { padding: 20px; }

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

  .work-card--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img {
    aspect-ratio: 4 / 3;
    max-width: 400px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-links { gap: 16px; }
  .contact-links { flex-wrap: wrap; gap: 20px; }
  .contact-link { flex-direction: column; gap: 8px; }
}
