/* HELM:RIFT. Brand kit: white ground, black type, acid accent.
   Inter Thin for display, Archivo Narrow for titles and labels. */

:root {
  --paper: #fff;
  --ink: #0a0a0a;
  --graphite: #6a6a65;
  --hair: #dcdcd7;
  --tint: #f4f4f1;
  --acid: #c6ff00;
  --f-disp: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-cond: "Archivo Narrow", "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
  --bar: 68px;
  --pad: clamp(18px, 2.6vw, 40px);
  --ui: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- type ---------- */
.display {
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .32em;
  line-height: 1.14;
  font-size: clamp(32px, 6.4vw, 96px);
}
.title {
  font-family: var(--f-cond);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 20px;
  line-height: 1.3;
}
.label {
  font-family: var(--f-cond);
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--graphite);
}
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.mark {
  background: linear-gradient(transparent 60%, var(--acid) 60%, var(--acid) 94%, transparent 94%);
}
.todo { background: var(--acid); padding: 0 .25em; }

/* ---------- bar ---------- */
#bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--bar); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  color: var(--ui);
  transition: color .45s;
}
body:not(.home) #bar { background: var(--paper); border-bottom: 1px solid var(--hair); }
.brand {
  display: inline-flex; align-items: center;
  font-weight: 300; font-size: 15px; letter-spacing: .32em; text-transform: uppercase;
}
.brand img { height: 22px; width: auto; }
.brand .colon {
  display: inline-flex; flex-direction: column; gap: .26em;
  margin: 0 .5em 0 .12em; letter-spacing: 0;
}
.brand .colon::before, .brand .colon::after {
  content: ""; width: .32em; height: .32em; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 0 1px currentColor;
}
#bar nav { display: flex; }
#bar nav a {
  font-family: var(--f-cond); font-size: 17px; letter-spacing: .08em;
  margin-left: clamp(18px, 3vw, 40px); padding: 4px 0;
  background: linear-gradient(var(--acid), var(--acid)) 0 100% / 0 .4em no-repeat;
  transition: background-size .3s;
}
#bar nav a:hover, #bar nav a[aria-current] { background-size: 100% .4em; }

/* ---------- rift curtain (page transition) ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.curtain i { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--ink); }
.curtain .l { left: 0; animation: curtL .7s .04s cubic-bezier(.7, 0, .2, 1) both; }
.curtain .r { right: 0; animation: curtR .7s .04s cubic-bezier(.7, 0, .2, 1) both; }
.curtain b {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--acid); opacity: 0; animation: curtLine .7s both;
}
@keyframes curtL { from { transform: none; } to { transform: translateX(-101%); } }
@keyframes curtR { from { transform: none; } to { transform: translateX(101%); } }
@keyframes curtLine { 0% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes curtLClose { from { transform: translateX(-101%); } to { transform: none; } }
@keyframes curtRClose { from { transform: translateX(101%); } to { transform: none; } }
@keyframes curtLineIn { from { opacity: 0; } to { opacity: 1; } }
.leaving .curtain { pointer-events: all; }
.leaving .curtain .l { animation: curtLClose .42s cubic-bezier(.7, 0, .2, 1) both; }
.leaving .curtain .r { animation: curtRClose .42s cubic-bezier(.7, 0, .2, 1) both; }
.leaving .curtain b { animation: curtLineIn .3s .1s both; }

/* ---------- home stage ---------- */
body.home { height: 100vh; height: 100dvh; overflow: hidden; }
body.home[data-tone="dark"] { --ui: #fff; }
.stage { position: fixed; inset: 0; background: var(--paper); overflow: hidden; }
.layer { position: absolute; inset: 0; }
.layer.closing { animation: riftClose .38s cubic-bezier(.7, 0, .3, 1) both; }
.layer.opening { animation: riftOpen .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes riftClose { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 50% 0 50%); } }
@keyframes riftOpen { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
.riftline {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--acid); z-index: 4; opacity: 0; pointer-events: none;
}
.stage.rifting .riftline { animation: lineFlash 1.05s ease both; }
@keyframes lineFlash { 0% { opacity: 0; } 25% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

.layer[data-tone="dark"] { background: #000; }
.ambient {
  position: absolute; inset: -10%; opacity: 0; transition: opacity .6s;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.ambient video { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.7) brightness(1.15); transform: scale(1.15); }
.ambient::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .35); }
.layer[data-tone="light"] .ambient { opacity: 1; }
.frame { position: absolute; inset: 0; display: grid; place-items: center; }
.frame video { background: #000; }
.is-cover .frame video { width: 100%; height: 100%; object-fit: cover; }
.is-contain .frame video {
  width: min(56vw, calc((100vh - 230px) * var(--ar, 1.7778))); width: min(56vw, calc((100dvh - 230px) * var(--ar, 1.7778)));
  aspect-ratio: var(--ar, 16 / 9); height: auto; object-fit: contain;
  transform: translateX(5vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}
.is-tall .frame video {
  aspect-ratio: 9 / 16; width: auto;
  height: min(78vh, calc(100vh - 190px)); height: min(78dvh, calc(100dvh - 190px));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}
.shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 42%), linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 22%);
}
body.home[data-tone="dark"] .shade { opacity: 1; }
.framelink { position: absolute; inset: 0; z-index: 2; }

