/* Ashish Jha — showreel */
:root {
  --bg: #0b0b0a;
  --bg-2: #141412;
  --ink: #ece8e1;
  --ink-2: #a8a39a;
  --ink-3: #6d6961;
  --line: rgba(236, 232, 225, 0.12);
  --accent: #c9a66b;
  --serif: 'Zen Kaku Gothic New', 'Hanken Grotesk', system-ui, sans-serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1360px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--bg); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, .big, .hero__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
h1 { font-size: clamp(48px, 8vw, 116px); line-height: 0.98; margin: 0 0 0.35em; }
h1 em, .hero__title em { color: var(--ink-2); }
.eyebrow {
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 22px;
}
.eyebrow a:hover { color: var(--ink); }
.big { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.2; margin: 0 0 1em; color: var(--ink); }
.lede { color: var(--ink-2); max-width: 38em; margin: 0; }
.link { display: inline-flex; gap: 0.5em; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color 0.4s var(--ease), gap 0.4s var(--ease); }
.link:hover { border-color: var(--ink); gap: 0.8em; }

/* ---------- nav (sticky on every page) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(11, 11, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav__name { font: 400 24px/1 var(--serif); letter-spacing: 0; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__links a {
  font-size: 13px; letter-spacing: 0.08em; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color 0.3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); font: 400 13px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 0 12px 12px; cursor: pointer; }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 400 clamp(36px, 10vw, 54px)/1.18 var(--serif); padding: 2px 0; color: var(--ink); }
.menu__foot { color: var(--ink-3); font-size: 14px; margin: 0; }

@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

main { padding-top: var(--nav-h); }

/* ---------- hero + marquee ---------- */
.hero { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding: 6vh 0 5vh; }
.hero__text { margin-bottom: clamp(28px, 5vh, 56px); }
.hero__title { font-size: clamp(56px, 12vw, 184px); line-height: 0.95; margin: 0; letter-spacing: -0.035em; }
.hero__cue { margin: clamp(36px, 7vh, 72px) auto 0; font-size: 14px; letter-spacing: 0.06em; color: var(--ink-2); }
.hero__cue a:hover { color: var(--ink); }

.marquee {
  display: grid; gap: clamp(28px, 4vh, 44px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; align-items: center; width: max-content; animation: drift 240s linear infinite; will-change: transform; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
.marquee__row--work .marquee__track { gap: 14px; }
.marquee__row--work a { flex: none; height: clamp(84px, 10vw, 140px); aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.marquee__row--work img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.45) brightness(0.62); transition: filter 0.8s var(--ease), transform 1.2s var(--ease); }
.marquee__row--work a:hover img { filter: none; transform: scale(1.04); }
.marquee__row--logos .marquee__track { animation-direction: reverse; animation-duration: 150s; font-size: clamp(22px, 2.4vw, 32px); }
.logo { flex: none; padding-inline: clamp(28px, 3.6vw, 56px); display: flex; align-items: center; height: 1.6em; }
.logo img { width: auto; opacity: 0.42; transition: opacity 0.6s var(--ease); }
.logo:hover img { opacity: 0.85; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }



/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: center; padding-block: clamp(80px, 14vw, 200px); }
.intro__img { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; }
.intro__img img { width: 100%; height: 100%; object-fit: cover; }
.intro__text p:not(.big):not(.eyebrow) { color: var(--ink-2); max-width: 34em; }

/* ---------- index list (home) ---------- */
.index { padding-bottom: clamp(80px, 12vw, 180px); }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index__list li { border-bottom: 1px solid var(--line); }
.index__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: clamp(20px, 3vw, 34px) 0; transition: padding 0.6s var(--ease), color 0.4s; }
.index__t { font: 400 clamp(32px, 5.5vw, 76px)/1.05 var(--serif); }
.index__t em { color: var(--ink-3); font-size: 0.55em; }
.index__n { font-size: 13px; letter-spacing: 0.12em; color: var(--ink-3); }
.index__list a:hover { padding-left: clamp(8px, 2vw, 28px); }
.index__list a:hover .index__n { color: var(--accent); }

/* ---------- damru teaser ---------- */
.damru-teaser { position: relative; }
.damru-teaser__img { margin: 0; aspect-ratio: 16 / 10; max-height: 110vh; overflow: hidden; }
.damru-teaser__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; filter: brightness(0.85); }
.damru-teaser__text { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 12vw, 160px); }
.damru-teaser__text .big { max-width: 20em; }
.damru-teaser__sub { color: var(--ink-2); max-width: 34em; margin: 0 0 2em; }

