/* RenderCaptain — one-page studio site */
:root {
  --bg: #07070a;
  --bg-alt: #0e0e13;
  --panel: #14141b;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f2f4;
  --muted: rgba(242, 242, 244, 0.64);
  --accent: #ffc400;
  --accent-ink: #120f00;
  --radius: 14px;
  --wrap: 1200px;
  --display: "Aadhunik", system-ui, sans-serif;     /* same fonts as asnaei.pro */
  --body: "Aadhunik Light", "Aadhunik", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 400; }
p { margin: 0 0 1em; }

.rc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.rc-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(7, 7, 10, .92), rgba(7, 7, 10, 0));
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.rc-header.is-scrolled { background: rgba(7, 7, 10, .96); border-bottom-color: var(--line); }
.rc-wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 1.05rem/1 var(--display); letter-spacing: .14em; text-decoration: none;
}
.rc-wordmark b { color: var(--accent); font-weight: 400; }
.rc-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 11px var(--accent);
}
.rc-nav { display: flex; align-items: center; gap: 28px; }
.rc-nav a:not(.rc-btn) { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.rc-nav a:not(.rc-btn):hover { color: var(--text); }

/* Buttons & links */
.rc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 400 1rem/1 var(--display); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s;
}
.rc-btn:hover { transform: translateY(-2px); }
.rc-btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.rc-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.rc-btn--small { padding: 10px 18px; font-size: .9rem; }
.rc-btn:focus-visible, .rc-card__play:focus-visible, .rc-link:focus-visible, .rc-player__btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.rc-link { color: var(--accent); text-decoration: none; font-family: var(--display); font-size: .95rem; }
.rc-link:hover { text-decoration: underline; }

.rc-eyebrow {
  font: 400 .78rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.rc-eyebrow--muted { color: var(--muted); }
.rc-lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.rc-actions--center { justify-content: center; }

/* Hero */
.rc-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; padding: 140px 0 90px; overflow: hidden;
}
.rc-hero__media { position: absolute; inset: 0; }
.rc-hero__media { overflow: hidden; container-type: size; }
.rc-hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% center; opacity: .55;
  animation: rc-drift 24s ease-in-out infinite alternate;   /* slow camera push while the video loads */
}
@keyframes rc-drift { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
/* 16:9 video sized to always cover the hero, like object-fit: cover */
.rc-hero__video {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); border: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
.rc-hero__video.is-ready { opacity: .55; }
.rc-hero__media img { transition: opacity 1.2s ease; }
.rc-hero__media.has-video img { opacity: 0; }   /* still fades out once the video is playing */
.rc-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, rgba(7, 7, 10, .55) 55%, rgba(7, 7, 10, .2)),
              linear-gradient(to top, var(--bg) 2%, transparent 40%);
}
.rc-hero__copy { position: relative; }
.rc-hero h1 { max-width: 900px; }
.rc-hero h1 span { color: var(--accent); }

/* Intro: animated logo on an empty dark screen; the header waits until you scroll */
.rc-header:not(.is-scrolled):not(:focus-within) { opacity: 0; pointer-events: none; }
.rc-header { transition: background .25s, border-color .25s, opacity .35s; }
.rc-intro {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(36px, 6vh, 64px);
  padding: 40px 16px;
}
.rc-intro__lockup { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.rc-intro__mark { width: clamp(110px, 22vw, 200px); height: auto; aspect-ratio: 1; flex: none; overflow: visible; }
.rc-intro__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rc-intro__name { font: 400 clamp(1.3rem, 4.4vw, 2.6rem)/1 var(--display); letter-spacing: .14em; white-space: nowrap; }
.rc-intro__name b { color: var(--accent); font-weight: 400; }
.rc-powered {
  font: 600 clamp(1.2rem, 2.5vw, 1.65rem)/1 "Caveat", "Segoe Script", "Bradley Hand", cursive;
  color: #ff3b3b; text-decoration: none; transform: rotate(-2deg); transform-origin: left center;
  margin-left: 2px; transition: color .2s;
}
.rc-powered:hover { color: #ff6b6b; text-decoration: underline; text-underline-offset: 3px; }
.rc-powered:focus-visible { outline: 2px solid #ff3b3b; outline-offset: 4px; border-radius: 4px; }
.rc-intro__cue {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 46px; transform: translateX(-50%);
  background: var(--line); overflow: hidden;
}
.rc-intro__cue span {
  position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent);
  animation: rc-cue 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes rc-cue { to { top: 100%; } }

/* Clients */
.rc-clients { padding: 40px 0 60px; border-bottom: 1px solid var(--line); }
.rc-logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 28px 36px; align-items: center;
}
.rc-logos img { height: 26px; width: 100%; object-fit: contain; opacity: .6; transition: opacity .2s; }
.rc-logos li:hover img { opacity: 1; }

/* Sections */
.rc-section { padding: 110px 0; }
.rc-section--alt { background: var(--bg-alt); }
.rc-section__head { max-width: 720px; margin-bottom: 48px; }

/* Work grid */
.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rc-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rc-card__play {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 10; background: #000; overflow: hidden;
}
.rc-card__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .9; }
.rc-card__play:hover img { transform: scale(1.04); opacity: 1; }
.rc-card__icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px;
  background: rgba(7, 7, 10, .65); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-size: 1.1rem; transition: background .2s, color .2s;
}
.rc-card__play:hover .rc-card__icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rc-card__body { padding: 20px 22px 24px; }
.rc-card__body p { color: var(--muted); font-size: .95rem; }
.rc-card__body .rc-card__credit { font-size: .78rem; opacity: .75; margin: -6px 0 12px; }
.rc-more { margin-top: 36px; text-align: center; }

