/* PORTFOLIO: a screening room. The room is lit by whatever is on the screen. See index.html for the brief. */
:root { --room: #08070a; --text: #f4efe7; --muted: #a9a3ad; --yellow: #ffee00; --ink: #111; --glow: 255, 196, 120; --line: rgba(255, 255, 255, .14); }
* { box-sizing: border-box; }
html { background: var(--room); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--room); color: var(--text); font: 400 1.02rem/1.6 "Inter", system-ui, sans-serif; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* the light the screen throws on the room: the film itself, 48 pixels wide, blurred until it is only color */
.spill { position: fixed; z-index: 0; left: -12vw; top: -8vh; width: 124vw; height: 96vh; filter: blur(70px) saturate(1.5); opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.lit .spill { opacity: .5; }
.playing .spill { opacity: .7; }
.grain { position: fixed; z-index: 1; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
body::after { content: ""; position: fixed; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 30%, rgba(8, 7, 10, 0) 35%, rgba(8, 7, 10, .82) 100%); }
nav.top, main { position: relative; z-index: 2; }

/* the site menu (shared rules in /site-nav.css) */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1560px; margin: 0 auto; padding: 16px; }
.home { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Pixelify Sans", monospace; font-size: 1.05rem; white-space: nowrap; }
.home img { width: 34px; height: auto; transition: transform .25s ease; }
.home:hover img { transform: rotate(-12deg) scale(1.08); }
.home:hover { color: var(--yellow); }
.start { color: var(--ink); background: var(--yellow); text-decoration: none; font-weight: 700; font-size: .92rem; padding: .6em 1.1em; border-radius: 999px; white-space: nowrap; transition: box-shadow .2s, transform .2s; }
.start:hover { box-shadow: 0 0 0 4px rgba(255, 238, 0, .25), 0 0 24px rgba(255, 238, 0, .35); transform: translateY(-1px); }
.sitenav.open { display: flex; }
@media (max-width: 1640px) { .sitenav { background: #121016; } }

/* ---------- the room ---------- */
/* the whole screen and its deck fit in one window height, so nothing competes with the film */
.room { max-width: clamp(620px, calc((100svh - 300px) * 1.7778 + 80px), 1180px); margin: 0 auto; padding: clamp(8px, 2vw, 26px) clamp(14px, 4vw, 40px) 26px; }
.room__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px 40px; align-items: end; margin-bottom: clamp(14px, 2.2vw, 26px); }
h1, h2 { font-family: "Archivo", "Inter", sans-serif; font-stretch: 118%; font-weight: 900; line-height: .95; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); text-transform: uppercase; letter-spacing: -.02em; text-shadow: 0 0 60px rgba(var(--glow), .45); }
.room__head p { margin: 0 0 .35em; color: #d9d3dc; max-width: 46ch; }

.screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 90px rgba(var(--glow), .28), 0 40px 90px rgba(0, 0, 0, .7); transition: box-shadow .8s ease, filter .9s ease; filter: brightness(.35); }
.lit .screen { filter: none; }
.playing .screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 140px rgba(var(--glow), .5), 0 40px 90px rgba(0, 0, 0, .7); }
.screen video { width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.screen__play { position: absolute; inset: 0; margin: auto; width: clamp(74px, 11vw, 116px); height: clamp(74px, 11vw, 116px); border: 0; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 10px rgba(255, 238, 0, .18), 0 0 60px rgba(255, 238, 0, .5); transition: transform .2s, box-shadow .2s, opacity .25s; }
.screen__play i { position: absolute; left: 53%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #111; }
.screen__play:hover { transform: scale(1.07); box-shadow: 0 0 0 16px rgba(255, 238, 0, .22), 0 0 90px rgba(255, 238, 0, .7); }
.screen__play:active { transform: scale(.95); }
.playing .screen__play { opacity: 0; pointer-events: none; }
.screen__note { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; padding: .5em 1em; border-radius: 999px; background: rgba(8, 7, 10, .82); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.screen__note button { margin-left: .6em; padding: .2em .8em; border: 0; border-radius: 999px; background: var(--yellow); color: #111; font-weight: 700; }

/* the deck under the screen */
.deck { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.deck__btn { flex: none; min-height: 44px; padding: 0 1em; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 1px var(--line) inset; font-size: .86rem; font-weight: 600; white-space: nowrap; transition: background .2s, box-shadow .2s, color .2s; }
.deck__btn:hover { background: rgba(var(--glow), .3); box-shadow: 0 0 0 1px rgba(var(--glow), .9) inset, 0 0 22px rgba(var(--glow), .35); }
.deck__play { position: relative; width: 44px; padding: 0; }
.deck__play i { position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.playing .deck__play i { left: 50%; width: 12px; height: 14px; border-width: 0 4px; border-color: currentColor; }
.deck__sound[aria-pressed="false"] { color: var(--muted); }
.deck__time { flex: none; font-variant-numeric: tabular-nums; font-size: .86rem; color: #d9d3dc; min-width: 6.4em; text-align: right; }
.deck__seek { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --at: 0%; }
.deck__seek::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgb(var(--glow)) var(--at), rgba(255, 255, 255, .18) var(--at)); }
.deck__seek::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgb(var(--glow)) var(--at), rgba(255, 255, 255, .18) var(--at)); }
.deck__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px rgba(var(--glow), .9); transition: transform .15s; }
.deck__seek::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 16px rgba(var(--glow), .9); }
.deck__seek:hover::-webkit-slider-thumb { transform: scale(1.25); }

/* what is on the screen now */
.now { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); margin-top: clamp(16px, 2.4vw, 28px); }
.now__words { flex: 1; min-width: 0; }
.now__count { margin: 0 0 .2em; font-size: .86rem; font-weight: 600; color: rgb(var(--glow)); font-variant-numeric: tabular-nums; }
.now h2 { font-size: clamp(1.5rem, 3.4vw, 2.6rem); }
.now__words p:last-child { margin: .5em 0 0; color: #d9d3dc; max-width: 62ch; }
.now__step { flex: none; position: relative; width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px var(--line) inset; transition: background .2s, transform .2s, box-shadow .2s; }
.now__step i { position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateX(3px) rotate(45deg); }
.now__step--next i { transform: translateX(-3px) rotate(-135deg); }
.now__step:hover { background: rgba(var(--glow), .35); box-shadow: 0 0 0 1px rgba(var(--glow), .9) inset, 0 0 26px rgba(var(--glow), .4); transform: translateX(-3px); }
.now__step--next:hover { transform: translateX(3px); }
.swap .now__words { animation: swap .45s ease both; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* ---------- the rest of the reel: a contact sheet of film frames ---------- */
.reel { max-width: 1180px; margin: 0 auto; padding: clamp(26px, 5vw, 60px) clamp(14px, 4vw, 40px) clamp(30px, 6vw, 70px); }
.reel > h2, .brand h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); text-transform: uppercase; letter-spacing: -.01em; }
.frames { list-style: none; margin: 20px 0 0; padding: 22px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; border-radius: 12px; background-color: #121016;
  /* sprocket holes along the top and bottom edge, like a strip of film */
  background-image: linear-gradient(90deg, rgba(8, 7, 10, .9) 0 14px, transparent 14px), linear-gradient(90deg, rgba(8, 7, 10, .9) 0 14px, transparent 14px);
  background-size: 30px 9px, 30px 9px; background-position: 8px 7px, 8px calc(100% - 7px); background-repeat: repeat-x; box-shadow: 0 0 0 1px var(--line) inset; }
.frames button { position: relative; display: block; width: 100%; height: 100%; padding: 0 0 10px; border: 0; border-radius: 8px; background: #1b1820; text-align: left; overflow: hidden; transition: transform .2s, box-shadow .25s, background .25s; }
.frames img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; filter: saturate(.55) brightness(.72); transition: filter .3s, transform .5s; }
.frames b { display: block; margin: 9px 11px 0; font: 800 .98rem/1.2 "Archivo", sans-serif; font-stretch: 108%; }
.frames span { display: block; margin: 3px 11px 0; font-size: .8rem; color: var(--muted); }
.frames button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.frames button:hover img { filter: none; transform: scale(1.05); }
.frames button:active { transform: scale(.98); }
.frames button[aria-current="true"] { background: #26222c; box-shadow: 0 0 0 2px rgb(var(--glow)), 0 0 34px rgba(var(--glow), .45); }
.frames button[aria-current="true"] img { filter: none; }
.frames button[aria-current="true"] span::before { content: "On the screen now. "; color: rgb(var(--glow)); font-weight: 600; }

/* ---------- full branding projects ---------- */
.brand { position: relative; isolation: isolate; overflow: hidden; margin-top: 10px; padding: clamp(50px, 9vw, 120px) clamp(14px, 4vw, 40px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand__plate { position: absolute; z-index: -1; inset: -40px; background: center / cover no-repeat; filter: blur(26px) saturate(1.2) brightness(.42); transition: background-image .8s; }
.brand::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8, 7, 10, .88), rgba(8, 7, 10, .35)); }
.brand__words { max-width: 1100px; margin: 0 auto; }
.brand h2 { font-size: clamp(2rem, 6vw, 4.6rem); }
.brand__lead { margin: .7em 0 .5em; max-width: 30ch; font: 700 clamp(1.15rem, 2.2vw, 1.6rem)/1.3 "Archivo", sans-serif; }
.brand p { max-width: 56ch; margin: 0 0 1em; color: #e6e0e9; }
.brand__go { margin-top: 1.6em !important; }
.btn { display: inline-block; padding: .9em 1.5em; border-radius: 999px; background: var(--yellow); color: #111; font-weight: 800; text-decoration: none; box-shadow: 0 0 0 0 rgba(255, 238, 0, .3); transition: box-shadow .25s, transform .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 8px rgba(255, 238, 0, .2), 0 0 50px rgba(255, 238, 0, .45); }
.btn:active { transform: scale(.97); }
.brand__small { font-size: .9rem; color: var(--muted) !important; }

/* the fine print and the foot */
.legal { max-width: 1180px; margin: 0 auto; padding: 28px clamp(14px, 4vw, 40px) 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; font-size: .86rem; line-height: 1.55; color: var(--muted); }
.legal h2 { grid-column: 1 / -1; font: 700 .95rem/1.3 "Inter", sans-serif; font-stretch: 100%; text-transform: none; color: #e6e0e9; }
.legal p { margin: 0; }
.legal b { color: #e6e0e9; }
.foot { max-width: 1180px; margin: 0 auto; padding: 22px clamp(14px, 4vw, 40px) 40px; font-size: .86rem; color: var(--muted); }
.foot p { margin: 0 0 .4em; }
.foot a { margin-left: .9em; }

/* a tall film on a phone gets a tall screen */
@media (max-width: 760px) {
  .room__head { grid-template-columns: 1fr; }
  .screen[data-shape="tall"] { aspect-ratio: 9 / 16; max-height: 74svh; margin: 0 auto; }
  .deck { flex-wrap: wrap; }
  .deck__seek { order: -1; flex: 1 0 100%; height: 34px; }
  .deck__time { margin-right: auto; text-align: left; }
  .deck { gap: 8px; }
  .deck__btn { padding: 0 .85em; font-size: .8rem; }
  .deck__time { min-width: 0; font-size: .8rem; }
  .now__step { width: 46px; height: 46px; }
  .frames { grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px 10px; }
  .frames b { font-size: .9rem; }
  .legal { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .screen { filter: none; }
  .spill { opacity: .5; }
}

/* the open menu sits above the films (2026-11-25): the bar and the page were on one layer, so the page painted over it */
nav.top { z-index: 30; }
.sitenav { z-index: 31; background: #121016; box-shadow: 0 0 0 1px rgba(201, 163, 90, 0.4), 0 24px 60px rgba(0, 0, 0, 0.8); }
