/* ============================================================
   The Work — William Crawford · warm luxury, on-brand
   Reuses the williamcluxury.com design tokens.
   ============================================================ */
:root {
  --ink: #0b0b0c;
  --text: #34322f;
  --muted: #8b8880;
  --line: #e7e5e0;
  --white: #ffffff;
  --bg-soft: #f6f5f2;
  --bg-tint: #efeee9;
  --accent: #b3a68c;
  --accent-dark: #97896f;
  --gold-light: #c6bba4;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 14px 44px rgba(11,11,12,0.08);
  --shadow-lg: 0 28px 70px rgba(11,11,12,0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-dark);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 2rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  text-decoration: none; border-radius: 3px; cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { transform: translateY(-2px); background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 5vw, 3.5rem);
  background: rgba(246,245,242,0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-mark { font-weight: 800; letter-spacing: 0.14em; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav-mark span { font-weight: 400; font-style: italic; font-family: var(--font-serif); letter-spacing: 0.04em; }
.nav-cta {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--ink); text-decoration: none; padding: 0.7rem 1.2rem; border: 1px solid var(--ink); border-radius: 3px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--white); }

/* HERO */
.work-hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: center;
  padding: 8rem clamp(1.25rem, 5vw, 3.5rem) 4rem;
  background:
    radial-gradient(120% 80% at 15% 0%, #fbfaf8 0%, var(--bg-soft) 46%, var(--bg-tint) 100%);
  border-bottom: 1px solid var(--line);
}
.wh-inner { max-width: 860px; }
.work-hero .eyebrow { display: block; margin-bottom: 1.75rem; }
.work-hero h1 {
  font-family: var(--font-sans); font-weight: 800; color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.98; letter-spacing: -0.03em;
  text-transform: uppercase; margin-bottom: 1.75rem;
}
.work-hero h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -0.01em; color: var(--accent-dark);
}
.wh-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.7; color: var(--text); max-width: 560px; font-weight: 300; }
.wh-scroll {
  position: absolute; bottom: 2rem; left: clamp(1.25rem, 5vw, 3.5rem);
  width: 1px; height: 54px; background: var(--line); overflow: hidden;
}
.wh-scroll span { position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent-dark); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* SHOWCASE */
.showcase { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 3.5rem); }
.stage {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.feature { position: sticky; top: 96px; }
.feature-frame {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: var(--shadow-lg);
}
.feature-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.feature-play svg { width: 30px; height: 30px; margin-left: 3px; }
.feature-play:hover { transform: translate(-50%,-50%) scale(1.06); }
.feature-frame.is-playing .feature-play { opacity: 0; pointer-events: none; }
.feature-sound {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: #fff; background: rgba(0,0,0,0.4); padding: 0.4rem 0.9rem; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.feature-frame.is-playing .feature-sound { opacity: 0; }
.feature-meta { margin-top: 1.4rem; }
.fm-views { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); }
.fm-cap { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.3; color: var(--ink); margin: 0.5rem 0 0.75rem; }
.fm-link { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); text-decoration: none; transition: color .3s var(--ease); }
.fm-link:hover { color: var(--ink); }

/* PLAYLIST */
.playlist { display: flex; flex-direction: column; gap: 0.75rem; }
.pl-item {
  display: grid; grid-template-columns: 68px 1fr auto; gap: 1.1rem; align-items: center;
  padding: 0.9rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.pl-item:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--accent); }
.pl-item.is-active { border-color: var(--ink); box-shadow: var(--shadow); }
.pl-thumb {
  width: 68px; height: 90px; border-radius: 8px; object-fit: cover; display: block;
  background: var(--bg-tint);
}
.pl-body { min-width: 0; }
.pl-rank { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pl-cap { font-size: 1rem; color: var(--ink); font-weight: 500; line-height: 1.35; margin-top: 0.2rem; }
.pl-views { font-size: 0.9rem; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.pl-item.is-active .pl-views { color: var(--ink); }

/* NUMBERS */
.numbers { background: var(--ink); padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem); }
.numbers-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.stat-n { display: block; font-family: var(--font-sans); font-weight: 800; color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; }
.stat-l { display: block; margin-top: 0.6rem; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* MORE */
.more { padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 3.5rem); }
.more-head { text-align: center; font-family: var(--font-serif); font-weight: 500; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 2.5rem; }
.more-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.more-card {
  position: relative; display: block; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.more-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.more-card .mc-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.68), transparent 46%); }
.more-card .mc-cap { position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.85rem; color: #fff; font-size: 0.8rem; font-weight: 600; line-height: 1.35; z-index: 2; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }

/* CTA */
.work-cta { background: var(--bg-tint); padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3.5rem); text-align: center; border-top: 1px solid var(--line); }
.wc-inner { max-width: 640px; margin: 0 auto; }
.work-cta .eyebrow { display: block; margin-bottom: 1.5rem; }
.work-cta h2 { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; color: var(--ink); font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.02; margin-bottom: 1.25rem; }
.wc-sub { color: var(--text); font-size: 1.05rem; font-weight: 300; margin-bottom: 2.25rem; }
.wc-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.work-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding: 2rem clamp(1.25rem, 5vw, 3.5rem);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; }
  .feature { position: static; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .numbers-inner { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .more-grid { grid-template-columns: 1fr; max-width: 320px; }
  .wc-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .wh-scroll span { animation: none; } html { scroll-behavior: auto; } }
