/* Home: hero, stats, about, the mashups section, Instagram marquee */
/* Hero: a multiview of camera channels that cut on the beat */
.hero { position: relative; height: 100svh; height: 100lvh; min-height: 560px; max-height: 1100px; padding: 0; overflow: hidden; isolation: isolate; display: grid; align-items: end; }
.cams { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr; gap: 3px; background: var(--bg); transition: grid-template-columns .8s var(--ease); }
.cam { position: relative; overflow: hidden; background: var(--bg-2); }
.cam img { --at: var(--fp, var(--f, 50% 50%)); position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--at); transform-origin: var(--at); opacity: 0; } /* focus per shot: --f, with phone (--fp) and tablet (--ft) overrides; the zoom centres on it too */
/* a slow zoom-out, longer than any hold, so it is still moving at the cut; paused while the rotation is */
.cam img.on { opacity: 1; animation: settle 8s linear both; }
.held .cam img.on { animation-play-state: paused; }
.cam img:not(.on) { display: none; } /* parked shots stay unloaded; a cut loads only the shot it is about to show */
.cam:nth-child(n+2) { display: none; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 22%, color-mix(in srgb, var(--bg) 20%, transparent) 48%, transparent 62%), linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), transparent 18%); }
/* the hero is as tall as the screen with the browser bars hidden, so nothing below it peeks in on load; the logo lifts by
   the bars' height so it still sits just above them */
