/* ===== Reason Studio ===== */
:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --muted: rgba(255,255,255,0.7);
  --nav-gap: 2.4rem;
  --header-pad: 2.2rem;
  --font-head: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-body: "Poppins", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-pad) 3vw;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand img {
  height: 46px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}
.nav a {
  position: relative;
  color: var(--fg);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.nav a:hover { opacity: 1; }
.nav a:not(.nav-ig)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.28s ease;
}
.nav a:not(.nav-ig):hover::after { width: 100%; }
.nav-ig { display: inline-flex; }

/* ===== Mobile toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.45) 100%);
}
.hero-content {
  position: absolute;
  left: 3vw;
  bottom: 8vh;
  z-index: 2;
}

.play-reel {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}
.play-reel:hover {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}
.play-icon { display: inline-flex; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-frame {
  width: min(90vw, 1200px);
}
.lightbox-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.lightbox-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: 0;
  color: var(--fg);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { opacity: 1; transform: scale(1.08); }

/* ===== Inner pages ===== */
.site-header.solid {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.inner { padding-top: 92px; }

.works-page {
  max-width: 1800px;
  margin: 0 auto;
  padding: 2.5rem 3vw 6rem;
}
.work-section { margin-bottom: 3rem; }
.work-cat {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
@media (max-width: 1300px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px)  { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
}
.work-tile.no-link { cursor: default; }
.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2,0,0.2,1), filter 0.4s ease;
  filter: grayscale(15%);
}
.work-tile:hover img { transform: scale(1.06); filter: grayscale(0%); }

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.work-tile:hover .work-overlay { opacity: 1; }
/* touch devices have no hover — show the label/play icon always */
@media (hover: none) {
  .work-overlay { opacity: 1; }
}
.work-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #fff;
}
.work-play {
  font-size: 0.85rem;
  color: #fff;
  opacity: 0.9;
}

/* ===== Generic content pages ===== */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 3vw 6rem;
}
.page-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 2.4rem;
}
.content-page p { line-height: 1.75; color: var(--muted); margin-bottom: 1.1rem; }
.content-page a.inline-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* embedded video */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
  margin: 0 0 2rem;
  border-radius: 4px;
  overflow: hidden;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* DCP */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.4rem;
}
.price-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
}
.price-card .amt {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}
.price-card .desc { color: var(--muted); font-size: 0.95rem; }
.price-note { font-size: 0.98rem; }

.glossary { margin: 2.2rem 0; }
.glossary dt {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 1.4rem;
  margin-bottom: 0.3rem;
}
.glossary dd { margin: 0; color: var(--muted); line-height: 1.7; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: #000;
  font-family: var(--font-head);
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  border: 1px solid #fff;
  transition: background 0.25s ease, color 0.25s ease;
  margin-top: 1rem;
}
.btn:hover { background: transparent; color: #fff; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info p { margin-bottom: 0.4rem; color: #fff; }
.contact-info .label {
  font-family: var(--font-head);
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  margin: 1.6rem 0 0.4rem;
}
.contact-info a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.contact-info a:hover { border-color: #fff; }

.contact-form label {
  display: block;
  font-family: var(--font-head);
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: #fff; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { margin-top: 1.4rem; cursor: pointer; }

/* ===== FAQ section ===== */
.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

.page-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin: -0.6rem 0 2.2rem;
}

/* choice / nav cards */
.faq-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}
.faq-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2.2rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: #fff;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.faq-card:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); transform: translateY(-3px); }
.faq-card img { width: 84px; height: 84px; object-fit: contain; }
.faq-card .logo-wrap {
  height: 90px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 0 1.4rem; width: 100%;
}
.faq-card .logo-wrap img { width: auto; max-width: 100%; max-height: 56px; }
.faq-card h3 {
  font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.04em;
}
.faq-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* direction */
.dir-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.4rem 2.4rem; margin-bottom: 2.4rem; }
.dir-info .label { font-family: var(--font-head); letter-spacing: 0.14em; font-size: 0.78rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.dir-info p { margin: 0.1rem 0; color: #fff; line-height: 1.5; }
.dir-info a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); text-decoration: none; }

/* steps */
.step { margin: 2rem 0; padding-left: 1.2rem; border-left: 2px solid rgba(255,255,255,0.14); }
.step h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; margin-bottom: 0.7rem; }
.step p { color: var(--muted); line-height: 1.7; margin-bottom: 0.6rem; }
.step ul { color: var(--muted); line-height: 1.7; margin: 0 0 0.6rem 1.1rem; }
.step ul li { margin-bottom: 0.4rem; }
.step code, .kbd { background: rgba(255,255,255,0.1); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.9em; }

/* screenshots */
.shot { display: block; max-width: 100%; margin: 1rem 0 0.4rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; }
.shot.map { width: 100%; }
figure.shot-fig { margin: 1.2rem 0; }
figure.shot-fig figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(8,8,8,0.97);
    font-size: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7,0,0.2,1);
  }
  body.nav-open .nav { transform: translateX(0); }
  .brand img { height: 38px; }
  .hero-content { left: 0; right: 0; bottom: 10vh; text-align: center; }
  body.inner { padding-top: 78px; }
}