.index {
  position: fixed; left: var(--pad); bottom: 62px; z-index: 5; color: var(--ui);
  transition: color .45s; display: grid; gap: 2px;
}
.index button {
  position: relative; display: grid; grid-template-columns: 8.6em auto; align-items: baseline; column-gap: .5em;
  padding: 5px 0 5px 20px; text-align: left; font-family: var(--f-cond); font-size: 16px; letter-spacing: .04em;
  opacity: .5; transition: opacity .25s;
}
.index button:hover { opacity: .85; }
.index li.on button { opacity: 1; }
.index .b { font-weight: 500; white-space: nowrap; }
.index .t { font-weight: 400; }
.index li.on button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4px;
  background: var(--acid); box-shadow: 0 0 0 1px currentColor;
}
.index .prog {
  position: absolute; left: 20px; bottom: 0; height: 1px; width: calc((100% - 20px) * var(--p, 0));
  background: currentColor; opacity: 0;
}
.index li.on .prog { opacity: 1; }

.meta {
  position: fixed; right: var(--pad); bottom: 62px; z-index: 5; color: var(--ui); transition: color .45s;
  display: grid; justify-items: end; gap: 12px; text-align: right;
}
.meta .tags { display: flex; gap: 1.4em; }
.meta .ph { background: var(--acid); color: var(--ink); padding: 0 .5em; }
.watch {
  font-family: var(--f-cond); font-size: 20px; letter-spacing: .18em; text-transform: uppercase; padding: 2px 0;
  background: linear-gradient(var(--acid), var(--acid)) 0 100% / 100% .4em no-repeat;
}
.homebar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 5; color: var(--ui); transition: color .45s;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  font-family: var(--f-cond); font-size: 15px; letter-spacing: .06em;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.homebar .left { display: flex; align-items: center; gap: 22px; }
.homebar .tc { font-variant-numeric: tabular-nums; opacity: .7; }
.empty-note { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }

/* ---------- page shell ---------- */
.page { padding: calc(var(--bar) + clamp(36px, 6vw, 80px)) var(--pad) 96px; max-width: 1760px; margin: 0 auto; }
#foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
  padding: 28px var(--pad); border-top: 1px solid var(--hair);
  font-family: var(--f-cond); font-size: 16px; letter-spacing: .04em; color: var(--graphite);
}
#foot a:hover { color: var(--ink); }

