/* ---------- Tokens ---------- */
:root {
  --paper: #E4E6E9;      /* studio backdrop grey */
  --paper-2: #EEF0F2;
  --ink: #15171C;
  --ink-2: #4E535C;
  --line: #C3C7CD;
  --accent: #3049F2;     /* ultramarine */
  --dark: #050608;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --radius-media: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper-2);
  font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar__name {
  font-weight: 800; font-size: 17px; text-decoration: none;
  font-variation-settings: "wdth" 118;
  letter-spacing: -.01em;
  margin-right: auto;
}
.bar__nav { display: flex; gap: 28px; }
.bar__nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.bar__nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero__name {
  font-weight: 850;
  font-size: clamp(54px, 9.4vw, 152px);
  line-height: .86;
  letter-spacing: -.035em;
  font-variation-settings: "wdth" 125;
  margin-bottom: clamp(28px, 4vw, 48px);
  text-wrap: balance;
}
.hero__intro {
  font-weight: 500;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.22;
  letter-spacing: -.01em;
  max-width: 26ch;
  margin-bottom: 18px;
}
.hero__detail { color: var(--ink-2); max-width: 48ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Viewfinder */
.finder { margin: 0; justify-self: end; width: 100%; max-width: min(420px, calc((100svh - 140px) * 9 / 16)); }
.finder__frame {
  position: relative; aspect-ratio: 9 / 16;
  background: var(--dark); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(21, 23, 28, .55);
}
.finder__video { width: 100%; height: 100%; object-fit: cover; }
.finder__corner {
  position: absolute; width: 26px; height: 26px; pointer-events: none;
  border: 0 solid rgba(255, 255, 255, .85);
}
.finder__corner--tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.finder__corner--tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.finder__corner--bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.finder__corner--br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }
.finder__progress {
  position: absolute; top: 26px; left: 52px; right: 52px;
  display: flex; gap: 5px;
}
.finder__progress span {
  flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden;
}
.finder__progress span i { display: block; height: 100%; width: 0; background: #fff; }
.finder__progress span.is-done i { width: 100%; }
.finder__open {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 80px 30px 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  border: 0; color: #fff; text-align: left; cursor: pointer;
}
.finder__caption { font-weight: 600; font-size: 15px; line-height: 1.3; }
.finder__caption small { display: block; font-weight: 400; opacity: .75; font-size: 13px; }
.finder__sound {
  flex: none; font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s;
}
.finder__open:hover .finder__sound { background: var(--accent); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 64px; }
.work, .services, .clients, .about, .contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
h2 {
  font-weight: 800;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.03em;
  font-variation-settings: "wdth" 118;
}

/* ---------- Work ---------- */
.work { padding-top: 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 32px; margin-bottom: 28px;
  padding-top: 28px; border-top: 1.5px solid var(--ink);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.filter sup { font-size: 11px; margin-left: 3px; opacity: .6; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }

.grid { columns: 4 260px; column-gap: 14px; }
.tile {
  position: relative; display: block; width: 100%;
  margin: 0 0 14px; padding: 0; border: 0; cursor: zoom-in;
  background: #cfd2d7; border-radius: var(--radius-media); overflow: hidden;
  break-inside: avoid;
}
.tile img, .tile video { width: 100%; height: auto; }
.tile video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.tile.is-previewing video { opacity: 1; }
.tile__badge {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px 6px 9px; border-radius: 999px;
  background: rgba(10, 12, 16, .55); color: #fff;
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tile__badge svg { width: 12px; height: 12px; fill: currentColor; }
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px; color: #fff; text-align: left;
  font-size: 14px; font-weight: 600; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  opacity: 0; transition: opacity .25s;
}
.tile--video .tile__label { padding-left: 14px; padding-bottom: 46px; }
.tile:hover .tile__label, .tile:focus-visible .tile__label { opacity: 1; }
.tile img { transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.025); }
.tile[hidden] { display: none; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(32px, 6vw, 100px); }
.services__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.service { padding: 22px 0 34px; border-top: 1px solid var(--line); }
.service h3 {
  font-weight: 700; font-size: 22px; letter-spacing: -.01em; margin-bottom: 8px;
  font-variation-settings: "wdth" 110;
}
.service p { color: var(--ink-2); max-width: 44ch; }

/* ---------- Clients ---------- */
.clients { border-top: 1.5px solid var(--ink); padding-top: 28px; margin-top: clamp(20px, 4vw, 40px); }
.clients h2 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: 0; font-variation-settings: "wdth" 100; color: var(--ink-2); margin-bottom: 18px; }
.clients__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px clamp(22px, 3.4vw, 54px);
}
.clients__list li {
  font-weight: 700; font-size: clamp(28px, 4.4vw, 64px); line-height: 1.1;
  letter-spacing: -.025em; font-variation-settings: "wdth" 70;
}

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 32px clamp(32px, 5vw, 80px); align-items: start;
}
.about__body p { max-width: 58ch; margin-bottom: 1em; font-size: 18px; }
.about__body p:first-child { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; font-weight: 500; }
.about__facts { margin: 0; display: grid; gap: 0; }
.about__facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.about__facts dt { font-size: 14px; color: var(--ink-2); }
.about__facts dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink); color: var(--paper-2);
  max-width: none; margin-top: clamp(20px, 4vw, 40px);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.contact h2 { margin-bottom: 16px; }
