:root { --hot: #f47b20; --bg: #060607; --ink: #f5f0ea; --on-hot: #111111; --mid: #b8b4ae; --soft: #84817c; --line: #2a2926; --tile: #191816; --pale: var(--line); --tint: var(--tile); --sans: Poppins, system-ui, sans-serif; --mono: ui-monospace, Menlo, monospace; --ease: cubic-bezier(.22, 1, .36, 1); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 Poppins, system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
.draft-bar { position: relative; z-index: 60; padding: 6px 16px; background: #000; color: #fff; font-size: 12px; text-align: center; }
.draft-bar b { color: var(--hot); }
.fx { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

.curtain { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); transition: opacity .6s ease, visibility .6s; }
.curtain span { color: var(--hot); font-size: clamp(30px, 7vw, 76px); font-weight: 800; letter-spacing: -.02em; animation: rise .8s var(--ease) both; }
.curtain.gone { opacity: 0; visibility: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.brand-bar { position: fixed; top: 22px; left: 28px; z-index: 40; }
.draft-bar:not([hidden]) ~ .brand-bar { top: 50px; }
.brand { font-size: 14px; font-weight: 700; letter-spacing: .08em; }

.page { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(380px, 41%) 1fr; }
.side { position: sticky; top: 0; height: 100vh; min-height: 600px; overflow: hidden; }
.portrait { position: absolute; inset: 0; margin: 0; }
.side::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(90% 70% at 72% 26%, color-mix(in srgb, var(--hot) 40%, transparent), transparent 70%), linear-gradient(180deg, transparent 34%, var(--bg) 84%), linear-gradient(270deg, var(--bg), transparent 26%); mix-blend-mode: normal; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.08) brightness(.86); }
.side-text { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; }
h1 { font-size: clamp(38px, 4.5vw, 66px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
h1 span, h1 em { display: block; font-style: normal; }
h1 em { background: linear-gradient(95deg, var(--hot), color-mix(in srgb, var(--hot) 62%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bio { max-width: 42ch; margin-top: 10px; color: var(--mid); font-size: 15px; }
.more { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.more i { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--hot); border-radius: 50%; color: var(--hot); font-style: normal; transition: background .3s, color .3s, transform .4s var(--ease); }
.more:hover i, .more:focus-visible i { background: var(--hot); color: var(--on-hot); transform: translateX(5px); }
.place { margin-top: 16px; color: var(--soft); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.right { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 24px; background: linear-gradient(180deg, var(--bg) 58%, transparent); }
.filters { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.filters::-webkit-scrollbar { display: none; }
.filters button { position: relative; flex: none; padding: 8px 11px; border: 0; background: none; color: var(--mid); font: 500 13px Poppins, sans-serif; cursor: pointer; transition: color .25s; }
.filters button::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; background: var(--hot); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--hot); }
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }
.top-actions { display: flex; flex: none; align-items: center; gap: 12px; }
.top-actions .nav-mail { display: none; color: var(--mid); font-size: 12px; }
.avail { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; white-space: nowrap; }
.avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.cta { padding: 9px 18px; border-radius: 99px; background: var(--hot); color: var(--on-hot); font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .3s var(--ease); }
.cta:hover { transform: scale(1.05); }
@media (min-width: 1500px) { .top-actions .nav-mail { display: inline; } }

.stage-wrap { padding: 0 24px; }
.stage { position: relative; height: calc(100vh - 170px); min-height: 480px; }
.tile { position: absolute; top: 0; left: 0; width: var(--s); height: var(--s); padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; transform: translate(var(--x), var(--y)) scale(var(--in, 1)); opacity: var(--op, 1); transition: transform .9s var(--ease), opacity .45s, width .9s var(--ease), height .9s var(--ease), filter .35s; }
.tile.off { --in: .2; --op: 0; pointer-events: none; }
.tile-float { display: block; width: 100%; height: 100%; animation: drift var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes drift { from { transform: translate(-5px, 6px) rotate(-.7deg); } to { transform: translate(6px, -7px) rotate(.8deg); } }
.tile-face { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--tile); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: transform .5s var(--ease), border-color .3s; }
.tile-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-text { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 12%; background: linear-gradient(145deg, color-mix(in srgb, var(--hot) 34%, var(--tile)), var(--tile) 72%); font-size: clamp(12px, 1.1vw, 16px); font-weight: 700; line-height: 1.25; }
.tile-text small { margin-bottom: 6px; color: var(--hot); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tile-cap { position: absolute; top: 50%; left: calc(100% + 36px); width: 190px; opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(-8px); transition: opacity .3s, transform .4s var(--ease); font-size: 12px; line-height: 1.5; color: var(--mid); }
.tile-cap b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; text-transform: uppercase; }
.tile.flip .tile-cap { left: auto; right: calc(100% + 36px); text-align: right; transform: translateY(-50%) translateX(8px); }
.stage.has-hover .tile:not(.on) { filter: brightness(.4) saturate(.55); }
.tile.on, .tile:focus-visible { z-index: 5; outline: 0; }
.tile.on .tile-face, .tile:focus-visible .tile-face { transform: scale(1.28); border-color: var(--hot); }
.tile.on .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: translateY(-50%); background: color-mix(in srgb, var(--bg) 78%, transparent); }
.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--soft); }

.tools { padding: 0 24px 28px; }
.tools-label { margin-bottom: 10px; color: var(--soft); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tools-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tools-track { display: flex; width: max-content; gap: 44px; margin: 0; padding: 0; list-style: none; animation: slide 34s linear infinite; }
.tools-track li { color: var(--soft); font-size: 19px; font-weight: 600; white-space: nowrap; }
@keyframes slide { to { transform: translateX(calc(-50% - 22px)); } }

.block { padding: 70px 24px 30px; border-top: 1px solid var(--line); }
.eyebrow { margin-bottom: 10px; color: var(--hot); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.block h2 { max-width: 20ch; margin-bottom: 18px; font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.block > p:not(.eyebrow) { max-width: 62ch; margin-bottom: 14px; color: var(--mid); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 24px; }
.facts div { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.facts small, .journey small, .media-card small { display: block; color: var(--soft); font-size: 12px; }
.facts b { display: block; margin-top: 4px; font-weight: 600; }
.journey { margin: 0; padding: 0; list-style: none; }
.journey li { display: grid; grid-template-columns: 170px 1fr; column-gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); transition: padding .35s var(--ease); }
.journey li:hover { padding-left: 10px; }
.journey b { font-weight: 600; }
.journey li > span { grid-column: 2; color: var(--mid); font-size: 14px; }
.media-grid, .uploaded-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.media-card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--tile); }
.media-card h3 { margin: 4px 0 14px; font-size: 18px; font-weight: 600; }
.media-card audio, .media-card video, .uploaded video { display: block; width: 100%; border-radius: 6px; }
.uploaded { padding: 70px 24px 30px; border-top: 1px solid var(--line); }
.uploaded .huge { margin: 0 0 18px; font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; }
.uploaded figure { margin: 0; }
.uploaded figcaption { margin-top: 6px; color: var(--mid); font-size: 14px; }
.big-mail { display: inline-block; margin-top: 8px; color: var(--hot); font-size: clamp(18px, 2.6vw, 34px); font-weight: 600; overflow-wrap: anywhere; }
.foot { position: relative; z-index: 1; padding: 22px 24px 28px; color: var(--soft); font-size: 12px; text-align: right; }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lb-card { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; width: min(1040px, 100%); height: min(620px, 100%); border: 1px solid var(--line); border-radius: 14px; background: var(--bg); animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scale(.94) translateY(16px); opacity: 0; } }
.lb-media { display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 28px; border-radius: 14px 0 0 14px; background: var(--tile); }
.lb-media img { max-width: 100%; max-height: 100%; border-radius: 6px; object-fit: contain; }
.lb-word { font-size: clamp(22px, 3vw, 36px); font-weight: 800; line-height: 1.15; text-align: center; color: var(--hot); }
.lb-body { min-height: 0; overflow-y: auto; padding: 34px 30px 30px; }
.lb-body h2 { margin-bottom: 12px; padding-right: 30px; font-size: 26px; font-weight: 700; line-height: 1.15; }
.lb-body > p:not(.eyebrow) { color: var(--mid); font-size: 15px; }
.lb-body h3 { margin: 20px 0 8px; color: var(--soft); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.lb-body ul { margin: 0; padding-left: 18px; color: var(--mid); font-size: 14px; }
.lb-body li { margin-bottom: 5px; }
.lb-result { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--hot); background: var(--tile); }
.lb-result small { display: block; color: var(--soft); font-size: 11px; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.lb-tags span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 19px; cursor: pointer; transition: background .25s, color .25s; }
.lb-close:hover, .lb-nav:hover { background: var(--hot); color: var(--on-hot); }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; margin-top: -20px; }
.lb-nav.prev { left: -20px; }
.lb-nav.next { right: -20px; }

.cur-dot, .cur-ring, .cur-trail { position: fixed; top: 0; left: 0; z-index: 99999; pointer-events: none; opacity: 0; }
.cursor-on .cur-dot, .cursor-on .cur-ring { opacity: 1; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--cur, var(--hot)); }
.cur-ring { display: grid; place-items: center; width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 1px solid var(--cur, var(--hot)); border-radius: 50%; color: var(--on-hot); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; }
.cur-ring.big { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
.cur-ring.view { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--cur, var(--hot)); }
.cs-orbit .cur-ring { border-style: dashed; border-width: 2px; animation: spin 3.4s linear infinite; }
.cs-orbit .cur-ring span { animation: spin 3.4s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
.cs-glow .cur-ring { width: 150px; height: 150px; margin: -75px 0 0 -75px; border: 0; background: radial-gradient(circle, color-mix(in srgb, var(--cur, var(--hot)) 45%, transparent), transparent 68%); }
.cs-glow .cur-ring.big, .cs-glow .cur-ring.view { width: 210px; height: 210px; margin: -105px 0 0 -105px; background: radial-gradient(circle, color-mix(in srgb, var(--cur, var(--hot)) 62%, transparent), transparent 68%); }
.cs-glow .cur-ring span { color: var(--ink); }
.cs-spark .cur-ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.cs-spark .cur-ring.big, .cs-spark .cur-ring.view { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.cs-spark .cur-ring span { display: none; }
.cur-trail { inset: 0; width: 100%; height: 100%; opacity: 1; }
.cs-arrow .cur-ring { display: none; }
.cs-arrow .cur-dot { width: 0; height: 0; margin: -11px 0 0 -9px; border-radius: 0; background: none; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 22px solid var(--cur, var(--hot)); transform-origin: 9px 11px; }

/* Editing: the page stays still, so text and tiles are easy to click */
body.ava-edit .side { position: relative; }
body.ava-edit .tile-float, body.ava-edit .tools-track { animation: none; }
body.ava-edit .tools-track { flex-wrap: wrap; width: auto; }
body.ava-edit .tools-window { mask-image: none; -webkit-mask-image: none; }

@media (max-width: 900px) {
  .page { display: block; }
  .side { position: relative; height: 92svh; min-height: 540px; }
  .brand-bar { position: absolute; top: 16px; left: 18px; }
  .ava-edit-link { bottom: 78px !important; }
  .side-text { left: 18px; right: 18px; bottom: 22px; }
  h1 { font-size: clamp(36px, 11vw, 62px); }
  .topbar { position: fixed; top: auto; right: 10px; bottom: 10px; left: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 99px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
  .avail { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .stage-wrap { padding: 28px 16px 0; }
  .stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; height: auto; min-height: 0; }
  .tile { position: relative; width: auto; height: auto; aspect-ratio: 1; transform: none; transition: opacity .3s; }
  .tile.off { display: none; }
  .tile-float { animation: none; }
  .tile.on .tile-face, .tile:focus-visible .tile-face { transform: none; }
  .tile-cap { display: none; }
  .stage.has-hover .tile:not(.on) { filter: none; }
  .tools { padding: 26px 16px; }
  .block, .uploaded { padding: 54px 16px 24px; }
  .journey li { display: block; }
  .foot { padding: 20px 16px 96px; text-align: left; }
  .lightbox { padding: 0; }
  .lb-card { display: block; height: 100%; overflow-y: auto; border: 0; border-radius: 0; }
  .lb-media { height: 42vh; border-radius: 0; }
  .lb-body { overflow: visible; padding: 24px 18px 84px; }
  .lb-close { position: fixed; }
  .lb-nav { position: fixed; top: auto; bottom: 16px; margin: 0; }
  .lb-nav.prev { left: 16px; }
  .lb-nav.next { right: 16px; }
}
@media (hover: none), (pointer: coarse) { .cur-dot, .cur-ring, .cur-trail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-float, .tools-track, .avail i, .cur-ring, .cur-ring span { animation: none !important; }
  .tile, .tile-face, .curtain { transition-duration: .01s; }
}
@media print { .fx, .curtain, .cur-dot, .cur-ring, .cur-trail, .topbar { display: none !important; } }
