/* ==========================================================================
   BLAKBYRD — base stylesheet
   Dark cinematic. Minimalist. One accent.
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #111111;
  --line: #1f1f1f;
  --line-strong: #2a2a2a;
  --text: #fafafa;
  --muted: #8a8a8a;
  --dim: #555555;
  --accent: #e8e2d1; /* bone */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
a:hover { opacity: .65; }

/* Typography ---------------------------------------------------------------- */

.display, h1, h2, h3 {
  font-family: "Anton", "Helvetica Neue Condensed Bold", Impact, "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(48px, 9vw, 160px); }
h2 { font-size: clamp(32px, 5vw, 72px); }
h3 { font-size: clamp(22px, 2.4vw, 36px); }

p { margin: 0 0 1em 0; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

/* Layout -------------------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(64px, 10vw, 140px) 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Nav ----------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}
@media (min-width: 720px) {
  .nav-logo img { height: 24px; }
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); opacity: 1; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .nav-toggle { display: inline-block; }
}

/* Hero ---------------------------------------------------------------------- */

.hero {
  padding: clamp(120px, 18vw, 220px) 0 clamp(80px, 12vw, 140px);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 28px; }
.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span + span::before { content: "·"; margin-right: 24px; color: var(--dim); }

/* Homepage brand-forward hero — BLAKBYRD wordmark as the centerpiece */
.hero-brand { text-align: center; }
.hero-brand .eyebrow { display: inline-block; margin-bottom: clamp(32px, 5vw, 56px); }
.hero-wordmark {
  margin: 0 auto;
  max-width: none;
  display: flex;
  justify-content: center;
}
.hero-wordmark img {
  width: clamp(280px, 70vw, 880px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 40px rgba(232, 226, 209, 0.04));
}
.hero-brand .hero-meta { justify-content: center; }
@media (max-width: 600px) {
  .hero-brand .hero-meta { flex-direction: column; gap: 8px; align-items: center; }
  .hero-brand .hero-meta span + span::before { display: none; }
}

/* Section heading ----------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head .right { color: var(--muted); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }

/* Project grid -------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.card {
  grid-column: span 4;
  display: block;
  position: relative;
}
.card-media {
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.card:hover .card-media img { transform: scale(1.03); }
.card-media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim);
  font-family: "Anton", Impact, sans-serif;
  font-size: 64px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}
.card-body { padding: 20px 0 0; }
.card-title {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 6px 0 0;
}
.card-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 980px) {
  .card { grid-column: span 6; }
}
@media (max-width: 600px) {
  .card { grid-column: span 12; }
}

/* Music grid — smaller, square thumbnails ---------------------------------- */
.grid.music .card { grid-column: span 3; }
.grid.music .card-media { aspect-ratio: 1 / 1; }
.grid.music .card-title { font-size: clamp(16px, 1.5vw, 20px); }
.grid.music .card-body { padding-top: 14px; }
.grid.music .card-meta { font-size: 10px; }

@media (max-width: 980px) {
  .grid.music .card { grid-column: span 4; }
}
@media (max-width: 720px) {
  .grid.music .card { grid-column: span 6; }
}
@media (max-width: 480px) {
  .grid.music .card { grid-column: span 12; }
}

/* Project subpage ----------------------------------------------------------- */

.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(80px, 12vw, 140px) 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.project-hero .art {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.project-hero .art .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-family: "Anton", Impact, sans-serif; font-size: 120px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}
.project-hero h1 { font-size: clamp(40px, 6vw, 96px); }
.project-hero .meta-list {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 24px;
  font-size: 13px;
}
.project-hero .meta-list dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }
.project-hero .meta-list dd { margin: 0; }

@media (max-width: 800px) {
  .project-hero { grid-template-columns: 1fr; }
}

.project-body {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #d8d8d8;
}
.project-body p { margin-bottom: 1.4em; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: 48px;
}
.gallery .tile {
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

/* Store --------------------------------------------------------------------- */

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.product {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
}
.product-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-family: "Anton", Impact, sans-serif; font-size: 56px;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-title {
  font-family: "Anton", Impact, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.product-meta { color: var(--muted); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.product-price { font-size: 16px; color: var(--accent); margin-top: 4px; }
.product-buy {
  margin-top: auto;
  padding-top: 16px;
}

/* Shopify Buy Button placeholder — paste embed code inside */
.shopify-buy-target {
  min-height: 44px;
  border: 1px dashed var(--line-strong);
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}

@media (max-width: 900px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .store-grid { grid-template-columns: 1fr; } }

/* Streaming platform badges ------------------------------------------------- */

.watch {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.watch-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.platform:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  opacity: 1;
}
.platform .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.platform.tubi .dot     { background: #fa541c; }
.platform.prime .dot    { background: #00a8e1; }
.platform.fawesome .dot { background: #ff6b00; }
.platform.freevee .dot  { background: #2bb673; }
.platform.plex .dot     { background: #e5a00d; }
.platform.vimeo .dot    { background: #1ab7ea; }
.platform.youtube .dot  { background: #ff0000; }
.platform.spotify .dot  { background: #1db954; }
.platform.apple .dot    { background: #fb2d4d; }
.platform.tidal .dot    { background: #ffffff; }
.platform.soundcloud .dot { background: #ff5500; }
.platform.amazon .dot   { background: #ff9900; }
.platform.instagram .dot { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.platform.tiktok .dot   { background: #00f2ea; box-shadow: 1px 1px 0 #ff0050; }
.platform.x .dot        { background: #ffffff; }
.platform.website .dot  { background: var(--accent); }

/* Project-card poster (no placeholder) ------------------------------------- */
.card-media {
  position: relative;
}
.card-media .poster {
  width: 100%; height: 100%; object-fit: cover;
}

/* Coming Soon ribbon -------------------------------------------------------- */
.badge-soon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #111;
  font-family: "Anton", Impact, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  z-index: 2;
}
.badge-soon.hero {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
}
.card .card-media.dim-soon::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

/* Trailer embed ------------------------------------------------------------- */
.trailer-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 48px;
}
.trailer-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.trailer-embed.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--dim);
  font-family: "Anton", Impact, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 14px;
  text-align: center;
  padding: 24px;
}
.trailer-embed.placeholder .small {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 400;
}
.trailer-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 48px;
  display: block;
}

/* Buttons ------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 16px 28px;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); opacity: 1; }
.btn.solid { background: var(--text); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--text); }
.btn.ghost { border-color: var(--line-strong); color: var(--muted); }

/* Consulting / services ----------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service h3 { margin-bottom: 16px; }
.service .num {
  font-family: "Anton", Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

/* Form ---------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 20px;
  max-width: 640px;
}
.form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form input, .form textarea, .form select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 0;
  font-family: inherit;
  font-size: 15px;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-bottom-color: var(--text);
}
.form textarea { resize: vertical; min-height: 120px; }

/* News feed ---------------------------------------------------------------- */
.news-feed {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.news-date {
  font-family: "Anton", Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
}
.news-body { max-width: 70ch; }
.news-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  margin-bottom: 14px;
}
.news-title {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 14px;
}
.news-body p { color: #c8c8c8; font-size: 15px; line-height: 1.6; }

@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; }
}

/* Footer social badges ---------------------------------------------------- */
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.footer-social a:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  opacity: 1;
}
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Footer -------------------------------------------------------------------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-inner h4 {
  font-family: "Anton", Impact, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 16px;
  color: var(--muted);
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* Utilities ---------------------------------------------------------------- */

.center { text-align: center; }
.mt-l { margin-top: 48px; }
.mt-xl { margin-top: 96px; }

/* Subtle entrance ---------------------------------------------------------- */
/* Only hide elements when JS has confirmed it can reveal them.
   Without JS (or before main.js runs), .reveal is fully visible. */
@media (prefers-reduced-motion: no-preference) {
  body.js-ready .reveal { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  body.js-ready .reveal.in { opacity: 1; transform: none; }
}
