/* ============================================================
   FRAME LABS — style.css
   Palette : Near-Black #0E0E12 · Off-White #F5F4F0
             Electric Indigo #5B3FFF · Citron #C6FF4A
   Type    : Rostale (headings) · Quicksand (body)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Rostale';
  src: url('../assets/fonts/Rostale-Regular.ttf') format('truetype');
  font-weight: 100 900;   /* single file covers all weights — no faux-bold */
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink:        #0E0E12;
  --ink-lift:   #131319;
  --paper:      #F5F4F0;
  --paper-70:   rgba(245, 244, 240, .70);
  --paper-50:   rgba(245, 244, 240, .50);
  --paper-30:   rgba(245, 244, 240, .30);
  --indigo:     #5B3FFF;
  --indigo-soft:rgba(91, 63, 255, .14);
  --citron:     #C6FF4A;
  --line:       rgba(245, 244, 240, .09);

  --font-head: 'Rostale', 'Fraunces', Georgia, serif;
  --font-body: 'Quicksand', 'Segoe UI', system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(96px, 12vw, 160px);
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--indigo); text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.25; }

::selection { background: var(--indigo); color: var(--paper); }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

section { position: relative; }

.section-pad { padding-block: var(--section); }

/* ---------- Shared bits ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--paper-50);
  margin-bottom: 26px;
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--indigo);
}

.section-head { max-width: 780px; }
.section-head p.lead {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--paper-70);
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 17px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-citron { background: var(--citron); color: var(--ink); }
.btn-citron:hover { box-shadow: 0 12px 40px -8px rgba(198, 255, 74, .45); }

.btn-indigo { background: var(--indigo); color: var(--paper); }
.btn-indigo:hover { box-shadow: 0 12px 40px -8px rgba(91, 63, 255, .55); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 244, 240, .22);
}
.btn-ghost:hover { border-color: var(--paper); }

.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 14, 18, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-logo img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a:not(.btn) {
  color: var(--paper-70);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  position: relative;
  transition: color .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--paper); }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 12px 26px; font-size: .88rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--paper);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(14, 14, 18, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
  }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { font-size: 1.5rem; font-weight: 500; }
  body.menu-open { overflow: hidden; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Layer 1 — fallback ambience (visible until you add the video) */
.hero-fallback {
  position: absolute;
  inset: -10%;
  z-index: -3;
  background:
    radial-gradient(55% 45% at 22% 18%, rgba(91, 63, 255, .22), transparent 65%),
    radial-gradient(45% 40% at 80% 78%, rgba(91, 63, 255, .13), transparent 60%),
    radial-gradient(30% 30% at 62% 24%, rgba(91, 63, 255, .08), transparent 60%),
    var(--ink);
  animation: heroDrift 24s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

/* Layer 2 — the montage video */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layer 3 — near-black overlay so the foreground stays readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(14, 14, 18, .55) 40%, rgba(14, 14, 18, .92) 100%),
    rgba(14, 14, 18, .55);
}

.hero-content {
  text-align: center;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: min(680px, 84vw);
  height: auto;
  filter: drop-shadow(0 10px 60px rgba(14, 14, 18, .8));
}
.hero-tagline {
  margin-top: clamp(28px, 4vh, 44px);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--paper-70);
  text-indent: .38em; /* balances the tracking */
}
.hero-cta { margin-top: clamp(34px, 5vh, 54px); }

/* load-in animation */
.hero-anim {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-scrollcue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--paper-30);
}
.hero-scrollcue::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(var(--paper-50), transparent);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   CLIENT LOGO STRIP
   ============================================================ */