/* ---------- work ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: clamp(22px, 3vw, 40px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: clamp(26px, 3.4vw, 44px); border-top: 1px solid var(--hair); padding-top: 16px; }
.chip {
  font-family: var(--f-cond); font-size: 18px; letter-spacing: .06em; padding: 2px 0; color: var(--graphite);
  background: linear-gradient(var(--acid), var(--acid)) 0 100% / 0 .4em no-repeat; transition: background-size .25s, color .2s;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); background-size: 100% .4em; }
.chip sup { font-size: 11px; margin-left: 3px; color: var(--graphite); }
.gallery { --h: clamp(220px, 34vh, 420px); display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 10px; transition: opacity .2s; }
.gallery.fade { opacity: 0; }
.card { display: block; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--h) * var(--r)); min-width: 0; }
.card.wide { max-width: 700px; }
.card.tall { max-width: calc(var(--h) * var(--r) * 1.7); }
.card .media { position: relative; height: var(--h); overflow: hidden; background: var(--tint); }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity .3s; }
.card.playing video { opacity: 1; }
.card .cap { display: grid; gap: 0; padding-top: 10px; font-family: var(--f-cond); font-size: 17px; letter-spacing: .03em; line-height: 1.35; }
.card .cap .b { font-weight: 500; }
.card .cap .t { font-weight: 400; }
.card .cap .ty { color: var(--graphite); font-size: 15px; }
.card:hover .cap .t { background: linear-gradient(var(--acid), var(--acid)) 0 100% / 100% .4em no-repeat; }
.card .ph-tag { position: absolute; top: 0; left: 0; z-index: 2; background: var(--acid); color: var(--ink); font-family: var(--f-cond); font-size: 14px; letter-spacing: .06em; padding: 1px 8px; }
.none { color: var(--graphite); }

/* ---------- project ---------- */
.pv { position: relative; }
.pv-glow {
  position: fixed; inset: -12%; z-index: -1; background-size: cover; background-position: center;
  filter: blur(100px) saturate(1.4); opacity: .16; pointer-events: none;
}
.player { position: relative; background: #000; }
.player video, .player iframe { width: 100%; height: 100%; display: block; background: #000; border: 0; object-fit: contain; }
.pv.wide .player { aspect-ratio: var(--ar, 1.7778); width: min(100%, calc((100vh - var(--bar) - 170px) * var(--ar, 1.7778))); margin: 0 auto; }
.pv.wide .ctrl { width: min(100%, calc((100vh - var(--bar) - 170px) * var(--ar, 1.7778))); margin: 0 auto; }
.pv.tall .ctrl { flex-wrap: wrap; justify-content: space-between; row-gap: 4px; }
.pv.tall .ctrl .scrub { order: -1; flex: 1 0 100%; }
.pv.tall .ctrl .time { text-align: left; min-width: 0; margin-right: auto; }
.pv.tall .player { aspect-ratio: 9 / 16; height: min(82vh, 880px); max-width: 100%; }
.player:fullscreen { aspect-ratio: auto; height: 100%; max-height: none; }
.player .bigplay {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: var(--acid); color: var(--ink); display: none; place-items: center; z-index: 2;
}
.player.paused .bigplay { display: grid; }
.bigplay svg { width: 24px; height: 24px; margin-left: 3px; }
.ctrl { display: flex; align-items: center; gap: 18px; padding: 12px 0 0; font-family: var(--f-cond); font-size: 16px; letter-spacing: .04em; }
.ctrl .scrub { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.ctrl .scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--hair); }
.ctrl .fill { position: absolute; left: 0; top: 10px; height: 2px; background: var(--ink); width: 0; }
.ctrl .thumb { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; background: var(--acid); box-shadow: 0 0 0 1px var(--ink); left: 0; }
.ctrl .time { font-variant-numeric: tabular-nums; color: var(--graphite); min-width: 6.4em; text-align: right; }
.ctrl button { padding: 2px 0; }
.ctrl button:hover { background: linear-gradient(var(--acid), var(--acid)) 0 100% / 100% .4em no-repeat; }
.pv-info h1 { margin: 10px 0 18px; }
.pv-info .brandline { font-family: var(--f-cond); font-weight: 500; text-transform: uppercase; letter-spacing: .18em; font-size: 20px; }
.pv-info .facts { display: flex; flex-wrap: wrap; gap: 4px 1.6em; margin-bottom: 22px; }
.pv-info .desc { margin-bottom: 30px; }
.credits { border-top: 1px solid var(--hair); max-width: 520px; }
.credits div { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.credits dt { font-family: var(--f-cond); font-size: 16px; letter-spacing: .04em; color: var(--graphite); }
.credits dd { font-family: var(--f-cond); font-size: 17px; text-align: right; }
.pn { display: flex; gap: 32px; margin-top: 34px; font-family: var(--f-cond); font-size: 18px; }
.pn a:hover span { background: linear-gradient(var(--acid), var(--acid)) 0 100% / 100% .4em no-repeat; }
.pn .dir { display: block; color: var(--graphite); font-size: 15px; }
.pv.wide .pv-info { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 6vw; padding-top: 44px; }
.pv.wide .pv-info .col-r { padding-top: 8px; }
.pv.tall { display: grid; grid-template-columns: auto minmax(0, 560px); gap: 0 clamp(32px, 6vw, 110px); justify-content: center; align-items: start; }
.pv.tall .pv-info { position: sticky; top: calc(var(--bar) + 40px); padding-top: 8px; }

/* ---------- about ---------- */
.name-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: .35em; font-weight: 200; text-transform: uppercase; letter-spacing: .32em; font-size: clamp(32px, 8.4vw, 132px); line-height: 1.05; margin-bottom: clamp(36px, 6vw, 84px); }
.name-hero > span:first-child { justify-self: end; margin-right: -.32em; }
.name-hero > span:last-child { justify-self: start; }
.name-hero .dots { display: inline-flex; flex-direction: column; gap: .2em; letter-spacing: 0; margin: 0; }
.name-hero .dots::before, .name-hero .dots::after { content: ""; width: .2em; height: .2em; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 .012em var(--ink); }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); border-top: 1px solid var(--hair); padding-top: 22px; margin-bottom: clamp(56px, 8vw, 110px); }
.about-grid h2 { margin-bottom: 12px; }
.sec { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: 16px clamp(24px, 4vw, 64px); border-top: 1px solid var(--hair); padding: 22px 0 clamp(40px, 6vw, 80px); }
.sec .prose { font-size: 19px; }
.list-lines li { padding: 12px 0; border-bottom: 1px solid var(--hair); max-width: 640px; }
.list-lines li:first-child { border-top: 1px solid var(--hair); }
.list-lines strong { font-family: var(--f-cond); font-weight: 500; font-size: 19px; letter-spacing: .04em; display: block; }
.list-lines span { color: var(--graphite); }
.sec .inds { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--f-cond); font-size: 22px; }

