/* =========================================================
   Javid GStudio — style
   Palette from the JGS identity: BlueViolet #544CA0, black, iron grey, white
   ========================================================= */
:root {
  --bg: #0a0a0c;
  --bg-2: #121216;
  --fg: #f2f0eb;
  --muted: #8d8a95;
  --line: rgba(242, 240, 235, .12);
  --accent: #6c5ce7;
  --accent-deep: #544ca0;
  --accent-soft: #b4a9ff;
  --grad: linear-gradient(90deg, #544ca0 0%, #7a69ff 45%, #b4a9ff 75%, #e9e4ff 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --pad: clamp(18px, 3.2vw, 48px);
  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --glass-bg: rgba(255, 255, 255, .16);
  --glass-line: rgba(255, 255, 255, .22);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading, body.case-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { padding-inline: var(--pad); max-width: 1760px; margin-inline: auto; }
.eyebrow { font-size: 13px; letter-spacing: .04em; color: var(--muted); margin-bottom: 18px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; transition: transform .9s var(--ease-io) .1s;
}
.loader__mark { display: flex; align-items: center; gap: .35em; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 6vw, 72px); letter-spacing: -.03em; }
.loader__bar { width: 2.2em; height: .32em; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .2s linear; }
.loader__count { position: absolute; bottom: var(--pad); right: var(--pad); font-family: var(--display); font-size: 14px; color: var(--muted); }
body.is-ready .loader { transform: translateY(-100%); }

/* ---------- glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* ---------- cursor: a dot that becomes a frosted-glass pill over work ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  display: flex; align-items: center; gap: 0; height: 12px; min-width: 12px; margin: -6px 0 0 -6px; padding: 0;
  border-radius: 99px; background: var(--fg); border: 1px solid transparent;
  transition: height .45s var(--ease), min-width .45s var(--ease), margin .45s var(--ease), padding .45s var(--ease),
    background .35s, border-color .35s, gap .45s var(--ease), box-shadow .35s;
}
.cursor__icon { width: 0; height: 0; border-radius: 50%; background: #0a0a0c; color: #fff; display: grid; place-items: center; overflow: hidden; flex: none;
  transition: width .45s var(--ease), height .45s var(--ease); }
.cursor__icon svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .2s, transform .45s var(--ease); }
.cursor__icon .i-play { opacity: 0; width: 16px; margin-left: 2px; }
.cursor.is-play .cursor__icon .i-play { opacity: 1; }
.cursor.is-play .cursor__icon .i-arrow { opacity: 0; }
.cursor__label { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width .45s var(--ease), opacity .25s; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.cursor.is-link { height: 40px; min-width: 40px; margin: -20px 0 0 -20px; background: rgba(242,240,235,.12); border-color: rgba(242,240,235,.35); }
.cursor.is-glass {
  height: 56px; margin: -28px 0 0 -28px; padding: 0 20px 0 6px; gap: 12px;
  background: var(--glass-bg); border-color: var(--glass-line);
  backdrop-filter: blur(14px) saturate(1.7); -webkit-backdrop-filter: blur(14px) saturate(1.7);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.cursor.is-glass .cursor__icon { width: 44px; height: 44px; }
.cursor.is-glass .cursor__label { max-width: 200px; opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 60; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad); transition: transform .5s var(--ease), background .3s, backdrop-filter .3s;
}
.nav.is-scrolled { background: rgba(10,10,12,.62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.nav__logo svg { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.nav__logo:hover svg { transform: rotate(-12deg) scale(1.05); }
.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a, .footer a, .contact__grid a { position: relative; }
.nav__links a::after, .contact__grid a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .contact__grid a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang button { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; color: var(--muted); transition: .25s; }
.lang button.is-active { background: var(--fg); color: var(--bg); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav__burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--fg); transition: .35s var(--ease); }
.nav__burger i:first-child { top: 16px; } .nav__burger i:last-child { top: 24px; }
body.menu-open .nav__burger i:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .nav__burger i:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; justify-content: center;
  gap: 8px; padding: var(--pad); font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -.03em;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io);
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; border-radius: 99px; transition: background .3s, color .3s, border-color .3s; will-change: transform; }
.btn--pill { background: var(--fg); color: var(--bg); padding: 11px 20px; }
.btn--pill:hover { background: var(--accent); color: #fff; }
.btn--ghost { border: 1px solid var(--line); padding: 14px 24px; }
.btn--ghost:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(110px, 14vh, 160px); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.9vw, 66px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
.hero__aside { justify-self: end; text-align: right; display: grid; gap: 14px; }
.hero__role { color: var(--muted); font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 10px; justify-self: end; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 600; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.wordmark { display: flex; align-items: center; justify-content: space-between; gap: 2.2vw; margin-top: clamp(40px, 7vh, 90px);
  font-family: var(--display); font-weight: 700; font-size: clamp(40px, 10vw, 220px); line-height: .9; letter-spacing: -.055em; white-space: nowrap; }
.wordmark > span:not(.wordmark__bar) { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.wordmark__a, .wordmark__b { overflow: visible; }
.wordmark__bar { flex: 1; height: .19em; min-width: 40px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.06); margin-top: .06em; }
.wordmark__bar i { display: block; height: 100%; background: var(--grad); background-size: 200% 100%; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.4s var(--ease) .35s; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
body.is-ready .wordmark > span:not(.wordmark__bar) { transform: none; }
body.is-ready .wordmark__b { transition-delay: .12s; }
body.is-ready .wordmark__bar i { transform: scaleX(1); }
.wordmark { overflow: hidden; padding-bottom: .04em; }

.hero__lead { max-width: 46ch; font-size: clamp(18px, 1.55vw, 26px); line-height: 1.4; margin: clamp(28px, 4vh, 54px) 0 clamp(30px, 5vh, 60px); color: #d9d6de; }

.reel__frame { display: block; position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  transform: scale(var(--reel-scale, .92)); transform-origin: 50% 0; will-change: transform; }
.reel__frame { width: 100%; text-align: left; cursor: pointer; }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.55)); pointer-events: none; }
.reel__glass { position: absolute; left: clamp(14px, 2.2vw, 34px); bottom: clamp(14px, 2.2vw, 34px); display: flex; align-items: center; gap: 16px;
  max-width: min(460px, calc(100% - 28px)); padding: 12px 22px 12px 12px; border-radius: 20px; color: #fff; transition: transform .6s var(--ease), background .3s; }
.reel__frame:hover .reel__glass { transform: translateY(-4px); background: rgba(255,255,255,.22); }
.reel__play { width: 54px; height: 54px; flex: none; border-radius: 50%; background: #fff; color: #0a0a0c; display: grid; place-items: center; transition: transform .5s var(--ease); }
.reel__play svg { width: 20px; margin-left: 3px; }
.reel__frame:hover .reel__play { transform: scale(1.08); }
.reel__glass b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.reel__glass small { display: block; font-size: 13.5px; line-height: 1.35; opacity: .85; margin-top: 2px; }
/* ---------- clients ---------- */
.clients { padding: clamp(60px, 10vh, 120px) 0 0; }
.clients__label { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 34px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(30px, 5vh, 56px); }
.section-title { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6.4vw, 112px); line-height: .95; letter-spacing: -.05em; }
.section-title sup { font-size: .26em; letter-spacing: 0; vertical-align: top; margin-left: .3em; color: var(--accent-soft); font-weight: 500; position: relative; top: .5em; }
.section-sub { color: var(--muted); font-size: 16px; max-width: 34ch; }

