/* ============================================================
   HALF GREY BEAR — interactive studio site
   ============================================================ */

@font-face {
  font-family: 'Questrial';
  src: url('/fonts/questrial.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg:        #0a0a0c;
  --bg-2:      #101015;
  --bg-card:   #121216;
  --bg-card-2: #16161b;
  --ink:       #f4f2ef;
  --muted:     #9a9aa2;
  --faint:     #6a6a72;
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);

  --pink:   #fe486f;
  --orange: #f75c36;
  --grad:   linear-gradient(115deg, #fe486f 0%, #ff5a52 45%, #f75c36 100%);
  --grad-soft: linear-gradient(115deg, rgba(254,72,111,.18), rgba(247,92,54,.18));

  --display: 'Questrial', ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vw, 11rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* LED-tape dot geometry — the fx show grammar, shared by every page */
  --led-px: 3px;
  --led-gap: 11px;
}

/* ----------------------------- reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--pink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); position: relative; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ----------------------------- type ----------------------------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display);
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.eyebrow--center { display: flex; justify-content: center; text-align: center; }
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px 1px rgba(254,72,111,.7);
  flex: none;
}

.section__head { max-width: 880px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__title { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.2rem); letter-spacing: -0.022em; line-height: 1.0; }
.section__intro { color: var(--muted); margin-top: 1.4rem; max-width: 56ch; }

em { font-style: normal; }
.studio__statement em,
.contact__title em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ----------------------------- buttons ----------------------------- */
.btn {
  --bpx: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1rem; letter-spacing: .01em;
  padding: .85rem var(--bpx); border-radius: 100px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn--lg { font-size: 1.08rem; padding: 1.05rem 1.8rem; }
.btn--solid { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(254,72,111,.6); }
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 14px 44px -10px rgba(254,72,111,.85); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,.45); transform: translateY(-3px); background: rgba(255,255,255,.05); }

/* (page-wide cursor glow removed — it cast a wash over the LED field;
   the dot+ring custom cursor carries the pointer feedback instead) */

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
  padding-block: .35rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .7rem; }
.nav__mark { width: 72px; height: 72px; object-fit: contain; }
@media (max-width: 600px) { .nav__mark { width: 60px; height: 60px; } }
.nav__word { font-family: var(--display); letter-spacing: .14em; font-size: .92rem; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); font-family: var(--display); }
.nav__links a { font-size: .95rem; color: var(--muted); transition: color .3s ease; position: relative; }
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--grad);
  transition: width .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--line); padding: .5rem 1.1rem; border-radius: 100px; color: var(--ink) !important;
  transition: border-color .3s ease, background .3s ease;
}
.nav__cta:hover { border-color: transparent; background: var(--grad); }
@media (max-width: 720px) {
  .nav__word { display: none; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(9rem, 30vh, 20rem) var(--pad) 6rem;
  overflow: hidden;
  /* faint fallback glow if the canvas can't render (the live field does the real work) */
  background:
    radial-gradient(70% 60% at 64% 32%, rgba(254,72,111,.05), transparent 60%),
    radial-gradient(60% 60% at 30% 70%, rgba(247,92,54,.04), transparent 60%),
    var(--bg);
}
.contact {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(254,72,111,.10), transparent 60%),
    var(--bg);
}
.no-webgl .hero__canvas, .no-webgl .contact__canvas { display: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* darken behind the headline (left) so text stays legible over the bloomed
       field, while the right (bear) stays clear and vibrant */
    linear-gradient(90deg, rgba(10,10,12,.80) 0%, rgba(10,10,12,.48) 36%, rgba(10,10,12,.10) 62%, transparent 80%),
    radial-gradient(115% 80% at 50% 16%, transparent 48%, rgba(10,10,12,.46) 100%),
    linear-gradient(180deg, rgba(10,10,12,.5) 0%, transparent 24%, transparent 55%, var(--bg) 100%);
}
@media (max-width: 720px) {
  /* full-width centred text on mobile needs a more even scrim */
  .hero__veil {
    background:
      radial-gradient(130% 80% at 50% 52%, rgba(10,10,12,.28), rgba(10,10,12,.6) 100%),
      linear-gradient(180deg, rgba(10,10,12,.5) 0%, rgba(10,10,12,.28) 28%, rgba(10,10,12,.32) 60%, var(--bg) 100%);
  }
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; }