.clients {
  border-block: 1px solid var(--line);
  padding-block: 34px;
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--paper-30);
  margin-bottom: 26px;
}
.marquee {
  display: flex;
  width: max-content;
  gap: clamp(56px, 8vw, 110px);
  animation: marquee 32s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(56px, 8vw, 110px);
}
.marquee .client {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: default;
}
.marquee .client img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(1);
  opacity: .7;
  transition: filter .35s var(--ease), opacity .35s var(--ease);
}
.marquee .client span {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper-50);
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.marquee .client:hover img { filter: none; opacity: 1; }
.marquee .client:hover span { color: var(--paper); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - clamp(28px, 4vw, 55px))); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--ink-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 44px);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.service-card:hover {
  border-color: rgba(91, 63, 255, .45);
  transform: translateY(-4px);
}
.service-card .icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--indigo-soft);
  margin-bottom: 26px;
}
.service-card .icon svg { width: 24px; height: 24px; stroke: var(--indigo); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--paper-70); font-size: .98rem; max-width: 46ch; }

/* Featured retainer card */
.service-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: linear-gradient(120deg, rgba(91, 63, 255, .13), rgba(91, 63, 255, .03) 55%), var(--ink-lift);
}
.service-card.featured .stat {
  font-family: var(--font-head);
  font-weight: 560;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 1;
  color: var(--citron); /* single citron accent for this section */
  white-space: nowrap;
}
.service-card.featured .stat small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--paper-50);
  margin-top: 14px;
}
.service-card.featured h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   VALUE BANNER
   ============================================================ */
.value-banner {
  background: var(--indigo);
  color: var(--paper);
  padding-block: clamp(84px, 11vw, 140px);
  overflow: hidden;
}
.value-banner .container {
  text-align: center;
  position: relative;
}
.value-banner h2 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  max-width: 20ch;
  margin-inline: auto;
}
.value-banner .accent { color: var(--citron); }
.value-banner p {
  margin-top: 26px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(245, 244, 240, .78);
  max-width: 52ch;
  margin-inline: auto;
}
/* faint oversized frame mark for depth */
.value-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 12% 20%, rgba(245, 244, 240, .07), transparent 70%),
    radial-gradient(40% 60% at 88% 85%, rgba(14, 14, 18, .18), transparent 70%);
  pointer-events: none;
}

/* ============================================================
   SPLIT BAND + PHONE MOCKUP
   (value banner & CTA bands: text left, phone-framed reel right)
   ============================================================ */
.container.band-split {
  display: grid;
  grid-template-columns: 1.1fr auto;
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  text-align: left;
}
.container.band-split h2,
.container.band-split p { margin-inline: 0; }
@media (max-width: 880px) {
  .container.band-split { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .container.band-split h2, .container.band-split p { margin-inline: auto; }
}

.phone {
  width: min(264px, 74vw);
  padding: 11px;
  border-radius: 46px;
  background: #08080B;
  border: 1px solid rgba(245, 244, 240, .16);
  position: relative;
}
.value-banner .phone { box-shadow: 0 34px 90px -22px rgba(14, 14, 18, .6); }
.cta-band .phone     { box-shadow: 0 34px 96px -20px rgba(91, 63, 255, .35); }
.phone::after { /* side button */
  content: "";
  position: absolute;
  right: -2px; top: 120px;
  width: 2px; height: 56px;
  border-radius: 2px;
  background: rgba(245, 244, 240, .18);
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  overflow: hidden;
  background: var(--ink-lift);
}
.phone-screen::after { /* camera island */
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  border-radius: 999px;
  background: #08080B;
  z-index: 3;
}
.phone-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.phone-screen.has-video video { opacity: 1; }
.phone-screen.has-video .tile-placeholder { opacity: 0; }

/* ============================================================
   WORK TILES (shared: home teaser + work page)
   ============================================================ */
.tile {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-lift);
  border: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.tile:hover { border-color: rgba(91, 63, 255, .5); transform: translateY(-4px); }
.tile.ratio-portrait  { aspect-ratio: 9 / 16; }
.tile.ratio-landscape { aspect-ratio: 16 / 9; }

/* placeholder art (phone reels use this until their file exists) */
.tile-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 18px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(91, 63, 255, .13), transparent 70%),
    var(--ink-lift);
}
.play-ring {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(245, 244, 240, .25);
  background: rgba(14, 14, 18, .35);
  display: grid;
  place-items: center;
  transition: border-color .35s var(--ease), background .35s var(--ease),
              transform .35s var(--ease);
}
.play-ring svg {
  width: 16px; height: 16px;
  fill: var(--paper);
  margin-left: 2px;
}
.tile-placeholder .file-hint {
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--paper-30);
  font-weight: 500;
  word-break: break-all;
  max-width: 90%;
}

