/* Nirvana Studio · 3 Nov redesign
   Palette: light steel grey + ink + signal yellow (the same yellow as the Shorts captions) + one clip blue.
   Type: Archivo only — extra-wide black for headlines, normal width for everything else. */
:root {
  --paper: #E6E9ED; --paper2: #D9DDE3; --card: #F3F5F7; --rule: #C4CAD2;
  --ink: #15171C; --ink2: #3A3F48; --muted: #5E6570;
  --sig: #FFD400; --clip: #3B5BFF; --clip2: #8A9BFF;
  --font: "Archivo", system-ui, sans-serif;
  --pad: clamp(16px, 4.5vw, 64px); --r: 14px;
}
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--clip); outline-offset: 3px; border-radius: 6px; }
.wrap { padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
h1, h2, h3 { margin: 0; font-family: var(--font); }
.wide { font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; line-height: .92; }
.muted { color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-stretch: 125%; font-size: 21px; text-decoration: none; letter-spacing: -.01em; }
.logo i { width: 14px; height: 20px; background: var(--sig); border: 2px solid var(--ink); border-radius: 3px; position: relative; }
.logo i::after { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--ink2); font-weight: 500; }
.nav nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--sig); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 600 15px var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.sig { background: var(--sig); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.nav nav a.btn, .nav nav a.btn:hover { color: var(--paper); text-decoration: none; }

/* hero: headline, then the showreel sitting on an edit timeline */
.hero { padding: clamp(28px, 5vw, 64px) var(--pad) 0; max-width: 1440px; margin: 0 auto; }
.hero h1 { font-size: clamp(52px, 9.6vw, 150px); max-width: 12ch; }
.hero h1 .w { display: inline-block; }
.hero h1 mark { background: var(--sig); color: var(--ink); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .sub { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero .role { color: var(--ink2); font-size: 19px; max-width: 46ch; margin: 0; }
.reel { position: relative; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: #000; aspect-ratio: 21/9; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.timeline { position: relative; background: var(--ink); border-radius: 0 0 var(--r) var(--r); padding: 12px 12px 14px; }
.ruler { height: 14px; margin-bottom: 8px; background:
  repeating-linear-gradient(90deg, #ffffff40 0 1px, transparent 1px 10%), repeating-linear-gradient(90deg, #ffffff22 0 1px, transparent 1px 2%);
  background-size: 100% 100%, 100% 50%; background-repeat: no-repeat; background-position: bottom; }
.track { display: flex; gap: 3px; height: 46px; }
.track button { flex: 1; min-width: 0; border: 0; border-radius: 6px; background: var(--clip); color: #fff; font: 600 12px var(--font);
  text-align: left; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: filter .15s; }
.track button:nth-child(3n+2) { background: #2E46C9; }
.track button:nth-child(3n) { background: #5970FF; }
.track button:hover { filter: brightness(1.15); }
.track button.on { box-shadow: inset 0 0 0 2px var(--sig); }
.playhead { position: absolute; top: 6px; bottom: 6px; left: 12px; width: 2px; background: var(--sig); pointer-events: none; transform: translateX(0); }
.playhead::before { content: ""; position: absolute; top: -2px; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--sig); }

/* work */
.section { padding: clamp(64px, 9vw, 120px) 0 0; }
.section-head { margin-bottom: 30px; }
.section h2 { font-size: clamp(40px, 6vw, 84px); }
#work .section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters button { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 11px 22px; border-radius: 999px;
  font: 600 16px var(--font); cursor: pointer; transition: background .15s; }
.filters button:hover { background: var(--card); }
.filters button.on { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
.card { text-decoration: none; display: block; }
.card .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--paper2); }
.card .thumb img, .card .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .thumb video { opacity: 0; transition: opacity .2s; }
.card:hover .thumb video.ready { opacity: 1; }
/* hover: an in/out trim bar slides onto the clip, like selecting it on a timeline */
.card .thumb::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--sig); border-radius: var(--r); opacity: 0; transition: opacity .15s; pointer-events: none; }
.card:hover .thumb::after, .card:focus-visible .thumb::after { opacity: 1; }
.chip { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--paper); color: var(--ink); padding: 5px 11px; border-radius: 999px; font: 600 12px var(--font); }
.card h3 { font-size: 24px; font-weight: 800; font-stretch: 112%; margin-top: 16px; line-height: 1.15; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.card.hide { display: none; }

/* about */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about h2 { font-size: clamp(40px, 6vw, 84px); }
.about p { color: var(--ink2); font-size: 19px; max-width: 56ch; margin: 0; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border-top: 2px solid var(--ink); }
.terms div { padding: 18px 16px 0 0; }
.terms b { display: block; font-weight: 900; font-stretch: 125%; font-size: 40px; line-height: 1; }
.terms span { color: var(--muted); font-size: 14px; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.price { padding: 22px 22px 26px 0; border-right: 1px solid var(--rule); margin-right: 22px; }
.price:last-child { border-right: 0; margin-right: 0; }
.price .name { font-weight: 700; font-size: 18px; }
.price .amt { margin-top: 12px; color: var(--muted); font-size: 16px; }
.price .amt b { font-weight: 900; font-stretch: 125%; font-size: 52px; color: var(--ink); margin-left: 4px; line-height: 1; }
.price .per { font-size: 14px; }
.price p { margin: 14px 0 0; font-size: 15px; color: var(--ink2); }
.price .fx { font-size: 13px; margin-top: 10px; }
.price .fx:empty { display: none; }
.cur-note { max-width: 52ch; margin: 12px 0 0; }
.fx-credit a { color: inherit; }
@media (max-width: 1000px) { .prices { grid-template-columns: repeat(2, 1fr); } .price:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } .price { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); } .price .amt b { font-size: 44px; } }

/* quote: signal yellow, the one loud block on the page */
.quote { margin-top: clamp(64px, 9vw, 120px); background: var(--sig); color: var(--ink); border-radius: 22px;
  padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.quote h2 { font-size: clamp(40px, 5.6vw, 76px); }
.quote p { font-size: 19px; color: var(--ink2); }
.quote form { display: grid; gap: 12px; }
.quote input, .quote select, .quote textarea { width: 100%; padding: 16px 18px; border-radius: 12px; border: 2px solid var(--ink); background: #FFF6C2;
  font: 16px var(--font); color: var(--ink); }
.quote input::placeholder, .quote textarea::placeholder { color: #6B5E10; }
.quote .btn { justify-self: start; padding: 16px 28px; }
footer { padding: 44px var(--pad); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* case study */
.case-head { padding: 34px 0 30px; }
.case-head .back { color: var(--ink2); text-decoration: none; font-weight: 500; }
.case-head .back:hover { text-decoration: underline; text-decoration-color: var(--sig); text-decoration-thickness: 2px; }
.case-head .kind { display: inline-block; margin-top: 24px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.case-head h1 { font-size: clamp(44px, 7vw, 104px); margin-top: 14px; max-width: 16ch; }
.case-head p { color: var(--ink2); font-size: 19px; margin: 16px 0 0; }
.player { border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin-top: 34px; border-top: 2px solid var(--ink); }
.fact { padding-top: 18px; font-size: 16px; color: var(--ink2); }
.fact h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.shorts-h { font-size: clamp(32px, 4vw, 52px); margin: 70px 0 6px; }
.shorts-note { color: var(--ink2); margin: 0; max-width: 60ch; }
.shorts { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 20px; margin-top: 24px; }
.shorts .s { border-radius: 16px; overflow: hidden; aspect-ratio: 9/16; background: #000; position: relative; }
.shorts video, .shorts img { width: 100%; height: 100%; object-fit: cover; }
.yt { position: relative; display: block; height: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--sig)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%2315171C'/%3E%3C/svg%3E") 56% 50%/40px no-repeat;
  transition: transform .15s; }
.yt:hover::after { transform: scale(1.06); }
.screens { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 24px; }
.screens img { border-radius: 12px; border: 1px solid var(--rule); background: #fff; }
.live-link { margin: 24px 0 0; }
.screens.shots-local-sites { grid-template-columns: repeat(4, 1fr); }
.screens.shots-nikhar, .screens.shots-stakeit { grid-template-columns: 3fr 1fr; align-items: start; }
.screens.shots-thumbnails { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .screens.shots-thumbnails { grid-template-columns: 1fr; } }
.credit { font-size: 14px; color: var(--muted); margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 18px; max-width: 80ch; }
.next { display: flex; justify-content: flex-end; margin: 44px 0; }

@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .about, .quote { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .shorts { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(3, 1fr); }
  .screens.shots-local-sites { grid-template-columns: 1fr 1fr; }
  .screens.shots-nikhar, .screens.shots-stakeit { grid-template-columns: 1fr; }
  .reel { aspect-ratio: 16/9; }
  .track { height: 38px; }
  .track button { font-size: 0; padding: 0; }
  .terms b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