/* large centred logo on landing; JS shrinks + flies it to the nav corner on scroll */
.hero-brand {
  position: fixed; left: 50%; top: 7vh;
  width: clamp(150px, 18vw, 232px);
  transform: translateX(-50%);
  transform-origin: center top;
  z-index: 99; pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 12px 38px rgba(0,0,0,.6));
}
.hero-brand img { width: 100%; height: auto; display: block; }
/* shorter viewports (laptops): smaller logo + headline + top gap so the
   centred logo, headline and CTAs all fit above the fold */
@media (max-height: 940px) {
  .hero { padding-top: clamp(8rem, 25vh, 15rem); }
  .hero-brand { top: 4.5vh; width: clamp(116px, 13vw, 165px); }
  .hero__title { font-size: clamp(2.6rem, 1rem + 5vw, 4.6rem); }
}
@media (max-width: 600px)  { .hero-brand { width: clamp(120px, 32vw, 176px); } }
/* nav brand fades in as the hero logo docks (opacity driven by JS) */
.nav__brand { transition: opacity .45s var(--ease); }

.hero__title {
  font-size: clamp(2.7rem, 1rem + 7.4vw, 7rem);
  line-height: 0.96; letter-spacing: -0.025em;
  margin: .1rem 0 1.5rem;
  text-shadow: 0 2px 40px rgba(6,6,9,.72), 0 1px 4px rgba(6,6,9,.6);
}
.hero__title .line { display: block; }
.hero__sub { max-width: 46ch; color: var(--ink); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 24px rgba(6,6,9,.72); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

.hero__hint {
  position: absolute; left: var(--pad); bottom: 2.2rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--faint); font-family: var(--display); font-size: .82rem; letter-spacing: .04em;
}
.hero__hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px 1px var(--pink); animation: pulse 2.4s var(--ease) infinite; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: 2.2rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 46px; height: 1px; background: linear-gradient(90deg, var(--muted), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:''; position:absolute; inset:0; width:40%; background: var(--pink); animation: scrollline 2.2s var(--ease) infinite; }
@keyframes scrollline { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(280%)} }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.35; transform:scale(.7)} }
@media (max-width: 600px){ .hero__hint{ font-size:.74rem } .hero__scroll{ display:none } }

/* ---- interaction surface: the whole hero/contact drives the light-field ----
   text layers let pointer events fall through to the canvas (so it reacts
   everywhere, not just the gaps) and can't be drag-selected; real
   links/buttons opt back in so they stay clickable. */
.hero, .contact { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.hero__inner, .contact__inner, .hero__hint { pointer-events: none; }
.hero__inner a, .hero__inner .btn,
.contact__inner a, .contact__inner button { pointer-events: auto; }

/* ===================================================================
   STUDIO / STATEMENT
   =================================================================== */
.studio__statement {
  font-size: clamp(1.7rem, 1rem + 3.2vw, 3.4rem);
  max-width: 18ch; line-height: 1.08; margin-bottom: clamp(3rem, 7vw, 5rem);
}
.studio__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.studio__lede { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.studio__stats { list-style: none; display: grid; gap: 1.8rem; }
.studio__stats li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.studio__stats .num { display: block; font-family: var(--display); font-size: clamp(2.6rem,5vw,3.6rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.studio__stats .lbl { display: block; color: var(--faint); font-size: .92rem; margin-top: .4rem; letter-spacing: .02em; }
@media (max-width: 820px){ .studio__grid{ grid-template-columns: 1fr; gap: 3rem; } .studio__stats{ grid-template-columns: repeat(3,1fr); gap:1.2rem;} }
@media (max-width: 520px){ .studio__stats{ grid-template-columns: 1fr; } }

/* ===================================================================
   WORK
   =================================================================== */
.work__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 1.6vw, 1.4rem);
  grid-auto-rows: 1fr;
}
.work-card {
  position: relative; grid-column: span 3; border-radius: 20px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx,0)) rotateY(var(--ry,0));
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.work-card[data-tilt]:hover { border-color: rgba(255,255,255,.18); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
/* whole-card link to a case study (sits above body text; cursor shows it's clickable) */
.work-card__link { position: absolute; inset: 0; z-index: 3; }
.work-card__link:focus-visible { outline: 2px solid #FE486F; outline-offset: -4px; border-radius: 20px; }
.work-card:has(.work-card__link) .work-card__title::after { content: ' →'; opacity: .55; font-size: .7em; vertical-align: middle; }
.work-card--feature { grid-column: span 6; min-height: clamp(360px, 46vw, 560px); }
.work-card--tall { grid-row: span 2; }
.work-card--credits { grid-column: span 3; background:
  radial-gradient(120% 140% at 100% 0%, rgba(254,72,111,.12), transparent 55%), var(--bg-card); justify-content: center; }

.work-card__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14); transition: transform .9s var(--ease), filter .9s var(--ease);
  filter: saturate(1.12);
}
.work-card:hover .work-card__media img { transform: scale(1.2); }
/* caption scrim lives on the CARD (which doesn't move), not the parallaxing
   media layer — otherwise it slides off the bottom as you scroll */
.work-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 26%, rgba(8,8,10,.5) 58%, rgba(8,8,10,.94) 100%);
}
.work-card__body { position: relative; padding: clamp(1.3rem, 2.5vw, 2.2rem); }
.work-card__tag {
  display: inline-block; font-family: var(--display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(10,10,12,.4); backdrop-filter: blur(6px); margin-bottom: .9rem;
}
.work-card__title { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); margin-bottom: .5rem; }
.work-card--feature .work-card__title { font-size: clamp(1.9rem, 1rem + 3vw, 3.4rem); }
.work-card__desc { color: rgba(244,242,239,.82); max-width: 52ch; font-size: .98rem; }