/* ---------- page heads, grids, cards ---------- */
.head { padding-top: clamp(64px, 12vw, 160px); padding-bottom: clamp(40px, 6vw, 80px); }
.block { padding-bottom: clamp(56px, 8vw, 110px); }
.sub { font-size: clamp(28px, 3.2vw, 42px); margin: 0 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(40px, 5vw, 72px) clamp(18px, 2.4vw, 36px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
section.grid { padding-bottom: clamp(80px, 10vw, 140px); }

.card { display: block; }
.card__media { margin: 0 0 16px; overflow: hidden; background: var(--bg-2); position: relative; }
.card__media--wide { aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86); transition: transform 1.4s var(--ease), filter 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); filter: brightness(1); }
.card__media::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border: 1px solid rgba(236, 232, 225, 0.7); border-radius: 50%;
  background: rgba(11,11,10,0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23ece8e1'/%3E%3C/svg%3E") center / 22px no-repeat;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transform: scale(0.9); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.card:hover .card__media::after { opacity: 1; transform: scale(1); }
.card__title { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); margin: 0 0 4px; }
.card__meta { font-size: 14px; color: var(--ink-3); margin: 0; }
.soon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- work overview ---------- */
.work { display: grid; gap: clamp(64px, 10vw, 140px); padding-bottom: clamp(80px, 12vw, 180px); }
.work__item { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.work__item:nth-child(even) { grid-template-columns: 4fr 7fr; }
.work__item:nth-child(even) .work__media { order: 2; }
.work__media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.work__media--poster img { object-position: 50% 30%; }
.work__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: transform 1.6s var(--ease), filter 0.8s var(--ease); }
.work__item:hover .work__media img { transform: scale(1.03); filter: brightness(1); }
.work__num { font-size: 12px; letter-spacing: 0.2em; color: var(--ink-3); }
.work__text h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1; margin: 12px 0 10px; }
.work__text p { color: var(--ink-2); margin: 0 0 22px; }
.work__item:hover .link { border-color: var(--ink); gap: 0.8em; }

