/* jesselinson.com
   Same bones as a creator site Jesse liked: a 3D portrait that turns into a machine, then a sideways story reel.
   Palette: sunlit paper on the human side, a dark machine side, and sun gold as the signal colour. */
:root {
  --studio: #F7F3EA;      /* sunlit paper */
  --ink: #0B0C0A;
  --paper: #F3F1EA;
  --soft: #8C8A80;
  --line: #262622;
  --signal: #FFC21F;      /* sun gold */
  --leaf: #7DBB57;        /* nature green */
  --inset: max(clamp(28px, 4.5vw, 72px), env(safe-area-inset-left, 0px));
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; font-family: var(--sans); color: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
.gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Chrome: name + menu, inverted against whatever is behind ---------- */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: last baseline;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  pointer-events: none; mix-blend-mode: difference; color: #fff;
  --nav-fs: max(14px, clamp(24px, 4.16vw, 67px) * 0.5806);
}
.wordmark {
  color: inherit; text-decoration: none; pointer-events: auto;
  font-family: var(--display); font-weight: 850; font-stretch: 112%;
  font-size: clamp(24px, 4.16vw, 67px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.wordmark span { display: block; }
.chrome nav { display: grid; gap: calc(var(--nav-fs, 16px) * 0.2); text-align: right; pointer-events: auto; }
.chrome nav a {
  color: inherit; text-decoration: none; font-family: var(--display); font-weight: 750; font-stretch: 100%;
  font-size: var(--nav-fs, 16px); line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; text-underline-offset: 4px;
}
.chrome nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.topblur {
  position: fixed; top: 0; left: 0; right: 0; height: 84px; z-index: 19; pointer-events: none; opacity: 0; transition: opacity 300ms;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}

/* ---------- Hero ---------- */
.stage { height: 420vh; position: relative; }
.hero {
  position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--studio);
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
#gl { position: fixed; inset: 0; width: 100%; height: 100vh; display: block; z-index: -1; }
html.gl .hero, html.gl .work { background: transparent; }
#hud { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero .fallback {
  position: absolute; left: 50%; bottom: 0; height: 92%; transform: translateX(-50%); object-fit: contain;
  background: radial-gradient(closest-side, #fff6d8, transparent);
}
html.gl .hero .fallback { display: none; }
.hero .readout, .hero .hint { position: absolute; bottom: max(20px, env(safe-area-inset-bottom, 0px)); color: #6E6B60; line-height: 1.7; pointer-events: none; }
.hero .readout { left: max(20px, env(safe-area-inset-left, 0px)); }
.hero .hint { right: max(20px, env(safe-area-inset-right, 0px)); text-align: right; transition: opacity 400ms; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Story: vertical scroll drives a sideways reel ---------- */
.story { position: relative; }
.story-pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px;
  padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 80px)); padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}
.story-head { display: flex; justify-content: flex-end; gap: 16px; color: var(--soft); visibility: hidden; }
.reel-wrap { position: relative; min-height: 0; min-width: 0; overflow: visible; display: flex; align-items: center; }
.reel { display: flex; width: max-content; align-items: flex-start; gap: clamp(32px, 4vw, 64px); will-change: transform; padding-right: 50vw; }
.reel-intro { flex: 0 0 auto; width: calc(min(64vw, 760px) - 0.97 * clamp(44px, 7.2vw, 118px)); display: grid; gap: 20px; }
.reel-intro h2 {
  margin: 0; font-family: var(--display); font-weight: 850; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.015em;
  font-size: clamp(44px, 7.2vw, 118px); font-stretch: 82%;
}
.reel-intro h2 em { display: block; margin-left: 0.63em; font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.reel-intro p { margin: 0; max-width: 34ch; color: #BDBBB2; font-size: 15px; line-height: 1.5; }
.frame {
  --stagger: clamp(14px, 4.5vh, 44px);
  --media-h: clamp(170px, min(42vh, 100vh - 400px - 2 * var(--stagger)), 420px);
  transform: translateY(calc(var(--dy, 0) * var(--stagger)));
  flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start;
  width: max(calc(var(--media-h) * var(--ar) + 18px), 250px);
}
.shot { justify-self: start; width: calc(var(--media-h) * var(--ar) + 18px); max-width: 100%; padding: 0 8px 8px; border-radius: 10px; background: #141412; border: 1px solid #2C2C28; }
.shot .bar { display: flex; gap: 0 10px; height: 32px; color: #8C8A80; white-space: nowrap; overflow: hidden; width: 0; min-width: 100%; align-items: center; }
.shot .bar .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shot .bar .h { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shot .bar .ic { display: flex; gap: 6px; color: #D4D1C6; }
.shot .bar svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.shot .bar .yr { margin-left: auto; }
.media { height: var(--media-h); border-radius: 6px; overflow: hidden; background: #0B0C0A; position: relative; }
.media img, .media video { width: 100%; height: 100%; object-fit: contain; display: block; filter: saturate(0.2) brightness(0.72); transition: filter 450ms ease; }
.media.cover img { object-fit: cover; }
.frame.on .media img, .frame.on .media video { filter: none; }
/* A card with no picture yet: the name set big over a dim field of bits. */
.media.type { display: grid; place-items: center; background: radial-gradient(120% 90% at 80% 10%, #2a2410 0%, #0B0C0A 60%); }
.media.type .bits { position: absolute; inset: 0; font: 500 11px/14px var(--mono); color: #2A2A24; overflow: hidden; word-break: break-all; padding: 6px; letter-spacing: 0.2em; }
.media.type .stat { position: relative; display: grid; gap: 12px; justify-items: center; text-align: center; padding: 0 20px; }
.media.type .stat b { font-family: var(--display); font-weight: 850; font-stretch: 78%; text-transform: uppercase; font-size: calc(var(--media-h) * 0.3); line-height: 0.85; letter-spacing: -0.02em; color: #5E5D57; transition: color 450ms; white-space: nowrap; }
.media.type .stat span { color: #5E5D57; max-width: 26ch; line-height: 1.5; transition: color 450ms; }
.frame.on .media.type .stat b { color: var(--signal); }
.frame.on .media.type .stat span { color: #D4D1C6; }
.frame.on .media.type .bits { color: #34322A; }
.cap { display: grid; gap: 6px; text-shadow: 0 0 14px #0B0C0A, 0 0 5px #0B0C0A; }
.cap .meta { display: flex; align-items: baseline; gap: 14px; color: var(--soft); }
.cap .meta b { color: var(--signal); font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: clamp(30px, 2.8vw, 42px); line-height: 0.9; letter-spacing: -0.01em; }
.cap h3 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); line-height: 0.95; letter-spacing: -0.005em; font-stretch: 88%; }
.cap p { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.45; color: #BDBBB2; }
.cap p b { color: var(--paper); font-weight: 600; }
.frame.tall { grid-template-columns: auto 230px; column-gap: 28px; align-items: end; width: calc(var(--media-h) * var(--ar) + 18px + 28px + 230px); --media-h: calc(clamp(170px, min(42vh, 100vh - 400px - 2 * var(--stagger)), 420px) + 130px); }
.frame.tall .cap { padding-bottom: 4px; }

.rail { --n: 7; display: grid; gap: 14px; --ftx: calc(100% * var(--ft-i, 0) / var(--n)); }
.rail-line { position: relative; height: 1px; background: linear-gradient(90deg, #4A4943 var(--ftx), #8C8A80 var(--ftx)); }
.rail-line::before { content: ""; position: absolute; z-index: 1; left: 0; top: -1px; width: var(--ftx); height: 3px; background: repeating-linear-gradient(90deg, transparent 0 6px, #0B0C0A 6px 11px); }
.rail-fill { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: var(--paper); }
.ft-spans { display: grid; grid-template-columns: var(--ftx) minmax(0, 1fr); margin-bottom: -6px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.ft-spans span { padding: 0 0 7px 8px; border-left: 1px solid; }
.ft-spans .pt { color: var(--soft); border-color: #4A4943; }
.ft-spans .fu { color: var(--signal); border-color: var(--signal); }
.rail-steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.rail-steps li { position: relative; display: grid; gap: 4px; padding-top: 2px; min-width: 0; }
.rail-steps li::before { content: ""; position: absolute; left: 0; top: -21px; width: 1px; height: 13px; background: #3A3A35; transition: background 300ms; }
.rail-steps .y { font-family: var(--display); font-weight: 750; font-size: 15px; line-height: 1; color: #5E5D57; transition: color 300ms; }
.rail-steps .t { font-size: 13px; color: #5E5D57; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 300ms; }
.rail-steps li.done .y, .rail-steps li.done .t { color: #8C8A80; }
.rail-steps li.on .y { color: var(--paper); }
.rail-steps li.on .t { color: #D4D1C6; }
.rail-steps li.on::before, .rail-steps li.done::before { background: var(--paper); }
@media (max-width: 1240px) { .rail-steps .t { white-space: normal; line-height: 1.2; padding-right: 6px; } }

/* ---------- Startups ---------- */
.today { padding-block: clamp(72px, 8.6vw, 124px) clamp(64px, 8vw, 96px); padding-inline: var(--inset); border-top: 1px solid var(--line); }
.today h2 {
  margin: 0; font-family: var(--display); font-weight: 850; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.015em;
  font-size: max(min(7.2vw, 118px), min(30px, (100vw - 2 * var(--inset)) / 10.6)); font-stretch: 80%;
}
.channels { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); background: rgba(11, 12, 10, 0.84); margin-inline: calc(-1 * var(--inset)); padding-inline: var(--inset); }
.ch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 12px 48px; padding-block: clamp(24px, 2.6vw, 36px); border-bottom: 1px solid var(--line); align-items: center; color: inherit; }
.ch h3 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: clamp(30px, 3.8vw, 60px); line-height: 0.92; letter-spacing: -0.005em; white-space: nowrap; transition: transform 400ms cubic-bezier(.2,.7,.2,1), color 200ms; }
.ch:hover h3 { transform: translateX(12px); color: var(--signal); }
.ch .who { display: grid; gap: 10px; min-width: 0; }
.ch .name { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ch .role { font: 500 15px var(--sans); color: #9A988F; }
.ch .role .st { color: var(--leaf); }
.ch .where { display: flex; align-items: center; gap: 18px; color: #E2E0D8; }
.ch .plat { color: inherit; transition: color 200ms; padding: 8px; margin: -8px; }
.ch .plat:hover, .ch .plat:focus-visible { color: var(--signal); }
.ch .plat svg { display: block; width: 26px; height: 26px; fill: currentColor; }
.ch .what { display: grid; gap: 14px; min-width: 0; }
.ch .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ch .facts li { padding: 6px 10px; border: 1px solid #34332D; border-radius: 999px; color: #BDBBB2; background: rgba(255, 255, 255, 0.02); transition: border-color 250ms, color 250ms; }
.ch:hover .facts li { border-color: #4A4943; color: var(--paper); }
.media.scene canvas { width: 100%; height: 100%; display: block; filter: saturate(0.25) brightness(0.75); transition: filter 450ms ease; }
.frame.on .media.scene canvas { filter: none; }
.ch p { margin: 0; color: #E2E0D8; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; max-width: 44ch; min-width: 0; }
.ch p b { color: #fff; font-weight: 600; }
@media (max-width: 760px) { .ch { grid-template-columns: 1fr; } .ch h3 { white-space: normal; } }

/* ---------- Contact (back into the sun) ---------- */
.work { background: var(--studio); color: var(--ink); padding-block: clamp(96px, 12vw, 160px); padding-inline: var(--inset); }
.offers { border-top: 1px solid #CFCAB8; container-type: inline-size; }
.offer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px 48px; align-items: start; padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid #CFCAB8; }
.offer .num { grid-column: 1; grid-row: 1; color: #6E6B60; }
.offer h3 { grid-column: 1; grid-row: 2; margin: 0; font-family: var(--display); font-weight: 850; font-stretch: 80%; text-transform: uppercase; font-size: clamp(30px, calc((100cqw - 48px) * 0.6 / 10.6), 104px); line-height: 0.86; letter-spacing: -0.015em; white-space: nowrap; transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
.offer:hover h3 { transform: translateX(12px); }
.offer .body { grid-column: 2; grid-row: 2; padding-top: 2px; display: grid; gap: 12px; }
.offer p { margin: 0; font-size: 17px; line-height: 1.5; color: #34332E; max-width: 40ch; }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; }
  .offer .body { grid-column: 1; grid-row: 3; }
  .offer h3 { font-size: clamp(22px, calc(100cqw / 10.6), 72px); }
}
.brands { margin-top: clamp(64px, 8vw, 104px); display: grid; gap: 28px; }
.brands .label { color: #6E6B60; margin: 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 48s linear infinite; }
.track li { flex: 0 0 auto; margin-right: clamp(48px, 6vw, 96px); font-family: var(--display); font-weight: 800; font-stretch: 100%; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.reach { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.contact { display: grid; gap: 14px; }
.contact .addr { font-family: var(--display); font-weight: 800; font-size: clamp(min(24px, 6vw), 3.2vw, 46px); line-height: 0.95; letter-spacing: -0.02em; word-break: break-word; user-select: all; }
.btn { justify-self: start; font: 500 14px var(--sans); padding: 12px 18px; border-radius: 0; border: 1px solid var(--ink); background: var(--ink); color: var(--studio); cursor: pointer; text-decoration: none; transition: background 250ms, color 250ms, border-color 250ms; }
.btn.copied { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--studio); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.follow { display: grid; gap: 14px; justify-self: end; text-align: right; width: min(100%, 520px); }
.follow .title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.2vw, 46px); line-height: 0.95; letter-spacing: -0.02em; }
.follow .links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 760px) { .reach { grid-template-columns: minmax(0, 1fr); gap: 56px; } .follow { justify-self: stretch; text-align: left; } .follow .links { justify-content: flex-start; } }
footer { padding-block: 32px max(32px, env(safe-area-inset-bottom, 0px)); padding-inline: var(--inset); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--soft); border-top: 1px solid var(--line); background: var(--ink); }
footer > span:last-child { display: flex; flex-wrap: wrap; gap: 10px 18px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--paper); }
/* Unconfirmed copy: shows in sun gold until Jesse signs it off. Remove the class to publish. */
.draft { outline: 1px dashed var(--signal); outline-offset: 3px; }

/* ---------- Arrivals ---------- */
html.anim .rise { overflow: hidden; padding-block: 0.08em; margin-block: -0.08em; }
html.anim .rise > span { display: inline-block; transform: translateY(110%); transition: transform 1000ms cubic-bezier(.2,.7,.2,1); }
html.anim .rise.in > span { transform: none; }
html.anim .channels, html.anim .offers { border-top-color: transparent; position: relative; }
html.anim .ch, html.anim .offer { border-bottom-color: transparent; position: relative; }
html.anim .channels::before, html.anim .offers::before, html.anim .ch::after, html.anim .offer::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; transform: scaleX(0); transform-origin: left;
  transition: transform 1600ms cubic-bezier(.3,.6,.2,1); pointer-events: none;
}
html.anim .channels::before { top: -1px; background: var(--line); }
html.anim .ch::after { bottom: -1px; background: var(--line); }
html.anim .offers::before { top: -1px; background: #CFCAB8; }
html.anim .offer::after { bottom: -1px; background: #CFCAB8; }
html.anim .in::before, html.anim .in::after { transform: none; }

/* ---------- Phones and portrait screens: the story stacks ---------- */
@media (max-width: 760px) {
  .hero .readout { display: none; }
  .hero .hint { bottom: calc(100vh - 100svh + max(20px, env(safe-area-inset-bottom, 0px))); }
}
@media (max-width: 760px), (orientation: portrait), (max-height: 500px) and (orientation: landscape) {
  html.past-hero .topblur { opacity: 1; }
  .story-head { display: none; }
  .story { height: auto !important; }
  .story-pin { position: relative; height: auto; overflow: visible; padding-bottom: 56px; }
  .reel-wrap { display: block; }
  .reel { flex-direction: column; align-items: stretch; width: auto; gap: 44px; padding-right: 0; transform: none !important; }
  .reel-intro { width: auto; }
  .frame, .frame.tall { width: auto; grid-template-columns: minmax(0, 1fr); transform: none; }
  .frame .cap { order: -1; }
  .shot { width: fit-content; max-width: 100%; }
  .media { height: min(62vh, calc((100vw - 58px) / var(--ar))); width: auto; aspect-ratio: var(--ar); max-width: 100%; }
  .rail { display: none; }
}
@media (max-width: 760px) {
  .today { padding-top: 48px; }
  .channels { margin-top: 26px; }
  .today h2 { font-size: max(28px, min(calc((100vw - 2 * var(--inset)) / 10.7), 40px)); }
}
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; row-gap: 20px; }
  .track li.copy { display: none; }
}