.work-card--credits .work-card__body { padding: clamp(1.6rem,3vw,2.6rem); }
.credits { list-style: none; margin-top: 1.4rem; display: grid; gap: .55rem; }
.credits li { color: var(--muted); padding-left: 1.4rem; position: relative; font-size: .98rem; }
.credits li::before { content: '✦'; position: absolute; left: 0; color: var(--pink); font-size: .8rem; top: .15rem; }

@media (max-width: 900px){
  .work__grid{ grid-template-columns: repeat(2,1fr); }
  .work-card{ grid-column: span 1; }
  .work-card--feature{ grid-column: span 2; }
  .work-card--tall{ grid-row: span 1; }
  .work-card--credits{ grid-column: span 2; }
}
@media (max-width: 560px){
  .work__grid{ grid-template-columns: 1fr; }
  .work-card, .work-card--feature, .work-card--credits{ grid-column: span 1; }
}

/* ===================================================================
   CAPABILITIES
   =================================================================== */
.caps { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.caps__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; }
.cap { position: relative; background: var(--bg); padding: clamp(1.8rem, 3vw, 2.8rem); transition: background .5s var(--ease); }
.cap:hover { background: var(--bg-card-2); }
.cap__led {
  position: absolute; top: clamp(1.8rem,3vw,2.8rem); right: clamp(1.8rem,3vw,2.8rem);
  width: 9px; height: 9px; border-radius: 50%; background: #2a2a31;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.cap.in-view .cap__led { background: var(--grad); box-shadow: 0 0 14px 1px rgba(254,72,111,.8); }
.cap__no { font-family: var(--display); font-size: .8rem; letter-spacing: .2em; color: var(--faint); }
.cap__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin: 1rem 0 .7rem; max-width: 18ch; }
.cap__desc { color: var(--muted); font-size: .98rem; max-width: 42ch; }
@media (max-width: 860px){ .caps__grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .caps__grid{ grid-template-columns: 1fr; } }

/* ===================================================================
   CLIENTS / MARQUEE
   =================================================================== */
.clients { padding-block: clamp(4rem, 8vw, 7rem); }
.marquee { position: relative; margin-top: 2.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; align-items: center; gap: 2.2rem; white-space: nowrap; padding-right: 2.2rem;
  font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.8vw, 2.6rem); color: var(--ink);
  animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { opacity: .55; transition: opacity .3s ease; }
.marquee__track .marquee__sep { color: var(--pink); opacity: .9; font-size: .6em; }
@keyframes marquee { from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ===================================================================
   CONTACT + FOOTER
   =================================================================== */
.contact { position: relative; overflow: hidden; padding-bottom: 0; }
.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.contact__inner { position: relative; z-index: 2; text-align: center; padding-top: clamp(2rem,5vw,4rem); padding-bottom: clamp(5rem,10vw,9rem); }
.contact__inner::before { content: ''; position: absolute; inset: -8% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 64% at 50% 46%, rgba(10,10,12,.62), rgba(10,10,12,.28) 62%, transparent 80%); }
.contact .eyebrow { justify-content: center; }
.contact__title { font-size: clamp(2.2rem, 1rem + 5vw, 5.5rem); line-height: 1.02; }
.contact__sub { color: var(--muted); margin: 1.4rem auto 0; max-width: 42ch; font-size: clamp(1.05rem,1rem+.4vw,1.25rem); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.6rem; }