.contact__lead { color: #A9AEB7; max-width: 46ch; margin-bottom: clamp(32px, 5vw, 64px); font-size: 18px; }
.contact__email {
  display: inline-block; text-decoration: none;
  font-weight: 800; font-size: clamp(26px, 5.6vw, 92px); line-height: 1;
  letter-spacing: -.035em; font-variation-settings: "wdth" 112;
  overflow-wrap: anywhere;
  padding-bottom: 8px; border-bottom: 3px solid var(--accent);
  transition: color .2s;
}
.contact__email:hover { color: #8C9BFF; }
.contact__links {
  list-style: none; padding: 0; margin: clamp(36px, 5vw, 64px) 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.contact__links a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 1px solid #3A3E47; border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.contact__links a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.contact__links small { font-weight: 400; color: #A9AEB7; margin-left: 8px; }
.contact__links a:hover small { color: #fff; }
.contact :focus-visible { outline-color: #8C9BFF; }

/* ---------- Footer ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
  background: var(--ink); color: #80858F; font-size: 14px;
  border-top: 1px solid #262931;
}
.foot a { color: #C7CBD1; text-decoration: none; }

/* ---------- Viewer ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--dark); color: #fff;
}
.viewer::backdrop { background: var(--dark); }
.viewer[open] { display: grid; grid-template-rows: 1fr auto; }
.viewer__stage {
  min-height: 0; display: grid; place-items: center;
  padding: 64px clamp(16px, 7vw, 96px) 8px;
}
.viewer__stage img, .viewer__stage video {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 4px;
}
.viewer__stage video { height: 100%; }
.viewer__stage.is-landscape video { height: auto; width: 100%; }
.viewer__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px) 20px;
}
.viewer__caption { font-weight: 600; }
.viewer__caption small { font-weight: 400; color: #9AA0AA; margin-left: 8px; font-size: 15px; }
.viewer__count { color: #9AA0AA; font-size: 14px; font-variant-numeric: tabular-nums; }
.viewer__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 0;
  transition: background .2s;
}
.viewer__btn:hover { background: rgba(255, 255, 255, .2); }
.viewer__btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viewer__close { top: 12px; right: 12px; }
.viewer__prev { left: 12px; top: 50%; translate: 0 -50%; }
.viewer__next { right: 12px; top: 50%; translate: 0 -50%; }
.viewer :focus-visible { outline-color: #8C9BFF; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .about__facts { grid-column: 2; }
}
@media (max-width: 900px) {
  .bar__nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .finder { justify-self: start; max-width: 340px; }
  .services, .about { grid-template-columns: 1fr; }
  .about__facts { grid-column: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services__list { grid-template-columns: 1fr; }
  .grid { columns: 2; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .tile__badge { left: 8px; bottom: 8px; font-size: 12px; padding: 4px 9px 4px 7px; }
  .tile__label { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .finder { max-width: none; }
  .viewer__prev, .viewer__next { top: 12px; translate: none; }
  .viewer__next { right: auto; left: 68px; }
  .viewer__stage { padding: 72px 0 8px; }
  .viewer__stage img, .viewer__stage video { border-radius: 0; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.more { display: flex; justify-content: center; margin-top: 28px; }
.more[hidden] { display: none; }

/* ==========================================================================
   Motion (added by motion.js; skipped entirely for reduced-motion visitors)
   ========================================================================== */
html, body { overflow-x: clip; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Letters rising out of a mask */
.motion .fx .w { display: inline-block; }
.motion .fx-chars .w {
  overflow: hidden; vertical-align: top;
  padding: .1em .04em .18em; margin: -.1em -.04em -.18em;
}
.motion .fx-chars .c {
  display: inline-block;
  translate: 0 112%; rotate: 12deg; transform-origin: 0 100%;
  transition: translate .5s var(--ease), rotate .5s var(--ease);
  transition-delay: calc(min(var(--i), 24) * 8ms);
}
.motion .fx-chars.is-in .c {
  translate: 0 0; rotate: 0deg;
  transition-duration: 1.1s;
  transition-timing-function: var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + min(var(--i), 30) * 26ms);
}
.motion .fx-chars.is-above .c { translate: 0 -112%; rotate: -12deg; }
.motion .fx-free .w { overflow: visible; }
.motion .hero__name .c { will-change: transform; }

/* Words coming into focus */
.motion .fx-words .c {
  display: inline-block;
  opacity: 0; filter: blur(10px); translate: 0 .5em;
  transition: opacity .4s, filter .4s, translate .4s;
}
.motion .fx-words.is-in .c {
  opacity: 1; filter: blur(0); translate: 0 0;
  transition-duration: 1s;
  transition-timing-function: var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + min(var(--i), 40) * 22ms);
}
.motion .fx-words.is-above .c { translate: 0 -.5em; }

/* Blocks sliding in */
.motion .fx-block {
  opacity: 0; translate: 0 32px;
  transition: opacity .45s, translate .45s;
}
.motion .fx-block.is-in {
  opacity: 1; translate: 0 0;
  transition: opacity 1s var(--ease-out), translate 1s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 70ms);
}
.motion .fx-block.is-above { translate: 0 -32px; }

/* Viewfinder wipes open, footage settles from a zoom */
.motion .finder.fx-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path .6s var(--ease);
}
.motion .finder.fx-clip.is-in {
  clip-path: inset(-100px);
  transition: clip-path 1.5s var(--ease-out) var(--d, 0ms);
}
.motion .finder.fx-clip.is-above { clip-path: inset(0 0 100% 0); }
.motion .finder__video { scale: 1.3; transition: scale 2s var(--ease-out); }
.motion .finder.is-in .finder__video { scale: 1; transition-delay: var(--d, 0ms); }
.motion .finder__frame { will-change: transform; }

/* Gallery parallax: images sit slightly zoomed so they can drift inside the frame */
.motion .tile { will-change: transform; }
.motion .tile > img { scale: 1.16; }

/* Clients marquee */
.marquee {
  width: 100vw; margin-left: calc(50% - 50vw);
  overflow: hidden; padding: 8px 0;
}
.marquee__row {
  display: flex; align-items: center; width: max-content;
  white-space: nowrap; will-change: transform;
  font-size: clamp(44px, 7.4vw, 120px); line-height: 1.08;
  letter-spacing: -.03em;
}
.marquee__row span { padding: 0 .1em; }
.marquee__row i {
  flex: none; width: .16em; height: .16em; margin: 0 .45em;
  border-radius: 50%; background: var(--accent);
}
.marquee__row--1 span { font-weight: 850; font-variation-settings: "wdth" 125; }
.marquee__row--2 span {
  font-weight: 700; font-variation-settings: "wdth" 62;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}

/* Keep the big name sized to its column so "Sureshlal" never breaks mid-word */
.hero__text { container-type: inline-size; min-width: 0; }
.hero__name { font-size: clamp(40px, 16.5cqi, 150px); }
.fx .w { white-space: nowrap; }