/* tile media: platform thumbnail fades in over a gradient card */
.tile-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(91, 63, 255, .13), transparent 70%),
    var(--ink-lift);
  overflow: hidden;
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.tile.has-thumb .tile-media img { opacity: 1; }
.tile:hover .tile-media img { transform: scale(1.05); }

/* centred play control (shows over thumbnail and placeholder alike) */
.tile-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.tile:hover .play-ring {
  border-color: var(--indigo);
  background: var(--indigo);
  transform: scale(1.08);
}
.tile-platform {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-30);
}
.tile.has-thumb .tile-platform { display: none; }

/* caption overlay */
.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(14, 14, 18, .88));
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.tile-caption .chip {
  align-self: flex-start;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(91, 63, 255, .32);
  border: 1px solid rgba(91, 63, 255, .5);
  padding: 5px 12px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tile-caption .title {
  font-weight: 600;
  font-size: .92rem;
  color: var(--paper);
}
.tile-caption .watch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--paper-50);
  transition: color .35s var(--ease);
}
.tile:hover .tile-caption .watch { color: var(--paper); }

/* ---------- Featured strip (home) ---------- */
.featured-strip {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: 0.5625fr 1.7778fr 0.5625fr; /* equal heights: 9:16 · 16:9 · 9:16 */
  gap: 22px;
}
.featured-actions {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  justify-content: center;
}
@media (max-width: 820px) {
  .featured-strip { grid-template-columns: 1fr 1fr; }
  .featured-strip .ratio-landscape { grid-column: 1 / -1; order: -1; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.testimonial {
  background: var(--ink-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100%;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.testimonial:hover { border-color: rgba(91, 63, 255, .45); transform: translateY(-4px); }
.testimonial .quote-mark {
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: .5;
  color: var(--indigo);
  height: .5em;
}
.testimonial blockquote {
  color: var(--paper-70);
  font-size: .99rem;
  flex: 1;
}
.testimonial .person {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.testimonial .person img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--indigo-soft);
}
.testimonial .person strong { display: block; font-weight: 600; font-size: .98rem; }
.testimonial .person span { font-size: .82rem; color: var(--paper-50); }

@media (max-width: 980px) { .testimonial-grid { grid-template-columns: 1fr; max-width: 620px; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 820px;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--paper);
  transition: color .3s var(--ease);
}
.faq-q:hover { color: rgba(245, 244, 240, .85); }

.faq-icon {
  position: relative;
  flex: 0 0 22px;
  height: 22px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--indigo);
  transition: transform .4s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after  { width: 2px;  height: 14px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg) scaleY(0); }
.faq-item.open .faq-icon::before { transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p,
.faq-a-inner ul {
  color: var(--paper-70);
  font-size: .98rem;
  max-width: 62ch;
}
.faq-a-inner p { padding-bottom: 18px; }
.faq-a-inner ul {
  list-style: none;
  padding-bottom: 26px;
  display: grid;
  gap: 10px;
}
.faq-a-inner li {
  padding-left: 22px;
  position: relative;
}
.faq-a-inner li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--indigo);
}
.faq-a-inner strong { color: var(--paper); font-weight: 600; }

/* ============================================================
   FINAL CTA BAND
   ============================================================ */
.cta-band {
  border-block: 1px solid var(--line);
  padding-block: clamp(84px, 11vw, 150px);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 110%, rgba(91, 63, 255, .18), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p {
  margin-top: 20px;
  color: var(--paper-70);
  max-width: 46ch;
  margin-inline: auto;
}
.cta-band .btn { margin-top: 40px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.contact-info p {
  margin-top: 22px;
  color: var(--paper-70);
  max-width: 42ch;
}
.contact-info .email-link {
  display: inline-block;
  margin-top: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
  border-bottom: 1px solid var(--indigo);
  padding-bottom: 3px;
  transition: color .3s var(--ease);
}
.contact-info .email-link:hover { color: var(--indigo); }
.contact-note {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--paper-50);
}
.contact-note::before {
  content: "";
  flex: 0 0 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--citron); /* single citron accent for this section */
  margin-top: 7px;
}

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-50);
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink-lift);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 500;
  padding: 15px 18px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--paper-30); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: #16161d;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F5F4F0' stroke-opacity='.5' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}