.footer { position: relative; z-index: 2; border-top: 1px solid var(--line-soft); background: rgba(8,8,10,.55); backdrop-filter: blur(8px); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; padding-block: 2rem; }
.footer__brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); letter-spacing: .12em; font-size: .9rem; }
.footer__brand img { width: 64px; height: 64px; }
.footer__meta, .footer__copy { color: var(--faint); font-size: .85rem; }

/* ===================================================================
   REVEAL ANIMATIONS
   =================================================================== */
.reveal { opacity: 0; transform: translateY(46px) scale(.965); filter: blur(6px); transition: opacity .8s var(--ease), transform .95s var(--ease), filter .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; filter: none; }
/* stagger children that share a parent reveal group */
.hero__inner .reveal:nth-child(1){ transition-delay: .05s; }
.hero__inner .reveal:nth-child(2){ transition-delay: .15s; }
.hero__inner .reveal:nth-child(3){ transition-delay: .3s; }
.hero__inner .reveal:nth-child(4){ transition-delay: .45s; }

/* masked line reveals (kinetic typography) */
.lines .line { display: block; overflow: hidden; padding-block: .09em; margin-block: -.09em; }
.lines .line__i { display: block; transform: translateY(115%); transition: transform 1s var(--ease); }
.lines.in-view .line__i { transform: none; }
.lines.in-view .line:nth-child(2) .line__i { transition-delay: .09s; }
.lines.in-view .line:nth-child(3) .line__i { transition-delay: .18s; }

/* ===================================================================
   PRELOADER
   =================================================================== */
html.is-loading, html.is-loading body { height: 100%; overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .9s var(--ease);
}
.preloader.is-done { transform: translateY(-101%); }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.preloader__mark { width: clamp(96px, 12vw, 148px); height: auto; animation: prepulse 1.8s var(--ease) infinite; }
@keyframes prepulse { 0%,100% { opacity: .45; transform: scale(.97); } 50% { opacity: 1; transform: scale(1); } }
.preloader__count { font-family: var(--display); font-size: .95rem; letter-spacing: .28em; color: var(--muted); }
.preloader__count span:last-child { color: var(--faint); margin-left: .1em; }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.07); }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 14px 1px rgba(254,72,111,.7); }
.is-loading .cursor { opacity: 0 !important; }

/* ===================================================================
   CUSTOM CURSOR (fine pointers only)
   =================================================================== */
.cursor { display: none; position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor__dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.6); will-change: transform;
}
.cursor__ring {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255,255,255,.65); border-radius: 50%; will-change: transform;
  display: flex; align-items: center; justify-content: center;
  transition: width .28s var(--ease), height .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.cursor__label { font-family: var(--display); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s ease; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 66px; height: 66px; margin: -33px 0 0 -33px; border-color: transparent; background: rgba(255,255,255,.14); }
.cursor.is-drag  .cursor__ring { width: 80px; height: 80px; margin: -40px 0 0 -40px; border-color: rgba(255,255,255,.55); background: rgba(254,72,111,.10); }
.cursor.is-drag  .cursor__label { opacity: .92; }
.cursor.is-down  .cursor__ring { transform: scale(.78); }

/* ===================================================================
   FILM GRAIN
   =================================================================== */
.grain {
  position: fixed; inset: -60%; z-index: 120; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px; animation: grain 5s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(4%,-5%); }
  60% { transform: translate(-3%,6%); } 80% { transform: translate(5%,3%); } 100% { transform: translate(0,0); }
}

/* ===================================================================
   KINETIC BAND
   =================================================================== */
