/* ===========================================================
   Sarith Sun — Technical Animator
   =========================================================== */

:root {
  --bg: #08080a;
  --bg-band: #0a0a0c;
  --line: #17171b;
  --line-strong: #1c1c20;
  --border: #2c2c33;
  --fg: #ececed;
  --fg-dim: #9a9aa0;
  --fg-dimmer: #5c5c63;
  --accent: #e0a35c;
  --accent-hi: #f2c48a;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Instrument Serif', serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: max(28px, 4vw);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
::selection { background: var(--accent); color: var(--bg); }

img, video, iframe { max-width: 100%; }

/* ---------- shared type ---------- */

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}
.label-dim { color: var(--fg-dimmer); letter-spacing: .14em; }

.mono-dim {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg-dimmer);
  margin-bottom: 14px;
}
.mono-dim-lg {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.display {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: #fff;
}
.display-sm {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  margin-bottom: 14px;
}

.body {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.75;
  color: #a8a8ae;
  text-wrap: pretty;
}
.body-sm {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.8;
  color: var(--fg-dim);
  max-width: 54ch;
  margin-bottom: 22px;
}
.body-last { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg);
  transition: border-color .25s ease, color .25s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-nowrap { padding: 15px 26px; white-space: nowrap; }

.wrap { max-width: 1320px; margin: 0 auto; }
.wrap-work   { padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.wrap-tools  { padding: clamp(72px, 9vw, 120px) var(--gutter); }
.wrap-credits{ padding: 0 var(--gutter) clamp(72px, 10vw, 130px); }
.wrap-band   { padding: clamp(64px, 8vw, 110px) var(--gutter); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px max(28px, 3.5vw);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #08080ae6, #08080a00);
  backdrop-filter: blur(6px);
}
.nav-brand { color: #fff; }
.nav-brand:hover { color: var(--accent); }
.nav-links { display: flex; gap: 26px; color: #ffffffa8; }
.nav-links a { color: inherit; transition: color .25s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.accent { color: var(--accent); }
.nav-links a.accent:hover { color: var(--accent-hi); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  background: #000;
  overflow: hidden;
}
.hero-bleed { position: absolute; inset: -8%; }
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 178vh;
  height: 100.2vw;
  min-width: 118%;
  min-height: 118%;
  max-width: none;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, #0000006e 0%, #000000e0 74%),
    linear-gradient(180deg, #000000d9, #00000000 28%, #00000000 58%, var(--bg));
}

.hero-copy {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center;
  padding: 0 max(28px, 5vw);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: .5em;
  color: var(--accent);
  text-shadow: 0 2px 14px #000, 0 0 3px #000;
  margin-bottom: clamp(16px, 2.4vw, 28px);
  animation: riseIn 1s .1s var(--ease) both;
}
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 11.5vw, 168px);
  line-height: .88;
  letter-spacing: -.02em;
  color: #fff;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.5px #00000055;
  text-shadow: 0 4px 40px #000000cc, 0 2px 10px #000000aa;
  animation: riseIn 1.1s .25s var(--ease) both;
}
.hero-rule {
  width: clamp(80px, 9vw, 130px);
  height: 1px;
  background: #ffffff40;
  margin: clamp(24px, 3.4vw, 38px) auto clamp(20px, 3vw, 32px);
  transform-origin: center;
  animation: barSweep 1.5s .8s var(--ease) both;
}
.hero-lede {
  margin: 0 auto;
  max-width: 58ch;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.75;
  color: #e4e4e8;
  text-shadow: 0 2px 18px #000000dd, 0 1px 4px #000000aa;
  text-wrap: pretty;
  animation: riseIn 1s .5s var(--ease) both;
}

.hero-now {
  position: absolute;
  left: max(28px, 3.5vw);
  bottom: 32px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  line-height: 2.1;
  color: #ffffff85;
  animation: riseIn 1s .8s var(--ease) both;
}
.hero-now-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-bottom: 2px;
}
.hero-now-label .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.8s steps(1) infinite;
}
.hero-now-title { color: #fff; }

.hero-scroll {
  position: absolute;
  right: max(28px, 3.5vw);
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: #ffffff85;
}
.hero-scroll:hover { color: var(--accent); }
.hero-scroll .cue { animation: cueDrop 2s ease-in-out infinite; }

/* ---------- featured ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.wrap-tools > .section-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 44px);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.featured-intro { max-width: 60ch; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec { background: var(--bg); padding: 22px 24px; }
.spec dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  margin-bottom: 9px;
}
.spec dd {
  margin: 0;
  font-size: 15px;
  color: var(--fg);
  letter-spacing: -.01em;
}

/* ---------- tools ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
}
.split-alt {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.split-first { order: 1; }
.split-second { order: 2; }

.video-wrap {
  position: relative;
  border: 1px solid var(--line-strong);
  background: #000;
}
.video-wrap video { width: 100%; height: auto; display: block; }

.fs-btn {
  position: absolute;
  top: 12px; right: 12px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, .62);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.fs-btn:hover { border-color: var(--accent); color: var(--accent); }

/* overlay fallback when native fullscreen is unavailable */
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .94);
  padding: max(24px, 3vw);
}
.fs-overlay video { max-height: 88vh; max-width: 100%; width: auto; height: auto; }
.fs-close {
  position: absolute;
  top: 18px; right: 18px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, .62);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- credits ---------- */

.credits-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.credit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease), background .35s ease;
}
.credit:hover { padding-left: 16px; background: #0d0d10; }
.credit-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.7vw, 34px);
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -.01em;
}
.credit-studio {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  margin-top: 6px;
}
.credit-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
}