.field select:invalid { color: var(--paper-30); }
.field select option { background: var(--ink-lift); color: var(--paper); }
.field textarea { min-height: 140px; resize: vertical; }

.form .btn { justify-self: start; margin-top: 6px; }

.form-status { font-size: .9rem; color: var(--paper-50); }
.form-status.error { color: #ff7b7b; }

/* success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: var(--ink-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 4vw, 56px);
}
.form-success.visible { display: flex; }
.form-success .check {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(198, 255, 74, .12);
  border: 1px solid rgba(198, 255, 74, .4);
  display: grid;
  place-items: center;
}
.form-success .check svg { width: 26px; height: 26px; stroke: var(--citron); }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--paper-70); max-width: 44ch; }
.form-success .demo-note { font-size: .8rem; color: var(--paper-30); }

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 84px) 0 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img { height: 24px; width: auto; opacity: .9; }
.footer-brand p {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--paper-50);
  max-width: 34ch;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--paper-30);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  color: var(--paper-70);
  font-size: .95rem;
  font-weight: 500;
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--paper-30);
}

/* ============================================================
   WORK PAGE
   ============================================================ */
.work-hero {
  padding-top: clamp(150px, 20vh, 220px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.work-hero p.lead {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--paper-70);
  max-width: 54ch;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(36px, 4vw, 52px);
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--paper-70);
  background: transparent;
  border: 1px solid rgba(245, 244, 240, .18);
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .35s var(--ease);
}
.tab:hover { border-color: var(--paper-50); color: var(--paper); }
.tab.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--paper);
}

.work-grid {
  display: grid;
  gap: 22px;
}
.work-grid.portrait  { grid-template-columns: repeat(4, 1fr); }
.work-grid.landscape { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1020px) {
  .work-grid.portrait { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .work-grid.portrait { grid-template-columns: repeat(2, 1fr); }
  .work-grid.landscape { grid-template-columns: 1fr; }
}

.work-grid[hidden] { display: none; }

/* "All" tab: multiple grids stack with breathing room */
.work-grid:not([hidden]) ~ .work-grid:not([hidden]) { margin-top: 22px; }

/* tab-switch fade */
.work-grid { animation: gridIn .55s var(--ease); }
@keyframes gridIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   IN-TILE PLAYER (video plays inside the tile frame)
   ============================================================ */
.tile-player {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000;
  animation: playerIn .35s var(--ease);
}
@keyframes playerIn { from { opacity: 0; } to { opacity: 1; } }
.tile-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tile-controls {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.tile-ctl {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 244, 240, .28);
  background: rgba(14, 14, 18, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.tile-ctl svg {
  width: 15px; height: 15px;
  stroke: var(--paper);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-ctl:hover { background: var(--indigo); border-color: var(--indigo); }

.tile.playing { cursor: default; }
.tile.playing:hover { transform: none; }
.tile.playing .tile-caption,
.tile.playing .tile-play { display: none; }

/* tile in browser fullscreen */
.tile:fullscreen {
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  background: #000;
}
.tile:fullscreen .tile-player iframe { width: 100%; height: 100%; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-anim { opacity: 1; transform: none; }
  .marquee { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee-track:last-child { display: none; }
}