/* ---------- work grid ---------- */
.work { padding-top: clamp(80px, 14vh, 160px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 600; color: #cfccd5; transition: .25s; }
.filters button:hover { border-color: var(--fg); color: var(--fg); }
.filters button.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters button sup { font-size: 10px; margin-left: 4px; opacity: .6; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 32px); }
.card { display: block; transition: opacity .5s, transform .5s var(--ease); }
.card.is-wide { grid-column: 1 / -1; }
.card.is-hidden { display: none; }
.card__media { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s ease; }
.card__media .card__peek { opacity: 0; }
.card__media .card__peek.is-on { opacity: 1; }
.card:hover .card__media img { transform: scale(1.035); }
.card__media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.card__badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card__badge span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 99px; color: #fff; }
.card__bar { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; height: 2px; display: flex; gap: 4px; opacity: 0; transition: opacity .3s; }
.card__bar i { flex: 1; background: rgba(255,255,255,.3); border-radius: 2px; }
.card__bar i.is-on { background: #fff; }
.card:hover .card__bar { opacity: 1; }
.card__info { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 4px 0; }
.card__title { font-family: var(--display); font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.card.is-wide .card__title { font-size: clamp(22px, 2.1vw, 34px); }
.card__year { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.card__short { grid-column: 1 / -1; color: var(--muted); font-size: 15px; transition: color .3s; }
.card:hover .card__short { color: #c9c5d0; }
.card__client { grid-column: 1 / -1; font-size: 13px; color: var(--accent-soft); font-weight: 600; margin-top: 2px; }

/* ---------- about ---------- */
.about { padding-top: clamp(110px, 16vh, 200px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.about__photo { margin: 0; position: sticky; top: 100px; }
.about__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); filter: grayscale(.15) contrast(1.03); }
.about__photo figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); padding: 14px 4px 0; }
.about__photo figcaption span:first-child { color: var(--fg); font-weight: 600; }
.about__lead { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 44px); line-height: 1.18; letter-spacing: -.035em; }
.about__body { display: grid; gap: 16px; color: #bdb9c4; margin: 34px 0 44px; max-width: 60ch; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 40px; }
.stat { padding: 24px 16px 4px 0; display: grid; grid-template-columns: auto 1fr; align-items: start; }
.stat b { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 4vw, 64px); line-height: 1; letter-spacing: -.05em; }
.stat sup { font-family: var(--display); font-size: 22px; color: var(--accent-soft); margin-left: 2px; }
.stat span { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin-top: 10px; }
.about__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); margin-top: clamp(70px, 10vh, 120px); }
.timeline ol { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline__year { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.timeline__year em { font-style: normal; color: var(--accent-soft); }
.timeline b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -.02em; }
.timeline li span:not(.timeline__year) { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips li { padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: #d5d1db; transition: .3s; }
.chips li:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.langs { border-top: 1px solid var(--line); }
.langs li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.langs em { font-style: normal; color: var(--muted); }

/* ---------- services ---------- */
.services { padding-top: clamp(110px, 16vh, 200px); position: relative; }
.svc { border-top: 1px solid var(--line); }
.svc li { border-bottom: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; width: 100%; text-align: left; padding: clamp(20px, 3vh, 34px) 0; transition: padding .4s var(--ease), color .3s; }
.svc__num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc__name { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.8vw, 46px); letter-spacing: -.04em; line-height: 1.05; transition: transform .5s var(--ease), color .3s; }
.svc__tags { color: var(--muted); font-size: 14px; }
.svc__plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: .4s var(--ease); }
.svc__plus::before, .svc__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.svc__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc li.is-open .svc__plus { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.svc li.is-open .svc__plus::after { transform: translate(-50%, -50%) rotate(0); }
.svc__row:hover .svc__name { transform: translateX(10px); color: var(--accent-soft); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.svc__body > div { overflow: hidden; }
.svc li.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body p { padding: 0 0 32px 94px; max-width: 80ch; color: #bdb9c4; font-size: 17px; }
.svc-preview { position: fixed; top: 0; left: 0; z-index: 30; width: 320px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-4deg); transition: opacity .35s, transform .5s var(--ease); }
.svc-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .svc-preview { display: none; } }

/* ---------- process ---------- */
.process { padding-top: clamp(100px, 14vh, 170px); }
.process__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--bg-2); border-radius: var(--radius); padding: 28px 26px 30px; min-height: 300px; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .4s, transform .6s var(--ease); }
.step:hover { border-color: rgba(180,169,255,.35); transform: translateY(-6px); }
.step__n { font-family: var(--display); font-size: 14px; color: var(--accent-soft); }
.step h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -.03em; margin-top: auto; padding-top: 60px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* ---------- faq ---------- */
.faq { padding-top: clamp(110px, 16vh, 200px); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; gap: 30px; align-items: center; text-align: left; padding: 28px 0; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.8vw, 28px); letter-spacing: -.025em; }
.qa .svc__plus { flex: none; }
.qa.is-open .svc__plus { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qa.is-open .svc__plus::after { transform: translate(-50%, -50%) rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a p { padding-bottom: 30px; max-width: 70ch; color: #bdb9c4; }

/* ---------- contact ---------- */
.contact { padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 140px); position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; width: 70vw; height: 70vw; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(108,92,231,.28), rgba(108,92,231,0)); pointer-events: none; }
.contact .wrap { position: relative; }
.contact__title { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 7.4vw, 136px); line-height: .98; letter-spacing: -.055em; max-width: 13ch; }
.contact__mail { display: inline-flex; align-items: center; gap: .4em; margin-top: clamp(30px, 5vh, 60px); font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 3.4vw, 56px); letter-spacing: -.04em; border-bottom: 2px solid var(--line); padding-bottom: 8px; transition: border-color .3s, color .3s; word-break: break-all; }
.contact__mail:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.contact__arrow { display: inline-block; transition: transform .5s var(--ease); }
.contact__mail:hover .contact__arrow { transform: translate(6px, -6px) rotate(0deg); }
.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: clamp(60px, 9vh, 100px); border-top: 1px solid var(--line); padding-top: 28px; }
.contact__grid > div { display: flex; flex-direction: column; gap: 6px; font-size: 17px; align-items: flex-start; }
.contact__grid .eyebrow { margin-bottom: 8px; }
.clock { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 26px; overflow: hidden; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.footer__top:hover { color: var(--fg); }
.footer__word { font-family: var(--display); font-weight: 700; font-size: 11vw; line-height: .8; letter-spacing: -.06em; white-space: nowrap; width: max-content; margin: 4vw auto 0; padding-right: .07em;
  background: linear-gradient(180deg, var(--fg) 20%, rgba(242,240,235,.0) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(12%); }

/* ---------- case study ---------- */
.case { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.case::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .6s; }
.case__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); transform: translateY(100%);
  transition: transform .9s var(--ease-io); border-radius: 28px 28px 0 0; }