/* ---------- contact ---------- */
.contact-mail { font-weight: 200; font-size: clamp(28px, 6vw, 88px); line-height: 1.1; letter-spacing: .02em; word-break: break-word; display: inline-block; margin: 28px 0 56px; }
.contact-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px clamp(32px, 6vw, 110px); border-top: 1px solid var(--hair); padding-top: 24px; }
.contact-cols h2 { margin-bottom: 14px; }
.contact-links a { display: block; font-family: var(--f-cond); font-size: 22px; padding: 6px 0; }
.contact-links a:hover span { background: linear-gradient(var(--acid), var(--acid)) 0 100% / 100% .4em no-repeat; }
.contact-links .clock { font-variant-numeric: tabular-nums; color: var(--graphite); margin-top: 24px; font-family: var(--f-cond); font-size: 18px; }
.cform { display: grid; gap: 18px; max-width: 560px; }
.cform label { display: grid; gap: 4px; }
.cform input, .cform textarea { font: inherit; font-weight: 300; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; border-radius: 0; resize: vertical; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 0; border-bottom-width: 2px; }
.cform .send { justify-self: start; font-family: var(--f-cond); font-size: 20px; letter-spacing: .18em; text-transform: uppercase; background: var(--acid); padding: 10px 22px; }
.cform .send:hover { background: var(--ink); color: var(--paper); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .pv.wide .pv-info { grid-template-columns: 1fr; }
  .pv.tall { grid-template-columns: 1fr; justify-items: center; }
  .pv.tall .player { height: auto; width: min(100%, 440px); }
  .pv.tall .pv-info { position: static; width: 100%; padding-top: 32px; }
  .about-grid, .contact-cols { grid-template-columns: 1fr; }
  .sec { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .gallery { --h: 26vh; gap: 28px 8px; }
  .card.tall { flex: 0 0 calc(50% - 4px); }
  .card.tall .media { height: auto; aspect-ratio: 9 / 16; }
  .card.wide { flex: 1 1 100%; }
  .card.wide .media { height: auto; aspect-ratio: var(--r); }
  .index { left: 0; right: 0; bottom: 54px; display: flex; overflow-x: auto; padding: 0 var(--pad); gap: 18px; scrollbar-width: none; }
  .index::-webkit-scrollbar { display: none; }
  .index button { white-space: nowrap; display: flex; gap: .6em; }
  .is-contain .frame video { width: 100%; transform: none; box-shadow: none; }
  .meta { left: var(--pad); right: var(--pad); bottom: 106px; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; }
  .meta .ph { display: none; }
  .meta .tags { gap: 1em; font-size: 15px; }
  .is-tall .frame video { height: calc(100vh - 380px); height: calc(100dvh - 380px); }
  .homebar .hint { display: none; }
  .homebar .tc { white-space: nowrap; }
}
@media (hover: none) { .homebar .hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .layer.closing, .layer.opening, .stage.rifting .riftline, .brand .colon { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* partner lockup */
.lockup { display: flex; align-items: center; flex-wrap: wrap; gap: 20px clamp(20px, 3.4vw, 48px); margin-bottom: 34px; }
.lockup .lk-brand, .lockup .lk-partner { display: inline-flex; align-items: center; font-weight: 200; text-transform: uppercase; letter-spacing: .32em; font-size: clamp(16px, 2.6vw, 34px); line-height: 1.1; }
.lockup .colon { display: inline-flex; flex-direction: column; gap: .26em; margin: 0 .5em 0 .12em; letter-spacing: 0; }
.lockup .colon::before, .lockup .colon::after { content: ""; width: .3em; height: .3em; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 1px currentColor; }
.lockup .lk-partner img { height: clamp(34px, 5vw, 64px); width: auto; }
.lockup .lk-x { position: relative; width: clamp(26px, 3vw, 38px); height: clamp(26px, 3vw, 38px); background: var(--acid); box-shadow: 0 0 0 1px var(--ink); flex: none; }
.lockup .lk-x::before, .lockup .lk-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 62%; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.lockup .lk-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

.cform .form-status { min-height: 1.4em; font-size: 17px; margin: 0; }
.cform .form-status[data-state="ok"]:not(:empty) { background: var(--acid); padding: 10px 14px; justify-self: start; }
.cform .form-status[data-state="err"] { color: var(--ink); border-left: 3px solid var(--ink); padding-left: 12px; }
.cform .send:disabled { opacity: .55; cursor: progress; }