.band { overflow: hidden; padding: clamp(2.4rem, 6vw, 5rem) 0; border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.band__track { display: inline-flex; align-items: center; gap: clamp(1.4rem, 4vw, 3.4rem); white-space: nowrap; will-change: transform; }
.band__track span {
  font-family: var(--display); font-size: clamp(2.4rem, 7.5vw, 7.5rem); line-height: .85; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.42); text-stroke: 1px rgba(255,255,255,.42);
  transition: -webkit-text-stroke-color .4s ease, color .4s ease;
}
.band__star { font-style: normal; font-size: clamp(.9rem, 2vw, 2rem); color: var(--pink); opacity: .85; transform: translateY(-.15em); }
.band.is-fast span { color: var(--ink); -webkit-text-stroke-color: transparent; }

/* ===================================================================
   REVEAL ANIMATIONS (reduced-motion guards, incl. award-layer)
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .lines .line__i { transform: none !important; transition: none !important; }
  .marquee__track, .band__track { animation: none; }
  .hero__hint-dot, .hero__scroll-line::after, .preloader__mark, .grain { animation: none; }
  .work-card { transform: none !important; }
  .cursor { display: none; }
  .hero-brand { display: none; }
  .nav__brand { opacity: 1 !important; }
  .preloader.is-done { transform: none; opacity: 0; }
}

/* ===================================================================
   HOME — apps & tools teaser
   =================================================================== */
.apps-teaser { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.apps-teaser__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1rem, 1.6vw, 1.4rem); }
.apps-teaser__item {
  display: flex; flex-direction: column; gap: .3rem; padding: clamp(1.3rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line-soft); border-radius: 16px; background: var(--bg-card);
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.apps-teaser__item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); background: var(--bg-card-2); }
.apps-teaser__item .t-name { font-family: var(--display); font-size: 1.4rem; }
.apps-teaser__item .t-kind { color: var(--faint); font-size: .9rem; }
.apps-teaser__item::after { content: '→'; color: var(--pink); margin-top: .6rem; transition: transform .35s var(--ease); }
.apps-teaser__item:hover::after { transform: translateX(5px); }
@media (max-width: 680px) { .apps-teaser__row { grid-template-columns: 1fr; } }

/* short viewports (laptops): shrink hero title + top padding so the centred
   logo, headline and CTAs all fit above the fold. Placed last so it wins the
   source-order cascade over the base .hero / .hero__title rules. */
@media (max-height: 940px) {
  .hero { padding-top: clamp(7rem, 22vh, 13rem); }
  .hero__title { font-size: clamp(2.4rem, 1rem + 5.4vw, 4.7rem); }
}

/* ============================================================
   FX show grammar — homepage port (body.fx). Numbered eyebrows +
   LED-tape section dividers, matching the case-study / app pages.
   HOUSE RULE: dots may glow — the space BETWEEN dots stays black.
   (Safe below the max-height hero override: no hero rules here.)
   ============================================================ */
.eyebrow__no { color: var(--faint); }
body.fx .section[data-no].in-view .eyebrow__no { color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  animation: cue-flick .5s steps(3, jump-none); }

/* tape lives on ::before (not background) — .caps/.apps-teaser keep their own gradients */
body.fx .section[data-no]::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 var(--led-px), transparent var(--led-px) var(--led-gap)); }
body.fx .section[data-no].in-view::before {
  background: repeating-linear-gradient(90deg, rgba(254,72,111,.30) 0 var(--led-px), transparent var(--led-px) var(--led-gap)); }
/* one chase pulse hides the unlit→lit snap as it passes */
body.fx .section[data-no]::after { content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 14%;
  opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--pink) 0 var(--led-px), transparent var(--led-px) var(--led-gap));
  filter: drop-shadow(0 0 4px rgba(254,72,111,.8)); }
body.fx .section[data-no].in-view::after { animation: cue-chase 1s steps(20, end) both; }
@keyframes cue-chase { from { transform: translateX(-100%); opacity: 1; } to { transform: translateX(760%); opacity: 0; } }
@keyframes cue-flick { 0%, 45% { opacity: .25; } 25%, 65%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  body.fx .section[data-no]::after { display: none; }
  body.fx .section[data-no].in-view .eyebrow__no { animation: none; }
}

/* embedded / white-label section — the pull line beside the lede */
.embedded__mark { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1.3; max-width: 16ch; }
.embedded__mark em { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-style: normal; }
.embedded__link { display: inline-block; margin-top: 1.1rem; font-family: var(--display); font-size: .92rem;
  color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s ease, border-color .3s ease; }
.embedded__link:hover { color: var(--ink); border-bottom-color: var(--pink); }