/* Services */
.rc-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rc-service { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rc-service__num { display: block; font: 400 .9rem/1 var(--display); color: var(--accent); margin-bottom: 26px; }
.rc-service p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Process */
.rc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.rc-steps li { position: relative; padding-top: 30px; border-top: 2px solid var(--line); counter-increment: step; }
.rc-steps li::before {
  content: "0" counter(step); position: absolute; top: -13px; left: 0;
  padding-right: 10px; background: var(--bg); color: var(--accent); font: 400 .85rem/24px var(--display);
}
.rc-steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Founder */
.rc-founder { padding: 80px 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.rc-founder__inner { display: flex; align-items: center; gap: 40px; }
.rc-founder img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex: none; }
.rc-founder p:not(.rc-eyebrow) { color: var(--muted); max-width: 620px; }

/* Contact */
.rc-contact { text-align: center; }
.rc-contact .rc-lead { margin: 0 auto; }
.rc-email { margin-top: 20px; color: var(--muted); font-size: .95rem; user-select: all; }

/* Footer */
.rc-footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.rc-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rc-footer nav { display: flex; gap: 22px; }
.rc-footer a { text-decoration: none; }
.rc-footer a:hover { color: var(--text); }

/* Video player */
.rc-player {
  width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #000; color: var(--text); overflow: hidden;
}
.rc-player::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); }
.rc-player__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; background: var(--panel); }
.rc-player__title { font: 400 .95rem/1.3 var(--display); }
.rc-player__btn {
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font: 400 .85rem/1 var(--display); cursor: pointer; margin-left: 6px;
}
.rc-player__btn:hover { border-color: var(--accent); color: var(--accent); }
.rc-player__frame { position: relative; aspect-ratio: 16 / 9; }
.rc-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Case-study pages (/work/…) */
.rc-header.rc-header--solid:not(.is-scrolled) {   /* no intro screen here, so the header shows from the top */
  opacity: 1; pointer-events: auto; background: rgba(7, 7, 10, .96); border-bottom-color: var(--line);
}
.rc-case-hero { padding: 150px 0 50px; }
.rc-case-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 900px; }
.rc-case-hero h1 span { color: var(--accent); }
.rc-back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font: 400 .9rem/1 var(--display); }
.rc-back:hover { color: var(--accent); }
.rc-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px;
  margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
}
.rc-facts dt { font: 400 .72rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rc-facts dd { margin: 0; font-size: .95rem; }
.rc-film { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.rc-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rc-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.rc-story p { color: var(--muted); }
.rc-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rc-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--panel); }
.rc-shots img:first-child { grid-column: 1 / -1; }
.rc-tools { margin-top: 30px; color: var(--muted); font-size: .9rem; }
.rc-case-cta { text-align: center; }
.rc-case-cta .rc-lead { margin: 0 auto; }
.rc-case-cta__more { margin-top: 26px; font-size: .9rem; color: var(--muted); }
.rc-next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rc-next a {
  display: block; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); text-decoration: none; transition: border-color .2s;
}
.rc-next a:hover { border-color: var(--accent); }
.rc-next span { display: block; font: 400 .72rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Responsive */
@media (max-width: 1000px) {
  .rc-facts { grid-template-columns: repeat(2, 1fr); }
  .rc-story { grid-template-columns: 1fr; gap: 10px; }
  .rc-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-services, .rc-steps { grid-template-columns: repeat(2, 1fr); }
  .rc-steps { row-gap: 40px; }
  .rc-logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rc-wrap { padding: 0 16px; }
  .rc-header { padding: 12px 16px; }
  .rc-nav a:not(.rc-btn) { display: none; }
  .rc-wordmark { font-size: .78rem; letter-spacing: .06em; gap: 8px; }
  .rc-mark { width: 18px; height: 18px; box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 9px var(--accent); }
  .rc-header { gap: 10px; }
  .rc-btn--small { padding: 9px 14px; font-size: .82rem; }
  .rc-hero { padding: 120px 0 60px; }
  .rc-hero__media img { object-position: 70% center; opacity: .45; }
  .rc-section { padding: 76px 0; }
  .rc-grid, .rc-services, .rc-steps, .rc-shots, .rc-next { grid-template-columns: 1fr; }
  .rc-case-hero { padding: 110px 0 36px; }
  .rc-logos { grid-template-columns: repeat(3, 1fr); gap: 22px 26px; }
  .rc-logos img { height: 22px; }
  .rc-founder__inner { flex-direction: column; text-align: center; gap: 24px; }
  .rc-founder img { width: 120px; height: 120px; }
  .rc-actions .rc-btn { flex: 1 1 100%; }
  .rc-footer__inner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .rc-intro__lockup { flex-direction: column; text-align: center; gap: 22px; }
  .rc-intro__text { align-items: center; }
  .rc-powered { transform-origin: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .rc-intro__cue span { animation: none; top: 30%; }
  .rc-hero__media img { animation: none; }
}