.case.is-open { pointer-events: auto; }
.case.is-open::before { opacity: 1; }
.case.is-open .case__scroll { transform: none; }
.case__close { position: fixed; top: 18px; right: var(--pad); z-index: 3; width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: var(--bg);
  opacity: 0; transform: scale(.6) rotate(-90deg); transition: opacity .4s .3s, transform .6s var(--ease) .3s; }
.case.is-open .case__close { opacity: 1; transform: none; }
.case__close span { position: absolute; left: 16px; right: 16px; top: 50%; height: 2px; background: currentColor; transform: rotate(45deg); }
.case__close span + span { transform: rotate(-45deg); }
.case__close:hover { background: var(--accent); color: #fff; }
.case__inner { padding: clamp(80px, 12vh, 130px) var(--pad) 0; max-width: 1760px; margin: 0 auto; }
.case__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.case__cats { align-items: center; }
.case__cats span { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); }
.case__icon { width: 46px; height: 46px; border-radius: 12px; margin-right: 6px; }
.case__title { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.6vw, 100px); line-height: 1; letter-spacing: -.05em; max-width: 18ch; }
.case__hero { margin-top: clamp(36px, 6vh, 70px); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.case__hero img { width: 100%; height: 100%; object-fit: cover; }
.case__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(30px, 6vw, 110px); padding: clamp(40px, 7vh, 90px) 0; }
.case__facts { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.case__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.case__facts dt { color: var(--muted); }
.case__facts dd { margin: 0; }
.case__facts a { color: var(--accent-soft); }
.case__text { display: grid; gap: 20px; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.6; color: #d4d0da; }
.case__text p:first-child { font-family: var(--display); font-size: clamp(20px, 1.9vw, 30px); line-height: 1.3; letter-spacing: -.03em; color: var(--fg); }
.gallery { display: grid; gap: clamp(10px, 1.2vw, 20px); }
.gallery__row { display: grid; gap: clamp(10px, 1.2vw, 20px); }
.gallery__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.gallery img { width: 100%; height: auto; opacity: 0; transition: opacity .8s ease; }
.gallery img.is-loaded { opacity: 1; }
.videos { display: grid; gap: clamp(10px, 1.2vw, 20px); margin-top: clamp(10px, 1.2vw, 20px); }
.videos--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 clamp(10px, 1.2vw, 20px); }
.video { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.video__poster:hover img { transform: scale(1.03); filter: brightness(.8); }
.video__play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; background: var(--fg); color: var(--bg);
  display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; }
.video__play svg { width: 26px; margin-left: 4px; }
.video__poster:hover .video__play { transform: scale(1.1); background: var(--accent); color: #fff; }
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px) clamp(10px, 1.2vw, 20px); }
.clip:first-child { grid-column: 1 / -1; }
.clip h3 { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.4vw, 22px); letter-spacing: -.02em; margin-top: 16px; }
.clip p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch; }
.case__next { display: block; margin: clamp(80px, 12vh, 150px) 0 0; padding: clamp(40px, 6vh, 70px) 0 clamp(60px, 10vh, 120px); border-top: 1px solid var(--line); }
.case__next .eyebrow { margin-bottom: 10px; }
.case__next-title { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 5vw, 86px); line-height: 1; letter-spacing: -.05em; display: flex; align-items: center; gap: .3em; transition: color .3s; }
.case__next-title i { font-style: normal; display: inline-block; transition: transform .5s var(--ease); }
.case__next:hover .case__next-title { color: var(--accent-soft); }
.case__next:hover .case__next-title i { transform: translateX(14px); }
.case__next-img { margin-top: 30px; aspect-ratio: 16/9; max-height: 52vh; width: auto; border-radius: var(--radius); overflow: hidden; opacity: .55; transition: opacity .5s; }
.case__next:hover .case__next-img { opacity: 1; }
.case__next-img img { width: 100%; height: 100%; object-fit: cover; }
.case__credit { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, calc(100% + 40px)); padding: 12px 20px; border-radius: 99px; background: var(--fg); color: var(--bg);
  font-weight: 700; font-size: 14px; transition: transform .5s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.split.is-in .w > span { transform: none; }