/* ---------- detail ---------- */
.detail { padding-top: clamp(48px, 8vw, 110px); }
.detail h1 { font-size: clamp(44px, 7vw, 100px); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); transition: filter 0.8s var(--ease), transform 1.6s var(--ease); }
.player:hover img { filter: brightness(0.85); transform: scale(1.015); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__btn { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.play {
  width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(236, 232, 225, 0.8);
  background: rgba(11,11,10,0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23ece8e1'/%3E%3C/svg%3E") 54% 50% / 38% no-repeat;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.6s var(--ease), background-color 0.6s;
}
.player__btn:hover .play { transform: scale(1.07); background-color: rgba(11,11,10,0.4); }
.player--soon { display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); }
.player--soon p { font: 400 clamp(28px, 4vw, 48px) var(--serif); color: var(--ink-2); margin: 0; }

.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.credits dt { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.credits dd { margin: 0; font: 400 22px/1.3 var(--serif); }
.about-song { max-width: 40em; margin-top: clamp(48px, 6vw, 80px); }
.about-song p { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; margin: 0 0 1.2em; }
.about-song p:first-child { font: 400 clamp(22px, 2.2vw, 28px)/1.4 var(--serif); color: var(--ink); }
.related { margin-top: clamp(64px, 8vw, 110px); }

.pager { display: flex; justify-content: space-between; gap: 24px; padding-block: clamp(72px, 10vw, 140px); }
.pager a { font: 400 clamp(22px, 2.6vw, 34px)/1.15 var(--serif); max-width: 45%; transition: color 0.3s; }
.pager a:last-child { text-align: right; }
.pager a span { display: block; font: 400 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.pager a:hover { color: var(--ink-2); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6, 6, 5, 0.96); display: grid; place-items: center; padding: var(--gutter); opacity: 0; transition: opacity 0.4s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__inner { width: min(1200px, 100%); }
.lightbox__frame { aspect-ratio: 16 / 9; background: #000; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__cap { font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); margin: 20px 0 2px; }
.lightbox__meta { color: var(--ink-3); font-size: 14px; margin: 0; }
.lightbox__close { position: absolute; top: calc(env(safe-area-inset-top) + 18px); right: var(--gutter); background: none; border: 0; color: var(--ink); font: 400 13px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; padding: 10px 0; }

/* ---------- bgm posters ---------- */
.poster { margin: 0; }
.poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--bg-2); filter: grayscale(0.25) brightness(0.88); transition: filter 0.8s var(--ease); }
.poster:hover img { filter: none; }
.poster figcaption { font: 400 20px/1.25 var(--serif); margin-top: 14px; }
.poster__music { display: block; font: 300 14px/1.4 var(--sans); color: var(--ink-3); margin-top: 4px; }

/* ---------- damru ---------- */
.damru-hero { position: relative; height: calc(100svh - var(--nav-h)); min-height: 480px; overflow: hidden; }
.damru-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.damru-hero__text { position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 80px); margin: auto; }
.damru-hero__text h1 { margin: 0; }
.damru-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
.damru-hero__text { z-index: 1; }
.damru-body { padding-block: clamp(64px, 10vw, 140px); }
.damru-body .big { max-width: 20em; }
.damru-body p:not(.big) { color: var(--ink-2); max-width: 36em; }
.damru-copy { margin-top: clamp(32px, 5vw, 56px); }
.damru-copy p { margin: 0 0 1.2em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; }
.damru-copy em { color: var(--ink); }
.damru-links { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; }
.damru-links .link { color: var(--ink); }
.spotify { width: 100%; height: 380px; border: 0; border-radius: 12px; }
.damru-photo { margin-top: 0; margin-bottom: clamp(80px, 10vw, 140px); }
.damru-photo img { width: 100%; max-height: 90vh; object-fit: cover; }

/* ---------- contact ---------- */
.contact { min-height: calc(100svh - var(--nav-h) - 120px); display: flex; flex-direction: column; justify-content: center; padding-block: 80px; }
.contact__mail { font: 400 clamp(26px, 4.4vw, 60px)/1.2 var(--serif); margin: 0.4em 0 0.3em; overflow-wrap: anywhere; }
.contact__phone { font: 400 clamp(22px, 3vw, 40px)/1.2 var(--serif); color: var(--ink-2); margin: 0 0 1.6em; }
.contact__phone a:hover { color: var(--ink); }
.contact__mail a { border-bottom: 1px solid var(--line); transition: border-color 0.4s; }
.contact__mail a:hover { border-color: var(--ink); }
.contact__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; font-size: 15px; letter-spacing: 0.06em; color: var(--ink-2); }
.contact__links a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot__inner { max-width: var(--max); margin: auto; padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; font-size: 13px; color: var(--ink-3); }
.foot__name { font: 400 20px var(--serif); color: var(--ink); margin: 0; }
.foot__links { display: flex; gap: 24px; margin: 0; letter-spacing: 0.06em; }
.foot__links a:hover { color: var(--ink); }
.foot__copy { margin: 0; }

/* ---------- motion ---------- */
.fade { animation: rise 1.2s var(--ease) both; }
.fade:nth-child(2) { animation-delay: 0.12s; }
.fade:nth-child(3) { animation-delay: 0.24s; }
.fade:nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  /* the two home rows drift very slowly, so they keep moving */
  .marquee__row--work .marquee__track { animation-duration: 240s !important; animation-iteration-count: infinite !important; }
  .marquee__row--logos .marquee__track { animation-duration: 150s !important; animation-iteration-count: infinite !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .intro { grid-template-columns: 1fr; }
  .intro__img { max-width: 520px; }
  .work__item, .work__item:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .work__item:nth-child(even) .work__media { order: 0; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .nav__name { font-size: 21px; }
  .menu nav a { font-size: 21px; line-height: 1.2; padding: 11px 0; }
  .credits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 28px; padding-top: 20px; }
  .credits dt { font-size: 10px; margin-bottom: 4px; }
  .credits dd { font-size: 14px; line-height: 1.4; }
  .pager a { font-size: 17px; }
  .pager a span { font-size: 10px; margin-bottom: 8px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .poster figcaption { font-size: 17px; }
  .hero { min-height: auto; padding-top: 14vh; }
  .damru-teaser__img { aspect-ratio: 4 / 5; }
  .card__media::after { opacity: 1; transform: none; width: 44px; height: 44px; margin: -22px 0 0 -22px; background-size: 18px; }
  .pager a { max-width: 48%; }
  .spotify { height: 352px; }
}
