/* Blake Rivera Productions — static site styles */
:root {
  --blue: #0065ef;
  --purple: #7f00ba;
  --grad: linear-gradient(100deg, var(--blue), var(--purple));
  --bg: #070a14;
  --bg-2: #0c1020;
  --card: #101530;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f5fb;
  --muted: #a4abc4;
  --radius: 18px;
  --max: 1180px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.05rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font: 600 .78rem/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase;
  color: #8fb4ff; display: inline-flex; align-items: center; gap: .8em; margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 20, .8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .logo img { height: 34px; width: auto; }
.nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a.link { text-decoration: none; font: 500 .95rem var(--font-head); color: var(--muted); transition: color .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: #fff; }
.nav a.link[aria-current="page"] { box-shadow: 0 2px 0 -0px var(--blue); border-bottom: 2px solid var(--blue); padding-bottom: 4px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: .55rem .8rem; font: 500 .9rem var(--font-head); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; cursor: pointer;
  font: 600 .98rem var(--font-head); padding: .95rem 1.6rem; border-radius: 999px; border: 0;
  background: var(--grad); color: #fff; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(80, 40, 240, .7); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #8fb4ff; box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 40% 40%, rgba(0, 101, 239, .35), rgba(127, 0, 186, .22) 45%, transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.wave { display: flex; align-items: center; gap: 5px; height: 70px; margin: 3rem 0 0; }
.wave span { width: 5px; border-radius: 4px; background: var(--grad); height: 20%; animation: pulse 1.6s ease-in-out infinite; opacity: .9; }
@keyframes pulse { 0%, 100% { height: 14%; } 50% { height: var(--h, 80%); } }
@media (prefers-reduced-motion: reduce) { .wave span { animation: none; height: var(--h, 50%); } html { scroll-behavior: auto; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 3rem; width: max-content; padding: 1.1rem 0; animation: slide 40s linear infinite; font: 600 .8rem var(--font-head); letter-spacing: .24em; color: var(--muted); }
.marquee-track span::after { content: "•"; margin-left: 3rem; color: var(--blue); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Sections */
section.block { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { margin-bottom: 3rem; max-width: 62ch; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; text-decoration: none; display: flex; flex-direction: column; gap: .4rem; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-4px); border-color: rgba(143, 180, 255, .4); }
.card:hover::after { transform: scaleX(1); }
.card .num { font: 600 .8rem var(--font-head); letter-spacing: .2em; color: #8fb4ff; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 1rem; font: 600 .9rem var(--font-head); color: #8fb4ff; }

/* About split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait {
  aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(0, 101, 239, .5), transparent 55%), radial-gradient(circle at 80% 90%, rgba(127, 0, 186, .55), transparent 55%), var(--card);
  display: grid; place-items: center;
}
.portrait img.mono { width: 46%; opacity: .95; }
.portrait img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stats b { display: block; font: 700 2.4rem var(--font-head); }
.stats span { color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta { margin: 0 0 clamp(4rem, 8vw, 7rem); }
.cta .box { border-radius: 28px; padding: clamp(2.5rem, 6vw, 4.5rem); background: var(--grad); position: relative; overflow: hidden; }
.cta .box::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .08); }
.cta h2 { max-width: 20ch; }
.cta .btn { background: #fff; color: #1a1040; }

/* Page header */
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0, rgba(127, 0, 186, .25), transparent 60%); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }

/* Services page */
.service { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; padding: 3.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-of-type { border-bottom: 0; }
.service .tag { font: 700 4.5rem/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem 2rem; }
.service li { padding-left: 1.4rem; position: relative; color: var(--muted); }
.service li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* Work page */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.5rem 0 2rem; }
.chip { font: 500 .9rem var(--font-head); background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; transition: all .2s; }
.chip:hover { color: #fff; border-color: #8fb4ff; }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.work:hover { transform: translateY(-4px); border-color: rgba(143, 180, 255, .4); }
.work .thumb { aspect-ratio: 16/10; position: relative; background: var(--grad); display: grid; place-items: center; overflow: hidden; }
.work .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work .thumb .ph { display: flex; align-items: flex-end; gap: 5px; height: 36%; opacity: .55; }
.work .thumb .ph i { width: 6px; background: #fff; border-radius: 3px; }
.work .body { padding: 1.4rem 1.6rem 1.7rem; }
.work .meta { font: 600 .74rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #8fb4ff; margin-bottom: .6rem; }
.work h3 { margin-bottom: .3rem; }
.work p { color: var(--muted); font-size: .95rem; margin: 0; }
.work .role { margin-top: .8rem; font-size: .85rem; color: #cfd6ee; }
.empty { display: none; color: var(--muted); padding: 2rem 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); padding: 4rem 0 6rem; }
form { display: grid; gap: 1.1rem; }
label { display: grid; gap: .45rem; font: 500 .9rem var(--font-head); color: #cfd6ee; }
input, select, textarea {
  font: inherit; color: #fff; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.5em; font-size: .95rem; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; align-self: start; }
.info h3 { margin-bottom: 1rem; }
.info a { color: #8fb4ff; }
.info ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; background: var(--bg-2); }
.foot { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot img { height: 32px; width: auto; margin-bottom: .8rem; }
.foot p { color: var(--muted); margin: 0; font-size: .95rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: #fff; }
.copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: #7b839d; font-size: .85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 20px 1.2rem; align-items: stretch; }
  .nav ul.open { display: flex; }
  .nav ul li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav ul li:last-child { border: 0; padding-top: 1rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service .tag { font-size: 3rem; }
  .row { grid-template-columns: 1fr; }
  .grid, .cards { grid-template-columns: 1fr; }
}

/* Direct contact cards */
.direct { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; padding: 4rem 0 2rem; }
.direct-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.direct-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.direct-card:hover { transform: translateY(-4px); border-color: rgba(143, 180, 255, .4); }
.direct-card .num { font: 600 .8rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: #8fb4ff; }
.direct-card strong { font: 600 clamp(1.15rem, 2vw, 1.45rem)/1.25 var(--font-head); overflow-wrap: anywhere; }
.direct-card .more { font: 600 .9rem var(--font-head); color: #8fb4ff; margin-top: .4rem; }

/* Marquee label + gear grid */
.marquee-label { padding: 1.4rem 0 .6rem; font: 600 .78rem var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: #8fb4ff; }
.gear { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.gear > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.gear h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.gear p { color: var(--muted); margin: 0; font-size: .97rem; line-height: 1.8; }

/* Production partners row */
.partners { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.partners .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2.2rem; padding-block: 1.2rem; }
.partners-label { font: 600 .78rem var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: #8fb4ff; }
.partners span:not(.partners-label) { font: 500 .98rem var(--font-head); color: var(--muted); }

/* Email card actions */
.email-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.mini { font: 600 .85rem var(--font-head); color: #fff; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.mini:hover { border-color: #8fb4ff; background: rgba(143, 180, 255, .08); }
.copied { min-height: 1.3em; font-size: .85rem; color: #8fb4ff; }

/* Bio portrait: tall photo */
.portrait { aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: 100%; }
.portrait img.photo { object-position: 50% 40%; }

/* Multi-photo cards: swipeable strip */
.work .thumb .slides { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -3px; }
.work .thumb .slides::-webkit-scrollbar { display: none; }
.work .thumb .slides img { position: static; flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.work .thumb .count { position: absolute; right: .8rem; bottom: .8rem; font: 600 .75rem var(--font-head); letter-spacing: .08em; color: #fff; background: rgba(7, 10, 20, .7); backdrop-filter: blur(6px); padding: .35rem .7rem; border-radius: 999px; pointer-events: none; }

/* Work page: photos only, details appear on hover / focus / tap */
.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.work { position: relative; aspect-ratio: 4 / 5; background: var(--card); cursor: default; outline: none; }
.work .thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.work .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 4.5rem 1.4rem 1.4rem; background: linear-gradient(to top, rgba(7, 10, 20, .96) 0%, rgba(7, 10, 20, .82) 55%, rgba(7, 10, 20, 0) 100%); opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.work .body a { pointer-events: auto; color: inherit; }
.work:hover .body, .work:focus-within .body, .work:focus .body, .work.show .body { opacity: 1; transform: none; }
.work:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.work .body .meta { margin-bottom: .4rem; }
.work .body h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.work .body p { font-size: .92rem; }
.work .thumb .count { bottom: auto; top: .8rem; }
@media (hover: none) { .work .thumb .count { top: auto; bottom: .8rem; } }
@media (prefers-reduced-motion: reduce) { .work .body { transition: none; transform: none; } }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

/* Tighter hover text so it leaves the photo visible */
.work .body { padding-top: 3rem; }
.work .body .role { margin-top: .35rem; font-size: .8rem; line-height: 1.4; }
.work .body .role:first-of-type { margin-top: .5rem; }
.work .body h3 { font-size: 1.25rem; }
.work .body p { font-size: .85rem; line-height: 1.4; }