/* ---------- experience ---------- */

.job {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid var(--line);
}
.job-co {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.01em;
}
.job-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
}
.job-when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--fg-dimmer);
  margin-top: 6px;
}
.job-body {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.75;
  color: var(--fg-dim);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- capabilities ---------- */

.band { border-top: 1px solid var(--line); background: var(--bg-band); }
.band-dark { background: var(--bg); }

.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.cap-title {
  font-family: var(--serif);
  font-size: 27px;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cap-list { display: flex; flex-direction: column; gap: 11px; }
.cap-list > div { font-size: 14.5px; color: var(--fg-dim); line-height: 1.5; }

/* ---------- about / contact ---------- */

.about {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 130px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.about .label { display: block; margin-bottom: 26px; }
.about-body {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.7;
  color: #c4c4c9;
  max-width: 52ch;
  text-wrap: pretty;
}
.contact-email {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 22px;
  transition: color .25s ease;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--accent); }
.contact-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 2.1;
  color: #8a8a90;
}
.contact-meta a { color: #8a8a90; transition: color .25s ease; }
.contact-meta a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: #4a4a50;
}

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .nav { font-size: 10px; letter-spacing: .12em; }
  .nav-links { gap: 16px; }
  .hero-now { font-size: 9px; max-width: 58vw; line-height: 1.9; }
  .hero-scroll { display: none; }
  .credit { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .credit-role { text-align: left; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .split-first, .split-second { order: 0; }
}

/* ---------- motion / no-JS ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

.no-js [data-reveal] { opacity: 1; transform: none; }

/* ===========================================================
   ZIS-42 breakdown page
   =========================================================== */

.nav-note { color: #8a8a90; }

.bd-head { padding: clamp(120px, 15vw, 190px) var(--gutter) clamp(40px, 5vw, 64px); }
.bd-eyebrow {
  font-family: var(--mono);
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: .34em;
  color: var(--accent);
  margin-bottom: 26px;
  animation: riseIn 1s .05s var(--ease) both;
}
.bd-title {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 110px);
  line-height: .94;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 16ch;
  animation: riseIn 1.1s .18s var(--ease) both;
}
.bd-rule {
  width: clamp(90px, 10vw, 150px);
  height: 1px;
  background: #ffffff33;
  transform-origin: left;
  margin-bottom: 30px;
  animation: barSweep 1.4s .6s var(--ease) both;
}
.bd-lede {
  margin: 0;
  max-width: 66ch;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.75;
  color: #c4c4c9;
  text-wrap: pretty;
  animation: riseIn 1s .35s var(--ease) both;
}

.bd-specs-wrap { padding: 0 var(--gutter) clamp(36px, 4.5vw, 56px); }
.specs-tight {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  animation: riseIn 1s .5s var(--ease) both;
}
.specs-tight .spec { padding: 20px 22px; }
.specs-tight .spec dt { margin-bottom: 8px; }
.spec dd.accent-val { color: var(--accent); }

.bd-reel { padding: 0 var(--gutter) clamp(56px, 7vw, 88px); }

.bd-section { padding: clamp(64px, 8vw, 110px) var(--gutter); }
.bd-section-open { padding-bottom: 0; }
.bd-section-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  letter-spacing: .2em;
}
.bd-label { display: block; margin-bottom: clamp(32px, 4vw, 52px); }
.bd-label-tight { margin-bottom: clamp(24px, 3vw, 36px); }

/* shot grid */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.shot { margin: 0; }
.shot-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #0d0d10;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-num {
  position: absolute;
  top: 10px; left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--fg);
  background: #08080aad;
  padding: 4px 8px;
}
.shot-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 13px 0 7px;
}
.shot-caption {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8a8a90;
  text-wrap: pretty;
}

/* how it works */
.system {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.system-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg-dimmer);
  margin-bottom: 12px;
}
.system-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  color: #fff;
  letter-spacing: -.015em;
}
.system-body {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 16.5px);
  line-height: 1.8;
  color: var(--fg-dim);
  max-width: 64ch;
  text-wrap: pretty;
}

/* tooling */
.bd-tool {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3.5vw, 52px);
  align-items: start;
}
.bd-tool-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.015em;
}
.bd-tool-body {
  margin: 0 0 16px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.8;
  color: var(--fg-dim);
  max-width: 56ch;
  text-wrap: pretty;
}
.bd-tool-body-last { margin-bottom: 0; }

/* code card */
.bd-code-band { margin-top: clamp(64px, 8vw, 110px); }
.code-card { border: 1px solid var(--line); background: var(--bg); }
.code-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #6e6e75;
}
.code-head .accent { color: var(--accent); }
.code-body {
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px);
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 13px);
  line-height: 1.8;
  color: #c4c4c9;
  overflow-x: auto;
}

/* outro */
.bd-outro {
  padding: clamp(64px, 8vw, 110px) var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.bd-outro-email {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 38px);
  color: #fff;
  transition: color .25s ease;
  overflow-wrap: anywhere;
}
.bd-outro-email:hover { color: var(--accent); }

@media (max-width: 720px) {
  .system { grid-template-columns: minmax(0, 1fr); }
}

@keyframes riseIn   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes barSweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cueDrop  { 0% { transform: translateY(-6px); opacity: .25; } 50% { transform: translateY(5px); opacity: 1; } 100% { transform: translateY(-6px); opacity: .25; } }
@keyframes blink    { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- reel breakdown grid ---------- */

.reel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(56px, 7vw, 96px);
}

.reel-item { margin: 0; }
.reel-item figcaption { padding-top: 16px; }

.reel-title {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.2;
  margin-bottom: 8px;
  text-wrap: balance;
}