.hero-copy { position: relative; padding: 0 var(--pad) calc(100lvh - 100svh + clamp(var(--s-3), 5vh, 3rem)); display: grid; gap: var(--s-2); pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-name { color: var(--on-photo); width: clamp(210px, 48vw, 590px); line-height: 0; }
/* laptop and desktop: the logo sits at the screen's left edge (gutter only), not inside the 1440 column */
@media (min-width: 1024px) and (orientation: landscape) { .hero-copy { padding-left: var(--gutter); } }
/* phones: the logo spans the content width, even gutters both sides */
@media (max-width: 599px) { .hero-name { width: 100%; } }
.hero-copy > * { animation: rise 1s var(--ease) both .3s; }
@media (min-width: 600px) {
  .cams { grid-template-columns: 1fr 1fr; }
  .cam img { --at: var(--ft, var(--f, 50% 50%)); }
  .cam:nth-child(2) { display: block; }
}
/* three channels only on landscape screens: on a portrait tablet the side channels get too narrow to hold a face */
@media (min-width: 1024px) and (orientation: landscape) {
  .cams { grid-template-columns: 1fr 1.3fr 1fr; }
  .cam img { --at: var(--f, 50% 50%); }
  .cam:nth-child(3) { display: block; }
  .cams:has(.cam:nth-child(1):hover) { grid-template-columns: 1.7fr 1fr 1fr; }
  .cams:has(.cam:nth-child(2):hover) { grid-template-columns: 1fr 1.7fr 1fr; }
  .cams:has(.cam:nth-child(3):hover) { grid-template-columns: 1fr 1fr 1.7fr; }
  }

/* Stats: quiet and centred. Three columns split by hairlines at every width, so phone, tablet and desktop read the same.
   Content sets the height */
/* Home rhythm: each section carries the same space above it, the last one the same below, so every gap is equal */
.stats, .bio, .mashups, .gallery { padding-block: var(--home-gap) 0; }
.gallery { padding-bottom: var(--home-gap); }
/* Phones: the portrait's dark fade already reads as space, and the page should close tight onto the footer */
@media (max-width: 599px) { .bio { padding-top: var(--s-4); } .gallery { padding-bottom: var(--s-4); } }
.stats-row { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 72rem; }
.stat { display: grid; justify-items: center; align-content: center; gap: var(--s-2); padding-inline: var(--s-1); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-n { font-weight: 800; font-stretch: var(--head-stretch); font-size: var(--fs-stat); line-height: var(--lh-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.stat-n em { font-style: normal; font-weight: 400; color: var(--cue); margin-left: .02em; }
.stat-v { display: inline-grid; text-align: end; } /* the counter fills the box sized by its final value, so counting never moves it */
.stat-v > * { grid-area: 1 / 1; }
.stat-v .ghost { visibility: hidden; }
.stat-l { font-weight: 700; font-size: var(--fs-lead); line-height: var(--lh-snug); letter-spacing: var(--track); text-transform: uppercase; color: var(--text); opacity: .85; }

/* About: on the page black like every other section, soft grey copy with only the name in full white */
.bio { display: grid; gap: clamp(var(--s-3), 4vw, var(--s-5)); grid-template-columns: minmax(0, 1fr); align-items: center; color: var(--muted); }
.bio-text { display: grid; gap: 1em; max-width: 60ch; font-size: clamp(1rem, .94rem + .25vw, 1.1875rem); line-height: var(--lh-body); text-wrap: pretty; }
.bio-name { font-stretch: var(--head-stretch); font-weight: 800; font-size: var(--fs-title); line-height: var(--lh-head); text-transform: uppercase; letter-spacing: -.005em; color: var(--text); }
/* the photo has no box: the file's light falls from Sunny to black by the edges and it screens onto the page, so its black
   is exactly the page colour; a wide eased fade on every side dissolves what is left of the wall. --low is where the
   bottom fade starts (on phones it runs into the text). Focus per screen like the hero shots: --fp, --ft, --f */
.bio-portrait { position: relative; overflow: hidden; aspect-ratio: 1; --low: 66%; }
.bio-portrait img { --at: var(--fp, var(--f, 50% 50%)); width: 100%; height: 100%; object-fit: cover; object-position: var(--at); mix-blend-mode: screen;
  --fade: linear-gradient(90deg, transparent, #0003 6%, #0009 13%, #000 22% 78%, #0009 87%, #0003 94%, transparent),
    linear-gradient(transparent, #0006 4%, #000 9% var(--low), #0009 calc(var(--low) + (100% - var(--low)) * .4), #0003 calc(var(--low) + (100% - var(--low)) * .7), transparent);
  -webkit-mask: var(--fade); -webkit-mask-composite: source-in; mask: var(--fade); mask-composite: intersect; }
/* side by side from 600: the photo keeps the source's portrait shape, so the arms stay in, sized to stand about as tall
   as the text beside it; the pair centres on the page */
@media (min-width: 600px) {
  .bio { grid-template-columns: clamp(240px, 28vw, 400px) minmax(0, 60ch); justify-content: center; }
  .bio-portrait { aspect-ratio: 4 / 5; }
  .bio-portrait img { --at: var(--ft, var(--f, 50% 50%)); }
}

/* Section heads: the heading, and its one link out on the same baseline */
.mashups, .gallery { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.gallery > .btn { margin-top: calc(var(--home-gap) - var(--s-4)); } /* gap from band lower-left ≈ home-gap, equal to padding-bottom */
/* A section's way onward, centred under it */
.mashups > .btn, .gallery > .btn { justify-self: center; }
.ig-follow svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }


/* Gallery: a short grid, square crops, one link out */
/* Instagram marquee: posts drift right, the red handle band drifts left. Each row holds its set twice so -50% loops */
.igm { display: grid; gap: 4px; margin-inline: calc(var(--pad) * -1); overflow-x: clip; } /* clip sideways only: the tilted band's ends rise past the box */
.igm-row { display: flex; width: max-content; }
.igm-row > * { flex: none; margin-right: 4px; }
.igm-tile { display: block; width: 44vw; aspect-ratio: 1; overflow: hidden; background: var(--bg-2); }
.igm-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.igm-tile:hover img { transform: scale(1.04); }
@media (min-width: 700px) { .igm-tile { width: 28vw; } }
@media (min-width: 1024px) { .igm-tile { width: 17vw; } }
.igm-band { position: relative; z-index: 1; margin: var(--s-2) -2% 0; overflow: hidden; background: var(--cue); color: var(--on-cue); transform: rotate(-1.5deg); }
.igm-band a { display: inline-flex; align-items: center; min-height: var(--btn-h); gap: .75rem; padding-right: var(--s-4); font: 800 var(--fs-h3)/1 var(--ff); font-stretch: var(--head-stretch); text-transform: uppercase; white-space: nowrap; color: inherit; text-decoration: none; }
.igm-band svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .igm-row { animation: tick 60s linear infinite; }
  .igm-row[data-dir="right"] { animation-direction: reverse; }
  .igm-band .igm-row { animation-duration: 30s; }
  .igm:hover .igm-row { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .igm > .igm-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: auto; } .igm > .igm-row > * { width: auto; margin-right: 0; } .igm > .igm-row > [aria-hidden] { display: none; } }
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) { .igm > .igm-row { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

@keyframes settle { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