.card { opacity: 0; transform: translateY(50px); }
.card.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav .btn--pill { display: none; }
  .hero__top { grid-template-columns: 1fr; }
  .hero__aside { justify-self: start; text-align: left; }
  .status { justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .card.is-wide .card__title { font-size: clamp(18px, 5vw, 24px); }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .filters button { flex: none; }
  .about__grid, .about__cols, .case__meta { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: 0; }
  .svc__row { grid-template-columns: 44px 1fr 40px; }
  .svc__tags { display: none; }
  .svc__body p { padding-left: 68px; }
  .contact__grid { grid-template-columns: 1fr; }
  .clips { grid-template-columns: 1fr; }
  .gallery__row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .process__grid { grid-template-columns: 1fr; }
  .step { min-height: 220px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .reel__name { display: none; }
  .case__facts div { grid-template-columns: 90px 1fr; }
  .svc__body p { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .card, .split .w > span { opacity: 1; transform: none; }
}

/* =========================================================
   v2 additions
   ========================================================= */
.cursor:not(.is-glass):not(.is-link) { mix-blend-mode: difference; }

/* card hover: media dims a touch so the glass pill reads */

.card__badge, .card__bar { z-index: 2; }

/* ---------- films ---------- */
.films { padding-top: clamp(110px, 16vh, 200px); }
.films__note { display: flex; gap: 12px; align-items: flex-start; max-width: 70ch; color: var(--muted); font-size: 15px; margin: -10px 0 clamp(28px, 4vh, 44px); }
.films__note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); margin-top: 8px; flex: none; }
.films__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.film { display: block; width: 100%; text-align: left; }
.film__media { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.film__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.film:hover .film__media img { transform: scale(1.04); filter: brightness(.85); }
.film__kind { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; color: #fff; padding: 5px 11px; border-radius: 99px; }
.film__info { display: grid; gap: 3px; padding: 14px 2px 0; }
.film__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.film__meta { font-size: 13.5px; color: var(--muted); }
.films__more { display: flex; justify-content: center; margin-top: clamp(36px, 5vh, 56px); }
.films__more[hidden] { display: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 70px var(--pad) 110px;
  background: rgba(6,6,8,.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none; transition: opacity .45s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { width: min(100%, calc((100vh - 200px) * 16 / 9)); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000;
  transform: scale(.94); transition: transform .6s var(--ease); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__stage iframe, .lightbox__stage video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.lightbox__bar { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 22px; border-radius: 99px; max-width: calc(100% - 40px); color: #fff; }
.lightbox__title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__close { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; color: #0a0a0c; transition: background .3s, color .3s, transform .4s var(--ease); }
.lightbox__close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }
.lightbox__close span { position: absolute; left: 13px; right: 13px; top: 50%; height: 2px; background: currentColor; transform: rotate(45deg); }
.lightbox__close span + span { transform: rotate(-45deg); }
body.lb-open { overflow: hidden; }

@media (max-width: 1100px) { .films__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .videos--grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .films__grid { grid-template-columns: 1fr; }
  .reel__glass small { display: none; }
  .reel__play { width: 44px; height: 44px; }
}
/* ---------- card lens: frosted card, crisp window under the pointer ---------- */
@property --lens { syntax: '<length-percentage>'; inherits: true; initial-value: 75%; }
.card__media { --mx: 50%; --my: 50%; --lens: 75%; transition: --lens .9s var(--ease); }
.card:hover .card__media { --lens: 34%; }
.card__frost {
  position: absolute; inset: -1px; z-index: 1; pointer-events: none; opacity: 0;
  backdrop-filter: blur(26px) saturate(1.7) brightness(1.04); -webkit-backdrop-filter: blur(26px) saturate(1.7) brightness(1.04);
  -webkit-mask-image: radial-gradient(ellipse var(--lens) calc(var(--lens) * 1.45) at var(--mx) var(--my), transparent 86%, #000 100%);
          mask-image: radial-gradient(ellipse var(--lens) calc(var(--lens) * 1.45) at var(--mx) var(--my), transparent 86%, #000 100%);
  transition: opacity .6s var(--ease);
}
.card:hover .card__frost { opacity: 1; }
.card:hover .card__media img { transform: scale(1.06); }
@media (hover: none) { .card__frost { display: none; } }
/* ---------- client logos: official mono by default, official colour version inside a glass loupe ---------- */
.marquee__track { align-items: center; }
.logo { --s: 1; position: relative; display: grid; place-items: center; height: 120px; padding: 0 42px; flex: none;
  transform: scale(var(--s)); transition: transform .35s var(--ease); z-index: 0; }
.logo::before { content: ''; position: absolute; inset: 4px 12px; z-index: -1; border-radius: 28px;
  background: rgba(248, 247, 244, .95); border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  opacity: 0; transform: scale(.7); transition: opacity .35s, transform .55s var(--ease); }
.logo img { grid-area: 1 / 1; height: var(--h); width: auto; max-width: 300px; object-fit: contain; transition: opacity .4s, transform .55s var(--ease); }
.logo__mono { opacity: .55; }
.logo__color { opacity: 0; transform: scale(.92); }
.logo.is-hot { z-index: 2; }
.logo.is-hot::before { opacity: 1; transform: scale(1); }
.logo.is-hot .logo__mono { opacity: 0; transform: scale(1.1); }
.logo.is-hot .logo__color { opacity: 1; transform: scale(1.1); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (hover: none) { .logo__mono { opacity: .75; } }
@media (max-width: 560px) { .logo { height: 86px; padding: 0 24px; } .logo img { height: calc(var(--h) * .72); } }
